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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
22110cd95996d6e65bef994414842f9793f8ec34 | 2,414 | py | Python | lfs/customer/migrations/0004_auto_20210406_1434.py | michael-hahn/django-lfs | 26c3471a8f8d88269c84f714f507b952dfdb6397 | [
"BSD-3-Clause"
] | null | null | null | lfs/customer/migrations/0004_auto_20210406_1434.py | michael-hahn/django-lfs | 26c3471a8f8d88269c84f714f507b952dfdb6397 | [
"BSD-3-Clause"
] | null | null | null | lfs/customer/migrations/0004_auto_20210406_1434.py | michael-hahn/django-lfs | 26c3471a8f8d88269c84f714f507b952dfdb6397 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.1.2 on 2021-04-06 14:34
from django.db import migrations, models
import django.splice.splicefields
class Migration(migrations.Migration):
dependencies = [
('customer', '0003_auto_20210406_1307'),
]
operations = [
migrations.AddField(
model_name='customer',
name='dia_object_id_synthesized',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='customer',
name='dia_object_id_taint',
field=models.BigIntegerField(default=0),
),
migrations.AddField(
model_name='customer',
name='dsa_object_id_synthesized',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='customer',
name='dsa_object_id_taint',
field=models.BigIntegerField(default=0),
),
migrations.AddField(
model_name='customer',
name='ia_object_id_synthesized',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='customer',
name='ia_object_id_taint',
field=models.BigIntegerField(default=0),
),
migrations.AddField(
model_name='customer',
name='sa_object_id_synthesized',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='customer',
name='sa_object_id_taint',
field=models.BigIntegerField(default=0),
),
migrations.AlterField(
model_name='customer',
name='dia_object_id',
field=django.splice.splicefields.SplicePositiveIntegerField(null=True),
),
migrations.AlterField(
model_name='customer',
name='dsa_object_id',
field=django.splice.splicefields.SplicePositiveIntegerField(null=True),
),
migrations.AlterField(
model_name='customer',
name='ia_object_id',
field=django.splice.splicefields.SplicePositiveIntegerField(null=True),
),
migrations.AlterField(
model_name='customer',
name='sa_object_id',
field=django.splice.splicefields.SplicePositiveIntegerField(null=True),
),
]
| 32.186667 | 83 | 0.589064 | 217 | 2,414 | 6.336406 | 0.225806 | 0.078545 | 0.148364 | 0.183273 | 0.868364 | 0.868364 | 0.861091 | 0.838545 | 0.838545 | 0.702545 | 0 | 0.020908 | 0.306545 | 2,414 | 74 | 84 | 32.621622 | 0.800478 | 0.018641 | 0 | 0.705882 | 1 | 0 | 0.147444 | 0.05112 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.073529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
2269f93fb49e081f11178d283040b5d5dc10bc9b | 343 | py | Python | tests/internal/instance_type/test_instance_type_x_auto.py | frolovv/aws.ec2.compare | 582805823492f833d65c0441c4a14dce697c12aa | [
"Apache-2.0"
] | null | null | null | tests/internal/instance_type/test_instance_type_x_auto.py | frolovv/aws.ec2.compare | 582805823492f833d65c0441c4a14dce697c12aa | [
"Apache-2.0"
] | null | null | null | tests/internal/instance_type/test_instance_type_x_auto.py | frolovv/aws.ec2.compare | 582805823492f833d65c0441c4a14dce697c12aa | [
"Apache-2.0"
] | 1 | 2021-12-15T11:58:22.000Z | 2021-12-15T11:58:22.000Z |
# Testing module instance_type.x
import pytest
import ec2_compare.internal.instance_type.x
def test_get_internal_data_instance_type_x_get_instances_list():
assert len(ec2_compare.internal.instance_type.x.get_instances_list()) > 0
def test_get_internal_data_instance_type_x_get():
assert len(ec2_compare.internal.instance_type.x.get) > 0
| 34.3 | 75 | 0.845481 | 56 | 343 | 4.732143 | 0.339286 | 0.271698 | 0.29434 | 0.241509 | 0.826415 | 0.826415 | 0.611321 | 0.611321 | 0.611321 | 0 | 0 | 0.015773 | 0.075802 | 343 | 9 | 76 | 38.111111 | 0.820189 | 0.087464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 10 |
3f380a110a1209e91c175fece1e28a5be6a45f81 | 9,701 | py | Python | dali/test/python/test_operator_readers_webdataset_requirements.py | cyyever/DALI | e2b2d5a061da605e3e9e681017a7b2d53fe41a62 | [
"ECL-2.0",
"Apache-2.0"
] | 3,967 | 2018-06-19T04:39:09.000Z | 2022-03-31T10:57:53.000Z | dali/test/python/test_operator_readers_webdataset_requirements.py | cyyever/DALI | e2b2d5a061da605e3e9e681017a7b2d53fe41a62 | [
"ECL-2.0",
"Apache-2.0"
] | 3,494 | 2018-06-21T07:09:58.000Z | 2022-03-31T19:44:51.000Z | dali/test/python/test_operator_readers_webdataset_requirements.py | cyyever/DALI | e2b2d5a061da605e3e9e681017a7b2d53fe41a62 | [
"ECL-2.0",
"Apache-2.0"
] | 531 | 2018-06-19T23:53:10.000Z | 2022-03-30T08:35:59.000Z | # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. 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.
from webdataset_base import *
def test_return_empty():
global test_batch_size
num_samples = 1000
tar_file_path = os.path.join(get_dali_extra_path(), "db/webdataset/MNIST/missing.tar")
index_file = generate_temp_index_file(tar_file_path)
extract_dir = generate_temp_extract(tar_file_path)
equivalent_files = glob(extract_dir.name + "/*")
equivalent_files = sorted(
equivalent_files, key=(lambda s: int(s[s.rfind("/") + 1 : s.rfind(".")]))
)
compare_pipelines(
webdataset_raw_pipeline(
tar_file_path,
index_file.name,
["jpg", "txt"],
batch_size=test_batch_size,
device_id=0,
num_threads=1,
missing_component_behavior="empty",
),
file_reader_pipeline(
equivalent_files,
["jpg", []],
batch_size=test_batch_size,
device_id=0,
num_threads=1
),
test_batch_size,
math.ceil(num_samples / test_batch_size),
)
def test_skip_sample():
global test_batch_size
num_samples = 500
tar_file_path = os.path.join(get_dali_extra_path(), "db/webdataset/MNIST/missing.tar")
index_file = generate_temp_index_file(tar_file_path)
extract_dir = generate_temp_extract(tar_file_path)
equivalent_files = list(
filter(
lambda s: int(s[s.rfind("/") + 1 : s.rfind(".")]) < 2500,
sorted(
glob(extract_dir.name + "/*"), key=lambda s: int(s[s.rfind("/") + 1 : s.rfind(".")])
),
)
)
compare_pipelines(
webdataset_raw_pipeline(
tar_file_path,
index_file.name,
["jpg", "cls"],
missing_component_behavior="skip",
batch_size=test_batch_size,
device_id=0,
num_threads=1,
),
file_reader_pipeline(
equivalent_files, ["jpg", "cls"], batch_size=test_batch_size, device_id=0, num_threads=1
),
test_batch_size,
math.ceil(num_samples / test_batch_size),
)
wds_pipeline = webdataset_raw_pipeline(
tar_file_path,
index_file.name,
["jpg", "cls"],
missing_component_behavior="skip",
batch_size=test_batch_size,
device_id=0,
num_threads=1,
)
wds_pipeline.build()
assert_equal(list(wds_pipeline.epoch_size().values())[0], num_samples)
def test_raise_error_on_missing():
global test_batch_size
num_samples = 1000
tar_file_path = os.path.join(get_dali_extra_path(), "db/webdataset/MNIST/missing.tar")
index_file = generate_temp_index_file(tar_file_path)
wds_pipeline = webdataset_raw_pipeline(
tar_file_path,
index_file.name,
["jpg", "cls"],
missing_component_behavior="error",
batch_size=test_batch_size,
device_id=0,
num_threads=1,
)
assert_raises(RuntimeError, wds_pipeline.build, glob="Underful sample detected")
def test_different_components():
global test_batch_size
num_samples = 1000
tar_file_path = os.path.join(get_dali_extra_path(), "db/webdataset/MNIST/scrambled.tar")
index_file = generate_temp_index_file(tar_file_path)
extract_dir = generate_temp_extract(tar_file_path)
equivalent_files = glob(extract_dir.name + "/*")
equivalent_files = sorted(
equivalent_files, key=(lambda s: int(s[s.rfind("/") + 1 : s.rfind(".")]))
)
compare_pipelines(
webdataset_raw_pipeline(
tar_file_path,
index_file.name,
["jpg", "txt;cls"],
batch_size=test_batch_size,
device_id=0,
num_threads=1,
),
file_reader_pipeline(
equivalent_files,
["jpg", {"txt", "cls"}],
batch_size=test_batch_size,
device_id=0,
num_threads=1
),
test_batch_size,
math.ceil(num_samples / test_batch_size),
)
def test_dtypes():
global test_batch_size
num_samples = 100
tar_file_path = os.path.join(get_dali_extra_path(), "db/webdataset/sample-tar/dtypes.tar")
index_file = generate_temp_index_file(tar_file_path)
wds_pipeline = webdataset_raw_pipeline(
tar_file_path,
index_file.name,
["float16", "int32", "float64"],
dtypes=[dali.types.FLOAT16, dali.types.INT32, dali.types.FLOAT64],
batch_size=test_batch_size,
device_id=0,
num_threads=1,
)
wds_pipeline.build()
for sample_idx in range(num_samples):
if sample_idx % test_batch_size == 0:
f16, i32, f64 = wds_pipeline.run()
assert (f16.as_array()[sample_idx % test_batch_size] == [float(sample_idx)] * 10).all()
assert (i32.as_array()[sample_idx % test_batch_size] == [int(sample_idx)] * 10).all()
assert (f64.as_array()[sample_idx % test_batch_size] == [float(sample_idx)] * 10).all()
def test_wds_sharding():
global test_batch_size
num_samples = 3000
tar_file_paths = [
os.path.join(get_dali_extra_path(), "db/webdataset/MNIST/devel-0.tar"),
os.path.join(get_dali_extra_path(), "db/webdataset/MNIST/devel-1.tar"),
os.path.join(get_dali_extra_path(), "db/webdataset/MNIST/devel-2.tar"),
]
index_files = [generate_temp_index_file(tar_file_path) for tar_file_path in tar_file_paths]
extract_dirs = [generate_temp_extract(tar_file_path) for tar_file_path in tar_file_paths]
equivalent_files = sum(
list(
sorted(
glob(extract_dir.name + "/*"), key=lambda s: int(s[s.rfind("/") + 1 : s.rfind(".")])
)
for extract_dir in extract_dirs
),
[],
)
compare_pipelines(
webdataset_raw_pipeline(
tar_file_paths,
[index_file.name for index_file in index_files],
["jpg", "cls"],
batch_size=test_batch_size,
device_id=0,
num_threads=1,
),
file_reader_pipeline(
equivalent_files,
["jpg", "cls"],
batch_size=test_batch_size,
device_id=0,
num_threads=1,
),
test_batch_size,
math.ceil(num_samples / test_batch_size),
)
def test_sharding():
global test_batch_size
num_samples = 1000
tar_file_path = os.path.join(get_dali_extra_path(), "db/webdataset/MNIST/devel-0.tar")
index_file = generate_temp_index_file(tar_file_path)
extract_dir = generate_temp_extract(tar_file_path)
equivalent_files = sorted(
glob(extract_dir.name + "/*"), key=lambda s: int(s[s.rfind("/") + 1 : s.rfind(".")])
)
num_shards = 100
for shard_id in range(num_shards):
compare_pipelines(
webdataset_raw_pipeline(
tar_file_path,
index_file.name,
["jpg", "cls"],
num_shards=num_shards,
shard_id=shard_id,
batch_size=test_batch_size,
device_id=0,
num_threads=1,
),
file_reader_pipeline(
equivalent_files,
["jpg", "cls"],
num_shards=num_shards,
shard_id=shard_id,
batch_size=test_batch_size,
device_id=0,
num_threads=1,
),
test_batch_size,
math.ceil(num_samples / num_shards / test_batch_size) * 2,
)
def test_index_generation():
global test_batch_size
num_samples = 3000
tar_file_paths = [
os.path.join(get_dali_extra_path(), "db/webdataset/MNIST/devel-0.tar"),
os.path.join(get_dali_extra_path(), "db/webdataset/MNIST/devel-1.tar"),
os.path.join(get_dali_extra_path(), "db/webdataset/MNIST/devel-2.tar"),
]
extract_dirs = [generate_temp_extract(tar_file_path) for tar_file_path in tar_file_paths]
equivalent_files = sum(
list(
sorted(
glob(extract_dir.name + "/*"), key=lambda s: int(s[s.rfind("/") + 1 : s.rfind(".")])
)
for extract_dir in extract_dirs
),
[],
)
num_shards = 100
for shard_id in range(num_shards):
compare_pipelines(
webdataset_raw_pipeline(
tar_file_paths,
[],
["jpg", "cls"],
missing_component_behavior="error",
num_shards=num_shards,
shard_id=shard_id,
batch_size=test_batch_size,
device_id=0,
num_threads=1,
),
file_reader_pipeline(
equivalent_files,
["jpg", "cls"],
num_shards=num_shards,
shard_id=shard_id,
batch_size=test_batch_size,
device_id=0,
num_threads=1,
),
test_batch_size,
math.ceil(num_samples / num_shards / test_batch_size) * 2,
)
| 32.884746 | 100 | 0.59901 | 1,202 | 9,701 | 4.47005 | 0.140599 | 0.090452 | 0.094361 | 0.050251 | 0.815187 | 0.806253 | 0.781314 | 0.76903 | 0.75898 | 0.754513 | 0 | 0.018386 | 0.293578 | 9,701 | 294 | 101 | 32.996599 | 0.76565 | 0.061334 | 0 | 0.782609 | 0 | 0 | 0.061373 | 0.041575 | 0 | 0 | 0 | 0 | 0.019763 | 1 | 0.031621 | false | 0 | 0.003953 | 0 | 0.035573 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3f4cca97006b9ae492d00f1bfcaa6b9a9507ec3a | 10,462 | py | Python | cosmpy/protos/ibc/core/connection/v1/query_pb2_grpc.py | evsmithx/cosmpy | 7dfc81528b287f90190d6d4387942340f8ab88cf | [
"Apache-2.0"
] | 15 | 2021-09-08T05:27:14.000Z | 2022-03-29T06:48:08.000Z | cosmpy/protos/ibc/core/connection/v1/query_pb2_grpc.py | evsmithx/cosmpy | 7dfc81528b287f90190d6d4387942340f8ab88cf | [
"Apache-2.0"
] | 39 | 2021-08-19T20:09:35.000Z | 2022-03-22T19:51:59.000Z | cosmpy/protos/ibc/core/connection/v1/query_pb2_grpc.py | evsmithx/cosmpy | 7dfc81528b287f90190d6d4387942340f8ab88cf | [
"Apache-2.0"
] | 5 | 2021-11-02T16:23:48.000Z | 2022-01-20T22:30:05.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from ibc.core.connection.v1 import query_pb2 as ibc_dot_core_dot_connection_dot_v1_dot_query__pb2
class QueryStub(object):
"""Query provides defines the gRPC querier service
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.Connection = channel.unary_unary(
'/ibc.core.connection.v1.Query/Connection',
request_serializer=ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionRequest.SerializeToString,
response_deserializer=ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionResponse.FromString,
)
self.Connections = channel.unary_unary(
'/ibc.core.connection.v1.Query/Connections',
request_serializer=ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionsRequest.SerializeToString,
response_deserializer=ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionsResponse.FromString,
)
self.ClientConnections = channel.unary_unary(
'/ibc.core.connection.v1.Query/ClientConnections',
request_serializer=ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryClientConnectionsRequest.SerializeToString,
response_deserializer=ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryClientConnectionsResponse.FromString,
)
self.ConnectionClientState = channel.unary_unary(
'/ibc.core.connection.v1.Query/ConnectionClientState',
request_serializer=ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionClientStateRequest.SerializeToString,
response_deserializer=ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionClientStateResponse.FromString,
)
self.ConnectionConsensusState = channel.unary_unary(
'/ibc.core.connection.v1.Query/ConnectionConsensusState',
request_serializer=ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionConsensusStateRequest.SerializeToString,
response_deserializer=ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionConsensusStateResponse.FromString,
)
class QueryServicer(object):
"""Query provides defines the gRPC querier service
"""
def Connection(self, request, context):
"""Connection queries an IBC connection end.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def Connections(self, request, context):
"""Connections queries all the IBC connections of a chain.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ClientConnections(self, request, context):
"""ClientConnections queries the connection paths associated with a client
state.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ConnectionClientState(self, request, context):
"""ConnectionClientState queries the client state associated with the
connection.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ConnectionConsensusState(self, request, context):
"""ConnectionConsensusState queries the consensus state associated with the
connection.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_QueryServicer_to_server(servicer, server):
rpc_method_handlers = {
'Connection': grpc.unary_unary_rpc_method_handler(
servicer.Connection,
request_deserializer=ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionRequest.FromString,
response_serializer=ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionResponse.SerializeToString,
),
'Connections': grpc.unary_unary_rpc_method_handler(
servicer.Connections,
request_deserializer=ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionsRequest.FromString,
response_serializer=ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionsResponse.SerializeToString,
),
'ClientConnections': grpc.unary_unary_rpc_method_handler(
servicer.ClientConnections,
request_deserializer=ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryClientConnectionsRequest.FromString,
response_serializer=ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryClientConnectionsResponse.SerializeToString,
),
'ConnectionClientState': grpc.unary_unary_rpc_method_handler(
servicer.ConnectionClientState,
request_deserializer=ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionClientStateRequest.FromString,
response_serializer=ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionClientStateResponse.SerializeToString,
),
'ConnectionConsensusState': grpc.unary_unary_rpc_method_handler(
servicer.ConnectionConsensusState,
request_deserializer=ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionConsensusStateRequest.FromString,
response_serializer=ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionConsensusStateResponse.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'ibc.core.connection.v1.Query', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
# This class is part of an EXPERIMENTAL API.
class Query(object):
"""Query provides defines the gRPC querier service
"""
@staticmethod
def Connection(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/ibc.core.connection.v1.Query/Connection',
ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionRequest.SerializeToString,
ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def Connections(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/ibc.core.connection.v1.Query/Connections',
ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionsRequest.SerializeToString,
ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionsResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def ClientConnections(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/ibc.core.connection.v1.Query/ClientConnections',
ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryClientConnectionsRequest.SerializeToString,
ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryClientConnectionsResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def ConnectionClientState(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/ibc.core.connection.v1.Query/ConnectionClientState',
ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionClientStateRequest.SerializeToString,
ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionClientStateResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def ConnectionConsensusState(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/ibc.core.connection.v1.Query/ConnectionConsensusState',
ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionConsensusStateRequest.SerializeToString,
ibc_dot_core_dot_connection_dot_v1_dot_query__pb2.QueryConnectionConsensusStateResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
| 49.819048 | 146 | 0.707322 | 1,019 | 10,462 | 6.840039 | 0.110893 | 0.036729 | 0.044476 | 0.057819 | 0.813199 | 0.809756 | 0.78594 | 0.75868 | 0.722525 | 0.708178 | 0 | 0.009291 | 0.228446 | 10,462 | 209 | 147 | 50.057416 | 0.854187 | 0.071497 | 0 | 0.493827 | 1 | 0 | 0.084185 | 0.056228 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.012346 | 0.030864 | 0.135802 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3f643fc8c8d99d79d4388a813a19a0b1ab02a80a | 11,216 | py | Python | somework/mainapp/migrations/0002_auto_20200509_1011.py | XtremeGood/somework | 52fa01d48538e32a8afb85f4ddbaadac3e3cd154 | [
"Apache-2.0"
] | null | null | null | somework/mainapp/migrations/0002_auto_20200509_1011.py | XtremeGood/somework | 52fa01d48538e32a8afb85f4ddbaadac3e3cd154 | [
"Apache-2.0"
] | null | null | null | somework/mainapp/migrations/0002_auto_20200509_1011.py | XtremeGood/somework | 52fa01d48538e32a8afb85f4ddbaadac3e3cd154 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.5 on 2020-05-09 04:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='dematad',
name='ACCAT',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='ACNO',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='ACTYPE',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='AD1',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='AD2',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='AD3',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='AD4',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='ANREPFLG',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='BANKAD1',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='BANKAD2',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='BANKAD3',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='BANKAD4',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='BANKNAME',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='BANKPIN',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='BTAX',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='CLID',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='DBMINOR',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='DPID',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='EMAIL1',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='EMAIL2',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='EMAIL3',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='FAX',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='FILLER1',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='FILLER2',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='FJT1',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='FJT2',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='FNAME',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='Filler3',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='IFSC',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='JT1',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='JT1MAPIN',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='JT2',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='JT2MAPIN',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='MICRCD',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='MIND',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='NAD1',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='NAD2',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='NAD3',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='NAD4',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='NAME',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='NAMEMAPIN',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='NOM',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='NOMNAME',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='NPIN',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='OCCUP',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='PAN1',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='PAN2',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='PAN3',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='PANGAR',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='PHONE',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='PIN',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='RBIDATE',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='RBIREF',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='RGSFLG',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='SEBIREGNO',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='STATUS',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='SUBTYP',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='TYPE',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='UID2NDHOL',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='UID3RDHOL',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='UIDGAR',
field=models.TextField(),
),
migrations.AlterField(
model_name='dematad',
name='UIDISTHOL',
field=models.TextField(),
),
migrations.AlterField(
model_name='demathol',
name='CLID',
field=models.TextField(),
),
migrations.AlterField(
model_name='demathol',
name='DATE',
field=models.TextField(),
),
migrations.AlterField(
model_name='demathol',
name='DPID',
field=models.TextField(),
),
migrations.AlterField(
model_name='demathol',
name='FREEHOL',
field=models.TextField(),
),
migrations.AlterField(
model_name='demathol',
name='HOLBLOCK',
field=models.TextField(),
),
migrations.AlterField(
model_name='demathol',
name='HOLCMIDD',
field=models.TextField(),
),
migrations.AlterField(
model_name='demathol',
name='HOLCMPOOL',
field=models.TextField(),
),
migrations.AlterField(
model_name='demathol',
name='HOLLCK',
field=models.TextField(),
),
migrations.AlterField(
model_name='demathol',
name='HOLPLD',
field=models.TextField(),
),
migrations.AlterField(
model_name='demathol',
name='HOLPLDLCK',
field=models.TextField(),
),
migrations.AlterField(
model_name='demathol',
name='HOLPLDLCKU',
field=models.TextField(),
),
migrations.AlterField(
model_name='demathol',
name='HOLPLDUNC',
field=models.TextField(),
),
migrations.AlterField(
model_name='demathol',
name='HOLREM',
field=models.TextField(),
),
migrations.AlterField(
model_name='demathol',
name='HOLREMLCK',
field=models.TextField(),
),
migrations.AlterField(
model_name='demathol',
name='HOLSET',
field=models.TextField(),
),
migrations.AlterField(
model_name='demathol',
name='ISEN',
field=models.TextField(),
),
]
| 27.762376 | 47 | 0.478245 | 807 | 11,216 | 6.548947 | 0.131351 | 0.295175 | 0.368969 | 0.428004 | 0.887796 | 0.887796 | 0.880227 | 0.880227 | 0.880227 | 0 | 0 | 0.007147 | 0.401213 | 11,216 | 403 | 48 | 27.831266 | 0.77978 | 0.004012 | 0 | 0.79597 | 1 | 0 | 0.09213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.002519 | 0 | 0.010076 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
58ae618eb76bbebb081dfb01dd5464d259f617e0 | 7,123 | py | Python | .src/PyPtt/_api_post.py | PttCodingMan/ptt_post_too_many_monitor | 41031f3c6691e7050a1b5ef523e3cd2a00e502c5 | [
"Apache-2.0"
] | null | null | null | .src/PyPtt/_api_post.py | PttCodingMan/ptt_post_too_many_monitor | 41031f3c6691e7050a1b5ef523e3cd2a00e502c5 | [
"Apache-2.0"
] | null | null | null | .src/PyPtt/_api_post.py | PttCodingMan/ptt_post_too_many_monitor | 41031f3c6691e7050a1b5ef523e3cd2a00e502c5 | [
"Apache-2.0"
] | null | null | null | from . import command
from . import connect_core
from . import exceptions
from . import i18n, check_value, lib_util
from . import screens
def fast_post_step0(
api: object,
board: str,
title: str,
content: str,
post_type: int) -> None:
api._goto_board(board)
cmd_list = list()
cmd_list.append(command.ctrl_p)
cmd_list.append(str(post_type))
cmd_list.append(command.enter)
cmd_list.append(str(title))
cmd_list.append(command.enter)
cmd_list.append(str(content))
cmd_list.append(command.ctrl_x)
cmd_list.append('s')
cmd = ''.join(cmd_list)
target_list = [
connect_core.TargetUnit(
i18n.has_post_permission,
'發表文章於【',
break_detect=True,
),
connect_core.TargetUnit(
i18n.no_permission,
'使用者不可發言',
break_detect=True,
),
connect_core.TargetUnit(
i18n.no_permission,
'無法發文: 未達看板要求權限',
break_detect=True
),
connect_core.TargetUnit(
i18n.any_key_continue,
'任意鍵繼續',
break_detect=True,
),
connect_core.TargetUnit(
i18n.save_file,
'確定要儲存檔案嗎',
break_detect=True,
)
]
index = api.connect_core.fast_send(cmd, target_list)
if index < 0:
screens.show(api.config, api.connect_core.get_screen_queue())
raise exceptions.UnknownError(i18n.UnknownError)
if index == 1 or index == 2:
raise exceptions.NoPermission(i18n.no_permission)
def fast_post_step1(api: object, sign_file) -> None:
cmd = '\r'
target_list = [
connect_core.TargetUnit(
i18n.has_post_permission,
'發表文章於【',
break_detect=True,
),
connect_core.TargetUnit(
i18n.no_permission,
'使用者不可發言',
break_detect=True,
),
connect_core.TargetUnit(
i18n.no_permission,
'無法發文: 未達看板要求權限',
break_detect=True
),
connect_core.TargetUnit(
i18n.any_key_continue,
'任意鍵繼續',
break_detect=True,
),
connect_core.TargetUnit(
i18n.save_file,
'確定要儲存檔案嗎',
break_detect=True,
),
connect_core.TargetUnit(
i18n.select_signature,
'x=隨機',
response=str(sign_file) + '\r',
),
]
index = api.connect_core.fast_send(cmd, target_list)
if index < 0:
screens.show(api.config, api.connect_core.get_screen_queue())
raise exceptions.UnknownError(i18n.UnknownError)
def fast_post(
api: object,
board: str,
title: str,
content: str,
post_type: int,
sign_file) -> None:
api._goto_board(board)
cmd_list = list()
cmd_list.append(command.ctrl_p)
cmd_list.append(str(post_type))
cmd_list.append(command.enter)
cmd_list.append(str(title))
cmd_list.append(command.enter)
cmd_list.append(str(content))
cmd_list.append(command.ctrl_x)
cmd = ''.join(cmd_list)
target_list = [
connect_core.TargetUnit(
i18n.has_post_permission,
'發表文章於【',
break_detect=True,
),
connect_core.TargetUnit(
i18n.no_permission,
'使用者不可發言',
break_detect=True,
),
connect_core.TargetUnit(
i18n.no_permission,
'無法發文: 未達看板要求權限',
break_detect=True
),
connect_core.TargetUnit(
i18n.any_key_continue,
'任意鍵繼續',
break_detect=True,
),
connect_core.TargetUnit(
i18n.save_file,
'確定要儲存檔案嗎',
response='s' + command.enter,
),
connect_core.TargetUnit(
i18n.select_signature,
'x=隨機',
response=str(sign_file) + command.enter,
),
]
index = api.connect_core.fast_send(cmd, target_list)
if index < 0:
screens.show(api.config, api.connect_core.get_screen_queue())
raise exceptions.UnknownError(i18n.UnknownError)
if index == 1 or index == 2:
raise exceptions.NoPermission(i18n.no_permission)
sign_file_list = [str(x) for x in range(0, 10)]
sign_file_list.append('x')
def post(
api: object,
board: str,
title: str,
content: str,
title_index: int,
sign_file) -> None:
api._one_thread()
if api.unregistered_user:
raise exceptions.UnregisteredUser(lib_util.get_current_func_name())
if not api._login_status:
raise exceptions.Requirelogin(i18n.require_login)
check_value.check_type(str, 'board', board)
check_value.check_type(int, 'title_index', title_index)
check_value.check_type(str, 'title', title)
check_value.check_type(str, 'content', content)
if str(sign_file).lower() not in sign_file_list:
raise ValueError(f'wrong parameter sign_file: {sign_file}')
random_tag = lib_util.get_random_str(10)
content = content.replace('\r\n', random_tag)
content = content.replace('\n', '\r\n')
content = content.replace(random_tag, '\r\n')
api._check_board(board)
api._goto_board(board)
# logger = Logger('post', Logger.INFO)
cmd_list = list()
cmd_list.append(command.ctrl_p)
cmd = ''.join(cmd_list)
target_list = [
connect_core.TargetUnit(
i18n.has_post_permission,
'發表文章於【',
break_detect=True,
),
connect_core.TargetUnit(
i18n.no_permission,
'使用者不可發言',
break_detect=True,
),
connect_core.TargetUnit(
i18n.no_permission,
'無法發文: 未達看板要求權限',
break_detect=True
),
]
index = api.connect_core.send(cmd, target_list)
if index < 0:
screens.show(api.config, api.connect_core.get_screen_queue())
raise exceptions.UnknownError(i18n.UnknownError)
if index == 1 or index == 2:
raise exceptions.NoPermission(i18n.no_permission)
screens.show(api.config, api.connect_core.get_screen_queue())
cmd_list = list()
cmd_list.append(str(title_index))
cmd_list.append(command.enter)
cmd_list.append(str(title))
cmd_list.append(command.enter)
cmd_list.append(command.ctrl_y * 40)
cmd_list.append(str(content))
cmd_list.append(command.ctrl_x)
cmd = ''.join(cmd_list)
target_list = [
connect_core.TargetUnit(
i18n.any_key_continue,
'任意鍵繼續',
break_detect=True,
),
connect_core.TargetUnit(
i18n.save_file,
'確定要儲存檔案嗎',
response='s' + command.enter,
),
connect_core.TargetUnit(
i18n.select_signature,
'x=隨機',
response=str(sign_file) + command.enter,
),
]
api.connect_core.send(
cmd,
target_list,
screen_timeout=api.config.screen_post_timeout)
| 27.08365 | 75 | 0.584585 | 806 | 7,123 | 4.903226 | 0.132754 | 0.094636 | 0.075658 | 0.145496 | 0.803897 | 0.77581 | 0.769737 | 0.757085 | 0.757085 | 0.746204 | 0 | 0.016887 | 0.309982 | 7,123 | 262 | 76 | 27.187023 | 0.787182 | 0.005054 | 0 | 0.800866 | 0 | 0 | 0.036697 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017316 | false | 0 | 0.021645 | 0 | 0.038961 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
58ebf0b66ba0aa75212800e3d0ecef7a36c93274 | 127 | py | Python | core/backbone/get_model.py | GuodongQi/FSL-OM | 926d486325f8d59dc98dcf829c28dc77e6be6d7e | [
"MIT"
] | 1 | 2021-11-24T02:20:01.000Z | 2021-11-24T02:20:01.000Z | core/backbone/get_model.py | GuodongQi/FSL-OM | 926d486325f8d59dc98dcf829c28dc77e6be6d7e | [
"MIT"
] | 1 | 2021-11-24T02:22:31.000Z | 2021-11-27T03:07:35.000Z | core/backbone/get_model.py | GuodongQi/FSL-OM | 926d486325f8d59dc98dcf829c28dc77e6be6d7e | [
"MIT"
] | 1 | 2022-01-15T03:35:09.000Z | 2022-01-15T03:35:09.000Z | from core.backbone import __dict__
def get_model(arch, num_classes):
return __dict__[arch](num_classes=num_classes)
| 21.166667 | 51 | 0.76378 | 18 | 127 | 4.722222 | 0.666667 | 0.352941 | 0.329412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15748 | 127 | 5 | 52 | 25.4 | 0.794393 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 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 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 8 |
453dea80ab8f3096a61b0df68a71bffa8128ca8b | 608,681 | py | Python | src/genie/libs/parser/junos/tests/test_show_ospf.py | nujo/genieparser | 083b01efc46afc32abe1a1858729578beab50cd3 | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/junos/tests/test_show_ospf.py | nujo/genieparser | 083b01efc46afc32abe1a1858729578beab50cd3 | [
"Apache-2.0"
] | 1 | 2020-08-01T00:23:31.000Z | 2020-08-01T00:40:05.000Z | src/genie/libs/parser/junos/tests/test_show_ospf.py | nujo/genieparser | 083b01efc46afc32abe1a1858729578beab50cd3 | [
"Apache-2.0"
] | null | null | null | # Python
import unittest
from unittest.mock import Mock
# ATS
from pyats.topology import Device
# Metaparser
from genie.metaparser.util.exceptions import SchemaEmptyParserError
# junos show_ospf
from genie.libs.parser.junos.show_ospf import (
ShowOspfInterface,
ShowOspfInterfaceBrief,
ShowOspfInterfaceDetail,
ShowOspfNeighbor,
ShowOspfDatabase,
ShowOspfDatabaseOpaqueArea,
ShowOspfDatabaseSummary,
ShowOspfDatabaseExternalExtensive,
ShowOspfOverview,
ShowOspfOverviewExtensive,
ShowOspfDatabaseAdvertisingRouterSelfDetail,
ShowOspfDatabaseExtensive,
ShowOspfNeighborExtensive,
ShowOspfInterfaceExtensive,
ShowOspfNeighborDetail,
ShowOspfDatabaseNetworkLsaidDetail,
ShowOspfDatabaseLsaidDetail,
ShowOspfRouteBrief,
ShowOspfRouteDetail,
ShowOspfRouteNetworkExtensive
)
class TestShowOspfDatabaseOpaqueArea(unittest.TestCase):
""" Unit tests for:
* show ospf database opaque-area
"""
device = Device(name="aDevice")
empty_output = {"execute.return_value": ""}
maxDiff = None
golden_output = {
"execute.return_value": """
show ospf database opaque-area
OSPF database, Area 0.0.0.8
Type ID Adv Rtr Seq Age Opt Cksum Len
OpaqArea 10.1.0.1 10.49.194.125 0x80000002 359 0x22 0x6f5d 28
OpaqArea 10.1.0.1 10.49.194.127 0x80000002 595 0x22 0x7751 28
OpaqArea*10.1.0.1 10.34.2.250 0x80000003 227 0x22 0xa11a 28
OpaqArea 10.1.0.1 10.34.3.252 0x80000002 754 0x22 0xad09 28
OpaqArea 10.1.0.1 10.169.14.240 0x80000002 2210 0x22 0x35ae 28
OpaqArea 10.1.0.3 10.49.194.125 0x80000001 1168 0x22 0x27f4 136
OpaqArea 10.1.0.3 10.49.194.127 0x80000001 1441 0x22 0xa27 136
OpaqArea*10.1.0.3 10.34.2.250 0x80000002 934 0x22 0x2ac3 136
OpaqArea 10.1.0.3 10.34.3.252 0x80000001 1815 0x22 0x90dd 136
OpaqArea 10.1.0.3 10.169.14.240 0x80000002 597 0x22 0x5697 136
OpaqArea*10.1.0.4 10.34.2.250 0x80000001 1814 0x22 0xb7b3 136
OpaqArea 10.1.0.4 10.34.3.252 0x80000001 1167 0x22 0x412 136
OpaqArea 10.1.0.4 10.169.14.240 0x80000001 1440 0x22 0x58d5 136
"""
}
golden_parsed_output = {
"ospf-database-information": {
"ospf-area-header": {
"ospf-area": "0.0.0.8"
},
"ospf-database": [
{
"advertising-router": "10.49.194.125",
"age": "359",
"checksum": "0x6f5d",
"lsa-id": "10.1.0.1",
"lsa-length": "28",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80000002"
},
{
"advertising-router": "10.49.194.127",
"age": "595",
"checksum": "0x7751",
"lsa-id": "10.1.0.1",
"lsa-length": "28",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80000002"
},
{
"advertising-router": "10.34.2.250",
"age": "227",
"checksum": "0xa11a",
"lsa-id": "10.1.0.1",
"lsa-length": "28",
"lsa-type": "OpaqArea",
"options": "0x22",
"our-entry": True,
"sequence-number": "0x80000003"
},
{
"advertising-router": "10.34.3.252",
"age": "754",
"checksum": "0xad09",
"lsa-id": "10.1.0.1",
"lsa-length": "28",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80000002"
},
{
"advertising-router": "10.169.14.240",
"age": "2210",
"checksum": "0x35ae",
"lsa-id": "10.1.0.1",
"lsa-length": "28",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80000002"
},
{
"advertising-router": "10.49.194.125",
"age": "1168",
"checksum": "0x27f4",
"lsa-id": "10.1.0.3",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80000001"
},
{
"advertising-router": "10.49.194.127",
"age": "1441",
"checksum": "0xa27",
"lsa-id": "10.1.0.3",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80000001"
},
{
"advertising-router": "10.34.2.250",
"age": "934",
"checksum": "0x2ac3",
"lsa-id": "10.1.0.3",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"our-entry": True,
"sequence-number": "0x80000002"
},
{
"advertising-router": "10.34.3.252",
"age": "1815",
"checksum": "0x90dd",
"lsa-id": "10.1.0.3",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80000001"
},
{
"advertising-router": "10.169.14.240",
"age": "597",
"checksum": "0x5697",
"lsa-id": "10.1.0.3",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80000002"
},
{
"advertising-router": "10.34.2.250",
"age": "1814",
"checksum": "0xb7b3",
"lsa-id": "10.1.0.4",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"our-entry": True,
"sequence-number": "0x80000001"
},
{
"advertising-router": "10.34.3.252",
"age": "1167",
"checksum": "0x412",
"lsa-id": "10.1.0.4",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80000001"
},
{
"advertising-router": "10.169.14.240",
"age": "1440",
"checksum": "0x58d5",
"lsa-id": "10.1.0.4",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80000001"
}
]
}
}
def test_show_ospf_empty(self):
self.device = Mock(**self.empty_output)
obj = ShowOspfDatabaseOpaqueArea(device=self.device)
with self.assertRaises(SchemaEmptyParserError):
obj.parse()
def test_show_ospf_database_opaque_area(self):
self.device = Mock(**self.golden_output)
obj = ShowOspfDatabaseOpaqueArea(device=self.device)
parsed_output = obj.parse()
self.assertEqual(parsed_output, self.golden_parsed_output)
class test_show_ospf_interface(unittest.TestCase):
""" Unit tests for:
* show ospf interface
* show ospf interface {interface}
"""
device = Device(name="aDevice")
empty_output = {"execute.return_value": ""}
golden_output = {
"execute.return_value": """
show ospf interface
Interface State Area DR ID BDR ID Nbrs
ge-0/0/0.0 PtToPt 0.0.0.1 0.0.0.0 0.0.0.0 1
ge-0/0/1.0 PtToPt 0.0.0.1 0.0.0.0 0.0.0.0 1
"""
}
golden_parsed_output = {
"instance": {
"master": {
"areas": {
"0.0.0.1": {
"interfaces": {
"ge-0/0/0.0": {
"state": "PtToPt",
"dr_id": "0.0.0.0",
"bdr_id": "0.0.0.0",
"nbrs_count": 1,
},
"ge-0/0/1.0": {
"state": "PtToPt",
"dr_id": "0.0.0.0",
"bdr_id": "0.0.0.0",
"nbrs_count": 1,
},
}
}
}
}
}
}
golden_output_interface = {
"execute.return_value": """
show ospf interface ge-0/0/1.0
Interface State Area DR ID BDR ID Nbrs
ge-0/0/1.0 PtToPt 0.0.0.1 0.0.0.0 0.0.0.0 1
"""
}
golden_parsed_output_interface = {
"instance": {
"master": {
"areas": {
"0.0.0.1": {
"interfaces": {
"ge-0/0/1.0": {
"state": "PtToPt",
"dr_id": "0.0.0.0",
"bdr_id": "0.0.0.0",
"nbrs_count": 1,
}
}
}
}
}
}
}
golden_output_instance = {
"execute.return_value": """
show ospf interface instance master
Interface State Area DR ID BDR ID Nbrs
ge-0/0/0.0 PtToPt 0.0.0.1 0.0.0.0 0.0.0.0 1
ge-0/0/1.0 PtToPt 0.0.0.1 0.0.0.0 0.0.0.0 1
"""
}
golden_parsed_output_instance = {
"instance": {
"master": {
"areas": {
"0.0.0.1": {
"interfaces": {
"ge-0/0/0.0": {
"state": "PtToPt",
"dr_id": "0.0.0.0",
"bdr_id": "0.0.0.0",
"nbrs_count": 1,
},
"ge-0/0/1.0": {
"state": "PtToPt",
"dr_id": "0.0.0.0",
"bdr_id": "0.0.0.0",
"nbrs_count": 1,
},
}
}
}
}
}
}
def test_show_ospf_empty(self):
self.device = Mock(**self.empty_output)
obj = ShowOspfInterface(device=self.device)
with self.assertRaises(SchemaEmptyParserError):
obj.parse()
def test_show_ospf_interface(self):
self.device = Mock(**self.golden_output)
obj = ShowOspfInterface(device=self.device)
parsed_output = obj.parse()
self.assertEqual(parsed_output, self.golden_parsed_output)
def test_show_ospf_interface_interface(self):
self.device = Mock(**self.golden_output_interface)
obj = ShowOspfInterface(device=self.device)
parsed_output = obj.parse(interface="ge-0/0/1.0")
self.assertEqual(parsed_output, self.golden_parsed_output_interface)
def test_show_ospf_interface_instance(self):
self.device = Mock(**self.golden_output_instance)
obj = ShowOspfInterface(device=self.device)
parsed_output = obj.parse(instance="master")
self.assertEqual(parsed_output, self.golden_parsed_output_instance)
class test_show_ospf_interface_brief(unittest.TestCase):
""" Unit tests for:
* show ospf interface brief
* show ospf interface brief instance {instance}
* show ospf interface {interface} brief
"""
device = Device(name="aDevice")
empty_output = {"execute.return_value": ""}
golden_output = {
"execute.return_value": """
show ospf interface brief
Interface State Area DR ID BDR ID Nbrs
ge-0/0/2.0 BDR 0.0.0.1 10.16.2.2 10.64.4.4 5
"""
}
golden_parsed_output = {
"instance": {
"master": {
"areas": {
"0.0.0.1": {
"interfaces": {
"ge-0/0/2.0": {
"state": "BDR",
"dr_id": "10.16.2.2",
"bdr_id": "10.64.4.4",
"nbrs_count": 5,
}
}
}
}
}
}
}
golden_output_master = {
"execute.return_value": """
show ospf interface brief instance master
Interface State Area DR ID BDR ID Nbrs
ge-0/0/4.0 BDR 0.0.0.4 10.64.4.4 192.168.10.22 2
ge-0/0/5.0 BDR 0.0.0.4 10.16.2.2 10.16.2.2 3
ge-0/0/6.0 DR 0.0.0.4 10.64.4.4 192.168.10.22 4
lo1.0 DR 0.0.0.4 10.16.2.2 0.0.0.0 0
"""
}
golden_parsed_output_master = {
"instance": {
"master": {
"areas": {
"0.0.0.4": {
"interfaces": {
"ge-0/0/4.0": {
"state": "BDR",
"dr_id": "10.64.4.4",
"bdr_id": "192.168.10.22",
"nbrs_count": 2,
},
"ge-0/0/5.0": {
"state": "BDR",
"dr_id": "10.16.2.2",
"bdr_id": "10.16.2.2",
"nbrs_count": 3,
},
"ge-0/0/6.0": {
"state": "DR",
"dr_id": "10.64.4.4",
"bdr_id": "192.168.10.22",
"nbrs_count": 4,
},
"lo1.0": {
"state": "DR",
"dr_id": "10.16.2.2",
"bdr_id": "0.0.0.0",
"nbrs_count": 0,
},
}
}
}
}
}
}
golden_output_interface = {
"execute.return_value": """
show ospf interface ge-0/0/4.0 brief
Interface State Area DR ID BDR ID Nbrs
ge-0/0/4.0 PtToPt 0.0.0.1 10.16.2.1 10.64.2.4 1
"""
}
golden_parsed_output_interface = {
"instance": {
"master": {
"areas": {
"0.0.0.1": {
"interfaces": {
"ge-0/0/4.0": {
"state": "PtToPt",
"dr_id": "10.16.2.1",
"bdr_id": "10.64.2.4",
"nbrs_count": 1,
}
}
}
}
}
}
}
def test_show_ospf_interface_brief_empty(self):
self.device = Mock(**self.empty_output)
obj = ShowOspfInterfaceBrief(device=self.device)
with self.assertRaises(SchemaEmptyParserError):
obj.parse()
def test_show_ospf_interface_brief(self):
self.device = Mock(**self.golden_output)
obj = ShowOspfInterfaceBrief(device=self.device)
parsed_output = obj.parse()
self.assertEqual(parsed_output, self.golden_parsed_output)
def test_show_ospf_interface_brief_instance_master(self):
self.device = Mock(**self.golden_output_master)
obj = ShowOspfInterfaceBrief(device=self.device)
parsed_output = obj.parse(instance="master")
self.assertEqual(parsed_output, self.golden_parsed_output_master)
def test_show_ospf_interface_interface_brief(self):
self.device = Mock(**self.golden_output_interface)
obj = ShowOspfInterfaceBrief(device=self.device)
parsed_output = obj.parse(interface="ge-0/0/4.0")
self.assertEqual(parsed_output, self.golden_parsed_output_interface)
class test_show_ospf_interface_detail(unittest.TestCase):
""" Unit tests for:
* show ospf interface detail
* show ospf interface {interface} detail
"""
device = Device(name="aDevice")
empty_output = {"execute.return_value": ""}
golden_output = {
"execute.return_value": """
show ospf interface detail
Interface State Area DR ID BDR ID Nbrs
ge-0/0/0.0 PtToPt 0.0.0.1 0.0.0.0 0.0.0.0 1
Type: P2P, Address: 172.16.94.1, Mask: 255.255.255.0, MTU: 500, Cost: 50
Adj count: 1
Hello: 10, Dead: 20, ReXmit: 10, Not Stub
Auth type: None
Protection type: Post Convergence
Post convergence protection: Enabled, Fate sharing: No, SRLG: No, Node cost: 50
Topology default (ID 0) -> Cost: 50
ge-0/0/1.0 PtToPt 0.0.0.1 0.0.0.0 0.0.0.0 1
Type: P2P, Address: 172.16.94.1, Mask: 255.255.255.0, MTU: 500, Cost: 100
Adj count: 1
Hello: 10, Dead: 10, ReXmit: 5, Not Stub
Auth type: None
Protection type: Post Convergence
Post convergence protection: Enabled, Fate sharing: No, SRLG: No, Node cost: 100
Topology default (ID 0) -> Cost: 100
"""
}
golden_parsed_output = {
"instance": {
"master": {
"areas": {
"0.0.0.1": {
"interfaces": {
"ge-0/0/0.0": {
"state": "PtToPt",
"dr_id": "0.0.0.0",
"bdr_id": "0.0.0.0",
"nbrs_count": 1,
"type": "P2P",
"address": "172.16.94.1",
"mask": "255.255.255.0",
"mtu": 500,
"cost": 50,
"adj_count": 1,
"hello": 10,
"dead": 20,
"rexmit": 10,
"ospf_stub_type": "Not Stub",
"authentication_type": "None",
"ospf_interface": {
"protection_type": "Post Convergence",
"tilfa": {
"prot_link": "Enabled",
"prot_fate": "No",
"prot_srlg": "No",
"prot_node": 50,
},
"topology": {"default": {"id": 0, "metric": 50}},
},
},
"ge-0/0/1.0": {
"state": "PtToPt",
"dr_id": "0.0.0.0",
"bdr_id": "0.0.0.0",
"nbrs_count": 1,
"type": "P2P",
"address": "172.16.94.1",
"mask": "255.255.255.0",
"mtu": 500,
"cost": 100,
"adj_count": 1,
"hello": 10,
"dead": 10,
"rexmit": 5,
"ospf_stub_type": "Not Stub",
"authentication_type": "None",
"ospf_interface": {
"protection_type": "Post Convergence",
"tilfa": {
"prot_link": "Enabled",
"prot_fate": "No",
"prot_srlg": "No",
"prot_node": 100,
},
"topology": {"default": {"id": 0, "metric": 100}},
},
},
}
}
}
}
}
}
golden_output_interface = {
"execute.return_value": """
show ospf interface ge-0/0/1.0 detail
Interface State Area DR ID BDR ID Nbrs
ge-0/0/1.0 PtToPt 0.0.0.1 0.0.0.0 0.0.0.0 1
Type: P2P, Address: 172.16.94.1, Mask: 255.255.255.0, MTU: 500, Cost: 100
Adj count: 1
Hello: 10, Dead: 10, ReXmit: 5, Not Stub
Auth type: None
Protection type: Post Convergence
Post convergence protection: Enabled, Fate sharing: No, SRLG: No, Node cost: 100
Topology default (ID 0) -> Cost: 100
"""
}
golden_parsed_output_interface = {
"instance": {
"master": {
"areas": {
"0.0.0.1": {
"interfaces": {
"ge-0/0/1.0": {
"state": "PtToPt",
"dr_id": "0.0.0.0",
"bdr_id": "0.0.0.0",
"nbrs_count": 1,
"type": "P2P",
"address": "172.16.94.1",
"mask": "255.255.255.0",
"mtu": 500,
"cost": 100,
"adj_count": 1,
"hello": 10,
"dead": 10,
"rexmit": 5,
"ospf_stub_type": "Not Stub",
"authentication_type": "None",
"ospf_interface": {
"protection_type": "Post Convergence",
"tilfa": {
"prot_link": "Enabled",
"prot_fate": "No",
"prot_srlg": "No",
"prot_node": 100,
},
"topology": {"default": {"id": 0, "metric": 100}},
},
}
}
}
}
}
}
}
golden_output_instance = {
"execute.return_value": """
show ospf interface detail instance master
Interface State Area DR ID BDR ID Nbrs
ge-0/0/0.0 PtToPt 0.0.0.1 0.0.0.0 0.0.0.0 1
Type: P2P, Address: 172.16.94.1, Mask: 255.255.255.0, MTU: 500, Cost: 50
Adj count: 1
Hello: 10, Dead: 20, ReXmit: 10, Not Stub
Auth type: None
Protection type: Post Convergence
Post convergence protection: Enabled, Fate sharing: No, SRLG: No, Node cost: 50
Topology default (ID 0) -> Cost: 50
ge-0/0/1.0 PtToPt 0.0.0.1 0.0.0.0 0.0.0.0 1
Type: P2P, Address: 172.16.94.1, Mask: 255.255.255.0, MTU: 500, Cost: 100
Adj count: 1
Hello: 10, Dead: 10, ReXmit: 5, Not Stub
Auth type: None
Protection type: Post Convergence
Post convergence protection: Enabled, Fate sharing: No, SRLG: No, Node cost: 100
Topology default (ID 0) -> Cost: 100
"""
}
golden_parsed_output_instance = {
"instance": {
"master": {
"areas": {
"0.0.0.1": {
"interfaces": {
"ge-0/0/0.0": {
"state": "PtToPt",
"dr_id": "0.0.0.0",
"bdr_id": "0.0.0.0",
"nbrs_count": 1,
"type": "P2P",
"address": "172.16.94.1",
"mask": "255.255.255.0",
"mtu": 500,
"cost": 50,
"adj_count": 1,
"hello": 10,
"dead": 20,
"rexmit": 10,
"ospf_stub_type": "Not Stub",
"authentication_type": "None",
"ospf_interface": {
"protection_type": "Post Convergence",
"tilfa": {
"prot_link": "Enabled",
"prot_fate": "No",
"prot_srlg": "No",
"prot_node": 50,
},
"topology": {"default": {"id": 0, "metric": 50}},
},
},
"ge-0/0/1.0": {
"state": "PtToPt",
"dr_id": "0.0.0.0",
"bdr_id": "0.0.0.0",
"nbrs_count": 1,
"type": "P2P",
"address": "172.16.94.1",
"mask": "255.255.255.0",
"mtu": 500,
"cost": 100,
"adj_count": 1,
"hello": 10,
"dead": 10,
"rexmit": 5,
"ospf_stub_type": "Not Stub",
"authentication_type": "None",
"ospf_interface": {
"protection_type": "Post Convergence",
"tilfa": {
"prot_link": "Enabled",
"prot_fate": "No",
"prot_srlg": "No",
"prot_node": 100,
},
"topology": {"default": {"id": 0, "metric": 100}},
},
},
}
}
}
}
}
}
golden_output_interface_instance = {
"execute.return_value": """
show ospf interface ge-0/0/1.0 detail instance master
Interface State Area DR ID BDR ID Nbrs
ge-0/0/1.0 PtToPt 0.0.0.1 0.0.0.0 0.0.0.0 1
Type: P2P, Address: 172.16.94.1, Mask: 255.255.255.0, MTU: 500, Cost: 100
Adj count: 1
Hello: 10, Dead: 10, ReXmit: 5, Not Stub
Auth type: None
Protection type: Post Convergence
Post convergence protection: Enabled, Fate sharing: No, SRLG: No, Node cost: 100
Topology default (ID 0) -> Cost: 100
"""
}
golden_parsed_output_interface_instance = {
"instance": {
"master": {
"areas": {
"0.0.0.1": {
"interfaces": {
"ge-0/0/1.0": {
"state": "PtToPt",
"dr_id": "0.0.0.0",
"bdr_id": "0.0.0.0",
"nbrs_count": 1,
"type": "P2P",
"address": "172.16.94.1",
"mask": "255.255.255.0",
"mtu": 500,
"cost": 100,
"adj_count": 1,
"hello": 10,
"dead": 10,
"rexmit": 5,
"ospf_stub_type": "Not Stub",
"authentication_type": "None",
"ospf_interface": {
"protection_type": "Post Convergence",
"tilfa": {
"prot_link": "Enabled",
"prot_fate": "No",
"prot_srlg": "No",
"prot_node": 100,
},
"topology": {"default": {"id": 0, "metric": 100}},
},
}
}
}
}
}
}
}
def test_show_ospf_interface_detail_empty(self):
self.device = Mock(**self.empty_output)
obj = ShowOspfInterfaceDetail(device=self.device)
with self.assertRaises(SchemaEmptyParserError):
obj.parse()
def test_show_ospf_interface_detail(self):
self.device = Mock(**self.golden_output)
obj = ShowOspfInterfaceDetail(device=self.device)
parsed_output = obj.parse()
self.assertEqual(parsed_output, self.golden_parsed_output)
def test_show_ospf_interface_interface_detail(self):
self.device = Mock(**self.golden_output_interface)
obj = ShowOspfInterfaceDetail(device=self.device)
parsed_output = obj.parse(interface="ge-0/0/1.0")
self.assertEqual(parsed_output, self.golden_parsed_output_interface)
def test_show_ospf_interface_detail_instance(self):
self.device = Mock(**self.golden_output_instance)
obj = ShowOspfInterfaceDetail(device=self.device)
parsed_output = obj.parse(instance="master")
self.assertEqual(parsed_output, self.golden_parsed_output_instance)
def test_show_ospf_interface_detail_interface_instance(self):
self.device = Mock(**self.golden_output_interface_instance)
obj = ShowOspfInterfaceDetail(device=self.device)
parsed_output = obj.parse(interface="ge-0/0/1.0", instance="master")
self.assertEqual(parsed_output, self.golden_parsed_output_interface_instance)
class TestShowOspfNeighbor(unittest.TestCase):
""" Unit tests for:
* show ospf neighbor
"""
device = Device(name="aDevice")
empty_output = {"execute.return_value": ""}
golden_output = {
"execute.return_value": """
show ospf neighbor
Address Interface State ID Pri Dead
10.189.5.94 ge-0/0/0.0 Full 10.189.5.253 128 32
10.169.14.121 ge-0/0/1.0 Full 10.169.14.240 128 33
10.19.198.26 ge-0/0/2.0 Full 10.19.198.239 1 33
"""
}
golden_parsed_output = {
"ospf-neighbor-information": {
"ospf-neighbor": [
{
"neighbor-address": "10.189.5.94",
"interface-name": "ge-0/0/0.0",
"ospf-neighbor-state": "Full",
"neighbor-id": "10.189.5.253",
"neighbor-priority": "128",
"activity-timer": "32",
},
{
"neighbor-address": "10.169.14.121",
"interface-name": "ge-0/0/1.0",
"ospf-neighbor-state": "Full",
"neighbor-id": "10.169.14.240",
"neighbor-priority": "128",
"activity-timer": "33",
},
{
"neighbor-address": "10.19.198.26",
"interface-name": "ge-0/0/2.0",
"ospf-neighbor-state": "Full",
"neighbor-id": "10.19.198.239",
"neighbor-priority": "1",
"activity-timer": "33",
},
]
}
}
def test_empty(self):
self.device = Mock(**self.empty_output)
obj = ShowOspfNeighbor(device=self.device)
with self.assertRaises(SchemaEmptyParserError):
obj.parse()
def test_golden(self):
self.device = Mock(**self.golden_output)
obj = ShowOspfNeighbor(device=self.device)
parsed_output = obj.parse()
self.assertEqual(parsed_output, self.golden_parsed_output)
class TestShowOspfDatabase(unittest.TestCase):
""" Unit tests for:
* show ospf database
"""
device = Device(name="aDevice")
maxDiff = None
empty_output = {"execute.return_value": ""}
golden_output = {
"execute.return_value": """
show ospf database
OSPF database, Area 0.0.0.8
Type ID Adv Rtr Seq Age Opt Cksum Len
Router 10.36.3.3 10.36.3.3 0x80004d2d 61 0x22 0xa127 2496
Router 10.100.5.5 10.100.5.5 0x800019d7 1469 0x22 0xa1c 60
Router 10.19.198.239 10.19.198.239 0x80000442 622 0x22 0x95bf 96
Router 10.34.2.250 10.34.2.250 0x8000205a 736 0x22 0x26f6 144
Router 10.34.2.251 10.34.2.251 0x80001dde 567 0x22 0x1022 108
Router 10.169.196.241 10.169.196.241 0x800004a4 35 0x22 0x1055 144
Router 10.169.14.240 10.169.14.240 0x80001bc1 2732 0x22 0x3a76 144
Router 10.169.14.241 10.169.14.241 0x80001f67 1468 0x22 0x81fa 120
Router *10.189.5.252 10.189.5.252 0x80001b9e 1608 0x22 0x1e2 120
Router 10.189.5.253 10.189.5.253 0x80001b04 1689 0x22 0xe230 108
Router 192.168.36.119 192.168.36.119 0x800019de 928 0x22 0xc6a6 48
Router 192.168.36.120 192.168.36.120 0x800019ea 500 0x22 0x2747 48
Network 192.168.36.49 10.169.14.240 0x80000499 485 0x22 0xbb30 32
Network 192.168.36.57 10.169.14.240 0x80000498 2292 0x22 0x5f86 32
OpaqArea 10.1.0.0 10.100.5.5 0x800019ac 1469 0x20 0xc57f 28
OpaqArea 10.1.0.0 10.19.198.239 0x8000028c 622 0x20 0x4e06 28
OpaqArea 10.1.0.0 10.169.196.241 0x80000fdd 521 0x20 0xe9d4 28
OpaqArea 10.1.0.1 10.34.2.250 0x800019e5 1888 0x22 0x902f 28
OpaqArea 10.1.0.1 10.34.2.251 0x800019c7 1664 0x22 0xd00b 28
OpaqArea 10.1.0.1 10.169.14.240 0x80001987 334 0x22 0xde66 28
OpaqArea 10.1.0.1 10.169.14.241 0x80001e31 1907 0x22 0x8014 28
OpaqArea*10.1.0.1 10.189.5.252 0x80001a15 231 0x22 0xd49a 28
OpaqArea 10.1.0.1 10.189.5.253 0x80001a0f 901 0x22 0xe48e 28
OpaqArea 10.1.0.3 10.34.2.250 0x800013d3 2119 0x22 0x47bd 136
OpaqArea 10.1.0.3 10.34.2.251 0x800013b5 1445 0x22 0x5fc3 136
OpaqArea 10.1.0.3 10.169.14.240 0x8000063d 1690 0x22 0x75dc 136
OpaqArea 10.1.0.3 10.169.14.241 0x80000c51 951 0x22 0x1721 136
OpaqArea*10.1.0.3 10.189.5.252 0x80000321 2678 0x22 0x97cc 136
OpaqArea 10.1.0.3 10.189.5.253 0x80000322 2500 0x22 0x71f1 136
OpaqArea 10.1.0.4 10.34.2.250 0x8000029e 1427 0x22 0x1e4 136
OpaqArea 10.1.0.4 10.34.2.251 0x80000299 1226 0x22 0x29c0 136
OpaqArea 10.1.0.4 10.169.14.240 0x800003f8 1238 0x22 0xb606 136
OpaqArea 10.1.0.4 10.169.14.241 0x800013fe 2127 0x22 0x694d 136
OpaqArea*10.1.0.4 10.189.5.252 0x800013e8 2411 0x22 0xb804 136
OpaqArea 10.1.0.4 10.189.5.253 0x80000f9b 2772 0x22 0x4ecf 136
OpaqArea 10.1.0.5 10.34.2.250 0x800001b5 289 0x22 0x5e9d 136
OpaqArea 10.1.0.5 10.34.2.251 0x800001b5 276 0x22 0xd817 136
OpaqArea 10.1.0.5 10.169.14.240 0x80000289 33 0x22 0xdd1f 136
OpaqArea 10.1.0.5 10.169.14.241 0x80000298 1687 0x22 0x21a9 136
OpaqArea*10.1.0.5 10.189.5.252 0x800001bb 1312 0x22 0x79b5 136
OpaqArea 10.1.0.5 10.189.5.253 0x800001bb 1147 0x22 0x5ec3 136
OpaqArea 10.1.0.6 10.100.5.5 0x800019be 1469 0x20 0x629a 168
OpaqArea 10.1.0.10 10.19.198.239 0x8000025d 622 0x20 0xcffa 132
OpaqArea 10.1.0.10 10.169.196.241 0x8000025d 521 0x20 0x771b 132
OpaqArea 10.1.0.11 10.19.198.239 0x8000025d 622 0x20 0xecd3 132
OpaqArea 10.1.0.11 10.169.196.241 0x8000025d 521 0x20 0xa14f 132
OpaqArea 10.1.0.12 10.19.198.239 0x80000163 622 0x20 0x87f8 80
OpaqArea 10.1.8.69 10.169.196.241 0x8000003b 35 0x20 0x8150 80
OpaqArea 10.1.8.70 10.169.196.241 0x80000151 521 0x20 0x8a2d 80
OpaqArea 10.16.0.0 10.100.5.5 0x800019ac 1469 0x20 0x810a 52
OpaqArea 10.16.0.0 10.19.198.239 0x8000028c 622 0x20 0x8e0f 76
OpaqArea 10.16.0.0 10.34.2.250 0x80001a15 2810 0x22 0xbd3d 44
OpaqArea 10.16.0.0 10.34.2.251 0x800019e4 2103 0x22 0x1b10 44
OpaqArea 10.16.0.0 10.169.196.241 0x800003a6 521 0x20 0x2db9 76
OpaqArea 10.16.0.0 10.169.14.240 0x8000199d 2142 0x22 0x15f1 44
OpaqArea 10.16.0.0 10.169.14.241 0x80001e44 48 0x22 0xb2a7 44
OpaqArea*10.16.0.0 10.189.5.252 0x80001a2a 771 0x22 0xe5ef 44
OpaqArea 10.16.0.0 10.189.5.253 0x80001a21 410 0x22 0xf1eb 44
OpaqArea 10.49.0.0 10.19.198.239 0x8000028c 622 0x20 0xcdab 44
OpaqArea 10.49.0.0 10.169.196.241 0x800003a4 521 0x20 0x69c9 44
OpaqArea 10.49.0.1 10.100.5.5 0x800019ac 1469 0x20 0x6c5a 44
OpaqArea 10.49.0.1 10.34.2.250 0x80001fa9 736 0x22 0x7fa7 44
OpaqArea 10.49.0.1 10.34.2.251 0x80001cfb 567 0x22 0x6ce 44
OpaqArea 10.49.0.1 10.169.14.240 0x80001bc1 2732 0x22 0x99aa 44
OpaqArea 10.49.0.1 10.169.14.241 0x80001f67 1468 0x22 0x6433 44
OpaqArea*10.49.0.1 10.189.5.252 0x80001b9e 1608 0x22 0x8c7f 44
OpaqArea 10.49.0.1 10.189.5.253 0x80001b04 1689 0x22 0xe3bf 44
OpaqArea 10.64.0.1 10.34.2.250 0x800004f9 76 0x22 0x39a3 60
OpaqArea 10.64.0.1 10.169.14.241 0x80000311 725 0x22 0x7002 60
OpaqArea 10.64.0.1 10.189.5.253 0x8000030a 2230 0x22 0x6915 60
OpaqArea 10.64.0.2 10.169.14.241 0x80000305 499 0x22 0x7271 60
OpaqArea 10.64.0.3 10.169.14.241 0x8000029a 274 0x22 0x7248 60
OpaqArea 10.64.0.3 10.189.5.253 0x800002db 656 0x22 0x34eb 60
OpaqArea 10.64.0.4 10.189.5.253 0x800001bb 1960 0x22 0x31be 60
OpaqArea 10.64.0.6 10.100.5.5 0x800019bf 1469 0x20 0x4de2 56
OpaqArea 10.64.0.7 10.34.2.250 0x8000046b 2580 0x22 0xb9a6 48
OpaqArea 10.64.0.7 10.34.2.251 0x800004de 1006 0x22 0x6a96 60
OpaqArea 10.64.0.17 10.19.198.239 0x8000025d 622 0x20 0xb34a 104
OpaqArea 10.64.0.17 10.169.196.241 0x8000025d 521 0x20 0x3e3c 104
OpaqArea 10.64.0.18 10.19.198.239 0x8000025d 622 0x20 0xb938 104
OpaqArea 10.64.0.18 10.169.196.241 0x8000025d 521 0x20 0x6fdb 104
OpaqArea 10.64.0.31 10.34.2.251 0x8000029a 2542 0x22 0xe909 60
OpaqArea 10.64.0.32 10.34.2.251 0x800001b5 787 0x22 0xe396 60
OpaqArea 10.64.0.37 10.34.2.250 0x8000029b 1658 0x22 0xffb8 60
OpaqArea 10.64.0.38 10.34.2.250 0x800001b5 966 0x22 0x71b3 60
OpaqArea*10.64.0.52 10.189.5.252 0x80000308 501 0x22 0x7efa 60
OpaqArea*10.64.0.54 10.189.5.252 0x800002dc 1042 0x22 0x1839 60
OpaqArea*10.64.0.55 10.189.5.252 0x800001bb 1876 0x22 0x92eb 60
OpaqArea 10.64.0.57 10.169.14.240 0x80000303 1087 0x22 0x7544 60
OpaqArea 10.64.0.59 10.169.14.240 0x800002f4 1389 0x22 0x6d12 60
OpaqArea 10.64.0.60 10.169.14.240 0x8000028b 937 0x22 0x4f1a 60
OpaqArea 10.64.8.74 10.169.196.241 0x80000030 35 0x20 0xdcd1 92
OpaqArea 10.64.8.75 10.169.196.241 0x80000151 521 0x20 0xd4b0 92
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern 0.0.0.0 10.34.2.251 0x800019e3 2323 0x22 0x6715 36
Extern 0.0.0.0 10.169.14.240 0x8000039e 1991 0x22 0x9fcc 36
Extern 10.1.0.0 192.168.36.119 0x800019b0 928 0x20 0x3bc3 36
Extern 10.1.0.0 192.168.36.120 0x800019b1 500 0x20 0x33c9 36
Extern 10.174.132.237 10.169.14.240 0x8000039e 1841 0x22 0xf161 36
Extern 10.34.2.250 10.169.14.240 0x80000288 2443 0x22 0x473e 36
Extern 10.34.2.250 10.169.14.241 0x80000298 2346 0x22 0x2153 36
Extern 10.34.2.251 10.169.14.240 0x80000289 184 0x22 0x3b48 36
Extern 10.34.2.251 10.169.14.241 0x80000298 1176 0x22 0x175c 36
Extern 10.169.14.240 10.34.2.250 0x8000029a 1197 0x22 0xf88e 36
Extern 10.169.14.240 10.34.2.251 0x800019e4 1884 0x22 0x190c 36
Extern *10.169.14.240 10.189.5.252 0x80001a3a 2143 0x22 0xc3fb 36
Extern 10.169.14.241 10.34.2.250 0x80001a14 2349 0x22 0xb341 36
Extern 10.169.14.241 10.34.2.251 0x80000299 50 0x22 0xea9b 36
Extern 10.169.14.241 10.189.5.253 0x80000fae 164 0x22 0xeb68 36
Extern 10.189.5.252 10.169.14.240 0x800019b0 1539 0x22 0xc372 36
Extern 10.189.5.253 10.169.14.241 0x8000140f 2566 0x22 0x6d4 36
Extern 192.168.100.0 10.169.14.240 0x800002da 786 0x22 0xfb51 36
Extern 192.168.100.252 10.169.14.240 0x800002d9 636 0x22 0x19b8 36
"""
}
golden_parsed_output = {
"ospf-database-information": {
"ospf-area-header": {"ospf-area": "0.0.0.8"},
"ospf-database": [
{
"advertising-router": "10.36.3.3",
"age": "61",
"checksum": "0xa127",
"lsa-id": "10.36.3.3",
"lsa-length": "2496",
"lsa-type": "Router",
"options": "0x22",
"sequence-number": "0x80004d2d",
},
{
"advertising-router": "10.100.5.5",
"age": "1469",
"checksum": "0xa1c",
"lsa-id": "10.100.5.5",
"lsa-length": "60",
"lsa-type": "Router",
"options": "0x22",
"sequence-number": "0x800019d7",
},
{
"advertising-router": "10.19.198.239",
"age": "622",
"checksum": "0x95bf",
"lsa-id": "10.19.198.239",
"lsa-length": "96",
"lsa-type": "Router",
"options": "0x22",
"sequence-number": "0x80000442",
},
{
"advertising-router": "10.34.2.250",
"age": "736",
"checksum": "0x26f6",
"lsa-id": "10.34.2.250",
"lsa-length": "144",
"lsa-type": "Router",
"options": "0x22",
"sequence-number": "0x8000205a",
},
{
"advertising-router": "10.34.2.251",
"age": "567",
"checksum": "0x1022",
"lsa-id": "10.34.2.251",
"lsa-length": "108",
"lsa-type": "Router",
"options": "0x22",
"sequence-number": "0x80001dde",
},
{
"advertising-router": "10.169.196.241",
"age": "35",
"checksum": "0x1055",
"lsa-id": "10.169.196.241",
"lsa-length": "144",
"lsa-type": "Router",
"options": "0x22",
"sequence-number": "0x800004a4",
},
{
"advertising-router": "10.169.14.240",
"age": "2732",
"checksum": "0x3a76",
"lsa-id": "10.169.14.240",
"lsa-length": "144",
"lsa-type": "Router",
"options": "0x22",
"sequence-number": "0x80001bc1",
},
{
"advertising-router": "10.169.14.241",
"age": "1468",
"checksum": "0x81fa",
"lsa-id": "10.169.14.241",
"lsa-length": "120",
"lsa-type": "Router",
"options": "0x22",
"sequence-number": "0x80001f67",
},
{
"advertising-router": "10.189.5.252",
"age": "1608",
"checksum": "0x1e2",
"lsa-id": "10.189.5.252",
"lsa-length": "120",
"lsa-type": "Router",
"options": "0x22",
"our-entry": True,
"sequence-number": "0x80001b9e",
},
{
"advertising-router": "10.189.5.253",
"age": "1689",
"checksum": "0xe230",
"lsa-id": "10.189.5.253",
"lsa-length": "108",
"lsa-type": "Router",
"options": "0x22",
"sequence-number": "0x80001b04",
},
{
"advertising-router": "192.168.36.119",
"age": "928",
"checksum": "0xc6a6",
"lsa-id": "192.168.36.119",
"lsa-length": "48",
"lsa-type": "Router",
"options": "0x22",
"sequence-number": "0x800019de",
},
{
"advertising-router": "192.168.36.120",
"age": "500",
"checksum": "0x2747",
"lsa-id": "192.168.36.120",
"lsa-length": "48",
"lsa-type": "Router",
"options": "0x22",
"sequence-number": "0x800019ea",
},
{
"advertising-router": "10.169.14.240",
"age": "485",
"checksum": "0xbb30",
"lsa-id": "192.168.36.49",
"lsa-length": "32",
"lsa-type": "Network",
"options": "0x22",
"sequence-number": "0x80000499",
},
{
"advertising-router": "10.169.14.240",
"age": "2292",
"checksum": "0x5f86",
"lsa-id": "192.168.36.57",
"lsa-length": "32",
"lsa-type": "Network",
"options": "0x22",
"sequence-number": "0x80000498",
},
{
"advertising-router": "10.100.5.5",
"age": "1469",
"checksum": "0xc57f",
"lsa-id": "10.1.0.0",
"lsa-length": "28",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x800019ac",
},
{
"advertising-router": "10.19.198.239",
"age": "622",
"checksum": "0x4e06",
"lsa-id": "10.1.0.0",
"lsa-length": "28",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x8000028c",
},
{
"advertising-router": "10.169.196.241",
"age": "521",
"checksum": "0xe9d4",
"lsa-id": "10.1.0.0",
"lsa-length": "28",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x80000fdd",
},
{
"advertising-router": "10.34.2.250",
"age": "1888",
"checksum": "0x902f",
"lsa-id": "10.1.0.1",
"lsa-length": "28",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x800019e5",
},
{
"advertising-router": "10.34.2.251",
"age": "1664",
"checksum": "0xd00b",
"lsa-id": "10.1.0.1",
"lsa-length": "28",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x800019c7",
},
{
"advertising-router": "10.169.14.240",
"age": "334",
"checksum": "0xde66",
"lsa-id": "10.1.0.1",
"lsa-length": "28",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80001987",
},
{
"advertising-router": "10.169.14.241",
"age": "1907",
"checksum": "0x8014",
"lsa-id": "10.1.0.1",
"lsa-length": "28",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80001e31",
},
{
"advertising-router": "10.189.5.252",
"age": "231",
"checksum": "0xd49a",
"lsa-id": "10.1.0.1",
"lsa-length": "28",
"lsa-type": "OpaqArea",
"options": "0x22",
"our-entry": True,
"sequence-number": "0x80001a15",
},
{
"advertising-router": "10.189.5.253",
"age": "901",
"checksum": "0xe48e",
"lsa-id": "10.1.0.1",
"lsa-length": "28",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80001a0f",
},
{
"advertising-router": "10.34.2.250",
"age": "2119",
"checksum": "0x47bd",
"lsa-id": "10.1.0.3",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x800013d3",
},
{
"advertising-router": "10.34.2.251",
"age": "1445",
"checksum": "0x5fc3",
"lsa-id": "10.1.0.3",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x800013b5",
},
{
"advertising-router": "10.169.14.240",
"age": "1690",
"checksum": "0x75dc",
"lsa-id": "10.1.0.3",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x8000063d",
},
{
"advertising-router": "10.169.14.241",
"age": "951",
"checksum": "0x1721",
"lsa-id": "10.1.0.3",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80000c51",
},
{
"advertising-router": "10.189.5.252",
"age": "2678",
"checksum": "0x97cc",
"lsa-id": "10.1.0.3",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"our-entry": True,
"sequence-number": "0x80000321",
},
{
"advertising-router": "10.189.5.253",
"age": "2500",
"checksum": "0x71f1",
"lsa-id": "10.1.0.3",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80000322",
},
{
"advertising-router": "10.34.2.250",
"age": "1427",
"checksum": "0x1e4",
"lsa-id": "10.1.0.4",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x8000029e",
},
{
"advertising-router": "10.34.2.251",
"age": "1226",
"checksum": "0x29c0",
"lsa-id": "10.1.0.4",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80000299",
},
{
"advertising-router": "10.169.14.240",
"age": "1238",
"checksum": "0xb606",
"lsa-id": "10.1.0.4",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x800003f8",
},
{
"advertising-router": "10.169.14.241",
"age": "2127",
"checksum": "0x694d",
"lsa-id": "10.1.0.4",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x800013fe",
},
{
"advertising-router": "10.189.5.252",
"age": "2411",
"checksum": "0xb804",
"lsa-id": "10.1.0.4",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"our-entry": True,
"sequence-number": "0x800013e8",
},
{
"advertising-router": "10.189.5.253",
"age": "2772",
"checksum": "0x4ecf",
"lsa-id": "10.1.0.4",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80000f9b",
},
{
"advertising-router": "10.34.2.250",
"age": "289",
"checksum": "0x5e9d",
"lsa-id": "10.1.0.5",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x800001b5",
},
{
"advertising-router": "10.34.2.251",
"age": "276",
"checksum": "0xd817",
"lsa-id": "10.1.0.5",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x800001b5",
},
{
"advertising-router": "10.169.14.240",
"age": "33",
"checksum": "0xdd1f",
"lsa-id": "10.1.0.5",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80000289",
},
{
"advertising-router": "10.169.14.241",
"age": "1687",
"checksum": "0x21a9",
"lsa-id": "10.1.0.5",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80000298",
},
{
"advertising-router": "10.189.5.252",
"age": "1312",
"checksum": "0x79b5",
"lsa-id": "10.1.0.5",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"our-entry": True,
"sequence-number": "0x800001bb",
},
{
"advertising-router": "10.189.5.253",
"age": "1147",
"checksum": "0x5ec3",
"lsa-id": "10.1.0.5",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x800001bb",
},
{
"advertising-router": "10.100.5.5",
"age": "1469",
"checksum": "0x629a",
"lsa-id": "10.1.0.6",
"lsa-length": "168",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x800019be",
},
{
"advertising-router": "10.19.198.239",
"age": "622",
"checksum": "0xcffa",
"lsa-id": "10.1.0.10",
"lsa-length": "132",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x8000025d",
},
{
"advertising-router": "10.169.196.241",
"age": "521",
"checksum": "0x771b",
"lsa-id": "10.1.0.10",
"lsa-length": "132",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x8000025d",
},
{
"advertising-router": "10.19.198.239",
"age": "622",
"checksum": "0xecd3",
"lsa-id": "10.1.0.11",
"lsa-length": "132",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x8000025d",
},
{
"advertising-router": "10.169.196.241",
"age": "521",
"checksum": "0xa14f",
"lsa-id": "10.1.0.11",
"lsa-length": "132",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x8000025d",
},
{
"advertising-router": "10.19.198.239",
"age": "622",
"checksum": "0x87f8",
"lsa-id": "10.1.0.12",
"lsa-length": "80",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x80000163",
},
{
"advertising-router": "10.169.196.241",
"age": "35",
"checksum": "0x8150",
"lsa-id": "10.1.8.69",
"lsa-length": "80",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x8000003b",
},
{
"advertising-router": "10.169.196.241",
"age": "521",
"checksum": "0x8a2d",
"lsa-id": "10.1.8.70",
"lsa-length": "80",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x80000151",
},
{
"advertising-router": "10.100.5.5",
"age": "1469",
"checksum": "0x810a",
"lsa-id": "10.16.0.0",
"lsa-length": "52",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x800019ac",
},
{
"advertising-router": "10.19.198.239",
"age": "622",
"checksum": "0x8e0f",
"lsa-id": "10.16.0.0",
"lsa-length": "76",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x8000028c",
},
{
"advertising-router": "10.34.2.250",
"age": "2810",
"checksum": "0xbd3d",
"lsa-id": "10.16.0.0",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80001a15",
},
{
"advertising-router": "10.34.2.251",
"age": "2103",
"checksum": "0x1b10",
"lsa-id": "10.16.0.0",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x800019e4",
},
{
"advertising-router": "10.169.196.241",
"age": "521",
"checksum": "0x2db9",
"lsa-id": "10.16.0.0",
"lsa-length": "76",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x800003a6",
},
{
"advertising-router": "10.169.14.240",
"age": "2142",
"checksum": "0x15f1",
"lsa-id": "10.16.0.0",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x8000199d",
},
{
"advertising-router": "10.169.14.241",
"age": "48",
"checksum": "0xb2a7",
"lsa-id": "10.16.0.0",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80001e44",
},
{
"advertising-router": "10.189.5.252",
"age": "771",
"checksum": "0xe5ef",
"lsa-id": "10.16.0.0",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x22",
"our-entry": True,
"sequence-number": "0x80001a2a",
},
{
"advertising-router": "10.189.5.253",
"age": "410",
"checksum": "0xf1eb",
"lsa-id": "10.16.0.0",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80001a21",
},
{
"advertising-router": "10.19.198.239",
"age": "622",
"checksum": "0xcdab",
"lsa-id": "10.49.0.0",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x8000028c",
},
{
"advertising-router": "10.169.196.241",
"age": "521",
"checksum": "0x69c9",
"lsa-id": "10.49.0.0",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x800003a4",
},
{
"advertising-router": "10.100.5.5",
"age": "1469",
"checksum": "0x6c5a",
"lsa-id": "10.49.0.1",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x800019ac",
},
{
"advertising-router": "10.34.2.250",
"age": "736",
"checksum": "0x7fa7",
"lsa-id": "10.49.0.1",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80001fa9",
},
{
"advertising-router": "10.34.2.251",
"age": "567",
"checksum": "0x6ce",
"lsa-id": "10.49.0.1",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80001cfb",
},
{
"advertising-router": "10.169.14.240",
"age": "2732",
"checksum": "0x99aa",
"lsa-id": "10.49.0.1",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80001bc1",
},
{
"advertising-router": "10.169.14.241",
"age": "1468",
"checksum": "0x6433",
"lsa-id": "10.49.0.1",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80001f67",
},
{
"advertising-router": "10.189.5.252",
"age": "1608",
"checksum": "0x8c7f",
"lsa-id": "10.49.0.1",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x22",
"our-entry": True,
"sequence-number": "0x80001b9e",
},
{
"advertising-router": "10.189.5.253",
"age": "1689",
"checksum": "0xe3bf",
"lsa-id": "10.49.0.1",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80001b04",
},
{
"advertising-router": "10.34.2.250",
"age": "76",
"checksum": "0x39a3",
"lsa-id": "10.64.0.1",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x800004f9",
},
{
"advertising-router": "10.169.14.241",
"age": "725",
"checksum": "0x7002",
"lsa-id": "10.64.0.1",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80000311",
},
{
"advertising-router": "10.189.5.253",
"age": "2230",
"checksum": "0x6915",
"lsa-id": "10.64.0.1",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x8000030a",
},
{
"advertising-router": "10.169.14.241",
"age": "499",
"checksum": "0x7271",
"lsa-id": "10.64.0.2",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80000305",
},
{
"advertising-router": "10.169.14.241",
"age": "274",
"checksum": "0x7248",
"lsa-id": "10.64.0.3",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x8000029a",
},
{
"advertising-router": "10.189.5.253",
"age": "656",
"checksum": "0x34eb",
"lsa-id": "10.64.0.3",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x800002db",
},
{
"advertising-router": "10.189.5.253",
"age": "1960",
"checksum": "0x31be",
"lsa-id": "10.64.0.4",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x800001bb",
},
{
"advertising-router": "10.100.5.5",
"age": "1469",
"checksum": "0x4de2",
"lsa-id": "10.64.0.6",
"lsa-length": "56",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x800019bf",
},
{
"advertising-router": "10.34.2.250",
"age": "2580",
"checksum": "0xb9a6",
"lsa-id": "10.64.0.7",
"lsa-length": "48",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x8000046b",
},
{
"advertising-router": "10.34.2.251",
"age": "1006",
"checksum": "0x6a96",
"lsa-id": "10.64.0.7",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x800004de",
},
{
"advertising-router": "10.19.198.239",
"age": "622",
"checksum": "0xb34a",
"lsa-id": "10.64.0.17",
"lsa-length": "104",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x8000025d",
},
{
"advertising-router": "10.169.196.241",
"age": "521",
"checksum": "0x3e3c",
"lsa-id": "10.64.0.17",
"lsa-length": "104",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x8000025d",
},
{
"advertising-router": "10.19.198.239",
"age": "622",
"checksum": "0xb938",
"lsa-id": "10.64.0.18",
"lsa-length": "104",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x8000025d",
},
{
"advertising-router": "10.169.196.241",
"age": "521",
"checksum": "0x6fdb",
"lsa-id": "10.64.0.18",
"lsa-length": "104",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x8000025d",
},
{
"advertising-router": "10.34.2.251",
"age": "2542",
"checksum": "0xe909",
"lsa-id": "10.64.0.31",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x8000029a",
},
{
"advertising-router": "10.34.2.251",
"age": "787",
"checksum": "0xe396",
"lsa-id": "10.64.0.32",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x800001b5",
},
{
"advertising-router": "10.34.2.250",
"age": "1658",
"checksum": "0xffb8",
"lsa-id": "10.64.0.37",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x8000029b",
},
{
"advertising-router": "10.34.2.250",
"age": "966",
"checksum": "0x71b3",
"lsa-id": "10.64.0.38",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x800001b5",
},
{
"advertising-router": "10.189.5.252",
"age": "501",
"checksum": "0x7efa",
"lsa-id": "10.64.0.52",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"our-entry": True,
"sequence-number": "0x80000308",
},
{
"advertising-router": "10.189.5.252",
"age": "1042",
"checksum": "0x1839",
"lsa-id": "10.64.0.54",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"our-entry": True,
"sequence-number": "0x800002dc",
},
{
"advertising-router": "10.189.5.252",
"age": "1876",
"checksum": "0x92eb",
"lsa-id": "10.64.0.55",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"our-entry": True,
"sequence-number": "0x800001bb",
},
{
"advertising-router": "10.169.14.240",
"age": "1087",
"checksum": "0x7544",
"lsa-id": "10.64.0.57",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x80000303",
},
{
"advertising-router": "10.169.14.240",
"age": "1389",
"checksum": "0x6d12",
"lsa-id": "10.64.0.59",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x800002f4",
},
{
"advertising-router": "10.169.14.240",
"age": "937",
"checksum": "0x4f1a",
"lsa-id": "10.64.0.60",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"sequence-number": "0x8000028b",
},
{
"advertising-router": "10.169.196.241",
"age": "35",
"checksum": "0xdcd1",
"lsa-id": "10.64.8.74",
"lsa-length": "92",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x80000030",
},
{
"advertising-router": "10.169.196.241",
"age": "521",
"checksum": "0xd4b0",
"lsa-id": "10.64.8.75",
"lsa-length": "92",
"lsa-type": "OpaqArea",
"options": "0x20",
"sequence-number": "0x80000151",
},
{
"advertising-router": "10.34.2.251",
"age": "2323",
"checksum": "0x6715",
"lsa-id": "0.0.0.0",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"sequence-number": "0x800019e3",
},
{
"advertising-router": "10.169.14.240",
"age": "1991",
"checksum": "0x9fcc",
"lsa-id": "0.0.0.0",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"sequence-number": "0x8000039e",
},
{
"advertising-router": "192.168.36.119",
"age": "928",
"checksum": "0x3bc3",
"lsa-id": "10.1.0.0",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x20",
"sequence-number": "0x800019b0",
},
{
"advertising-router": "192.168.36.120",
"age": "500",
"checksum": "0x33c9",
"lsa-id": "10.1.0.0",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x20",
"sequence-number": "0x800019b1",
},
{
"advertising-router": "10.169.14.240",
"age": "1841",
"checksum": "0xf161",
"lsa-id": "10.174.132.237",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"sequence-number": "0x8000039e",
},
{
"advertising-router": "10.169.14.240",
"age": "2443",
"checksum": "0x473e",
"lsa-id": "10.34.2.250",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"sequence-number": "0x80000288",
},
{
"advertising-router": "10.169.14.241",
"age": "2346",
"checksum": "0x2153",
"lsa-id": "10.34.2.250",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"sequence-number": "0x80000298",
},
{
"advertising-router": "10.169.14.240",
"age": "184",
"checksum": "0x3b48",
"lsa-id": "10.34.2.251",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"sequence-number": "0x80000289",
},
{
"advertising-router": "10.169.14.241",
"age": "1176",
"checksum": "0x175c",
"lsa-id": "10.34.2.251",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"sequence-number": "0x80000298",
},
{
"advertising-router": "10.34.2.250",
"age": "1197",
"checksum": "0xf88e",
"lsa-id": "10.169.14.240",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"sequence-number": "0x8000029a",
},
{
"advertising-router": "10.34.2.251",
"age": "1884",
"checksum": "0x190c",
"lsa-id": "10.169.14.240",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"sequence-number": "0x800019e4",
},
{
"advertising-router": "10.189.5.252",
"age": "2143",
"checksum": "0xc3fb",
"lsa-id": "10.169.14.240",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"our-entry": True,
"sequence-number": "0x80001a3a",
},
{
"advertising-router": "10.34.2.250",
"age": "2349",
"checksum": "0xb341",
"lsa-id": "10.169.14.241",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"sequence-number": "0x80001a14",
},
{
"advertising-router": "10.34.2.251",
"age": "50",
"checksum": "0xea9b",
"lsa-id": "10.169.14.241",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"sequence-number": "0x80000299",
},
{
"advertising-router": "10.189.5.253",
"age": "164",
"checksum": "0xeb68",
"lsa-id": "10.169.14.241",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"sequence-number": "0x80000fae",
},
{
"advertising-router": "10.169.14.240",
"age": "1539",
"checksum": "0xc372",
"lsa-id": "10.189.5.252",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"sequence-number": "0x800019b0",
},
{
"advertising-router": "10.169.14.241",
"age": "2566",
"checksum": "0x6d4",
"lsa-id": "10.189.5.253",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"sequence-number": "0x8000140f",
},
{
"advertising-router": "10.169.14.240",
"age": "786",
"checksum": "0xfb51",
"lsa-id": "192.168.100.0",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"sequence-number": "0x800002da",
},
{
"advertising-router": "10.169.14.240",
"age": "636",
"checksum": "0x19b8",
"lsa-id": "192.168.100.252",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"sequence-number": "0x800002d9",
},
],
}
}
def test_empty(self):
self.device = Mock(**self.empty_output)
obj = ShowOspfDatabase(device=self.device)
with self.assertRaises(SchemaEmptyParserError):
obj.parse()
def test_golden(self):
self.device = Mock(**self.golden_output)
obj = ShowOspfDatabase(device=self.device)
parsed_output = obj.parse()
self.assertEqual(parsed_output, self.golden_parsed_output)
class TestShowOspfDatabaseSummary(unittest.TestCase):
""" Unit tests for:
* show ospf database summary
"""
device = Device(name="aDevice")
maxDiff = None
empty_output = {"execute.return_value": ""}
golden_output = {
"execute.return_value": """
show ospf database summary
Area 0.0.0.8:
12 Router LSAs
2 Network LSAs
79 OpaqArea LSAs
Externals:
19 Extern LSAs
Interface ge-0/0/0.0:
Area 0.0.0.8:
Interface ge-0/0/1.0:
Area 0.0.0.8:
Interface ge-0/0/2.0:
Area 0.0.0.8:
Interface ge-0/0/3.0:
Area 0.0.0.8:
Interface lo0.0:
Area 0.0.0.8:
"""
}
golden_parsed_output = {
"ospf-database-information": {
"ospf-database-summary": [
{
"ospf-area": "0.0.0.8",
"ospf-lsa-count": ["12", "2", "79"],
"ospf-lsa-type": ["Router", "Network", "OpaqArea"],
},
{
"@external-heading": "Externals",
"ospf-lsa-count": "19",
"ospf-lsa-type": "Extern",
},
{
"ospf-area": [
"0.0.0.8",
"0.0.0.8",
"0.0.0.8",
"0.0.0.8",
"0.0.0.8",
],
"ospf-intf": [
"ge-0/0/0.0",
"ge-0/0/1.0",
"ge-0/0/2.0",
"ge-0/0/3.0",
"lo0.0",
],
},
]
}
}
def test_empty(self):
self.device = Mock(**self.empty_output)
obj = ShowOspfDatabaseSummary(device=self.device)
with self.assertRaises(SchemaEmptyParserError):
obj.parse()
def test_golden(self):
self.device = Mock(**self.golden_output)
obj = ShowOspfDatabaseSummary(device=self.device)
parsed_output = obj.parse()
self.assertEqual(parsed_output, self.golden_parsed_output)
class TestShowOspfDatabaseExternalExtensive(unittest.TestCase):
""" Unit tests for:
* show ospf database external extensive
"""
device = Device(name="aDevice")
maxDiff = None
empty_output = {"execute.return_value": ""}
golden_output = {
"execute.return_value": """
show ospf database external extensive
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern 0.0.0.0 10.34.2.251 0x800019e3 2728 0x22 0x6715 36
mask 0.0.0.0
Topology default (ID 0)
Type: 1, Metric: 1, Fwd addr: 0.0.0.0, Tag: 0.0.0.0
Aging timer 00:14:32
Installed 00:45:19 ago, expires in 00:14:32, sent 00:45:17 ago
Last changed 30w0d 01:34:30 ago, Change count: 1
Extern 0.0.0.0 10.169.14.240 0x8000039e 2396 0x22 0x9fcc 36
mask 0.0.0.0
Topology default (ID 0)
Type: 1, Metric: 1, Fwd addr: 0.0.0.0, Tag: 0.0.0.0
Aging timer 00:20:03
Installed 00:39:53 ago, expires in 00:20:04, sent 00:39:51 ago
Last changed 4w2d 05:48:46 ago, Change count: 1
Extern 10.1.0.0 192.168.36.119 0x800019b0 1333 0x20 0x3bc3 36
mask 255.255.255.0
Topology default (ID 0)
Type: 2, Metric: 20, Fwd addr: 0.0.0.0, Tag: 0.0.0.0
Aging timer 00:37:47
Installed 00:22:09 ago, expires in 00:37:47, sent 00:22:07 ago
Last changed 21w6d 00:06:09 ago, Change count: 1
Extern 10.1.0.0 192.168.36.120 0x800019b1 905 0x20 0x33c9 36
mask 255.255.255.0
Topology default (ID 0)
Type: 2, Metric: 20, Fwd addr: 0.0.0.0, Tag: 0.0.0.0
Aging timer 00:44:55
Installed 00:15:01 ago, expires in 00:44:55, sent 00:14:59 ago
Last changed 21w6d 00:06:37 ago, Change count: 1
Extern 10.174.132.237 10.169.14.240 0x8000039e 2246 0x22 0xf161 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 50, Fwd addr: 0.0.0.0, Tag: 0.0.0.0
Aging timer 00:22:34
Installed 00:37:23 ago, expires in 00:22:34, sent 00:37:21 ago
Last changed 4w2d 05:48:43 ago, Change count: 1
Extern 10.34.2.250 10.169.14.240 0x80000288 2848 0x22 0x473e 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 50, Fwd addr: 0.0.0.0, Tag: 10.166.34.12
Aging timer 00:12:32
Installed 00:47:25 ago, expires in 00:12:32, sent 00:47:23 ago
Last changed 3w0d 08:51:45 ago, Change count: 1
Extern 10.34.2.250 10.169.14.241 0x80000298 2751 0x22 0x2153 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 50, Fwd addr: 0.0.0.0, Tag: 10.166.34.12
Aging timer 00:14:09
Installed 00:45:45 ago, expires in 00:14:09, sent 00:45:43 ago
Last changed 3w0d 08:11:45 ago, Change count: 1
Extern 10.34.2.251 10.169.14.240 0x80000289 589 0x22 0x3b48 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 50, Fwd addr: 0.0.0.0, Tag: 10.166.34.12
Aging timer 00:50:11
Installed 00:09:46 ago, expires in 00:50:11, sent 00:09:44 ago
Last changed 3w0d 08:51:50 ago, Change count: 1
Extern 10.34.2.251 10.169.14.241 0x80000298 1581 0x22 0x175c 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 50, Fwd addr: 0.0.0.0, Tag: 10.166.34.12
Aging timer 00:33:38
Installed 00:26:15 ago, expires in 00:33:39, sent 00:26:13 ago
Last changed 3w0d 08:11:40 ago, Change count: 1
Extern 10.169.14.240 10.34.2.250 0x8000029a 1602 0x22 0xf88e 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 50, Fwd addr: 0.0.0.0, Tag: 0.0.0.0
Aging timer 00:33:18
Installed 00:26:36 ago, expires in 00:33:18, sent 00:26:34 ago
Last changed 3w0d 08:51:43 ago, Change count: 1
Extern 10.169.14.240 10.34.2.251 0x800019e4 2289 0x22 0x190c 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 50, Fwd addr: 0.0.0.0, Tag: 0.0.0.0
Aging timer 00:21:51
Installed 00:38:00 ago, expires in 00:21:51, sent 00:37:59 ago
Last changed 30w0d 01:34:30 ago, Change count: 1
Extern *10.169.14.240 10.189.5.252 0x80001a3a 2548 0x22 0xc3fb 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 50, Fwd addr: 0.0.0.0, Tag: 0.0.0.0
Gen timer 00:02:55
Aging timer 00:17:31
Installed 00:42:28 ago, expires in 00:17:32, sent 00:42:26 ago
Last changed 3w3d 07:34:17 ago, Change count: 25, Ours
Extern 10.169.14.241 10.34.2.250 0x80001a14 2754 0x22 0xb341 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 50, Fwd addr: 0.0.0.0, Tag: 0.0.0.0
Aging timer 00:14:05
Installed 00:45:48 ago, expires in 00:14:06, sent 00:45:46 ago
Last changed 30w0d 01:05:04 ago, Change count: 1
Extern 10.169.14.241 10.34.2.251 0x80000299 455 0x22 0xea9b 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 50, Fwd addr: 0.0.0.0, Tag: 0.0.0.0
Aging timer 00:52:25
Installed 00:07:27 ago, expires in 00:52:25, sent 00:07:25 ago
Last changed 3w0d 08:11:38 ago, Change count: 1
Extern 10.169.14.241 10.189.5.253 0x80000fae 569 0x22 0xeb68 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 50, Fwd addr: 0.0.0.0, Tag: 0.0.0.0
Aging timer 00:50:31
Installed 00:09:26 ago, expires in 00:50:31, sent 00:09:24 ago
Last changed 3w3d 07:33:47 ago, Change count: 31
Extern 10.189.5.252 10.169.14.240 0x800019b0 1944 0x22 0xc372 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 50, Fwd addr: 0.0.0.0, Tag: 10.166.34.12
Aging timer 00:27:35
Installed 00:32:21 ago, expires in 00:27:36, sent 00:32:19 ago
Last changed 3w3d 07:33:50 ago, Change count: 3
Extern 10.189.5.253 10.169.14.241 0x80001410 227 0x22 0x4d5 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 50, Fwd addr: 0.0.0.0, Tag: 10.166.34.12
Aging timer 00:56:12
Installed 00:03:41 ago, expires in 00:56:13, sent 00:03:39 ago
Last changed 3w3d 07:24:57 ago, Change count: 17
Extern 192.168.100.0 10.169.14.240 0x800002da 1191 0x22 0xfb51 36
mask 255.255.255.128
Topology default (ID 0)
Type: 1, Metric: 31900, Fwd addr: 0.0.0.0, Tag: 10.76.212.52
Aging timer 00:40:08
Installed 00:19:48 ago, expires in 00:40:09, sent 00:19:46 ago
Last changed 2w6d 19:00:07 ago, Change count: 75
Extern 192.168.100.252 10.169.14.240 0x800002d9 1041 0x22 0x19b8 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 31900, Fwd addr: 0.0.0.0, Tag: 10.76.212.52
Aging timer 00:42:39
Installed 00:17:18 ago, expires in 00:42:39, sent 00:17:16 ago
Last changed 2w6d 19:00:07 ago, Change count: 75
"""
}
golden_parsed_output = {
"ospf-database-information": {
"ospf-database": [
{
"@external-heading": "OSPF AS SCOPE link state database",
"@heading": "Type ID Adv Rtr Seq Age Opt Cksum Len",
"advertising-router": "10.34.2.251",
"age": "2728",
"checksum": "0x6715",
"lsa-id": "0.0.0.0",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:14:32"},
"expiration-time": {"#text": "00:14:32"},
"installation-time": {"#text": "00:45:19"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "30w0d 01:34:30"},
"send-time": {"#text": "00:45:17"},
},
"ospf-external-lsa": {
"address-mask": "0.0.0.0",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "1",
"ospf-topology-name": "default",
"tag": "0.0.0.0",
"type-value": "1",
},
},
"sequence-number": "0x800019e3",
},
{
"advertising-router": "10.169.14.240",
"age": "2396",
"checksum": "0x9fcc",
"lsa-id": "0.0.0.0",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:20:03"},
"expiration-time": {"#text": "00:20:04"},
"installation-time": {"#text": "00:39:53"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "4w2d 05:48:46"},
"send-time": {"#text": "00:39:51"},
},
"ospf-external-lsa": {
"address-mask": "0.0.0.0",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "1",
"ospf-topology-name": "default",
"tag": "0.0.0.0",
"type-value": "1",
},
},
"sequence-number": "0x8000039e",
},
{
"advertising-router": "192.168.36.119",
"age": "1333",
"checksum": "0x3bc3",
"lsa-id": "10.1.0.0",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x20",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:37:47"},
"expiration-time": {"#text": "00:37:47"},
"installation-time": {"#text": "00:22:09"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "21w6d 00:06:09"},
"send-time": {"#text": "00:22:07"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.0",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "20",
"ospf-topology-name": "default",
"tag": "0.0.0.0",
"type-value": "2",
},
},
"sequence-number": "0x800019b0",
},
{
"advertising-router": "192.168.36.120",
"age": "905",
"checksum": "0x33c9",
"lsa-id": "10.1.0.0",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x20",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:44:55"},
"expiration-time": {"#text": "00:44:55"},
"installation-time": {"#text": "00:15:01"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "21w6d 00:06:37"},
"send-time": {"#text": "00:14:59"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.0",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "20",
"ospf-topology-name": "default",
"tag": "0.0.0.0",
"type-value": "2",
},
},
"sequence-number": "0x800019b1",
},
{
"advertising-router": "10.169.14.240",
"age": "2246",
"checksum": "0xf161",
"lsa-id": "10.174.132.237",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:22:34"},
"expiration-time": {"#text": "00:22:34"},
"installation-time": {"#text": "00:37:23"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "4w2d 05:48:43"},
"send-time": {"#text": "00:37:21"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.255",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "50",
"ospf-topology-name": "default",
"tag": "0.0.0.0",
"type-value": "1",
},
},
"sequence-number": "0x8000039e",
},
{
"advertising-router": "10.169.14.240",
"age": "2848",
"checksum": "0x473e",
"lsa-id": "10.34.2.250",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:12:32"},
"expiration-time": {"#text": "00:12:32"},
"installation-time": {"#text": "00:47:25"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "3w0d 08:51:45"},
"send-time": {"#text": "00:47:23"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.255",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "50",
"ospf-topology-name": "default",
"tag": "10.166.34.12",
"type-value": "1",
},
},
"sequence-number": "0x80000288",
},
{
"advertising-router": "10.169.14.241",
"age": "2751",
"checksum": "0x2153",
"lsa-id": "10.34.2.250",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:14:09"},
"expiration-time": {"#text": "00:14:09"},
"installation-time": {"#text": "00:45:45"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "3w0d 08:11:45"},
"send-time": {"#text": "00:45:43"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.255",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "50",
"ospf-topology-name": "default",
"tag": "10.166.34.12",
"type-value": "1",
},
},
"sequence-number": "0x80000298",
},
{
"advertising-router": "10.169.14.240",
"age": "589",
"checksum": "0x3b48",
"lsa-id": "10.34.2.251",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:50:11"},
"expiration-time": {"#text": "00:50:11"},
"installation-time": {"#text": "00:09:46"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "3w0d 08:51:50"},
"send-time": {"#text": "00:09:44"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.255",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "50",
"ospf-topology-name": "default",
"tag": "10.166.34.12",
"type-value": "1",
},
},
"sequence-number": "0x80000289",
},
{
"advertising-router": "10.169.14.241",
"age": "1581",
"checksum": "0x175c",
"lsa-id": "10.34.2.251",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:33:38"},
"expiration-time": {"#text": "00:33:39"},
"installation-time": {"#text": "00:26:15"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "3w0d 08:11:40"},
"send-time": {"#text": "00:26:13"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.255",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "50",
"ospf-topology-name": "default",
"tag": "10.166.34.12",
"type-value": "1",
},
},
"sequence-number": "0x80000298",
},
{
"advertising-router": "10.34.2.250",
"age": "1602",
"checksum": "0xf88e",
"lsa-id": "10.169.14.240",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:33:18"},
"expiration-time": {"#text": "00:33:18"},
"installation-time": {"#text": "00:26:36"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "3w0d 08:51:43"},
"send-time": {"#text": "00:26:34"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.255",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "50",
"ospf-topology-name": "default",
"tag": "0.0.0.0",
"type-value": "1",
},
},
"sequence-number": "0x8000029a",
},
{
"advertising-router": "10.34.2.251",
"age": "2289",
"checksum": "0x190c",
"lsa-id": "10.169.14.240",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:21:51"},
"expiration-time": {"#text": "00:21:51"},
"installation-time": {"#text": "00:38:00"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "30w0d 01:34:30"},
"send-time": {"#text": "00:37:59"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.255",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "50",
"ospf-topology-name": "default",
"tag": "0.0.0.0",
"type-value": "1",
},
},
"sequence-number": "0x800019e4",
},
{
"advertising-router": "10.34.2.250",
"age": "2754",
"checksum": "0xb341",
"lsa-id": "10.169.14.241",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:14:05"},
"expiration-time": {"#text": "00:14:06"},
"installation-time": {"#text": "00:45:48"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "30w0d 01:05:04"},
"send-time": {"#text": "00:45:46"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.255",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "50",
"ospf-topology-name": "default",
"tag": "0.0.0.0",
"type-value": "1",
},
},
"sequence-number": "0x80001a14",
},
{
"advertising-router": "10.34.2.251",
"age": "455",
"checksum": "0xea9b",
"lsa-id": "10.169.14.241",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:52:25"},
"expiration-time": {"#text": "00:52:25"},
"installation-time": {"#text": "00:07:27"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "3w0d 08:11:38"},
"send-time": {"#text": "00:07:25"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.255",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "50",
"ospf-topology-name": "default",
"tag": "0.0.0.0",
"type-value": "1",
},
},
"sequence-number": "0x80000299",
},
{
"advertising-router": "10.189.5.253",
"age": "569",
"checksum": "0xeb68",
"lsa-id": "10.169.14.241",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:50:31"},
"expiration-time": {"#text": "00:50:31"},
"installation-time": {"#text": "00:09:26"},
"lsa-change-count": "31",
"lsa-changed-time": {"#text": "3w3d 07:33:47"},
"send-time": {"#text": "00:09:24"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.255",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "50",
"ospf-topology-name": "default",
"tag": "0.0.0.0",
"type-value": "1",
},
},
"sequence-number": "0x80000fae",
},
{
"advertising-router": "10.169.14.240",
"age": "1944",
"checksum": "0xc372",
"lsa-id": "10.189.5.252",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:27:35"},
"expiration-time": {"#text": "00:27:36"},
"installation-time": {"#text": "00:32:21"},
"lsa-change-count": "3",
"lsa-changed-time": {"#text": "3w3d 07:33:50"},
"send-time": {"#text": "00:32:19"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.255",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "50",
"ospf-topology-name": "default",
"tag": "10.166.34.12",
"type-value": "1",
},
},
"sequence-number": "0x800019b0",
},
{
"advertising-router": "10.169.14.241",
"age": "227",
"checksum": "0x4d5",
"lsa-id": "10.189.5.253",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:56:12"},
"expiration-time": {"#text": "00:56:13"},
"installation-time": {"#text": "00:03:41"},
"lsa-change-count": "17",
"lsa-changed-time": {"#text": "3w3d 07:24:57"},
"send-time": {"#text": "00:03:39"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.255",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "50",
"ospf-topology-name": "default",
"tag": "10.166.34.12",
"type-value": "1",
},
},
"sequence-number": "0x80001410",
},
{
"advertising-router": "10.169.14.240",
"age": "1191",
"checksum": "0xfb51",
"lsa-id": "192.168.100.0",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:40:08"},
"expiration-time": {"#text": "00:40:09"},
"installation-time": {"#text": "00:19:48"},
"lsa-change-count": "75",
"lsa-changed-time": {"#text": "2w6d 19:00:07"},
"send-time": {"#text": "00:19:46"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.128",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "31900",
"ospf-topology-name": "default",
"tag": "10.76.212.52",
"type-value": "1",
},
},
"sequence-number": "0x800002da",
},
{
"advertising-router": "10.169.14.240",
"age": "1041",
"checksum": "0x19b8",
"lsa-id": "192.168.100.252",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:42:39"},
"expiration-time": {"#text": "00:42:39"},
"installation-time": {"#text": "00:17:18"},
"lsa-change-count": "75",
"lsa-changed-time": {"#text": "2w6d 19:00:07"},
"send-time": {"#text": "00:17:16"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.255",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "31900",
"ospf-topology-name": "default",
"tag": "10.76.212.52",
"type-value": "1",
},
},
"sequence-number": "0x800002d9",
},
]
}
}
def test_empty(self):
self.device = Mock(**self.empty_output)
obj = ShowOspfDatabaseExternalExtensive(device=self.device)
with self.assertRaises(SchemaEmptyParserError):
obj.parse()
def test_golden(self):
self.device = Mock(**self.golden_output)
obj = ShowOspfDatabaseExternalExtensive(device=self.device)
parsed_output = obj.parse()
self.assertEqual(parsed_output, self.golden_parsed_output)
class TestShowOspfOverview(unittest.TestCase):
""" Unit tests for:
* show ospf overview
"""
device = Device(name="aDevice")
maxDiff = None
empty_output = {"execute.return_value": ""}
golden_output = {
"execute.return_value": """
show ospf overview
Instance: master
Router ID: 10.189.5.252
Route table index: 0
Configured overload, expires in 14 seconds
AS boundary router
LSA refresh time: 50 minutes
Traffic engineering
SPRING: Enabled
SRGB Config Range :
SRGB Start-Label : 16000, SRGB Index-Range : 8000
SRGB Block Allocation: Success
SRGB Start Index : 16000, SRGB Size : 8000, Label-Range: [ 16000, 23999 ]
Node Segments: Enabled
Ipv4 Index : 71
Post Convergence Backup: Enabled
Max labels: 3, Max spf: 100, Max Ecmp Backup: 1
Area: 0.0.0.8
Stub type: Not Stub
Authentication Type: None
Area border routers: 0, AS boundary routers: 7
Neighbors
Up (in full state): 3
Topology: default (ID 0)
Prefix export count: 1
Full SPF runs: 173416
SPF delay: 0.200000 sec, SPF holddown: 2 sec, SPF rapid runs: 3
Backup SPF: Not Needed
"""
}
golden_parsed_output = {
"ospf-overview-information": {
"ospf-overview": {
"instance-name": "master",
"ospf-area-overview": {
"authentication-type": "None",
"ospf-abr-count": "0",
"ospf-area": "0.0.0.8",
"ospf-asbr-count": "7",
"ospf-nbr-overview": {"ospf-nbr-up-count": "3"},
"ospf-stub-type": "Not Stub",
},
"ospf-lsa-refresh-time": "50",
"ospf-route-table-index": "0",
'ospf-configured-overload-remaining-time': '14',
"ospf-router-id": "10.189.5.252",
"ospf-spring-overview": {
"ospf-node-segment": {"ospf-node-segment-ipv4-index": "71"},
"ospf-node-segment-enabled": "Enabled",
"ospf-spring-enabled": "Enabled",
"ospf-srgb-allocation": "Success",
"ospf-srgb-block": {
"ospf-srgb-first-label": "16000",
"ospf-srgb-last-label": "23999",
"ospf-srgb-size": "8000",
"ospf-srgb-start-index": "16000",
},
"ospf-srgb-config": {
"ospf-srgb-config-block-header": "SRGB Config Range",
"ospf-srgb-index-range": "8000",
"ospf-srgb-start-label": "16000",
},
},
"ospf-tilfa-overview": {
"ospf-tilfa-ecmp-backup": "1",
"ospf-tilfa-enabled": "Enabled",
"ospf-tilfa-max-labels": "3",
"ospf-tilfa-max-spf": "100",
},
"ospf-topology-overview": {
"ospf-backup-spf-status": "Not Needed",
"ospf-full-spf-count": "173416",
"ospf-prefix-export-count": "1",
"ospf-spf-delay": "0.200000",
"ospf-spf-holddown": "2",
"ospf-spf-rapid-runs": "3",
"ospf-topology-id": "0",
"ospf-topology-name": "default",
},
}
}
}
golden_output2 = {
"execute.return_value": """
show ospf overview
Instance: master
Router ID: 10.1.0.102
Route table index: 0
LSA refresh time: 50 minutes
Post Convergence Backup: Disabled
Area: 0.0.0.0
Stub type: Not Stub
Authentication Type: None
Area border routers: 0, AS boundary routers: 0
Neighbors
Up (in full state): 0
Topology: default (ID 0)
Prefix export count: 0
Full SPF runs: 2
SPF delay: 0.200000 sec, SPF holddown: 5 sec, SPF rapid runs: 3
Backup SPF: Not Needed
"""
}
golden_parsed_output2 = {
"ospf-overview-information": {
"ospf-overview": {
"instance-name": "master",
"ospf-area-overview": {
"authentication-type": "None",
"ospf-abr-count": "0",
"ospf-area": "0.0.0.0",
"ospf-asbr-count": "0",
"ospf-nbr-overview": {"ospf-nbr-up-count": "0"},
"ospf-stub-type": "Not Stub",
},
"ospf-lsa-refresh-time": "50",
"ospf-route-table-index": "0",
"ospf-router-id": "10.1.0.102",
"ospf-topology-overview": {
"ospf-backup-spf-status": "Not Needed",
"ospf-full-spf-count": "2",
"ospf-prefix-export-count": "0",
"ospf-spf-delay": "0.200000",
"ospf-spf-holddown": "5",
"ospf-spf-rapid-runs": "3",
"ospf-topology-id": "0",
"ospf-topology-name": "default",
},
}
}
}
def test_empty(self):
self.device = Mock(**self.empty_output)
obj = ShowOspfOverview(device=self.device)
with self.assertRaises(SchemaEmptyParserError):
obj.parse()
def test_golden(self):
self.device = Mock(**self.golden_output)
obj = ShowOspfOverview(device=self.device)
parsed_output = obj.parse()
self.assertEqual(parsed_output, self.golden_parsed_output)
def test_golden2(self):
self.device = Mock(**self.golden_output2)
obj = ShowOspfOverview(device=self.device)
parsed_output = obj.parse()
self.assertEqual(parsed_output, self.golden_parsed_output2)
class TestShowOspfOverviewExtensive(unittest.TestCase):
""" Unit tests for:
* show ospf overview extensive
"""
device = Device(name="aDevice")
maxDiff = None
empty_output = {"execute.return_value": ""}
golden_output = {
"execute.return_value": """
show ospf overview extensive
Instance: master
Router ID: 10.189.5.252
Route table index: 0
AS boundary router
LSA refresh time: 50 minutes
Traffic engineering
SPRING: Enabled
SRGB Config Range :
SRGB Start-Label : 16000, SRGB Index-Range : 8000
SRGB Block Allocation: Success
SRGB Start Index : 16000, SRGB Size : 8000, Label-Range: [ 16000, 23999 ]
Node Segments: Enabled
Ipv4 Index : 71
Post Convergence Backup: Enabled
Max labels: 3, Max spf: 100, Max Ecmp Backup: 1
Area: 0.0.0.8
Stub type: Not Stub
Authentication Type: None
Area border routers: 0, AS boundary routers: 7
Neighbors
Up (in full state): 3
Topology: default (ID 0)
Prefix export count: 1
Full SPF runs: 173416
SPF delay: 0.200000 sec, SPF holddown: 2 sec, SPF rapid runs: 3
Backup SPF: Not Needed
"""
}
golden_parsed_output = {
"ospf-overview-information": {
"ospf-overview": {
"instance-name": "master",
"ospf-area-overview": {
"authentication-type": "None",
"ospf-abr-count": "0",
"ospf-area": "0.0.0.8",
"ospf-asbr-count": "7",
"ospf-nbr-overview": {"ospf-nbr-up-count": "3"},
"ospf-stub-type": "Not Stub",
},
"ospf-lsa-refresh-time": "50",
"ospf-route-table-index": "0",
"ospf-router-id": "10.189.5.252",
"ospf-spring-overview": {
"ospf-node-segment": {"ospf-node-segment-ipv4-index": "71"},
"ospf-node-segment-enabled": "Enabled",
"ospf-spring-enabled": "Enabled",
"ospf-srgb-allocation": "Success",
"ospf-srgb-block": {
"ospf-srgb-first-label": "16000",
"ospf-srgb-last-label": "23999",
"ospf-srgb-size": "8000",
"ospf-srgb-start-index": "16000",
},
"ospf-srgb-config": {
"ospf-srgb-config-block-header": "SRGB Config Range",
"ospf-srgb-index-range": "8000",
"ospf-srgb-start-label": "16000",
},
},
"ospf-tilfa-overview": {
"ospf-tilfa-ecmp-backup": "1",
"ospf-tilfa-enabled": "Enabled",
"ospf-tilfa-max-labels": "3",
"ospf-tilfa-max-spf": "100",
},
"ospf-topology-overview": {
"ospf-backup-spf-status": "Not Needed",
"ospf-full-spf-count": "173416",
"ospf-prefix-export-count": "1",
"ospf-spf-delay": "0.200000",
"ospf-spf-holddown": "2",
"ospf-spf-rapid-runs": "3",
"ospf-topology-id": "0",
"ospf-topology-name": "default",
},
}
}
}
def test_empty(self):
self.device = Mock(**self.empty_output)
obj = ShowOspfOverviewExtensive(device=self.device)
with self.assertRaises(SchemaEmptyParserError):
obj.parse()
def test_golden(self):
self.device = Mock(**self.golden_output)
obj = ShowOspfOverviewExtensive(device=self.device)
parsed_output = obj.parse()
self.assertEqual(parsed_output, self.golden_parsed_output)
class TestShowOspfDatabaseAdvertisingRouterSelfDetail(unittest.TestCase):
maxDiff = None
device = Device(name="test-device")
empty_output = {"execute.return_value": ""}
golden_output = {
"execute.return_value": """
show ospf database advertising-router self detail
OSPF database, Area 0.0.0.8
Type ID Adv Rtr Seq Age Opt Cksum Len
Router *10.189.5.252 10.189.5.252 0x80001b9e 1801 0x22 0x1e2 120
bits 0x2, link count 8
id 10.189.5.253, data 10.189.5.93, Type PointToPoint (1)
Topology count: 0, Default metric: 5
id 10.189.5.92, data 255.255.255.252, Type Stub (3)
Topology count: 0, Default metric: 5
id 10.169.14.240, data 10.169.14.122, Type PointToPoint (1)
Topology count: 0, Default metric: 100
id 10.169.14.120, data 255.255.255.252, Type Stub (3)
Topology count: 0, Default metric: 100
id 10.19.198.239, data 10.19.198.25, Type PointToPoint (1)
Topology count: 0, Default metric: 1000
id 10.19.198.24, data 255.255.255.252, Type Stub (3)
Topology count: 0, Default metric: 1000
id 10.55.0.0, data 255.255.255.0, Type Stub (3)
Topology count: 0, Default metric: 100
id 10.189.5.252, data 255.255.255.255, Type Stub (3)
Topology count: 0, Default metric: 0
Topology default (ID 0)
Type: PointToPoint, Node ID: 10.19.198.239
Metric: 1000, Bidirectional
Type: PointToPoint, Node ID: 10.169.14.240
Metric: 100, Bidirectional
Type: PointToPoint, Node ID: 10.189.5.253
Metric: 5, Bidirectional
OpaqArea*10.1.0.1 10.189.5.252 0x80001a15 424 0x22 0xd49a 28
Opaque LSA
RtrAddr (1), length 4:
10.189.5.252
OpaqArea*10.1.0.3 10.189.5.252 0x80000322 153 0x22 0x95cd 136
Opaque LSA
Link (2), length 112:
Linktype (1), length 1:
1
LinkID (2), length 4:
10.189.5.253
LocIfAdr (3), length 4:
10.189.5.93
RemIfAdr (4), length 4:
10.189.5.94
TEMetric (5), length 4:
5
MaxBW (6), length 4:
1000Mbps
MaxRsvBW (7), length 4:
1000Mbps
UnRsvBW (8), length 32:
Priority 0, 1000Mbps
Priority 1, 1000Mbps
Priority 2, 1000Mbps
Priority 3, 1000Mbps
Priority 4, 1000Mbps
Priority 5, 1000Mbps
Priority 6, 1000Mbps
Priority 7, 1000Mbps
LinkLocalRemoteIdentifier (11), length 8:
Local 333, Remote 0
Color (9), length 4:
0
OpaqArea*10.1.0.4 10.189.5.252 0x800013e8 2604 0x22 0xb804 136
Opaque LSA
Link (2), length 112:
Linktype (1), length 1:
1
LinkID (2), length 4:
10.169.14.240
LocIfAdr (3), length 4:
10.169.14.122
RemIfAdr (4), length 4:
10.169.14.121
TEMetric (5), length 4:
100
MaxBW (6), length 4:
1000Mbps
MaxRsvBW (7), length 4:
1000Mbps
UnRsvBW (8), length 32:
Priority 0, 1000Mbps
Priority 1, 1000Mbps
Priority 2, 1000Mbps
Priority 3, 1000Mbps
Priority 4, 1000Mbps
Priority 5, 1000Mbps
Priority 6, 1000Mbps
Priority 7, 1000Mbps
LinkLocalRemoteIdentifier (11), length 8:
Local 334, Remote 0
Color (9), length 4:
10
OpaqArea*10.1.0.5 10.189.5.252 0x800001bb 1505 0x22 0x79b5 136
Opaque LSA
Link (2), length 112:
Linktype (1), length 1:
1
LinkID (2), length 4:
10.19.198.239
LocIfAdr (3), length 4:
10.19.198.25
RemIfAdr (4), length 4:
10.19.198.26
TEMetric (5), length 4:
1000
MaxBW (6), length 4:
1000Mbps
MaxRsvBW (7), length 4:
1000Mbps
UnRsvBW (8), length 32:
Priority 0, 1000Mbps
Priority 1, 1000Mbps
Priority 2, 1000Mbps
Priority 3, 1000Mbps
Priority 4, 1000Mbps
Priority 5, 1000Mbps
Priority 6, 1000Mbps
Priority 7, 1000Mbps
LinkLocalRemoteIdentifier (11), length 8:
Local 336, Remote 0
Color (9), length 4:
2
OpaqArea*10.16.0.0 10.189.5.252 0x80001a2a 964 0x22 0xe5ef 44
Opaque LSA
SR-Algorithm (8), length 1:
Algo (1), length 1:
0
SID/Label Range (9), length 12:
Range Size (1), length 3:
8000
SID/Label (1), length 3:
Label (1), length 3:
16000
OpaqArea*10.49.0.1 10.189.5.252 0x80001b9e 1801 0x22 0x8c7f 44
Opaque LSA
Extended Prefix (1), length 20:
Route Type (1), length 1:
1
Prefix Length (2), length 1:
32
AF (3), length 1:
0
Flags (4), length 1:
0x40
Prefix (5), length 32:
10.189.5.252
Prefix Sid (2), length 8:
Flags (1), length 1:
0x00
MT ID (2), length 1:
0
Algorithm (3), length 1:
0
SID (4), length 4:
71
OpaqArea*10.64.0.52 10.189.5.252 0x80000308 694 0x22 0x7efa 60
Opaque LSA
Extended Link (1), length 36:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.169.14.240
Link Data (3), length 4:
10.169.14.122
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
2567
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
2568
OpaqArea*10.64.0.54 10.189.5.252 0x800002dc 1235 0x22 0x1839 60
Opaque LSA
Extended Link (1), length 36:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.189.5.253
Link Data (3), length 4:
10.189.5.93
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
28985
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
28986
OpaqArea*10.64.0.55 10.189.5.252 0x800001bb 2069 0x22 0x92eb 60
Opaque LSA
Extended Link (1), length 36:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.19.198.239
Link Data (3), length 4:
10.19.198.25
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
167966
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
167967
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern *10.169.14.240 10.189.5.252 0x80001a3a 2336 0x22 0xc3fb 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 50, Fwd addr: 0.0.0.0, Tag: 0.0.0.0
"""
}
golden_parsed_output = {
"ospf-database-information": {
"ospf-area-header": {"ospf-area": "0.0.0.8"},
"ospf-database": [
{
"advertising-router": "10.189.5.252",
"age": "1801",
"checksum": "0x1e2",
"lsa-id": "10.189.5.252",
"lsa-length": "120",
"lsa-type": "Router",
"options": "0x22",
"ospf-router-lsa": {
"bits": "0x2",
"link-count": "8",
"ospf-link": [
{
"link-data": "10.189.5.93",
"link-id": "10.189.5.253",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "5",
"ospf-topology-count": "0",
},
{
"link-data": "10.189.5.93",
"link-id": "10.189.5.253",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "5",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.189.5.92",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "5",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.189.5.92",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "5",
"ospf-topology-count": "0",
},
{
"link-data": "10.169.14.122",
"link-id": "10.169.14.240",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "100",
"ospf-topology-count": "0",
},
{
"link-data": "10.169.14.122",
"link-id": "10.169.14.240",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "100",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.169.14.120",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "100",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.169.14.120",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "100",
"ospf-topology-count": "0",
},
{
"link-data": "10.19.198.25",
"link-id": "10.19.198.239",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "10.19.198.25",
"link-id": "10.19.198.239",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.19.198.24",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.19.198.24",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.0",
"link-id": "10.55.0.0",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "100",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.0",
"link-id": "10.55.0.0",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "100",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.255",
"link-id": "10.189.5.252",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "0",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.255",
"link-id": "10.189.5.252",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "0",
"ospf-topology-count": "0",
},
],
"ospf-lsa-topology": {
"ospf-lsa-topology-link": [
{
"link-type-name": "PointToPoint",
"ospf-lsa-topology-link-metric": "1000",
"ospf-lsa-topology-link-node-id": "10.19.198.239",
"ospf-lsa-topology-link-state": "Bidirectional",
},
{
"link-type-name": "PointToPoint",
"ospf-lsa-topology-link-metric": "100",
"ospf-lsa-topology-link-node-id": "10.169.14.240",
"ospf-lsa-topology-link-state": "Bidirectional",
},
{
"link-type-name": "PointToPoint",
"ospf-lsa-topology-link-metric": "5",
"ospf-lsa-topology-link-node-id": "10.189.5.253",
"ospf-lsa-topology-link-state": "Bidirectional",
},
],
"ospf-topology-id": "0",
"ospf-topology-name": "default",
},
},
"our-entry": True,
"sequence-number": "0x80001b9e",
},
{
"advertising-router": "10.189.5.252",
"age": "424",
"checksum": "0xd49a",
"lsa-id": "10.1.0.1",
"lsa-length": "28",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-opaque-area-lsa": {
"tlv-block": {
"formatted-tlv-data": "10.189.5.252",
"tlv-length": "4",
"tlv-type-name": "RtrAddr",
"tlv-type-value": "1",
}
},
"our-entry": True,
"sequence-number": "0x80001a15",
},
{
"advertising-router": "10.189.5.252",
"age": "153",
"checksum": "0x95cd",
"lsa-id": "10.1.0.3",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.189.5.253",
"10.189.5.93",
"10.189.5.94",
"5",
"1000Mbps",
"1000Mbps",
"Priority "
"0, "
"1000Mbps\n"
"Priority "
"1, "
"1000Mbps\n"
"Priority "
"2, "
"1000Mbps\n"
"Priority "
"3, "
"1000Mbps\n"
"Priority "
"4, "
"1000Mbps\n"
"Priority "
"5, "
"1000Mbps\n"
"Priority "
"6, "
"1000Mbps\n"
"Priority "
"7, "
"1000Mbps\n",
"Local 333, Remote 0",
"0",
],
"tlv-length": [
"1",
"4",
"4",
"4",
"4",
"4",
"4",
"32",
"8",
"4",
],
"tlv-type-name": [
"Linktype",
"LinkID",
"LocIfAdr",
"RemIfAdr",
"TEMetric",
"MaxBW",
"MaxRsvBW",
"UnRsvBW",
"LinkLocalRemoteIdentifier",
"Color",
],
"tlv-type-value": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"11",
"9",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "112",
"tlv-type-name": "Link",
"tlv-type-value": "2",
},
},
"our-entry": True,
"sequence-number": "0x80000322",
},
{
"advertising-router": "10.189.5.252",
"age": "2604",
"checksum": "0xb804",
"lsa-id": "10.1.0.4",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.169.14.240",
"10.169.14.122",
"10.169.14.121",
"100",
"1000Mbps",
"1000Mbps",
"Priority "
"0, "
"1000Mbps\n"
"Priority "
"1, "
"1000Mbps\n"
"Priority "
"2, "
"1000Mbps\n"
"Priority "
"3, "
"1000Mbps\n"
"Priority "
"4, "
"1000Mbps\n"
"Priority "
"5, "
"1000Mbps\n"
"Priority "
"6, "
"1000Mbps\n"
"Priority "
"7, "
"1000Mbps\n",
"Local 334, Remote 0",
"10",
],
"tlv-length": [
"1",
"4",
"4",
"4",
"4",
"4",
"4",
"32",
"8",
"4",
],
"tlv-type-name": [
"Linktype",
"LinkID",
"LocIfAdr",
"RemIfAdr",
"TEMetric",
"MaxBW",
"MaxRsvBW",
"UnRsvBW",
"LinkLocalRemoteIdentifier",
"Color",
],
"tlv-type-value": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"11",
"9",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "112",
"tlv-type-name": "Link",
"tlv-type-value": "2",
},
},
"our-entry": True,
"sequence-number": "0x800013e8",
},
{
"advertising-router": "10.189.5.252",
"age": "1505",
"checksum": "0x79b5",
"lsa-id": "10.1.0.5",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.19.198.239",
"10.19.198.25",
"10.19.198.26",
"1000",
"1000Mbps",
"1000Mbps",
"Priority "
"0, "
"1000Mbps\n"
"Priority "
"1, "
"1000Mbps\n"
"Priority "
"2, "
"1000Mbps\n"
"Priority "
"3, "
"1000Mbps\n"
"Priority "
"4, "
"1000Mbps\n"
"Priority "
"5, "
"1000Mbps\n"
"Priority "
"6, "
"1000Mbps\n"
"Priority "
"7, "
"1000Mbps\n",
"Local 336, Remote 0",
"2",
],
"tlv-length": [
"1",
"4",
"4",
"4",
"4",
"4",
"4",
"32",
"8",
"4",
],
"tlv-type-name": [
"Linktype",
"LinkID",
"LocIfAdr",
"RemIfAdr",
"TEMetric",
"MaxBW",
"MaxRsvBW",
"UnRsvBW",
"LinkLocalRemoteIdentifier",
"Color",
],
"tlv-type-value": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"11",
"9",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "112",
"tlv-type-name": "Link",
"tlv-type-value": "2",
},
},
"our-entry": True,
"sequence-number": "0x800001bb",
},
{
"advertising-router": "10.189.5.252",
"age": "964",
"checksum": "0xe5ef",
"lsa-id": "10.16.0.0",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": ["0", "8000", "16000"],
"tlv-length": ["1", "12", "3", "3", "3"],
"tlv-type-name": [
"Algo",
"SID/Label Range",
"Range Size",
"SID/Label",
"Label",
],
"tlv-type-value": ["1", "9", "1", "1", "1"],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "1",
"tlv-type-name": "SR-Algorithm",
"tlv-type-value": "8",
},
},
"our-entry": True,
"sequence-number": "0x80001a2a",
},
{
"advertising-router": "10.189.5.252",
"age": "1801",
"checksum": "0x8c7f",
"lsa-id": "10.49.0.1",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"32",
"0",
"0x40",
"10.189.5.252",
"0x00",
"0",
"0",
"71",
],
"tlv-length": [
"1",
"1",
"1",
"1",
"32",
"8",
"1",
"1",
"1",
"4",
],
"tlv-type-name": [
"Route Type",
"Prefix Length",
"AF",
"Flags",
"Prefix",
"Prefix Sid",
"Flags",
"MT ID",
"Algorithm",
"SID",
],
"tlv-type-value": [
"1",
"2",
"3",
"4",
"5",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "20",
"tlv-type-name": "Extended Prefix",
"tlv-type-value": "1",
},
},
"our-entry": True,
"sequence-number": "0x80001b9e",
},
{
"advertising-router": "10.189.5.252",
"age": "694",
"checksum": "0x7efa",
"lsa-id": "10.64.0.52",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.169.14.240",
"10.169.14.122",
"0xe0",
"0",
"0",
"2567",
"0x60",
"0",
"0",
"2568",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "36",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"our-entry": True,
"sequence-number": "0x80000308",
},
{
"advertising-router": "10.189.5.252",
"age": "1235",
"checksum": "0x1839",
"lsa-id": "10.64.0.54",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.189.5.253",
"10.189.5.93",
"0xe0",
"0",
"0",
"28985",
"0x60",
"0",
"0",
"28986",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "36",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"our-entry": True,
"sequence-number": "0x800002dc",
},
{
"advertising-router": "10.189.5.252",
"age": "2069",
"checksum": "0x92eb",
"lsa-id": "10.64.0.55",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.19.198.239",
"10.19.198.25",
"0xe0",
"0",
"0",
"167966",
"0x60",
"0",
"0",
"167967",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "36",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"our-entry": True,
"sequence-number": "0x800001bb",
},
{
"advertising-router": "10.189.5.252",
"age": "2336",
"checksum": "0xc3fb",
"lsa-id": "10.169.14.240",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-external-lsa": {
"address-mask": "255.255.255.255",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "50",
"ospf-topology-name": "default",
"tag": "0.0.0.0",
"type-value": "1",
},
},
"our-entry": True,
"sequence-number": "0x80001a3a",
},
],
}
}
def test_empty(self):
self.device = Mock(**self.empty_output)
obj = ShowOspfDatabaseAdvertisingRouterSelfDetail(device=self.device)
with self.assertRaises(SchemaEmptyParserError):
obj.parse()
def test_golden(self):
self.device = Mock(**self.golden_output)
obj = ShowOspfDatabaseAdvertisingRouterSelfDetail(device=self.device)
parsed_output = obj.parse()
self.assertEqual(parsed_output, self.golden_parsed_output)
class TestShowOspfDatabaseExtensive(unittest.TestCase):
maxDiff = None
device = Device(name="test-device")
empty_output = {"execute.return_value": ""}
golden_output = {
"execute.return_value": """
show ospf database extensive
OSPF database, Area 0.0.0.8
Type ID Adv Rtr Seq Age Opt Cksum Len
Router 10.36.3.3 10.36.3.3 0x80004d2d 352 0x22 0xa127 2496
bits 0x0, link count 206
id 10.36.3.3, data 255.255.255.255, Type Stub (3)
Topology count: 0, Default metric: 1
id 192.168.220.0, data 255.255.255.255, Type Stub (3)
Topology count: 0, Default metric: 1
id 192.168.220.4, data 255.255.255.255, Type Stub (3)
Topology count: 0, Default metric: 1
id 192.168.220.1, data 255.255.255.255, Type Stub (3)
Topology count: 0, Default metric: 1
id 192.168.220.2, data 255.255.255.255, Type Stub (3)
Topology count: 0, Default metric: 1
id 192.168.220.3, data 255.255.255.255, Type Stub (3)
Topology count: 0, Default metric: 1
id 10.169.196.241, data 192.168.111.1, Type PointToPoint (1)
Topology count: 0, Default metric: 1
id 192.168.111.0, data 255.255.255.252, Type Stub (3)
Topology count: 0, Default metric: 1
id 10.169.196.241, data 192.168.4.1, Type PointToPoint (1)
Topology count: 0, Default metric: 1
id 192.168.4.0, data 255.255.255.252, Type Stub (3)
Topology count: 0, Default metric: 1
Topology default (ID 0)
Type: PointToPoint, Node ID: 10.169.196.241
Metric: 1, Bidirectional
Aging timer 00:54:08
Installed 00:05:44 ago, expires in 00:54:08, sent 00:05:42 ago
Last changed 1d 02:16:03 ago, Change count: 69
Router 10.100.5.5 10.100.5.5 0x800019d7 1760 0x22 0xa1c 60
bits 0x0, link count 3
id 10.100.5.5, data 255.255.255.255, Type Stub (3)
Topology count: 0, Default metric: 1
id 10.34.2.250, data 10.16.0.2, Type PointToPoint (1)
Topology count: 0, Default metric: 1
id 10.16.0.0, data 255.255.255.252, Type Stub (3)
Topology count: 0, Default metric: 1
Topology default (ID 0)
Type: PointToPoint, Node ID: 10.34.2.250
Metric: 1, Bidirectional
Aging timer 00:30:40
Installed 00:29:13 ago, expires in 00:30:40, sent 00:29:11 ago
Last changed 4w6d 19:31:25 ago, Change count: 38
Router 10.19.198.239 10.19.198.239 0x80000442 913 0x22 0x95bf 96
bits 0x0, link count 6
id 10.19.198.239, data 255.255.255.255, Type Stub (3)
Topology count: 0, Default metric: 1
id 10.189.5.253, data 10.19.198.30, Type PointToPoint (1)
Topology count: 0, Default metric: 1000
id 10.19.198.28, data 255.255.255.252, Type Stub (3)
Topology count: 0, Default metric: 1000
id 10.189.5.252, data 10.19.198.26, Type PointToPoint (1)
Topology count: 0, Default metric: 1000
id 10.19.198.24, data 255.255.255.252, Type Stub (3)
Topology count: 0, Default metric: 1000
id 10.15.0.0, data 255.255.255.252, Type Stub (3)
Topology count: 0, Default metric: 1
Topology default (ID 0)
Type: PointToPoint, Node ID: 10.189.5.252
Metric: 1000, Bidirectional
Type: PointToPoint, Node ID: 10.189.5.253
Metric: 1000, Bidirectional
Aging timer 00:44:47
Installed 00:15:12 ago, expires in 00:44:47, sent 00:15:10 ago
Last changed 1w0d 19:55:00 ago, Change count: 45
Router 10.34.2.250 10.34.2.250 0x8000205a 1027 0x22 0x26f6 144
bits 0x2, link count 10
id 10.34.2.251, data 10.34.2.201, Type PointToPoint (1)
Topology count: 0, Default metric: 5
id 10.34.2.200, data 255.255.255.252, Type Stub (3)
Topology count: 0, Default metric: 5
id 10.169.14.240, data 10.169.14.158, Type PointToPoint (1)
Topology count: 0, Default metric: 100
id 10.169.14.156, data 255.255.255.252, Type Stub (3)
Topology count: 0, Default metric: 100
id 10.169.196.241, data 10.169.196.213, Type PointToPoint (1)
Topology count: 0, Default metric: 1000
id 10.169.196.212, data 255.255.255.252, Type Stub (3)
Topology count: 0, Default metric: 1000
id 10.100.5.5, data 10.16.0.1, Type PointToPoint (1)
Topology count: 0, Default metric: 1000
id 10.16.0.0, data 255.255.255.252, Type Stub (3)
Topology count: 0, Default metric: 1000
id 192.168.220.0, data 255.255.255.252, Type Stub (3)
Topology count: 0, Default metric: 1000
id 10.34.2.250, data 255.255.255.255, Type Stub (3)
Topology count: 0, Default metric: 0
Topology default (ID 0)
Type: PointToPoint, Node ID: 10.100.5.5
Metric: 1000, Bidirectional
Type: PointToPoint, Node ID: 10.169.196.241
Metric: 1000, Bidirectional
Type: PointToPoint, Node ID: 10.169.14.240
Metric: 100, Bidirectional
Type: PointToPoint, Node ID: 10.34.2.251
Metric: 5, Bidirectional
Aging timer 00:42:53
Installed 00:17:01 ago, expires in 00:42:53, sent 00:16:59 ago
Last changed 2w0d 00:51:24 ago, Change count: 1911
Router 10.34.2.251 10.34.2.251 0x80001dde 858 0x22 0x1022 108
bits 0x2, link count 7
id 10.34.2.250, data 10.34.2.202, Type PointToPoint (1)
Topology count: 0, Default metric: 5
id 10.34.2.200, data 255.255.255.252, Type Stub (3)
Topology count: 0, Default metric: 5
id 10.169.14.241, data 10.169.14.34, Type PointToPoint (1)
Topology count: 0, Default metric: 120
id 10.169.14.32, data 255.255.255.252, Type Stub (3)
Topology count: 0, Default metric: 120
id 10.169.196.241, data 10.169.196.217, Type PointToPoint (1)
Topology count: 0, Default metric: 1000
id 10.169.196.216, data 255.255.255.252, Type Stub (3)
Topology count: 0, Default metric: 1000
id 10.34.2.251, data 255.255.255.255, Type Stub (3)
Topology count: 0, Default metric: 0
Topology default (ID 0)
Type: PointToPoint, Node ID: 10.169.196.241
Metric: 1000, Bidirectional
Type: PointToPoint, Node ID: 10.169.14.241
Metric: 120, Bidirectional
Type: PointToPoint, Node ID: 10.34.2.250
Metric: 5, Bidirectional
Aging timer 00:45:42
Installed 00:14:09 ago, expires in 00:45:42, sent 00:14:07 ago
Last changed 2w0d 00:51:22 ago, Change count: 1258
OpaqArea 10.1.0.4 10.34.2.250 0x8000029e 1718 0x22 0x1e4 136
Opaque LSA
Link (2), length 112:
Linktype (1), length 1:
1
LinkID (2), length 4:
10.169.14.240
LocIfAdr (3), length 4:
10.169.14.158
RemIfAdr (4), length 4:
10.169.14.157
TEMetric (5), length 4:
100
MaxBW (6), length 4:
1000Mbps
MaxRsvBW (7), length 4:
1000Mbps
UnRsvBW (8), length 32:
Priority 0, 1000Mbps
Priority 1, 1000Mbps
Priority 2, 1000Mbps
Priority 3, 1000Mbps
Priority 4, 1000Mbps
Priority 5, 1000Mbps
Priority 6, 1000Mbps
Priority 7, 1000Mbps
LinkLocalRemoteIdentifier (11), length 8:
Local 334, Remote 0
Color (9), length 4:
4
Aging timer 00:31:21
Installed 00:28:32 ago, expires in 00:31:22, sent 00:28:30 ago
Last changed 3w0d 08:18:02 ago, Change count: 5
OpaqArea 10.1.0.4 10.34.2.251 0x80000299 1517 0x22 0x29c0 136
Opaque LSA
Link (2), length 112:
Linktype (1), length 1:
1
LinkID (2), length 4:
10.169.14.241
LocIfAdr (3), length 4:
10.169.14.34
RemIfAdr (4), length 4:
10.169.14.33
TEMetric (5), length 4:
90
MaxBW (6), length 4:
1000Mbps
MaxRsvBW (7), length 4:
1000Mbps
UnRsvBW (8), length 32:
Priority 0, 1000Mbps
Priority 1, 1000Mbps
Priority 2, 1000Mbps
Priority 3, 1000Mbps
Priority 4, 1000Mbps
Priority 5, 1000Mbps
Priority 6, 1000Mbps
Priority 7, 1000Mbps
LinkLocalRemoteIdentifier (11), length 8:
Local 334, Remote 0
Color (9), length 4:
6
Aging timer 00:34:43
Installed 00:25:08 ago, expires in 00:34:43, sent 00:25:06 ago
Last changed 3w0d 08:09:50 ago, Change count: 1
OpaqArea 10.1.0.4 10.169.14.240 0x800003f8 1529 0x22 0xb606 136
Opaque LSA
Link (2), length 112:
Linktype (1), length 1:
1
LinkID (2), length 4:
10.189.5.252
LocIfAdr (3), length 4:
10.169.14.121
RemIfAdr (4), length 4:
10.169.14.122
TEMetric (5), length 4:
100
MaxBW (6), length 4:
1000Mbps
MaxRsvBW (7), length 4:
1000Mbps
UnRsvBW (8), length 32:
Priority 0, 1000Mbps
Priority 1, 1000Mbps
Priority 2, 1000Mbps
Priority 3, 1000Mbps
Priority 4, 1000Mbps
Priority 5, 1000Mbps
Priority 6, 1000Mbps
Priority 7, 1000Mbps
LinkLocalRemoteIdentifier (11), length 8:
Local 334, Remote 0
Color (9), length 4:
10
Aging timer 00:34:31
Installed 00:25:26 ago, expires in 00:34:31, sent 00:25:24 ago
Last changed 3w3d 07:23:05 ago, Change count: 6
OpaqArea 10.1.0.4 10.169.14.241 0x800013fe 2418 0x22 0x694d 136
Opaque LSA
Link (2), length 112:
Linktype (1), length 1:
1
LinkID (2), length 4:
10.189.5.253
LocIfAdr (3), length 4:
10.169.14.129
RemIfAdr (4), length 4:
10.169.14.130
TEMetric (5), length 4:
70
MaxBW (6), length 4:
1000Mbps
MaxRsvBW (7), length 4:
1000Mbps
UnRsvBW (8), length 32:
Priority 0, 1000Mbps
Priority 1, 1000Mbps
Priority 2, 1000Mbps
Priority 3, 1000Mbps
Priority 4, 1000Mbps
Priority 5, 1000Mbps
Priority 6, 1000Mbps
Priority 7, 1000Mbps
LinkLocalRemoteIdentifier (11), length 8:
Local 334, Remote 0
Color (9), length 4:
6
Aging timer 00:19:42
Installed 00:40:12 ago, expires in 00:19:42, sent 00:40:10 ago
Last changed 3w3d 07:23:04 ago, Change count: 35
OpaqArea*10.1.0.4 10.189.5.252 0x800013e8 2702 0x22 0xb804 136
Opaque LSA
Link (2), length 112:
Linktype (1), length 1:
1
LinkID (2), length 4:
10.169.14.240
LocIfAdr (3), length 4:
10.169.14.122
RemIfAdr (4), length 4:
10.169.14.121
TEMetric (5), length 4:
100
MaxBW (6), length 4:
1000Mbps
MaxRsvBW (7), length 4:
1000Mbps
UnRsvBW (8), length 32:
Priority 0, 1000Mbps
Priority 1, 1000Mbps
Priority 2, 1000Mbps
Priority 3, 1000Mbps
Priority 4, 1000Mbps
Priority 5, 1000Mbps
Priority 6, 1000Mbps
Priority 7, 1000Mbps
LinkLocalRemoteIdentifier (11), length 8:
Local 334, Remote 0
Color (9), length 4:
10
Gen timer 00:00:19
Aging timer 00:14:58
Installed 00:45:02 ago, expires in 00:14:58, sent 00:45:00 ago
Last changed 3w3d 07:23:03 ago, Change count: 3, Ours, TE Link ID: 2147483652
OpaqArea 10.1.0.4 10.189.5.253 0x80000f9c 209 0x22 0x4cd0 136
Opaque LSA
Link (2), length 112:
Linktype (1), length 1:
1
LinkID (2), length 4:
10.169.14.241
LocIfAdr (3), length 4:
10.169.14.130
RemIfAdr (4), length 4:
10.169.14.129
TEMetric (5), length 4:
70
MaxBW (6), length 4:
1000Mbps
MaxRsvBW (7), length 4:
1000Mbps
UnRsvBW (8), length 32:
Priority 0, 1000Mbps
Priority 1, 1000Mbps
Priority 2, 1000Mbps
Priority 3, 1000Mbps
Priority 4, 1000Mbps
Priority 5, 1000Mbps
Priority 6, 1000Mbps
Priority 7, 1000Mbps
LinkLocalRemoteIdentifier (11), length 8:
Local 334, Remote 0
Color (9), length 4:
6
Aging timer 00:56:31
Installed 00:03:26 ago, expires in 00:56:31, sent 00:03:24 ago
Last changed 3w3d 07:23:04 ago, Change count: 15
OpaqArea 10.1.0.5 10.34.2.250 0x800001b5 580 0x22 0x5e9d 136
Opaque LSA
Link (2), length 112:
Linktype (1), length 1:
1
LinkID (2), length 4:
10.169.196.241
LocIfAdr (3), length 4:
10.169.196.213
RemIfAdr (4), length 4:
10.169.196.214
TEMetric (5), length 4:
1000
MaxBW (6), length 4:
1000Mbps
MaxRsvBW (7), length 4:
1000Mbps
UnRsvBW (8), length 32:
Priority 0, 1000Mbps
Priority 1, 1000Mbps
Priority 2, 1000Mbps
Priority 3, 1000Mbps
Priority 4, 1000Mbps
Priority 5, 1000Mbps
Priority 6, 1000Mbps
Priority 7, 1000Mbps
LinkLocalRemoteIdentifier (11), length 8:
Local 337, Remote 0
Color (9), length 4:
2
Aging timer 00:50:20
Installed 00:09:34 ago, expires in 00:50:20, sent 00:09:32 ago
Last changed 2w0d 00:51:24 ago, Change count: 1
OpaqArea 10.49.0.1 10.100.5.5 0x800019ac 1760 0x20 0x6c5a 44
Opaque LSA
Extended Prefix (1), length 20:
Route Type (1), length 1:
1
Prefix Length (2), length 1:
32
AF (3), length 1:
0
Flags (4), length 1:
0x40
Prefix (5), length 32:
10.100.5.5
Prefix Sid (2), length 8:
Flags (1), length 1:
0x00
MT ID (2), length 1:
0
Algorithm (3), length 1:
0
SID (4), length 4:
1000
Aging timer 00:30:40
Installed 00:29:13 ago, expires in 00:30:40, sent 00:29:11 ago
Last changed 21w5d 22:48:11 ago, Change count: 1
OpaqArea 10.49.0.1 10.34.2.250 0x80001fa9 1027 0x22 0x7fa7 44
Opaque LSA
Extended Prefix (1), length 20:
Route Type (1), length 1:
1
Prefix Length (2), length 1:
32
AF (3), length 1:
0
Flags (4), length 1:
0x40
Prefix (5), length 32:
10.34.2.250
Prefix Sid (2), length 8:
Flags (1), length 1:
0x00
MT ID (2), length 1:
0
Algorithm (3), length 1:
0
SID (4), length 4:
61
Aging timer 00:42:53
Installed 00:17:01 ago, expires in 00:42:53, sent 00:16:59 ago
Last changed 30w0d 01:32:34 ago, Change count: 1
OpaqArea 10.49.0.1 10.34.2.251 0x80001cfb 858 0x22 0x6ce 44
Opaque LSA
Extended Prefix (1), length 20:
Route Type (1), length 1:
1
Prefix Length (2), length 1:
32
AF (3), length 1:
0
Flags (4), length 1:
0x40
Prefix (5), length 32:
10.34.2.251
Prefix Sid (2), length 8:
Flags (1), length 1:
0x00
MT ID (2), length 1:
0
Algorithm (3), length 1:
0
SID (4), length 4:
62
Aging timer 00:45:42
Installed 00:14:09 ago, expires in 00:45:42, sent 00:14:07 ago
Last changed 30w0d 01:32:36 ago, Change count: 1
OpaqArea 10.49.0.1 10.169.14.240 0x80001bc2 173 0x22 0x97ab 44
Opaque LSA
Extended Prefix (1), length 20:
Route Type (1), length 1:
1
Prefix Length (2), length 1:
32
AF (3), length 1:
0
Flags (4), length 1:
0x40
Prefix (5), length 32:
10.169.14.240
Prefix Sid (2), length 8:
Flags (1), length 1:
0x00
MT ID (2), length 1:
0
Algorithm (3), length 1:
0
SID (4), length 4:
51
Aging timer 00:57:06
Installed 00:02:50 ago, expires in 00:57:07, sent 00:02:48 ago
Last changed 30w0d 01:32:37 ago, Change count: 1
OpaqArea 10.49.0.1 10.169.14.241 0x80001f67 1759 0x22 0x6433 44
Opaque LSA
Extended Prefix (1), length 20:
Route Type (1), length 1:
1
Prefix Length (2), length 1:
32
AF (3), length 1:
0
Flags (4), length 1:
0x40
Prefix (5), length 32:
10.169.14.241
Prefix Sid (2), length 8:
Flags (1), length 1:
0x00
MT ID (2), length 1:
0
Algorithm (3), length 1:
0
SID (4), length 4:
52
Aging timer 00:30:41
Installed 00:29:13 ago, expires in 00:30:41, sent 00:29:11 ago
Last changed 30w0d 01:32:36 ago, Change count: 1
OpaqArea*10.49.0.1 10.189.5.252 0x80001b9e 1899 0x22 0x8c7f 44
Opaque LSA
Extended Prefix (1), length 20:
Route Type (1), length 1:
1
Prefix Length (2), length 1:
32
AF (3), length 1:
0
Flags (4), length 1:
0x40
Prefix (5), length 32:
10.189.5.252
Prefix Sid (2), length 8:
Flags (1), length 1:
0x00
MT ID (2), length 1:
0
Algorithm (3), length 1:
0
SID (4), length 4:
71
Gen timer 00:18:20
Aging timer 00:28:20
Installed 00:31:39 ago, expires in 00:28:21, sent 00:31:37 ago
Last changed 30w0d 01:46:13 ago, Change count: 1, Ours, TE Link ID: 0
OpaqArea 10.49.0.1 10.189.5.253 0x80001b04 1980 0x22 0xe3bf 44
Opaque LSA
Extended Prefix (1), length 20:
Route Type (1), length 1:
1
Prefix Length (2), length 1:
32
AF (3), length 1:
0
Flags (4), length 1:
0x40
Prefix (5), length 32:
10.189.5.253
Prefix Sid (2), length 8:
Flags (1), length 1:
0x00
MT ID (2), length 1:
0
Algorithm (3), length 1:
0
SID (4), length 4:
72
Aging timer 00:26:59
Installed 00:32:57 ago, expires in 00:27:00, sent 00:32:55 ago
Last changed 30w0d 01:32:43 ago, Change count: 1
OpaqArea 10.64.0.1 10.34.2.250 0x800004f9 367 0x22 0x39a3 60
Opaque LSA
Extended Link (1), length 36:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.34.2.251
Link Data (3), length 4:
10.34.2.201
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
142149
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
142150
Aging timer 00:53:53
Installed 00:06:01 ago, expires in 00:53:53, sent 00:05:59 ago
Last changed 2w0d 00:50:30 ago, Change count: 285
OpaqArea 10.64.0.1 10.169.14.241 0x80000311 1016 0x22 0x7002 60
Opaque LSA
Extended Link (1), length 36:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.169.14.240
Link Data (3), length 4:
10.169.14.18
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
37408
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
37409
Aging timer 00:43:04
Installed 00:16:50 ago, expires in 00:43:04, sent 00:16:48 ago
Last changed 2w6d 19:46:47 ago, Change count: 50
OpaqArea 10.64.0.1 10.189.5.253 0x8000030a 2521 0x22 0x6915 60
Opaque LSA
Extended Link (1), length 36:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.169.14.241
Link Data (3), length 4:
10.169.14.130
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
1912
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
1913
Aging timer 00:17:59
Installed 00:41:58 ago, expires in 00:17:59, sent 00:41:56 ago
Last changed 2w6d 20:01:45 ago, Change count: 31
OpaqArea 10.64.0.2 10.169.14.241 0x80000305 790 0x22 0x7271 60
Opaque LSA
Extended Link (1), length 36:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.189.5.253
Link Data (3), length 4:
10.169.14.129
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
1647
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
1648
Aging timer 00:46:49
Installed 00:13:04 ago, expires in 00:46:50, sent 00:13:02 ago
Last changed 2w6d 18:58:08 ago, Change count: 47
OpaqArea 10.64.0.3 10.169.14.241 0x8000029a 565 0x22 0x7248 60
Opaque LSA
Extended Link (1), length 36:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.34.2.251
Link Data (3), length 4:
10.169.14.33
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
1649
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
1650
Aging timer 00:50:35
Installed 00:09:19 ago, expires in 00:50:35, sent 00:09:17 ago
Last changed 2w6d 18:14:24 ago, Change count: 7
OpaqArea 10.64.0.3 10.189.5.253 0x800002db 947 0x22 0x34eb 60
Opaque LSA
Extended Link (1), length 36:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.189.5.252
Link Data (3), length 4:
10.189.5.94
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
13988
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
13989
Aging timer 00:44:13
Installed 00:15:44 ago, expires in 00:44:13, sent 00:15:42 ago
Last changed 2w0d 00:43:19 ago, Change count: 17
OpaqArea 10.64.0.4 10.189.5.253 0x800001bb 2251 0x22 0x31be 60
Opaque LSA
Extended Link (1), length 36:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.19.198.239
Link Data (3), length 4:
10.19.198.29
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
102794
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
102795
Aging timer 00:22:29
Installed 00:37:28 ago, expires in 00:22:29, sent 00:37:26 ago
Last changed 2w0d 00:51:02 ago, Change count: 1
OpaqArea 10.64.0.6 10.100.5.5 0x800019bf 1760 0x20 0x4de2 56
Opaque LSA
Extended Link (1), length 32:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.34.2.250
Link Data (3), length 4:
10.16.0.2
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
24000
Invalid (32768), length 4:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
24000
Aging timer 00:30:40
Installed 00:29:13 ago, expires in 00:30:40, sent 00:29:11 ago
Last changed 21w5d 22:48:11 ago, Change count: 1
OpaqArea 10.64.0.7 10.34.2.250 0x8000046b 2871 0x22 0xb9a6 48
Opaque LSA
Extended Link (1), length 24:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.100.5.5
Link Data (3), length 4:
10.16.0.1
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
207722
Aging timer 00:12:09
Installed 00:47:45 ago, expires in 00:12:09, sent 00:47:43 ago
Last changed 2w0d 00:42:10 ago, Change count: 123
OpaqArea 10.64.0.7 10.34.2.251 0x800004de 1297 0x22 0x6a96 60
Opaque LSA
Extended Link (1), length 36:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.34.2.250
Link Data (3), length 4:
10.34.2.202
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
112778
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
112779
Aging timer 00:38:23
Installed 00:21:28 ago, expires in 00:38:23, sent 00:21:26 ago
Last changed 2w6d 19:46:37 ago, Change count: 243
OpaqArea 10.64.0.17 10.19.198.239 0x8000025d 913 0x20 0xb34a 104
Opaque LSA
Extended Link (1), length 80:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.189.5.252
Link Data (3), length 4:
10.19.198.26
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
1730
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
1729
Invalid (8), length 4:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
1729
Invalid (32768), length 4:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
1729
Invalid (9), length 8:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
1729
Invalid (32769), length 12:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
1729
Aging timer 00:44:47
Installed 00:15:12 ago, expires in 00:44:47, sent 00:15:10 ago
Last changed 2w0d 00:51:03 ago, Change count: 2
OpaqArea 10.64.0.17 10.169.196.241 0x8000025d 812 0x20 0x3e3c 104
Opaque LSA
Extended Link (1), length 80:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.34.2.250
Link Data (3), length 4:
10.169.196.214
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
223815
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
223843
Invalid (8), length 4:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
223843
Invalid (32768), length 4:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
223843
Invalid (9), length 8:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
223843
Invalid (32769), length 12:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
223843
Aging timer 00:46:27
Installed 00:13:25 ago, expires in 00:46:28, sent 00:13:23 ago
Last changed 2w0d 00:51:24 ago, Change count: 2
OpaqArea 10.64.0.18 10.19.198.239 0x8000025d 913 0x20 0xb938 104
Opaque LSA
Extended Link (1), length 80:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.189.5.253
Link Data (3), length 4:
10.19.198.30
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
1728
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
1727
Invalid (8), length 4:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
1727
Invalid (32768), length 4:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
1727
Invalid (9), length 8:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
1727
Invalid (32769), length 12:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
1727
Aging timer 00:44:47
Installed 00:15:12 ago, expires in 00:44:47, sent 00:15:10 ago
Last changed 2w0d 00:51:02 ago, Change count: 2
OpaqArea 10.64.0.18 10.169.196.241 0x8000025d 812 0x20 0x6fdb 104
Opaque LSA
Extended Link (1), length 80:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.34.2.251
Link Data (3), length 4:
10.169.196.218
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
223844
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
223845
Invalid (8), length 4:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
223845
Invalid (32768), length 4:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
223845
Invalid (9), length 8:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
223845
Invalid (32769), length 12:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
223845
Aging timer 00:46:27
Installed 00:13:25 ago, expires in 00:46:28, sent 00:13:23 ago
Last changed 2w0d 00:51:22 ago, Change count: 2
OpaqArea 10.64.0.31 10.34.2.251 0x8000029b 114 0x22 0xe70a 60
Opaque LSA
Extended Link (1), length 36:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.169.14.241
Link Data (3), length 4:
10.169.14.34
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
15022
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
15023
Aging timer 00:58:06
Installed 00:01:47 ago, expires in 00:58:06, sent 00:01:45 ago
Last changed 2w0d 00:43:41 ago, Change count: 8
OpaqArea 10.64.0.32 10.34.2.251 0x800001b5 1078 0x22 0xe396 60
Opaque LSA
Extended Link (1), length 36:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.169.196.241
Link Data (3), length 4:
10.169.196.217
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
259074
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
259075
Aging timer 00:42:02
Installed 00:17:50 ago, expires in 00:42:02, sent 00:17:48 ago
Last changed 2w0d 00:51:22 ago, Change count: 1
OpaqArea 10.64.0.37 10.34.2.250 0x8000029b 1949 0x22 0xffb8 60
Opaque LSA
Extended Link (1), length 36:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.169.14.240
Link Data (3), length 4:
10.169.14.158
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
143642
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
143643
Aging timer 00:27:31
Installed 00:32:23 ago, expires in 00:27:31, sent 00:32:21 ago
Last changed 2w0d 00:27:01 ago, Change count: 7
OpaqArea 10.64.0.38 10.34.2.250 0x800001b5 1257 0x22 0x71b3 60
Opaque LSA
Extended Link (1), length 36:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.169.196.241
Link Data (3), length 4:
10.169.196.213
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
358249
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
358250
Aging timer 00:39:02
Installed 00:20:51 ago, expires in 00:39:03, sent 00:20:49 ago
Last changed 2w0d 00:51:24 ago, Change count: 1
OpaqArea*10.64.0.52 10.189.5.252 0x80000308 792 0x22 0x7efa 60
Opaque LSA
Extended Link (1), length 36:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.169.14.240
Link Data (3), length 4:
10.169.14.122
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
2567
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
2568
Gen timer 00:36:39
Aging timer 00:46:48
Installed 00:13:12 ago, expires in 00:46:48, sent 00:13:10 ago
Last changed 2w0d 00:37:11 ago, Change count: 25, Ours, TE Link ID: 0
OpaqArea*10.64.0.54 10.189.5.252 0x800002dc 1333 0x22 0x1839 60
Opaque LSA
Extended Link (1), length 36:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.189.5.253
Link Data (3), length 4:
10.189.5.93
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
28985
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
28986
Gen timer 00:27:30
Aging timer 00:37:47
Installed 00:22:13 ago, expires in 00:37:47, sent 00:22:11 ago
Last changed 2w0d 00:46:13 ago, Change count: 26, Ours, TE Link ID: 0
OpaqArea*10.64.0.55 10.189.5.252 0x800001bb 2167 0x22 0x92eb 60
Opaque LSA
Extended Link (1), length 36:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.19.198.239
Link Data (3), length 4:
10.19.198.25
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
167966
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
167967
Gen timer 00:09:20
Aging timer 00:23:53
Installed 00:36:07 ago, expires in 00:23:53, sent 00:36:05 ago
Last changed 2w0d 00:51:03 ago, Change count: 1, Ours, TE Link ID: 0
OpaqArea 10.64.0.57 10.169.14.240 0x80000303 1378 0x22 0x7544 60
Opaque LSA
Extended Link (1), length 36:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.169.14.241
Link Data (3), length 4:
10.169.14.17
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
379383
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
379384
Aging timer 00:37:01
Installed 00:22:55 ago, expires in 00:37:02, sent 00:22:53 ago
Last changed 2w6d 19:46:52 ago, Change count: 57
OpaqArea 10.64.0.59 10.169.14.240 0x800002f4 1680 0x22 0x6d12 60
Opaque LSA
Extended Link (1), length 36:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.189.5.252
Link Data (3), length 4:
10.169.14.121
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
25
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
26
Aging timer 00:32:00
Installed 00:27:57 ago, expires in 00:32:00, sent 00:27:55 ago
Last changed 3w1d 08:43:52 ago, Change count: 52
OpaqArea 10.64.0.60 10.169.14.240 0x8000028b 1228 0x22 0x4f1a 60
Opaque LSA
Extended Link (1), length 36:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.34.2.250
Link Data (3), length 4:
10.169.14.157
Adjacency Sid (2), length 7:
Flags (1), length 1:
0xe0
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
207596
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
207597
Aging timer 00:39:32
Installed 00:20:25 ago, expires in 00:39:32, sent 00:20:23 ago
Last changed 2w6d 18:58:13 ago, Change count: 6
OpaqArea 10.64.8.74 10.169.196.241 0x80000030 326 0x20 0xdcd1 92
Opaque LSA
Extended Link (1), length 68:
Link Type (1), length 1:
1
Link Id (2), length 4:
10.36.3.3
Link Data (3), length 4:
192.168.111.2
Adjacency Sid (2), length 7:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
223852
Invalid (8), length 4:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
223852
Invalid (32768), length 4:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
223852
Invalid (9), length 8:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
223852
Invalid (32769), length 12:
Flags (1), length 1:
0x60
MT ID (2), length 1:
0
Weight (3), length 1:
0
Label (4), length 3:
223852
Aging timer 00:54:34
Installed 00:05:21 ago, expires in 00:54:34, sent 00:05:19 ago
Last changed 1d 02:16:03 ago, Change count: 1
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern 0.0.0.0 10.34.2.251 0x800019e3 2614 0x22 0x6715 36
mask 0.0.0.0
Topology default (ID 0)
Type: 1, Metric: 1, Fwd addr: 0.0.0.0, Tag: 0.0.0.0
Aging timer 00:16:26
Installed 00:43:25 ago, expires in 00:16:26, sent 00:43:23 ago
Last changed 30w0d 01:32:36 ago, Change count: 1
Extern 0.0.0.0 10.169.14.240 0x8000039e 2282 0x22 0x9fcc 36
mask 0.0.0.0
Topology default (ID 0)
Type: 1, Metric: 1, Fwd addr: 0.0.0.0, Tag: 0.0.0.0
Aging timer 00:21:57
Installed 00:37:59 ago, expires in 00:21:58, sent 00:37:57 ago
Last changed 4w2d 05:46:52 ago, Change count: 1
Extern 10.1.0.0 192.168.36.119 0x800019b0 1219 0x20 0x3bc3 36
mask 255.255.255.0
Topology default (ID 0)
Type: 2, Metric: 20, Fwd addr: 0.0.0.0, Tag: 0.0.0.0
Aging timer 00:39:41
Installed 00:20:15 ago, expires in 00:39:41, sent 00:20:13 ago
Last changed 21w6d 00:04:15 ago, Change count: 1
Extern 10.1.0.0 192.168.36.120 0x800019b1 791 0x20 0x33c9 36
mask 255.255.255.0
Topology default (ID 0)
Type: 2, Metric: 20, Fwd addr: 0.0.0.0, Tag: 0.0.0.0
Aging timer 00:46:49
Installed 00:13:07 ago, expires in 00:46:49, sent 00:13:05 ago
Last changed 21w6d 00:04:43 ago, Change count: 1
Extern 10.174.132.237 10.169.14.240 0x8000039e 2132 0x22 0xf161 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 50, Fwd addr: 0.0.0.0, Tag: 0.0.0.0
Aging timer 00:24:28
Installed 00:35:29 ago, expires in 00:24:28, sent 00:35:27 ago
Last changed 4w2d 05:46:49 ago, Change count: 1
Extern 10.34.2.250 10.169.14.240 0x80000288 2734 0x22 0x473e 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 50, Fwd addr: 0.0.0.0, Tag: 10.166.34.12
Aging timer 00:14:26
Installed 00:45:31 ago, expires in 00:14:26, sent 00:45:29 ago
Last changed 3w0d 08:49:51 ago, Change count: 1
Extern 10.34.2.250 10.169.14.241 0x80000298 2637 0x22 0x2153 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 50, Fwd addr: 0.0.0.0, Tag: 10.166.34.12
Aging timer 00:16:03
Installed 00:43:51 ago, expires in 00:16:03, sent 00:43:49 ago
Last changed 3w0d 08:09:51 ago, Change count: 1
Extern 10.34.2.251 10.169.14.240 0x80000289 475 0x22 0x3b48 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 50, Fwd addr: 0.0.0.0, Tag: 10.166.34.12
Aging timer 00:52:05
Installed 00:07:52 ago, expires in 00:52:05, sent 00:07:50 ago
Last changed 3w0d 08:49:56 ago, Change count: 1
Extern 192.168.100.0 10.169.14.240 0x800002da 1077 0x22 0xfb51 36
mask 255.255.255.128
Topology default (ID 0)
Type: 1, Metric: 31900, Fwd addr: 0.0.0.0, Tag: 10.76.212.52
Aging timer 00:42:03
Installed 00:17:54 ago, expires in 00:42:03, sent 00:17:52 ago
Last changed 2w6d 18:58:13 ago, Change count: 75
Extern 192.168.100.252 10.169.14.240 0x800002d9 927 0x22 0x19b8 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 31900, Fwd addr: 0.0.0.0, Tag: 10.76.212.52
Aging timer 00:44:33
Installed 00:15:24 ago, expires in 00:44:33, sent 00:15:22 ago
Last changed 2w6d 18:58:13 ago, Change count: 75
"""
}
golden_parsed_output = {
"ospf-database-information": {
"ospf-area-header": {"ospf-area": "0.0.0.8"},
"ospf-database": [
{
"advertising-router": "10.36.3.3",
"age": "352",
"checksum": "0xa127",
"lsa-id": "10.36.3.3",
"lsa-length": "2496",
"lsa-type": "Router",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:54:08"},
"expiration-time": {"#text": "00:54:08"},
"installation-time": {"#text": "00:05:44"},
"lsa-change-count": "69",
"lsa-changed-time": {"#text": "1d 02:16:03"},
"send-time": {"#text": "00:05:42"},
},
"ospf-router-lsa": {
"bits": "0x0",
"link-count": "206",
"ospf-link": [
{
"link-data": "255.255.255.255",
"link-id": "10.36.3.3",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.255",
"link-id": "10.36.3.3",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.255",
"link-id": "192.168.220.0",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.255",
"link-id": "192.168.220.0",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.255",
"link-id": "192.168.220.4",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.255",
"link-id": "192.168.220.4",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.255",
"link-id": "192.168.220.1",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.255",
"link-id": "192.168.220.1",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.255",
"link-id": "192.168.220.2",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.255",
"link-id": "192.168.220.2",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.255",
"link-id": "192.168.220.3",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.255",
"link-id": "192.168.220.3",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "192.168.111.1",
"link-id": "10.169.196.241",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "192.168.111.1",
"link-id": "10.169.196.241",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "192.168.111.0",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "192.168.111.0",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "192.168.4.1",
"link-id": "10.169.196.241",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "192.168.4.1",
"link-id": "10.169.196.241",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "192.168.4.0",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "192.168.4.0",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
],
"ospf-lsa-topology": {
"ospf-lsa-topology-link": [
{
"link-type-name": "PointToPoint",
"ospf-lsa-topology-link-metric": "1",
"ospf-lsa-topology-link-node-id": "10.169.196.241",
"ospf-lsa-topology-link-state": "Bidirectional",
}
],
"ospf-topology-id": "0",
"ospf-topology-name": "default",
},
},
"sequence-number": "0x80004d2d",
},
{
"advertising-router": "10.100.5.5",
"age": "1760",
"checksum": "0xa1c",
"lsa-id": "10.100.5.5",
"lsa-length": "60",
"lsa-type": "Router",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:30:40"},
"expiration-time": {"#text": "00:30:40"},
"installation-time": {"#text": "00:29:13"},
"lsa-change-count": "38",
"lsa-changed-time": {"#text": "4w6d 19:31:25"},
"send-time": {"#text": "00:29:11"},
},
"ospf-router-lsa": {
"bits": "0x0",
"link-count": "3",
"ospf-link": [
{
"link-data": "255.255.255.255",
"link-id": "10.100.5.5",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.255",
"link-id": "10.100.5.5",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "10.16.0.2",
"link-id": "10.34.2.250",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "10.16.0.2",
"link-id": "10.34.2.250",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.16.0.0",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.16.0.0",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
],
"ospf-lsa-topology": {
"ospf-lsa-topology-link": [
{
"link-type-name": "PointToPoint",
"ospf-lsa-topology-link-metric": "1",
"ospf-lsa-topology-link-node-id": "10.34.2.250",
"ospf-lsa-topology-link-state": "Bidirectional",
}
],
"ospf-topology-id": "0",
"ospf-topology-name": "default",
},
},
"sequence-number": "0x800019d7",
},
{
"advertising-router": "10.19.198.239",
"age": "913",
"checksum": "0x95bf",
"lsa-id": "10.19.198.239",
"lsa-length": "96",
"lsa-type": "Router",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:44:47"},
"expiration-time": {"#text": "00:44:47"},
"installation-time": {"#text": "00:15:12"},
"lsa-change-count": "45",
"lsa-changed-time": {"#text": "1w0d 19:55:00"},
"send-time": {"#text": "00:15:10"},
},
"ospf-router-lsa": {
"bits": "0x0",
"link-count": "6",
"ospf-link": [
{
"link-data": "255.255.255.255",
"link-id": "10.19.198.239",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.255",
"link-id": "10.19.198.239",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "10.19.198.30",
"link-id": "10.189.5.253",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "10.19.198.30",
"link-id": "10.189.5.253",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.19.198.28",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.19.198.28",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "10.19.198.26",
"link-id": "10.189.5.252",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "10.19.198.26",
"link-id": "10.189.5.252",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.19.198.24",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.19.198.24",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.15.0.0",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.15.0.0",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1",
"ospf-topology-count": "0",
},
],
"ospf-lsa-topology": {
"ospf-lsa-topology-link": [
{
"link-type-name": "PointToPoint",
"ospf-lsa-topology-link-metric": "1000",
"ospf-lsa-topology-link-node-id": "10.189.5.252",
"ospf-lsa-topology-link-state": "Bidirectional",
},
{
"link-type-name": "PointToPoint",
"ospf-lsa-topology-link-metric": "1000",
"ospf-lsa-topology-link-node-id": "10.189.5.253",
"ospf-lsa-topology-link-state": "Bidirectional",
},
],
"ospf-topology-id": "0",
"ospf-topology-name": "default",
},
},
"sequence-number": "0x80000442",
},
{
"advertising-router": "10.34.2.250",
"age": "1027",
"checksum": "0x26f6",
"lsa-id": "10.34.2.250",
"lsa-length": "144",
"lsa-type": "Router",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:42:53"},
"expiration-time": {"#text": "00:42:53"},
"installation-time": {"#text": "00:17:01"},
"lsa-change-count": "1911",
"lsa-changed-time": {"#text": "2w0d 00:51:24"},
"send-time": {"#text": "00:16:59"},
},
"ospf-router-lsa": {
"bits": "0x2",
"link-count": "10",
"ospf-link": [
{
"link-data": "10.34.2.201",
"link-id": "10.34.2.251",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "5",
"ospf-topology-count": "0",
},
{
"link-data": "10.34.2.201",
"link-id": "10.34.2.251",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "5",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.34.2.200",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "5",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.34.2.200",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "5",
"ospf-topology-count": "0",
},
{
"link-data": "10.169.14.158",
"link-id": "10.169.14.240",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "100",
"ospf-topology-count": "0",
},
{
"link-data": "10.169.14.158",
"link-id": "10.169.14.240",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "100",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.169.14.156",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "100",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.169.14.156",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "100",
"ospf-topology-count": "0",
},
{
"link-data": "10.169.196.213",
"link-id": "10.169.196.241",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "10.169.196.213",
"link-id": "10.169.196.241",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.169.196.212",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.169.196.212",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "10.16.0.1",
"link-id": "10.100.5.5",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "10.16.0.1",
"link-id": "10.100.5.5",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.16.0.0",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.16.0.0",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "192.168.220.0",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "192.168.220.0",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.255",
"link-id": "10.34.2.250",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "0",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.255",
"link-id": "10.34.2.250",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "0",
"ospf-topology-count": "0",
},
],
"ospf-lsa-topology": {
"ospf-lsa-topology-link": [
{
"link-type-name": "PointToPoint",
"ospf-lsa-topology-link-metric": "1000",
"ospf-lsa-topology-link-node-id": "10.100.5.5",
"ospf-lsa-topology-link-state": "Bidirectional",
},
{
"link-type-name": "PointToPoint",
"ospf-lsa-topology-link-metric": "1000",
"ospf-lsa-topology-link-node-id": "10.169.196.241",
"ospf-lsa-topology-link-state": "Bidirectional",
},
{
"link-type-name": "PointToPoint",
"ospf-lsa-topology-link-metric": "100",
"ospf-lsa-topology-link-node-id": "10.169.14.240",
"ospf-lsa-topology-link-state": "Bidirectional",
},
{
"link-type-name": "PointToPoint",
"ospf-lsa-topology-link-metric": "5",
"ospf-lsa-topology-link-node-id": "10.34.2.251",
"ospf-lsa-topology-link-state": "Bidirectional",
},
],
"ospf-topology-id": "0",
"ospf-topology-name": "default",
},
},
"sequence-number": "0x8000205a",
},
{
"advertising-router": "10.34.2.251",
"age": "858",
"checksum": "0x1022",
"lsa-id": "10.34.2.251",
"lsa-length": "108",
"lsa-type": "Router",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:45:42"},
"expiration-time": {"#text": "00:45:42"},
"installation-time": {"#text": "00:14:09"},
"lsa-change-count": "1258",
"lsa-changed-time": {"#text": "2w0d 00:51:22"},
"send-time": {"#text": "00:14:07"},
},
"ospf-router-lsa": {
"bits": "0x2",
"link-count": "7",
"ospf-link": [
{
"link-data": "10.34.2.202",
"link-id": "10.34.2.250",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "5",
"ospf-topology-count": "0",
},
{
"link-data": "10.34.2.202",
"link-id": "10.34.2.250",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "5",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.34.2.200",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "5",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.34.2.200",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "5",
"ospf-topology-count": "0",
},
{
"link-data": "10.169.14.34",
"link-id": "10.169.14.241",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "120",
"ospf-topology-count": "0",
},
{
"link-data": "10.169.14.34",
"link-id": "10.169.14.241",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "120",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.169.14.32",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "120",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.169.14.32",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "120",
"ospf-topology-count": "0",
},
{
"link-data": "10.169.196.217",
"link-id": "10.169.196.241",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "10.169.196.217",
"link-id": "10.169.196.241",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.169.196.216",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.169.196.216",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.255",
"link-id": "10.34.2.251",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "0",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.255",
"link-id": "10.34.2.251",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "0",
"ospf-topology-count": "0",
},
],
"ospf-lsa-topology": {
"ospf-lsa-topology-link": [
{
"link-type-name": "PointToPoint",
"ospf-lsa-topology-link-metric": "1000",
"ospf-lsa-topology-link-node-id": "10.169.196.241",
"ospf-lsa-topology-link-state": "Bidirectional",
},
{
"link-type-name": "PointToPoint",
"ospf-lsa-topology-link-metric": "120",
"ospf-lsa-topology-link-node-id": "10.169.14.241",
"ospf-lsa-topology-link-state": "Bidirectional",
},
{
"link-type-name": "PointToPoint",
"ospf-lsa-topology-link-metric": "5",
"ospf-lsa-topology-link-node-id": "10.34.2.250",
"ospf-lsa-topology-link-state": "Bidirectional",
},
],
"ospf-topology-id": "0",
"ospf-topology-name": "default",
},
},
"sequence-number": "0x80001dde",
},
{
"advertising-router": "10.34.2.250",
"age": "1718",
"checksum": "0x1e4",
"lsa-id": "10.1.0.4",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:31:21"},
"expiration-time": {"#text": "00:31:22"},
"installation-time": {"#text": "00:28:32"},
"lsa-change-count": "5",
"lsa-changed-time": {"#text": "3w0d 08:18:02"},
"send-time": {"#text": "00:28:30"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.169.14.240",
"10.169.14.158",
"10.169.14.157",
"100",
"1000Mbps",
"1000Mbps",
"Priority "
"0, "
"1000Mbps\n"
"Priority "
"1, "
"1000Mbps\n"
"Priority "
"2, "
"1000Mbps\n"
"Priority "
"3, "
"1000Mbps\n"
"Priority "
"4, "
"1000Mbps\n"
"Priority "
"5, "
"1000Mbps\n"
"Priority "
"6, "
"1000Mbps\n"
"Priority "
"7, "
"1000Mbps\n",
"Local 334, Remote 0",
"4",
],
"tlv-length": [
"1",
"4",
"4",
"4",
"4",
"4",
"4",
"32",
"8",
"4",
],
"tlv-type-name": [
"Linktype",
"LinkID",
"LocIfAdr",
"RemIfAdr",
"TEMetric",
"MaxBW",
"MaxRsvBW",
"UnRsvBW",
"LinkLocalRemoteIdentifier",
"Color",
],
"tlv-type-value": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"11",
"9",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "112",
"tlv-type-name": "Link",
"tlv-type-value": "2",
},
},
"sequence-number": "0x8000029e",
},
{
"advertising-router": "10.34.2.251",
"age": "1517",
"checksum": "0x29c0",
"lsa-id": "10.1.0.4",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:34:43"},
"expiration-time": {"#text": "00:34:43"},
"installation-time": {"#text": "00:25:08"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "3w0d 08:09:50"},
"send-time": {"#text": "00:25:06"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.169.14.241",
"10.169.14.34",
"10.169.14.33",
"90",
"1000Mbps",
"1000Mbps",
"Priority "
"0, "
"1000Mbps\n"
"Priority "
"1, "
"1000Mbps\n"
"Priority "
"2, "
"1000Mbps\n"
"Priority "
"3, "
"1000Mbps\n"
"Priority "
"4, "
"1000Mbps\n"
"Priority "
"5, "
"1000Mbps\n"
"Priority "
"6, "
"1000Mbps\n"
"Priority "
"7, "
"1000Mbps\n",
"Local 334, Remote 0",
"6",
],
"tlv-length": [
"1",
"4",
"4",
"4",
"4",
"4",
"4",
"32",
"8",
"4",
],
"tlv-type-name": [
"Linktype",
"LinkID",
"LocIfAdr",
"RemIfAdr",
"TEMetric",
"MaxBW",
"MaxRsvBW",
"UnRsvBW",
"LinkLocalRemoteIdentifier",
"Color",
],
"tlv-type-value": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"11",
"9",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "112",
"tlv-type-name": "Link",
"tlv-type-value": "2",
},
},
"sequence-number": "0x80000299",
},
{
"advertising-router": "10.169.14.240",
"age": "1529",
"checksum": "0xb606",
"lsa-id": "10.1.0.4",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:34:31"},
"expiration-time": {"#text": "00:34:31"},
"installation-time": {"#text": "00:25:26"},
"lsa-change-count": "6",
"lsa-changed-time": {"#text": "3w3d 07:23:05"},
"send-time": {"#text": "00:25:24"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.189.5.252",
"10.169.14.121",
"10.169.14.122",
"100",
"1000Mbps",
"1000Mbps",
"Priority "
"0, "
"1000Mbps\n"
"Priority "
"1, "
"1000Mbps\n"
"Priority "
"2, "
"1000Mbps\n"
"Priority "
"3, "
"1000Mbps\n"
"Priority "
"4, "
"1000Mbps\n"
"Priority "
"5, "
"1000Mbps\n"
"Priority "
"6, "
"1000Mbps\n"
"Priority "
"7, "
"1000Mbps\n",
"Local 334, Remote 0",
"10",
],
"tlv-length": [
"1",
"4",
"4",
"4",
"4",
"4",
"4",
"32",
"8",
"4",
],
"tlv-type-name": [
"Linktype",
"LinkID",
"LocIfAdr",
"RemIfAdr",
"TEMetric",
"MaxBW",
"MaxRsvBW",
"UnRsvBW",
"LinkLocalRemoteIdentifier",
"Color",
],
"tlv-type-value": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"11",
"9",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "112",
"tlv-type-name": "Link",
"tlv-type-value": "2",
},
},
"sequence-number": "0x800003f8",
},
{
"advertising-router": "10.169.14.241",
"age": "2418",
"checksum": "0x694d",
"lsa-id": "10.1.0.4",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:19:42"},
"expiration-time": {"#text": "00:19:42"},
"installation-time": {"#text": "00:40:12"},
"lsa-change-count": "35",
"lsa-changed-time": {"#text": "3w3d 07:23:04"},
"send-time": {"#text": "00:40:10"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.189.5.253",
"10.169.14.129",
"10.169.14.130",
"70",
"1000Mbps",
"1000Mbps",
"Priority "
"0, "
"1000Mbps\n"
"Priority "
"1, "
"1000Mbps\n"
"Priority "
"2, "
"1000Mbps\n"
"Priority "
"3, "
"1000Mbps\n"
"Priority "
"4, "
"1000Mbps\n"
"Priority "
"5, "
"1000Mbps\n"
"Priority "
"6, "
"1000Mbps\n"
"Priority "
"7, "
"1000Mbps\n",
"Local 334, Remote 0",
"6",
],
"tlv-length": [
"1",
"4",
"4",
"4",
"4",
"4",
"4",
"32",
"8",
"4",
],
"tlv-type-name": [
"Linktype",
"LinkID",
"LocIfAdr",
"RemIfAdr",
"TEMetric",
"MaxBW",
"MaxRsvBW",
"UnRsvBW",
"LinkLocalRemoteIdentifier",
"Color",
],
"tlv-type-value": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"11",
"9",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "112",
"tlv-type-name": "Link",
"tlv-type-value": "2",
},
},
"sequence-number": "0x800013fe",
},
{
"advertising-router": "10.189.5.252",
"age": "2702",
"checksum": "0xb804",
"lsa-id": "10.1.0.4",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:14:58"},
"expiration-time": {"#text": "00:14:58"},
"generation-timer": {"#text": "00:00:19"},
"installation-time": {"#text": "00:45:02"},
"lsa-change-count": "3",
"lsa-changed-time": {"#text": "3w3d 07:23:03"},
"send-time": {"#text": "00:45:00"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.169.14.240",
"10.169.14.122",
"10.169.14.121",
"100",
"1000Mbps",
"1000Mbps",
"Priority "
"0, "
"1000Mbps\n"
"Priority "
"1, "
"1000Mbps\n"
"Priority "
"2, "
"1000Mbps\n"
"Priority "
"3, "
"1000Mbps\n"
"Priority "
"4, "
"1000Mbps\n"
"Priority "
"5, "
"1000Mbps\n"
"Priority "
"6, "
"1000Mbps\n"
"Priority "
"7, "
"1000Mbps\n",
"Local 334, Remote 0",
"10",
],
"tlv-length": [
"1",
"4",
"4",
"4",
"4",
"4",
"4",
"32",
"8",
"4",
],
"tlv-type-name": [
"Linktype",
"LinkID",
"LocIfAdr",
"RemIfAdr",
"TEMetric",
"MaxBW",
"MaxRsvBW",
"UnRsvBW",
"LinkLocalRemoteIdentifier",
"Color",
],
"tlv-type-value": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"11",
"9",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "112",
"tlv-type-name": "Link",
"tlv-type-value": "2",
},
},
"our-entry": True,
"sequence-number": "0x800013e8",
},
{
"advertising-router": "10.189.5.253",
"age": "209",
"checksum": "0x4cd0",
"lsa-id": "10.1.0.4",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:56:31"},
"expiration-time": {"#text": "00:56:31"},
"installation-time": {"#text": "00:03:26"},
"lsa-change-count": "15",
"lsa-changed-time": {"#text": "3w3d 07:23:04"},
"send-time": {"#text": "00:03:24"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.169.14.241",
"10.169.14.130",
"10.169.14.129",
"70",
"1000Mbps",
"1000Mbps",
"Priority "
"0, "
"1000Mbps\n"
"Priority "
"1, "
"1000Mbps\n"
"Priority "
"2, "
"1000Mbps\n"
"Priority "
"3, "
"1000Mbps\n"
"Priority "
"4, "
"1000Mbps\n"
"Priority "
"5, "
"1000Mbps\n"
"Priority "
"6, "
"1000Mbps\n"
"Priority "
"7, "
"1000Mbps\n",
"Local 334, Remote 0",
"6",
],
"tlv-length": [
"1",
"4",
"4",
"4",
"4",
"4",
"4",
"32",
"8",
"4",
],
"tlv-type-name": [
"Linktype",
"LinkID",
"LocIfAdr",
"RemIfAdr",
"TEMetric",
"MaxBW",
"MaxRsvBW",
"UnRsvBW",
"LinkLocalRemoteIdentifier",
"Color",
],
"tlv-type-value": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"11",
"9",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "112",
"tlv-type-name": "Link",
"tlv-type-value": "2",
},
},
"sequence-number": "0x80000f9c",
},
{
"advertising-router": "10.34.2.250",
"age": "580",
"checksum": "0x5e9d",
"lsa-id": "10.1.0.5",
"lsa-length": "136",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:50:20"},
"expiration-time": {"#text": "00:50:20"},
"installation-time": {"#text": "00:09:34"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "2w0d 00:51:24"},
"send-time": {"#text": "00:09:32"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.169.196.241",
"10.169.196.213",
"10.169.196.214",
"1000",
"1000Mbps",
"1000Mbps",
"Priority "
"0, "
"1000Mbps\n"
"Priority "
"1, "
"1000Mbps\n"
"Priority "
"2, "
"1000Mbps\n"
"Priority "
"3, "
"1000Mbps\n"
"Priority "
"4, "
"1000Mbps\n"
"Priority "
"5, "
"1000Mbps\n"
"Priority "
"6, "
"1000Mbps\n"
"Priority "
"7, "
"1000Mbps\n",
"Local 337, Remote 0",
"2",
],
"tlv-length": [
"1",
"4",
"4",
"4",
"4",
"4",
"4",
"32",
"8",
"4",
],
"tlv-type-name": [
"Linktype",
"LinkID",
"LocIfAdr",
"RemIfAdr",
"TEMetric",
"MaxBW",
"MaxRsvBW",
"UnRsvBW",
"LinkLocalRemoteIdentifier",
"Color",
],
"tlv-type-value": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"11",
"9",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "112",
"tlv-type-name": "Link",
"tlv-type-value": "2",
},
},
"sequence-number": "0x800001b5",
},
{
"advertising-router": "10.100.5.5",
"age": "1760",
"checksum": "0x6c5a",
"lsa-id": "10.49.0.1",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x20",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:30:40"},
"expiration-time": {"#text": "00:30:40"},
"installation-time": {"#text": "00:29:13"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "21w5d 22:48:11"},
"send-time": {"#text": "00:29:11"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"32",
"0",
"0x40",
"10.100.5.5",
"0x00",
"0",
"0",
"1000",
],
"tlv-length": [
"1",
"1",
"1",
"1",
"32",
"8",
"1",
"1",
"1",
"4",
],
"tlv-type-name": [
"Route Type",
"Prefix Length",
"AF",
"Flags",
"Prefix",
"Prefix Sid",
"Flags",
"MT ID",
"Algorithm",
"SID",
],
"tlv-type-value": [
"1",
"2",
"3",
"4",
"5",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "20",
"tlv-type-name": "Extended Prefix",
"tlv-type-value": "1",
},
},
"sequence-number": "0x800019ac",
},
{
"advertising-router": "10.34.2.250",
"age": "1027",
"checksum": "0x7fa7",
"lsa-id": "10.49.0.1",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:42:53"},
"expiration-time": {"#text": "00:42:53"},
"installation-time": {"#text": "00:17:01"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "30w0d 01:32:34"},
"send-time": {"#text": "00:16:59"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"32",
"0",
"0x40",
"10.34.2.250",
"0x00",
"0",
"0",
"61",
],
"tlv-length": [
"1",
"1",
"1",
"1",
"32",
"8",
"1",
"1",
"1",
"4",
],
"tlv-type-name": [
"Route Type",
"Prefix Length",
"AF",
"Flags",
"Prefix",
"Prefix Sid",
"Flags",
"MT ID",
"Algorithm",
"SID",
],
"tlv-type-value": [
"1",
"2",
"3",
"4",
"5",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "20",
"tlv-type-name": "Extended Prefix",
"tlv-type-value": "1",
},
},
"sequence-number": "0x80001fa9",
},
{
"advertising-router": "10.34.2.251",
"age": "858",
"checksum": "0x6ce",
"lsa-id": "10.49.0.1",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:45:42"},
"expiration-time": {"#text": "00:45:42"},
"installation-time": {"#text": "00:14:09"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "30w0d 01:32:36"},
"send-time": {"#text": "00:14:07"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"32",
"0",
"0x40",
"10.34.2.251",
"0x00",
"0",
"0",
"62",
],
"tlv-length": [
"1",
"1",
"1",
"1",
"32",
"8",
"1",
"1",
"1",
"4",
],
"tlv-type-name": [
"Route Type",
"Prefix Length",
"AF",
"Flags",
"Prefix",
"Prefix Sid",
"Flags",
"MT ID",
"Algorithm",
"SID",
],
"tlv-type-value": [
"1",
"2",
"3",
"4",
"5",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "20",
"tlv-type-name": "Extended Prefix",
"tlv-type-value": "1",
},
},
"sequence-number": "0x80001cfb",
},
{
"advertising-router": "10.169.14.240",
"age": "173",
"checksum": "0x97ab",
"lsa-id": "10.49.0.1",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:57:06"},
"expiration-time": {"#text": "00:57:07"},
"installation-time": {"#text": "00:02:50"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "30w0d 01:32:37"},
"send-time": {"#text": "00:02:48"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"32",
"0",
"0x40",
"10.169.14.240",
"0x00",
"0",
"0",
"51",
],
"tlv-length": [
"1",
"1",
"1",
"1",
"32",
"8",
"1",
"1",
"1",
"4",
],
"tlv-type-name": [
"Route Type",
"Prefix Length",
"AF",
"Flags",
"Prefix",
"Prefix Sid",
"Flags",
"MT ID",
"Algorithm",
"SID",
],
"tlv-type-value": [
"1",
"2",
"3",
"4",
"5",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "20",
"tlv-type-name": "Extended Prefix",
"tlv-type-value": "1",
},
},
"sequence-number": "0x80001bc2",
},
{
"advertising-router": "10.169.14.241",
"age": "1759",
"checksum": "0x6433",
"lsa-id": "10.49.0.1",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:30:41"},
"expiration-time": {"#text": "00:30:41"},
"installation-time": {"#text": "00:29:13"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "30w0d 01:32:36"},
"send-time": {"#text": "00:29:11"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"32",
"0",
"0x40",
"10.169.14.241",
"0x00",
"0",
"0",
"52",
],
"tlv-length": [
"1",
"1",
"1",
"1",
"32",
"8",
"1",
"1",
"1",
"4",
],
"tlv-type-name": [
"Route Type",
"Prefix Length",
"AF",
"Flags",
"Prefix",
"Prefix Sid",
"Flags",
"MT ID",
"Algorithm",
"SID",
],
"tlv-type-value": [
"1",
"2",
"3",
"4",
"5",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "20",
"tlv-type-name": "Extended Prefix",
"tlv-type-value": "1",
},
},
"sequence-number": "0x80001f67",
},
{
"advertising-router": "10.189.5.252",
"age": "1899",
"checksum": "0x8c7f",
"lsa-id": "10.49.0.1",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:28:20"},
"expiration-time": {"#text": "00:28:21"},
"generation-timer": {"#text": "00:18:20"},
"installation-time": {"#text": "00:31:39"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "30w0d 01:46:13"},
"send-time": {"#text": "00:31:37"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"32",
"0",
"0x40",
"10.189.5.252",
"0x00",
"0",
"0",
"71",
],
"tlv-length": [
"1",
"1",
"1",
"1",
"32",
"8",
"1",
"1",
"1",
"4",
],
"tlv-type-name": [
"Route Type",
"Prefix Length",
"AF",
"Flags",
"Prefix",
"Prefix Sid",
"Flags",
"MT ID",
"Algorithm",
"SID",
],
"tlv-type-value": [
"1",
"2",
"3",
"4",
"5",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "20",
"tlv-type-name": "Extended Prefix",
"tlv-type-value": "1",
},
},
"our-entry": True,
"sequence-number": "0x80001b9e",
},
{
"advertising-router": "10.189.5.253",
"age": "1980",
"checksum": "0xe3bf",
"lsa-id": "10.49.0.1",
"lsa-length": "44",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:26:59"},
"expiration-time": {"#text": "00:27:00"},
"installation-time": {"#text": "00:32:57"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "30w0d 01:32:43"},
"send-time": {"#text": "00:32:55"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"32",
"0",
"0x40",
"10.189.5.253",
"0x00",
"0",
"0",
"72",
],
"tlv-length": [
"1",
"1",
"1",
"1",
"32",
"8",
"1",
"1",
"1",
"4",
],
"tlv-type-name": [
"Route Type",
"Prefix Length",
"AF",
"Flags",
"Prefix",
"Prefix Sid",
"Flags",
"MT ID",
"Algorithm",
"SID",
],
"tlv-type-value": [
"1",
"2",
"3",
"4",
"5",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "20",
"tlv-type-name": "Extended Prefix",
"tlv-type-value": "1",
},
},
"sequence-number": "0x80001b04",
},
{
"advertising-router": "10.34.2.250",
"age": "367",
"checksum": "0x39a3",
"lsa-id": "10.64.0.1",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:53:53"},
"expiration-time": {"#text": "00:53:53"},
"installation-time": {"#text": "00:06:01"},
"lsa-change-count": "285",
"lsa-changed-time": {"#text": "2w0d 00:50:30"},
"send-time": {"#text": "00:05:59"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.34.2.251",
"10.34.2.201",
"0xe0",
"0",
"0",
"142149",
"0x60",
"0",
"0",
"142150",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "36",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"sequence-number": "0x800004f9",
},
{
"advertising-router": "10.169.14.241",
"age": "1016",
"checksum": "0x7002",
"lsa-id": "10.64.0.1",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:43:04"},
"expiration-time": {"#text": "00:43:04"},
"installation-time": {"#text": "00:16:50"},
"lsa-change-count": "50",
"lsa-changed-time": {"#text": "2w6d 19:46:47"},
"send-time": {"#text": "00:16:48"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.169.14.240",
"10.169.14.18",
"0xe0",
"0",
"0",
"37408",
"0x60",
"0",
"0",
"37409",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "36",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"sequence-number": "0x80000311",
},
{
"advertising-router": "10.189.5.253",
"age": "2521",
"checksum": "0x6915",
"lsa-id": "10.64.0.1",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:17:59"},
"expiration-time": {"#text": "00:17:59"},
"installation-time": {"#text": "00:41:58"},
"lsa-change-count": "31",
"lsa-changed-time": {"#text": "2w6d 20:01:45"},
"send-time": {"#text": "00:41:56"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.169.14.241",
"10.169.14.130",
"0xe0",
"0",
"0",
"1912",
"0x60",
"0",
"0",
"1913",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "36",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"sequence-number": "0x8000030a",
},
{
"advertising-router": "10.169.14.241",
"age": "790",
"checksum": "0x7271",
"lsa-id": "10.64.0.2",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:46:49"},
"expiration-time": {"#text": "00:46:50"},
"installation-time": {"#text": "00:13:04"},
"lsa-change-count": "47",
"lsa-changed-time": {"#text": "2w6d 18:58:08"},
"send-time": {"#text": "00:13:02"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.189.5.253",
"10.169.14.129",
"0xe0",
"0",
"0",
"1647",
"0x60",
"0",
"0",
"1648",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "36",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"sequence-number": "0x80000305",
},
{
"advertising-router": "10.169.14.241",
"age": "565",
"checksum": "0x7248",
"lsa-id": "10.64.0.3",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:50:35"},
"expiration-time": {"#text": "00:50:35"},
"installation-time": {"#text": "00:09:19"},
"lsa-change-count": "7",
"lsa-changed-time": {"#text": "2w6d 18:14:24"},
"send-time": {"#text": "00:09:17"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.34.2.251",
"10.169.14.33",
"0xe0",
"0",
"0",
"1649",
"0x60",
"0",
"0",
"1650",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "36",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"sequence-number": "0x8000029a",
},
{
"advertising-router": "10.189.5.253",
"age": "947",
"checksum": "0x34eb",
"lsa-id": "10.64.0.3",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:44:13"},
"expiration-time": {"#text": "00:44:13"},
"installation-time": {"#text": "00:15:44"},
"lsa-change-count": "17",
"lsa-changed-time": {"#text": "2w0d 00:43:19"},
"send-time": {"#text": "00:15:42"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.189.5.252",
"10.189.5.94",
"0xe0",
"0",
"0",
"13988",
"0x60",
"0",
"0",
"13989",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "36",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"sequence-number": "0x800002db",
},
{
"advertising-router": "10.189.5.253",
"age": "2251",
"checksum": "0x31be",
"lsa-id": "10.64.0.4",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:22:29"},
"expiration-time": {"#text": "00:22:29"},
"installation-time": {"#text": "00:37:28"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "2w0d 00:51:02"},
"send-time": {"#text": "00:37:26"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.19.198.239",
"10.19.198.29",
"0xe0",
"0",
"0",
"102794",
"0x60",
"0",
"0",
"102795",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "36",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"sequence-number": "0x800001bb",
},
{
"advertising-router": "10.100.5.5",
"age": "1760",
"checksum": "0x4de2",
"lsa-id": "10.64.0.6",
"lsa-length": "56",
"lsa-type": "OpaqArea",
"options": "0x20",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:30:40"},
"expiration-time": {"#text": "00:30:40"},
"installation-time": {"#text": "00:29:13"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "21w5d 22:48:11"},
"send-time": {"#text": "00:29:11"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.34.2.250",
"10.16.0.2",
"0x60",
"0",
"0",
"24000",
"0x60",
"0",
"0",
"24000",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"4",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Invalid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"32768",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "32",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"sequence-number": "0x800019bf",
},
{
"advertising-router": "10.34.2.250",
"age": "2871",
"checksum": "0xb9a6",
"lsa-id": "10.64.0.7",
"lsa-length": "48",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:12:09"},
"expiration-time": {"#text": "00:12:09"},
"installation-time": {"#text": "00:47:45"},
"lsa-change-count": "123",
"lsa-changed-time": {"#text": "2w0d 00:42:10"},
"send-time": {"#text": "00:47:43"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.100.5.5",
"10.16.0.1",
"0xe0",
"0",
"0",
"207722",
],
"tlv-length": ["1", "4", "4", "7", "1", "1", "1", "3"],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": ["1", "2", "3", "2", "1", "2", "3", "4"],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "24",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"sequence-number": "0x8000046b",
},
{
"advertising-router": "10.34.2.251",
"age": "1297",
"checksum": "0x6a96",
"lsa-id": "10.64.0.7",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:38:23"},
"expiration-time": {"#text": "00:38:23"},
"installation-time": {"#text": "00:21:28"},
"lsa-change-count": "243",
"lsa-changed-time": {"#text": "2w6d 19:46:37"},
"send-time": {"#text": "00:21:26"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.34.2.250",
"10.34.2.202",
"0xe0",
"0",
"0",
"112778",
"0x60",
"0",
"0",
"112779",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "36",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"sequence-number": "0x800004de",
},
{
"advertising-router": "10.19.198.239",
"age": "913",
"checksum": "0xb34a",
"lsa-id": "10.64.0.17",
"lsa-length": "104",
"lsa-type": "OpaqArea",
"options": "0x20",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:44:47"},
"expiration-time": {"#text": "00:44:47"},
"installation-time": {"#text": "00:15:12"},
"lsa-change-count": "2",
"lsa-changed-time": {"#text": "2w0d 00:51:03"},
"send-time": {"#text": "00:15:10"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.189.5.252",
"10.19.198.26",
"0x60",
"0",
"0",
"1730",
"0xe0",
"0",
"0",
"1729",
"0xe0",
"0",
"0",
"1729",
"0xe0",
"0",
"0",
"1729",
"0xe0",
"0",
"0",
"1729",
"0xe0",
"0",
"0",
"1729",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
"4",
"1",
"1",
"1",
"3",
"4",
"1",
"1",
"1",
"3",
"8",
"1",
"1",
"1",
"3",
"12",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Invalid",
"Flags",
"MT ID",
"Weight",
"Label",
"Invalid",
"Flags",
"MT ID",
"Weight",
"Label",
"Invalid",
"Flags",
"MT ID",
"Weight",
"Label",
"Invalid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
"8",
"1",
"2",
"3",
"4",
"32768",
"1",
"2",
"3",
"4",
"9",
"1",
"2",
"3",
"4",
"32769",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "80",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"sequence-number": "0x8000025d",
},
{
"advertising-router": "10.169.196.241",
"age": "812",
"checksum": "0x3e3c",
"lsa-id": "10.64.0.17",
"lsa-length": "104",
"lsa-type": "OpaqArea",
"options": "0x20",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:46:27"},
"expiration-time": {"#text": "00:46:28"},
"installation-time": {"#text": "00:13:25"},
"lsa-change-count": "2",
"lsa-changed-time": {"#text": "2w0d 00:51:24"},
"send-time": {"#text": "00:13:23"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.34.2.250",
"10.169.196.214",
"0x60",
"0",
"0",
"223815",
"0xe0",
"0",
"0",
"223843",
"0xe0",
"0",
"0",
"223843",
"0xe0",
"0",
"0",
"223843",
"0xe0",
"0",
"0",
"223843",
"0xe0",
"0",
"0",
"223843",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
"4",
"1",
"1",
"1",
"3",
"4",
"1",
"1",
"1",
"3",
"8",
"1",
"1",
"1",
"3",
"12",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Invalid",
"Flags",
"MT ID",
"Weight",
"Label",
"Invalid",
"Flags",
"MT ID",
"Weight",
"Label",
"Invalid",
"Flags",
"MT ID",
"Weight",
"Label",
"Invalid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
"8",
"1",
"2",
"3",
"4",
"32768",
"1",
"2",
"3",
"4",
"9",
"1",
"2",
"3",
"4",
"32769",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "80",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"sequence-number": "0x8000025d",
},
{
"advertising-router": "10.19.198.239",
"age": "913",
"checksum": "0xb938",
"lsa-id": "10.64.0.18",
"lsa-length": "104",
"lsa-type": "OpaqArea",
"options": "0x20",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:44:47"},
"expiration-time": {"#text": "00:44:47"},
"installation-time": {"#text": "00:15:12"},
"lsa-change-count": "2",
"lsa-changed-time": {"#text": "2w0d 00:51:02"},
"send-time": {"#text": "00:15:10"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.189.5.253",
"10.19.198.30",
"0x60",
"0",
"0",
"1728",
"0xe0",
"0",
"0",
"1727",
"0xe0",
"0",
"0",
"1727",
"0xe0",
"0",
"0",
"1727",
"0xe0",
"0",
"0",
"1727",
"0xe0",
"0",
"0",
"1727",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
"4",
"1",
"1",
"1",
"3",
"4",
"1",
"1",
"1",
"3",
"8",
"1",
"1",
"1",
"3",
"12",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Invalid",
"Flags",
"MT ID",
"Weight",
"Label",
"Invalid",
"Flags",
"MT ID",
"Weight",
"Label",
"Invalid",
"Flags",
"MT ID",
"Weight",
"Label",
"Invalid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
"8",
"1",
"2",
"3",
"4",
"32768",
"1",
"2",
"3",
"4",
"9",
"1",
"2",
"3",
"4",
"32769",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "80",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"sequence-number": "0x8000025d",
},
{
"advertising-router": "10.169.196.241",
"age": "812",
"checksum": "0x6fdb",
"lsa-id": "10.64.0.18",
"lsa-length": "104",
"lsa-type": "OpaqArea",
"options": "0x20",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:46:27"},
"expiration-time": {"#text": "00:46:28"},
"installation-time": {"#text": "00:13:25"},
"lsa-change-count": "2",
"lsa-changed-time": {"#text": "2w0d 00:51:22"},
"send-time": {"#text": "00:13:23"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.34.2.251",
"10.169.196.218",
"0x60",
"0",
"0",
"223844",
"0xe0",
"0",
"0",
"223845",
"0xe0",
"0",
"0",
"223845",
"0xe0",
"0",
"0",
"223845",
"0xe0",
"0",
"0",
"223845",
"0xe0",
"0",
"0",
"223845",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
"4",
"1",
"1",
"1",
"3",
"4",
"1",
"1",
"1",
"3",
"8",
"1",
"1",
"1",
"3",
"12",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Invalid",
"Flags",
"MT ID",
"Weight",
"Label",
"Invalid",
"Flags",
"MT ID",
"Weight",
"Label",
"Invalid",
"Flags",
"MT ID",
"Weight",
"Label",
"Invalid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
"8",
"1",
"2",
"3",
"4",
"32768",
"1",
"2",
"3",
"4",
"9",
"1",
"2",
"3",
"4",
"32769",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "80",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"sequence-number": "0x8000025d",
},
{
"advertising-router": "10.34.2.251",
"age": "114",
"checksum": "0xe70a",
"lsa-id": "10.64.0.31",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:58:06"},
"expiration-time": {"#text": "00:58:06"},
"installation-time": {"#text": "00:01:47"},
"lsa-change-count": "8",
"lsa-changed-time": {"#text": "2w0d 00:43:41"},
"send-time": {"#text": "00:01:45"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.169.14.241",
"10.169.14.34",
"0xe0",
"0",
"0",
"15022",
"0x60",
"0",
"0",
"15023",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "36",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"sequence-number": "0x8000029b",
},
{
"advertising-router": "10.34.2.251",
"age": "1078",
"checksum": "0xe396",
"lsa-id": "10.64.0.32",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:42:02"},
"expiration-time": {"#text": "00:42:02"},
"installation-time": {"#text": "00:17:50"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "2w0d 00:51:22"},
"send-time": {"#text": "00:17:48"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.169.196.241",
"10.169.196.217",
"0xe0",
"0",
"0",
"259074",
"0x60",
"0",
"0",
"259075",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "36",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"sequence-number": "0x800001b5",
},
{
"advertising-router": "10.34.2.250",
"age": "1949",
"checksum": "0xffb8",
"lsa-id": "10.64.0.37",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:27:31"},
"expiration-time": {"#text": "00:27:31"},
"installation-time": {"#text": "00:32:23"},
"lsa-change-count": "7",
"lsa-changed-time": {"#text": "2w0d 00:27:01"},
"send-time": {"#text": "00:32:21"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.169.14.240",
"10.169.14.158",
"0xe0",
"0",
"0",
"143642",
"0x60",
"0",
"0",
"143643",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "36",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"sequence-number": "0x8000029b",
},
{
"advertising-router": "10.34.2.250",
"age": "1257",
"checksum": "0x71b3",
"lsa-id": "10.64.0.38",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:39:02"},
"expiration-time": {"#text": "00:39:03"},
"installation-time": {"#text": "00:20:51"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "2w0d 00:51:24"},
"send-time": {"#text": "00:20:49"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.169.196.241",
"10.169.196.213",
"0xe0",
"0",
"0",
"358249",
"0x60",
"0",
"0",
"358250",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "36",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"sequence-number": "0x800001b5",
},
{
"advertising-router": "10.189.5.252",
"age": "792",
"checksum": "0x7efa",
"lsa-id": "10.64.0.52",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:46:48"},
"expiration-time": {"#text": "00:46:48"},
"generation-timer": {"#text": "00:36:39"},
"installation-time": {"#text": "00:13:12"},
"lsa-change-count": "25",
"lsa-changed-time": {"#text": "2w0d 00:37:11"},
"send-time": {"#text": "00:13:10"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.169.14.240",
"10.169.14.122",
"0xe0",
"0",
"0",
"2567",
"0x60",
"0",
"0",
"2568",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "36",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"our-entry": True,
"sequence-number": "0x80000308",
},
{
"advertising-router": "10.189.5.252",
"age": "1333",
"checksum": "0x1839",
"lsa-id": "10.64.0.54",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:37:47"},
"expiration-time": {"#text": "00:37:47"},
"generation-timer": {"#text": "00:27:30"},
"installation-time": {"#text": "00:22:13"},
"lsa-change-count": "26",
"lsa-changed-time": {"#text": "2w0d 00:46:13"},
"send-time": {"#text": "00:22:11"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.189.5.253",
"10.189.5.93",
"0xe0",
"0",
"0",
"28985",
"0x60",
"0",
"0",
"28986",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "36",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"our-entry": True,
"sequence-number": "0x800002dc",
},
{
"advertising-router": "10.189.5.252",
"age": "2167",
"checksum": "0x92eb",
"lsa-id": "10.64.0.55",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:23:53"},
"expiration-time": {"#text": "00:23:53"},
"generation-timer": {"#text": "00:09:20"},
"installation-time": {"#text": "00:36:07"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "2w0d 00:51:03"},
"send-time": {"#text": "00:36:05"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.19.198.239",
"10.19.198.25",
"0xe0",
"0",
"0",
"167966",
"0x60",
"0",
"0",
"167967",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "36",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"our-entry": True,
"sequence-number": "0x800001bb",
},
{
"advertising-router": "10.169.14.240",
"age": "1378",
"checksum": "0x7544",
"lsa-id": "10.64.0.57",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:37:01"},
"expiration-time": {"#text": "00:37:02"},
"installation-time": {"#text": "00:22:55"},
"lsa-change-count": "57",
"lsa-changed-time": {"#text": "2w6d 19:46:52"},
"send-time": {"#text": "00:22:53"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.169.14.241",
"10.169.14.17",
"0xe0",
"0",
"0",
"379383",
"0x60",
"0",
"0",
"379384",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "36",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"sequence-number": "0x80000303",
},
{
"advertising-router": "10.169.14.240",
"age": "1680",
"checksum": "0x6d12",
"lsa-id": "10.64.0.59",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:32:00"},
"expiration-time": {"#text": "00:32:00"},
"installation-time": {"#text": "00:27:57"},
"lsa-change-count": "52",
"lsa-changed-time": {"#text": "3w1d 08:43:52"},
"send-time": {"#text": "00:27:55"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.189.5.252",
"10.169.14.121",
"0xe0",
"0",
"0",
"25",
"0x60",
"0",
"0",
"26",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "36",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"sequence-number": "0x800002f4",
},
{
"advertising-router": "10.169.14.240",
"age": "1228",
"checksum": "0x4f1a",
"lsa-id": "10.64.0.60",
"lsa-length": "60",
"lsa-type": "OpaqArea",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:39:32"},
"expiration-time": {"#text": "00:39:32"},
"installation-time": {"#text": "00:20:25"},
"lsa-change-count": "6",
"lsa-changed-time": {"#text": "2w6d 18:58:13"},
"send-time": {"#text": "00:20:23"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.34.2.250",
"10.169.14.157",
"0xe0",
"0",
"0",
"207596",
"0x60",
"0",
"0",
"207597",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"7",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"2",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "36",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"sequence-number": "0x8000028b",
},
{
"advertising-router": "10.169.196.241",
"age": "326",
"checksum": "0xdcd1",
"lsa-id": "10.64.8.74",
"lsa-length": "92",
"lsa-type": "OpaqArea",
"options": "0x20",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:54:34"},
"expiration-time": {"#text": "00:54:34"},
"installation-time": {"#text": "00:05:21"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "1d 02:16:03"},
"send-time": {"#text": "00:05:19"},
},
"ospf-opaque-area-lsa": {
"te-subtlv": {
"formatted-tlv-data": [
"1",
"10.36.3.3",
"192.168.111.2",
"0x60",
"0",
"0",
"223852",
"0x60",
"0",
"0",
"223852",
"0x60",
"0",
"0",
"223852",
"0x60",
"0",
"0",
"223852",
"0x60",
"0",
"0",
"223852",
],
"tlv-length": [
"1",
"4",
"4",
"7",
"1",
"1",
"1",
"3",
"4",
"1",
"1",
"1",
"3",
"4",
"1",
"1",
"1",
"3",
"8",
"1",
"1",
"1",
"3",
"12",
"1",
"1",
"1",
"3",
],
"tlv-type-name": [
"Link Type",
"Link Id",
"Link Data",
"Adjacency Sid",
"Flags",
"MT ID",
"Weight",
"Label",
"Invalid",
"Flags",
"MT ID",
"Weight",
"Label",
"Invalid",
"Flags",
"MT ID",
"Weight",
"Label",
"Invalid",
"Flags",
"MT ID",
"Weight",
"Label",
"Invalid",
"Flags",
"MT ID",
"Weight",
"Label",
],
"tlv-type-value": [
"1",
"2",
"3",
"2",
"1",
"2",
"3",
"4",
"8",
"1",
"2",
"3",
"4",
"32768",
"1",
"2",
"3",
"4",
"9",
"1",
"2",
"3",
"4",
"32769",
"1",
"2",
"3",
"4",
],
},
"tlv-block": {
"formatted-tlv-data": "",
"tlv-length": "68",
"tlv-type-name": "Extended Link",
"tlv-type-value": "1",
},
},
"sequence-number": "0x80000030",
},
{
"advertising-router": "10.34.2.251",
"age": "2614",
"checksum": "0x6715",
"lsa-id": "0.0.0.0",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:16:26"},
"expiration-time": {"#text": "00:16:26"},
"installation-time": {"#text": "00:43:25"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "30w0d 01:32:36"},
"send-time": {"#text": "00:43:23"},
},
"ospf-external-lsa": {
"address-mask": "0.0.0.0",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "1",
"ospf-topology-name": "default",
"tag": "0.0.0.0",
"type-value": "1",
},
},
"sequence-number": "0x800019e3",
},
{
"advertising-router": "10.169.14.240",
"age": "2282",
"checksum": "0x9fcc",
"lsa-id": "0.0.0.0",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:21:57"},
"expiration-time": {"#text": "00:21:58"},
"installation-time": {"#text": "00:37:59"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "4w2d 05:46:52"},
"send-time": {"#text": "00:37:57"},
},
"ospf-external-lsa": {
"address-mask": "0.0.0.0",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "1",
"ospf-topology-name": "default",
"tag": "0.0.0.0",
"type-value": "1",
},
},
"sequence-number": "0x8000039e",
},
{
"advertising-router": "192.168.36.119",
"age": "1219",
"checksum": "0x3bc3",
"lsa-id": "10.1.0.0",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x20",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:39:41"},
"expiration-time": {"#text": "00:39:41"},
"installation-time": {"#text": "00:20:15"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "21w6d 00:04:15"},
"send-time": {"#text": "00:20:13"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.0",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "20",
"ospf-topology-name": "default",
"tag": "0.0.0.0",
"type-value": "2",
},
},
"sequence-number": "0x800019b0",
},
{
"advertising-router": "192.168.36.120",
"age": "791",
"checksum": "0x33c9",
"lsa-id": "10.1.0.0",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x20",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:46:49"},
"expiration-time": {"#text": "00:46:49"},
"installation-time": {"#text": "00:13:07"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "21w6d 00:04:43"},
"send-time": {"#text": "00:13:05"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.0",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "20",
"ospf-topology-name": "default",
"tag": "0.0.0.0",
"type-value": "2",
},
},
"sequence-number": "0x800019b1",
},
{
"advertising-router": "10.169.14.240",
"age": "2132",
"checksum": "0xf161",
"lsa-id": "10.174.132.237",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:24:28"},
"expiration-time": {"#text": "00:24:28"},
"installation-time": {"#text": "00:35:29"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "4w2d 05:46:49"},
"send-time": {"#text": "00:35:27"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.255",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "50",
"ospf-topology-name": "default",
"tag": "0.0.0.0",
"type-value": "1",
},
},
"sequence-number": "0x8000039e",
},
{
"advertising-router": "10.169.14.240",
"age": "2734",
"checksum": "0x473e",
"lsa-id": "10.34.2.250",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:14:26"},
"expiration-time": {"#text": "00:14:26"},
"installation-time": {"#text": "00:45:31"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "3w0d 08:49:51"},
"send-time": {"#text": "00:45:29"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.255",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "50",
"ospf-topology-name": "default",
"tag": "10.166.34.12",
"type-value": "1",
},
},
"sequence-number": "0x80000288",
},
{
"advertising-router": "10.169.14.241",
"age": "2637",
"checksum": "0x2153",
"lsa-id": "10.34.2.250",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:16:03"},
"expiration-time": {"#text": "00:16:03"},
"installation-time": {"#text": "00:43:51"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "3w0d 08:09:51"},
"send-time": {"#text": "00:43:49"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.255",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "50",
"ospf-topology-name": "default",
"tag": "10.166.34.12",
"type-value": "1",
},
},
"sequence-number": "0x80000298",
},
{
"advertising-router": "10.169.14.240",
"age": "475",
"checksum": "0x3b48",
"lsa-id": "10.34.2.251",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:52:05"},
"expiration-time": {"#text": "00:52:05"},
"installation-time": {"#text": "00:07:52"},
"lsa-change-count": "1",
"lsa-changed-time": {"#text": "3w0d 08:49:56"},
"send-time": {"#text": "00:07:50"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.255",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "50",
"ospf-topology-name": "default",
"tag": "10.166.34.12",
"type-value": "1",
},
},
"sequence-number": "0x80000289",
},
{
"advertising-router": "10.169.14.240",
"age": "1077",
"checksum": "0xfb51",
"lsa-id": "192.168.100.0",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:42:03"},
"expiration-time": {"#text": "00:42:03"},
"installation-time": {"#text": "00:17:54"},
"lsa-change-count": "75",
"lsa-changed-time": {"#text": "2w6d 18:58:13"},
"send-time": {"#text": "00:17:52"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.128",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "31900",
"ospf-topology-name": "default",
"tag": "10.76.212.52",
"type-value": "1",
},
},
"sequence-number": "0x800002da",
},
{
"advertising-router": "10.169.14.240",
"age": "927",
"checksum": "0x19b8",
"lsa-id": "192.168.100.252",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-database-extensive": {
"aging-timer": {"#text": "00:44:33"},
"expiration-time": {"#text": "00:44:33"},
"installation-time": {"#text": "00:15:24"},
"lsa-change-count": "75",
"lsa-changed-time": {"#text": "2w6d 18:58:13"},
"send-time": {"#text": "00:15:22"},
},
"ospf-external-lsa": {
"address-mask": "255.255.255.255",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "31900",
"ospf-topology-name": "default",
"tag": "10.76.212.52",
"type-value": "1",
},
},
"sequence-number": "0x800002d9",
},
],
}
}
def test_empty(self):
pass
self.device = Mock(**self.empty_output)
obj = ShowOspfDatabaseExtensive(device=self.device)
with self.assertRaises(SchemaEmptyParserError):
obj.parse()
def test_golden(self):
pass
self.device = Mock(**self.golden_output)
obj = ShowOspfDatabaseExtensive(device=self.device)
parsed_output = obj.parse()
self.assertEqual(parsed_output, self.golden_parsed_output)
class TestShowOspfNeighborExtensive(unittest.TestCase):
""" Unit tests for:
* show ospf neighbor extensive
"""
device = Device(name="aDevice")
maxDiff = None
empty_output = {"execute.return_value": ""}
golden_output = {
"execute.return_value": """
show ospf neighbor extensive
Address Interface State ID Pri Dead
10.189.5.94 ge-0/0/0.0 Full 10.189.5.253 128 39
Area 0.0.0.8, opt 0x52, DR 0.0.0.0, BDR 0.0.0.0
Up 3w0d 16:50:35, adjacent 3w0d 16:50:35
SPRING Adjacency Labels:
Label Flags Adj-Sid-Type
28985 BVL Protected
28986 VL UnProtected
Topology default (ID 0) -> Bidirectional
10.169.14.121 ge-0/0/1.0 Full 10.169.14.240 128 31
Area 0.0.0.8, opt 0x52, DR 0.0.0.0, BDR 0.0.0.0
Up 3w2d 03:12:20, adjacent 3w2d 03:12:15
SPRING Adjacency Labels:
Label Flags Adj-Sid-Type
2567 BVL Protected
2568 VL UnProtected
Topology default (ID 0) -> Bidirectional
10.19.198.26 ge-0/0/2.0 Full 10.19.198.239 1 39
Area 0.0.0.8, opt 0x52, DR 0.0.0.0, BDR 0.0.0.0
Up 1w5d 20:40:14, adjacent 1w5d 20:40:14
SPRING Adjacency Labels:
Label Flags Adj-Sid-Type
167966 BVL Protected
167967 VL UnProtected
Topology default (ID 0) -> Bidirectional
"""
}
golden_parsed_output = {
"ospf-neighbor-information": {
"ospf-neighbor": [
{
"activity-timer": "39",
"adj-sid-list": {
"spring-adjacency-labels": [
{
"adj-sid-type": "Protected",
"flags": "BVL",
"label": "28985",
},
{
"adj-sid-type": "UnProtected",
"flags": "VL",
"label": "28986",
},
]
},
"bdr-address": "0.0.0.0",
"dr-address": "0.0.0.0",
"interface-name": "ge-0/0/0.0",
"neighbor-address": "10.189.5.94",
"neighbor-adjacency-time": {"#text": "3w0d 16:50:35"},
"neighbor-id": "10.189.5.253",
"neighbor-priority": "128",
"neighbor-up-time": {"#text": "3w0d 16:50:35"},
"options": "0x52",
"ospf-area": "0.0.0.8",
"ospf-neighbor-state": "Full",
"ospf-neighbor-topology": {
"ospf-neighbor-topology-state": "Bidirectional",
"ospf-topology-id": "0",
"ospf-topology-name": "default",
},
},
{
"activity-timer": "31",
"adj-sid-list": {
"spring-adjacency-labels": [
{
"adj-sid-type": "Protected",
"flags": "BVL",
"label": "2567",
},
{
"adj-sid-type": "UnProtected",
"flags": "VL",
"label": "2568",
},
]
},
"bdr-address": "0.0.0.0",
"dr-address": "0.0.0.0",
"interface-name": "ge-0/0/1.0",
"neighbor-address": "10.169.14.121",
"neighbor-adjacency-time": {"#text": "3w2d 03:12:15"},
"neighbor-id": "10.169.14.240",
"neighbor-priority": "128",
"neighbor-up-time": {"#text": "3w2d 03:12:20"},
"options": "0x52",
"ospf-area": "0.0.0.8",
"ospf-neighbor-state": "Full",
"ospf-neighbor-topology": {
"ospf-neighbor-topology-state": "Bidirectional",
"ospf-topology-id": "0",
"ospf-topology-name": "default",
},
},
{
"activity-timer": "39",
"adj-sid-list": {
"spring-adjacency-labels": [
{
"adj-sid-type": "Protected",
"flags": "BVL",
"label": "167966",
},
{
"adj-sid-type": "UnProtected",
"flags": "VL",
"label": "167967",
},
]
},
"bdr-address": "0.0.0.0",
"dr-address": "0.0.0.0",
"interface-name": "ge-0/0/2.0",
"neighbor-address": "10.19.198.26",
"neighbor-adjacency-time": {"#text": "1w5d 20:40:14"},
"neighbor-id": "10.19.198.239",
"neighbor-priority": "1",
"neighbor-up-time": {"#text": "1w5d 20:40:14"},
"options": "0x52",
"ospf-area": "0.0.0.8",
"ospf-neighbor-state": "Full",
"ospf-neighbor-topology": {
"ospf-neighbor-topology-state": "Bidirectional",
"ospf-topology-id": "0",
"ospf-topology-name": "default",
},
},
]
}
}
def test_empty(self):
self.device = Mock(**self.empty_output)
obj = ShowOspfNeighborExtensive(device=self.device)
with self.assertRaises(SchemaEmptyParserError):
obj.parse()
def test_golden(self):
self.device = Mock(**self.golden_output)
obj = ShowOspfNeighborExtensive(device=self.device)
parsed_output = obj.parse()
self.assertEqual(parsed_output, self.golden_parsed_output)
class TestShowOspfInterfaceExtensive(unittest.TestCase):
""" Unit tests for:
* show ospf interface extensive
"""
maxDiff = None
device = Device(name="aDevice")
empty_output = {"execute.return_value": ""}
golden_output = {
"execute.return_value": """
show ospf interface extensive
Interface State Area DR ID BDR ID Nbrs
ge-0/0/0.0 PtToPt 0.0.0.8 0.0.0.0 0.0.0.0 1
Type: P2P, Address: 10.189.5.93, Mask: 255.255.255.252, MTU: 1500, Cost: 5
Adj count: 1
Hello: 10, Dead: 40, ReXmit: 5, Not Stub
Auth type: None
Protection type: Post Convergence
Post convergence protection: Enabled, Fate sharing: No, SRLG: No, Node cost: 100
Topology default (ID 0) -> Cost: 5
ge-0/0/1.0 PtToPt 0.0.0.8 0.0.0.0 0.0.0.0 1
Type: P2P, Address: 10.169.14.122, Mask: 255.255.255.252, MTU: 1500, Cost: 100
Adj count: 1
Hello: 10, Dead: 40, ReXmit: 5, Not Stub
Auth type: None
Protection type: Post Convergence
Post convergence protection: Enabled, Fate sharing: No, SRLG: No, Node cost: 100
Topology default (ID 0) -> Cost: 100
ge-0/0/2.0 PtToPt 0.0.0.8 0.0.0.0 0.0.0.0 1
Type: P2P, Address: 10.19.198.25, Mask: 255.255.255.252, MTU: 1500, Cost: 1000
Adj count: 1
Hello: 10, Dead: 40, ReXmit: 5, Not Stub
Auth type: None
Protection type: Post Convergence
Post convergence protection: Enabled, Fate sharing: No, SRLG: No, Node cost: 100
Topology default (ID 0) -> Cost: 1000
ge-0/0/3.0 DRother 0.0.0.8 0.0.0.0 0.0.0.0 0
Type: LAN, Address: 10.55.0.254, Mask: 255.255.255.0, MTU: 1500, Cost: 100
Adj count: 0, Passive
Hello: 10, Dead: 40, ReXmit: 5, Not Stub
Auth type: None
Protection type: None
Topology default (ID 0) -> Passive, Cost: 100
lo0.0 DR 0.0.0.8 10.189.5.252 0.0.0.0 0
Type: LAN, Address: 10.189.5.252, Mask: 255.255.255.255, MTU: 65535, Cost: 0
DR addr: 10.189.5.252, Priority: 128
Adj count: 0
Hello: 10, Dead: 40, ReXmit: 5, Not Stub
Auth type: None
Protection type: None
Topology default (ID 0) -> Cost: 0
"""
}
golden_parsed_output = {
"ospf-interface-information": {
"ospf-interface": [
{
"address-mask": "255.255.255.252",
"adj-count": "1",
"authentication-type": "None",
"bdr-id": "0.0.0.0",
"dead-interval": "40",
"dr-id": "0.0.0.0",
"hello-interval": "10",
"interface-address": "10.189.5.93",
"interface-cost": "5",
"interface-name": "ge-0/0/0.0",
"interface-type": "P2P",
"mtu": "1500",
"neighbor-count": "1",
"ospf-area": "0.0.0.8",
"ospf-interface-protection-type": "Post Convergence",
"ospf-interface-state": "PtToPt",
"ospf-interface-tilfa-prot-fate": "No",
"ospf-interface-tilfa-prot-link": "Enabled",
"ospf-interface-tilfa-prot-node": "100",
"ospf-interface-tilfa-prot-srlg": "No",
"ospf-interface-topology": {
"ospf-topology-id": "0",
"ospf-topology-metric": "5",
"ospf-topology-name": "default",
},
"ospf-stub-type": "Not Stub",
"retransmit-interval": "5",
},
{
"address-mask": "255.255.255.252",
"adj-count": "1",
"authentication-type": "None",
"bdr-id": "0.0.0.0",
"dead-interval": "40",
"dr-id": "0.0.0.0",
"hello-interval": "10",
"interface-address": "10.169.14.122",
"interface-cost": "100",
"interface-name": "ge-0/0/1.0",
"interface-type": "P2P",
"mtu": "1500",
"neighbor-count": "1",
"ospf-area": "0.0.0.8",
"ospf-interface-protection-type": "Post Convergence",
"ospf-interface-state": "PtToPt",
"ospf-interface-tilfa-prot-fate": "No",
"ospf-interface-tilfa-prot-link": "Enabled",
"ospf-interface-tilfa-prot-node": "100",
"ospf-interface-tilfa-prot-srlg": "No",
"ospf-interface-topology": {
"ospf-topology-id": "0",
"ospf-topology-metric": "100",
"ospf-topology-name": "default",
},
"ospf-stub-type": "Not Stub",
"retransmit-interval": "5",
},
{
"address-mask": "255.255.255.252",
"adj-count": "1",
"authentication-type": "None",
"bdr-id": "0.0.0.0",
"dead-interval": "40",
"dr-id": "0.0.0.0",
"hello-interval": "10",
"interface-address": "10.19.198.25",
"interface-cost": "1000",
"interface-name": "ge-0/0/2.0",
"interface-type": "P2P",
"mtu": "1500",
"neighbor-count": "1",
"ospf-area": "0.0.0.8",
"ospf-interface-protection-type": "Post Convergence",
"ospf-interface-state": "PtToPt",
"ospf-interface-tilfa-prot-fate": "No",
"ospf-interface-tilfa-prot-link": "Enabled",
"ospf-interface-tilfa-prot-node": "100",
"ospf-interface-tilfa-prot-srlg": "No",
"ospf-interface-topology": {
"ospf-topology-id": "0",
"ospf-topology-metric": "1000",
"ospf-topology-name": "default",
},
"ospf-stub-type": "Not Stub",
"retransmit-interval": "5",
},
{
"address-mask": "255.255.255.0",
"adj-count": "0",
"authentication-type": "None",
"bdr-id": "0.0.0.0",
"dead-interval": "40",
"dr-id": "0.0.0.0",
"hello-interval": "10",
"interface-address": "10.55.0.254",
"interface-cost": "100",
"interface-name": "ge-0/0/3.0",
"interface-type": "LAN",
"mtu": "1500",
"neighbor-count": "0",
"ospf-area": "0.0.0.8",
"ospf-interface-protection-type": "None",
"ospf-interface-state": "DRother",
"ospf-interface-topology": {
"ospf-topology-id": "0",
"ospf-topology-metric": "100",
"ospf-topology-name": "default",
"ospf-topology-passive": True,
},
"ospf-stub-type": "Not Stub",
"passive": "Passive",
"retransmit-interval": "5",
},
{
"address-mask": "255.255.255.255",
"adj-count": "0",
"authentication-type": "None",
"bdr-id": "0.0.0.0",
"dead-interval": "40",
"dr-address": "10.189.5.252",
"dr-id": "10.189.5.252",
"hello-interval": "10",
"interface-address": "10.189.5.252",
"interface-cost": "0",
"interface-name": "lo0.0",
"interface-type": "LAN",
"mtu": "65535",
"neighbor-count": "0",
"ospf-area": "0.0.0.8",
"ospf-interface-protection-type": "None",
"ospf-interface-state": "DR",
"ospf-interface-topology": {
"ospf-topology-id": "0",
"ospf-topology-metric": "0",
"ospf-topology-name": "default",
},
"ospf-stub-type": "Not Stub",
"retransmit-interval": "5",
"router-priority": "128",
},
]
}
}
def test_empty(self):
self.device = Mock(**self.empty_output)
obj = ShowOspfInterfaceExtensive(device=self.device)
with self.assertRaises(SchemaEmptyParserError):
obj.parse()
def test_golden(self):
self.device = Mock(**self.golden_output)
obj = ShowOspfInterfaceExtensive(device=self.device)
parsed_output = obj.parse()
self.assertEqual(parsed_output, self.golden_parsed_output)
class TestShowOspfNeighborDetail(unittest.TestCase):
""" Unit tests for:
* show ospf neighbor detail
"""
device = Device(name="aDevice")
maxDiff = None
empty_output = {"execute.return_value": ""}
golden_output = {
"execute.return_value": """
show ospf neighbor detail
Address Interface State ID Pri Dead
10.189.5.94 ge-0/0/0.0 Full 10.189.5.253 128 39
Area 0.0.0.8, opt 0x52, DR 0.0.0.0, BDR 0.0.0.0
Up 3w0d 16:50:35, adjacent 3w0d 16:50:35
SPRING Adjacency Labels:
Label Flags Adj-Sid-Type
28985 BVL Protected
28986 VL UnProtected
Topology default (ID 0) -> Bidirectional
10.169.14.121 ge-0/0/1.0 Full 10.169.14.240 128 31
Area 0.0.0.8, opt 0x52, DR 0.0.0.0, BDR 0.0.0.0
Up 3w2d 03:12:20, adjacent 3w2d 03:12:15
SPRING Adjacency Labels:
Label Flags Adj-Sid-Type
2567 BVL Protected
2568 VL UnProtected
Topology default (ID 0) -> Bidirectional
10.19.198.26 ge-0/0/2.0 Full 10.19.198.239 1 39
Area 0.0.0.8, opt 0x52, DR 0.0.0.0, BDR 0.0.0.0
Up 1w5d 20:40:14, adjacent 1w5d 20:40:14
SPRING Adjacency Labels:
Label Flags Adj-Sid-Type
167966 BVL Protected
167967 VL UnProtected
Topology default (ID 0) -> Bidirectional
"""
}
golden_parsed_output = {
"ospf-neighbor-information": {
"ospf-neighbor": [
{
"activity-timer": "39",
"adj-sid-list": {
"spring-adjacency-labels": [
{
"adj-sid-type": "Protected",
"flags": "BVL",
"label": "28985",
},
{
"adj-sid-type": "UnProtected",
"flags": "VL",
"label": "28986",
},
]
},
"bdr-address": "0.0.0.0",
"dr-address": "0.0.0.0",
"interface-name": "ge-0/0/0.0",
"neighbor-address": "10.189.5.94",
"neighbor-adjacency-time": {"#text": "3w0d 16:50:35"},
"neighbor-id": "10.189.5.253",
"neighbor-priority": "128",
"neighbor-up-time": {"#text": "3w0d 16:50:35"},
"options": "0x52",
"ospf-area": "0.0.0.8",
"ospf-neighbor-state": "Full",
"ospf-neighbor-topology": {
"ospf-neighbor-topology-state": "Bidirectional",
"ospf-topology-id": "0",
"ospf-topology-name": "default",
},
},
{
"activity-timer": "31",
"adj-sid-list": {
"spring-adjacency-labels": [
{
"adj-sid-type": "Protected",
"flags": "BVL",
"label": "2567",
},
{
"adj-sid-type": "UnProtected",
"flags": "VL",
"label": "2568",
},
]
},
"bdr-address": "0.0.0.0",
"dr-address": "0.0.0.0",
"interface-name": "ge-0/0/1.0",
"neighbor-address": "10.169.14.121",
"neighbor-adjacency-time": {"#text": "3w2d 03:12:15"},
"neighbor-id": "10.169.14.240",
"neighbor-priority": "128",
"neighbor-up-time": {"#text": "3w2d 03:12:20"},
"options": "0x52",
"ospf-area": "0.0.0.8",
"ospf-neighbor-state": "Full",
"ospf-neighbor-topology": {
"ospf-neighbor-topology-state": "Bidirectional",
"ospf-topology-id": "0",
"ospf-topology-name": "default",
},
},
{
"activity-timer": "39",
"adj-sid-list": {
"spring-adjacency-labels": [
{
"adj-sid-type": "Protected",
"flags": "BVL",
"label": "167966",
},
{
"adj-sid-type": "UnProtected",
"flags": "VL",
"label": "167967",
},
]
},
"bdr-address": "0.0.0.0",
"dr-address": "0.0.0.0",
"interface-name": "ge-0/0/2.0",
"neighbor-address": "10.19.198.26",
"neighbor-adjacency-time": {"#text": "1w5d 20:40:14"},
"neighbor-id": "10.19.198.239",
"neighbor-priority": "1",
"neighbor-up-time": {"#text": "1w5d 20:40:14"},
"options": "0x52",
"ospf-area": "0.0.0.8",
"ospf-neighbor-state": "Full",
"ospf-neighbor-topology": {
"ospf-neighbor-topology-state": "Bidirectional",
"ospf-topology-id": "0",
"ospf-topology-name": "default",
},
},
]
}
}
def test_empty(self):
self.device = Mock(**self.empty_output)
obj = ShowOspfNeighborDetail(device=self.device)
with self.assertRaises(SchemaEmptyParserError):
obj.parse()
def test_golden(self):
self.device = Mock(**self.golden_output)
obj = ShowOspfNeighborDetail(device=self.device)
parsed_output = obj.parse()
self.assertEqual(parsed_output, self.golden_parsed_output)
def test_show_ospf_neighbor_instance_detail(self):
self.device = Mock(**self.golden_output)
obj = ShowOspfNeighborDetail(device=self.device)
parsed_output = obj.parse(neighbor="10.189.5.94")
self.assertEqual(parsed_output, self.golden_parsed_output)
class TestShowOspfRouteBrief(unittest.TestCase):
""" Unit tests for:
* show ospf route brief
"""
maxDiff = None
device = Device(name="aDevice")
empty_output = {"execute.return_value": ""}
golden_output = {
"execute.return_value": """
show ospf route brief
Topology default Route Table:
Prefix Path Route NH Metric NextHop Nexthop
Type Type Type Interface Address/LSP
10.36.3.3 Intra Router IP 1201 ge-0/0/1.0 10.169.14.121
10.100.5.5 Intra Router IP 1200 ge-0/0/1.0 10.169.14.121
10.19.198.239 Intra Router IP 1000 ge-0/0/2.0 10.19.198.26
10.34.2.250 Intra AS BR IP 200 ge-0/0/1.0 10.169.14.121
10.34.2.251 Intra AS BR IP 205 ge-0/0/1.0 10.169.14.121
10.169.196.241 Intra Router IP 1200 ge-0/0/1.0 10.169.14.121
10.169.14.240 Intra AS BR IP 100 ge-0/0/1.0 10.169.14.121
10.169.14.241 Intra AS BR IP 105 ge-0/0/1.0 10.169.14.121
10.189.5.253 Intra AS BR IP 5 ge-0/0/0.0 10.189.5.94
192.168.36.119 Intra AS BR IP 10100 ge-0/0/1.0 10.169.14.121
192.168.36.120 Intra AS BR IP 10100 ge-0/0/1.0 10.169.14.121
0.0.0.0/0 Ext1 Network IP 101 ge-0/0/1.0 10.169.14.121
10.1.0.0/24 Ext2 Network IP 20 ge-0/0/1.0 10.169.14.121
10.36.3.3/32 Intra Network IP 1202 ge-0/0/1.0 10.169.14.121
10.16.0.0/30 Intra Network IP 1200 ge-0/0/1.0 10.169.14.121
10.100.5.5/32 Intra Network IP 1201 ge-0/0/1.0 10.169.14.121
10.100.5.5/32 Intra Network Spring 1201 ge-0/0/1.0 10.169.14.121
Bkup SPRING ge-0/0/0.0 10.189.5.94
10.19.198.24/30 Intra Network IP 1000 ge-0/0/2.0
10.19.198.28/30 Intra Network IP 1005 ge-0/0/0.0 10.189.5.94
10.19.198.239/32 Intra Network IP 1001 ge-0/0/2.0 10.19.198.26
10.19.198.239/32 Intra Network Spring 1001 ge-0/0/2.0 10.19.198.26
Bkup SPRING ge-0/0/0.0 10.189.5.94
10.174.132.237/32 Ext1 Network IP 150 ge-0/0/1.0 10.169.14.121
10.34.2.200/30 Intra Network IP 205 ge-0/0/1.0 10.169.14.121
10.34.2.250/32 Intra Network IP 200 ge-0/0/1.0 10.169.14.121
10.34.2.250/32 Intra Network Spring 200 ge-0/0/1.0 10.169.14.121
10.34.2.251/32 Intra Network IP 205 ge-0/0/1.0 10.169.14.121
10.34.2.251/32 Intra Network Spring 205 ge-0/0/1.0 10.169.14.121
10.15.0.0/30 Intra Network IP 1001 ge-0/0/2.0 10.19.198.26
10.64.0.0/30 Intra Network IP 1201 ge-0/0/1.0 10.169.14.121
10.55.0.0/24 Intra Network IP 100 ge-0/0/3.0
10.169.196.212/30 Intra Network IP 1200 ge-0/0/1.0 10.169.14.121
10.169.196.216/30 Intra Network IP 1205 ge-0/0/1.0 10.169.14.121
10.169.196.241/32 Intra Network IP 1201 ge-0/0/1.0 10.169.14.121
10.169.196.241/32 Intra Network Spring 1201 ge-0/0/1.0 10.169.14.121
Bkup SPRING ge-0/0/0.0 10.189.5.94
10.169.14.16/30 Intra Network IP 105 ge-0/0/1.0 10.169.14.121
10.169.14.32/30 Intra Network IP 225 ge-0/0/1.0 10.169.14.121
10.169.14.120/30 Intra Network IP 100 ge-0/0/1.0
10.169.14.128/30 Intra Network IP 125 ge-0/0/0.0 10.189.5.94
10.169.14.156/30 Intra Network IP 200 ge-0/0/1.0 10.169.14.121
10.169.14.240/32 Intra Network IP 100 ge-0/0/1.0 10.169.14.121
10.169.14.240/32 Intra Network Spring 100 ge-0/0/1.0 10.169.14.121
Bkup SPRING ge-0/0/0.0 10.189.5.94
10.169.14.241/32 Intra Network IP 105 ge-0/0/1.0 10.169.14.121
10.169.14.241/32 Intra Network Spring 105 ge-0/0/1.0 10.169.14.121
10.169.14.242/32 Intra Network IP 100 ge-0/0/1.0 10.169.14.121
10.169.14.243/32 Intra Network IP 105 ge-0/0/1.0 10.169.14.121
10.189.5.92/30 Intra Network IP 5 ge-0/0/0.0
10.189.5.252/32 Intra Network IP 0 lo0.0
10.189.5.252/32 Intra Network Spring 0 lo0.0
10.189.5.253/32 Intra Network IP 5 ge-0/0/0.0 10.189.5.94
10.189.5.253/32 Intra Network Spring 5 ge-0/0/0.0 10.189.5.94
192.168.220.0/30 Intra Network IP 1200 ge-0/0/1.0 10.169.14.121
192.168.36.119/32 Intra Network IP 10101 ge-0/0/1.0 10.169.14.121
192.168.36.120/32 Intra Network IP 10101 ge-0/0/1.0 10.169.14.121
2567 Intra Network Mpls 0 ge-0/0/1.0 10.169.14.121
Bkup MPLS ge-0/0/0.0 10.189.5.94
2567 (S=0) Intra Network Mpls 0 ge-0/0/1.0 10.169.14.121
Bkup MPLS ge-0/0/0.0 10.189.5.94
2568 Intra Network Mpls 0 ge-0/0/1.0 10.169.14.121
2568 (S=0) Intra Network Mpls 0 ge-0/0/1.0 10.169.14.121
167966 Intra Network Mpls 0 ge-0/0/2.0 10.19.198.26
Bkup MPLS ge-0/0/0.0 10.189.5.94
167966 (S=0) Intra Network Mpls 0 ge-0/0/2.0 10.19.198.26
Bkup MPLS ge-0/0/0.0 10.189.5.94
167967 Intra Network Mpls 0 ge-0/0/2.0 10.19.198.26
167967 (S=0) Intra Network Mpls 0 ge-0/0/2.0 10.19.198.26
28985 Intra Network Mpls 0 ge-0/0/0.0 10.189.5.94
28985 (S=0) Intra Network Mpls 0 ge-0/0/0.0 10.189.5.94
28986 Intra Network Mpls 0 ge-0/0/0.0 10.189.5.94
28986 (S=0) Intra Network Mpls 0 ge-0/0/0.0 10.189.5.94
17000 Intra Network Mpls 1201 ge-0/0/1.0 10.169.14.121
Bkup MPLS ge-0/0/0.0 10.189.5.94
16051 Intra Network Mpls 100 ge-0/0/1.0 10.169.14.121
Bkup MPLS ge-0/0/0.0 10.189.5.94
16051 (S=0) Intra Network Mpls 100 ge-0/0/1.0 10.169.14.121
Bkup MPLS ge-0/0/0.0 10.189.5.94
16052 Intra Network Mpls 105 ge-0/0/1.0 10.169.14.121
16061 Intra Network Mpls 200 ge-0/0/1.0 10.169.14.121
16062 Intra Network Mpls 205 ge-0/0/1.0 10.169.14.121
16063 Intra Network Mpls 1201 ge-0/0/1.0 10.169.14.121
Bkup MPLS ge-0/0/0.0 10.189.5.94
16072 Intra Network Mpls 5 ge-0/0/0.0 10.189.5.94
16073 Intra Network Mpls 1001 ge-0/0/2.0 10.19.198.26
Bkup MPLS ge-0/0/0.0 10.189.5.94
16073 (S=0) Intra Network Mpls 1001 ge-0/0/2.0 10.19.198.26
Bkup MPLS ge-0/0/0.0 10.189.5.94
"""
}
golden_parsed_output = {
"ospf-route-information": {
"ospf-topology-route-table": {
"ospf-route": [
{
"ospf-route-entry": [
{
"address-prefix": "10.36.3.3",
"interface-cost": "1201",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Router",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.100.5.5",
"interface-cost": "1200",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Router",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.19.198.239",
"interface-cost": "1000",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.19.198.26"
},
"next-hop-name": {"interface-name": "ge-0/0/2.0"},
},
"route-path-type": "Intra",
"route-type": "Router",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.34.2.250",
"interface-cost": "200",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "AS BR",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.34.2.251",
"interface-cost": "205",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "AS BR",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.169.196.241",
"interface-cost": "1200",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Router",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.169.14.240",
"interface-cost": "100",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "AS BR",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.169.14.241",
"interface-cost": "105",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "AS BR",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.189.5.253",
"interface-cost": "5",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.189.5.94"
},
"next-hop-name": {"interface-name": "ge-0/0/0.0"},
},
"route-path-type": "Intra",
"route-type": "AS BR",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "192.168.36.119",
"interface-cost": "10100",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "AS BR",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "192.168.36.120",
"interface-cost": "10100",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "AS BR",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "0.0.0.0/0",
"interface-cost": "101",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Ext1",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.1.0.0/24",
"interface-cost": "20",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Ext2",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.36.3.3/32",
"interface-cost": "1202",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.16.0.0/30",
"interface-cost": "1200",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.100.5.5/32",
"interface-cost": "1201",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
},
{
"address-prefix": "10.100.5.5/32",
"interface-cost": "1201",
"next-hop-type": "Spring",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup SPRING",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
},
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.19.198.24/30",
"interface-cost": "1000",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-name": {"interface-name": "ge-0/0/2.0"}
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.19.198.28/30",
"interface-cost": "1005",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.189.5.94"
},
"next-hop-name": {"interface-name": "ge-0/0/0.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.19.198.239/32",
"interface-cost": "1001",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.19.198.26"
},
"next-hop-name": {"interface-name": "ge-0/0/2.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
},
{
"address-prefix": "10.19.198.239/32",
"interface-cost": "1001",
"next-hop-type": "Spring",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup SPRING",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.19.198.26"
},
"next-hop-name": {"interface-name": "ge-0/0/2.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
},
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.174.132.237/32",
"interface-cost": "150",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Ext1",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.34.2.200/30",
"interface-cost": "205",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.34.2.250/32",
"interface-cost": "200",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
},
{
"address-prefix": "10.34.2.250/32",
"interface-cost": "200",
"next-hop-type": "Spring",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
},
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.34.2.251/32",
"interface-cost": "205",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
},
{
"address-prefix": "10.34.2.251/32",
"interface-cost": "205",
"next-hop-type": "Spring",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
},
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.15.0.0/30",
"interface-cost": "1001",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.19.198.26"
},
"next-hop-name": {"interface-name": "ge-0/0/2.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.64.0.0/30",
"interface-cost": "1201",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.55.0.0/24",
"interface-cost": "100",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-name": {"interface-name": "ge-0/0/3.0"}
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.169.196.212/30",
"interface-cost": "1200",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.169.196.216/30",
"interface-cost": "1205",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.169.196.241/32",
"interface-cost": "1201",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
},
{
"address-prefix": "10.169.196.241/32",
"interface-cost": "1201",
"next-hop-type": "Spring",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup SPRING",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
},
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.169.14.16/30",
"interface-cost": "105",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.169.14.32/30",
"interface-cost": "225",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.169.14.120/30",
"interface-cost": "100",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-name": {"interface-name": "ge-0/0/1.0"}
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.169.14.128/30",
"interface-cost": "125",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.189.5.94"
},
"next-hop-name": {"interface-name": "ge-0/0/0.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.169.14.156/30",
"interface-cost": "200",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.169.14.240/32",
"interface-cost": "100",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
},
{
"address-prefix": "10.169.14.240/32",
"interface-cost": "100",
"next-hop-type": "Spring",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup SPRING",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
},
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.169.14.241/32",
"interface-cost": "105",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
},
{
"address-prefix": "10.169.14.241/32",
"interface-cost": "105",
"next-hop-type": "Spring",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
},
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.169.14.242/32",
"interface-cost": "100",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.169.14.243/32",
"interface-cost": "105",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.189.5.92/30",
"interface-cost": "5",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-name": {"interface-name": "ge-0/0/0.0"}
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.189.5.252/32",
"interface-cost": "0",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-name": {"interface-name": "lo0.0"}
},
"route-path-type": "Intra",
"route-type": "Network",
},
{
"address-prefix": "10.189.5.252/32",
"interface-cost": "0",
"next-hop-type": "Spring",
"ospf-next-hop": {
"next-hop-name": {"interface-name": "lo0.0"}
},
"route-path-type": "Intra",
"route-type": "Network",
},
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.189.5.253/32",
"interface-cost": "5",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.189.5.94"
},
"next-hop-name": {"interface-name": "ge-0/0/0.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
},
{
"address-prefix": "10.189.5.253/32",
"interface-cost": "5",
"next-hop-type": "Spring",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.189.5.94"
},
"next-hop-name": {"interface-name": "ge-0/0/0.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
},
]
},
{
"ospf-route-entry": [
{
"address-prefix": "192.168.220.0/30",
"interface-cost": "1200",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "192.168.36.119/32",
"interface-cost": "10101",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "192.168.36.120/32",
"interface-cost": "10101",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "2567",
"interface-cost": "0",
"next-hop-type": "Mpls",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup MPLS",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "2567 (S=0)",
"interface-cost": "0",
"next-hop-type": "Mpls",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup MPLS",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "2568",
"interface-cost": "0",
"next-hop-type": "Mpls",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "2568 (S=0)",
"interface-cost": "0",
"next-hop-type": "Mpls",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "167966",
"interface-cost": "0",
"next-hop-type": "Mpls",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup MPLS",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.19.198.26"
},
"next-hop-name": {"interface-name": "ge-0/0/2.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "167966 (S=0)",
"interface-cost": "0",
"next-hop-type": "Mpls",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup MPLS",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.19.198.26"
},
"next-hop-name": {"interface-name": "ge-0/0/2.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "167967",
"interface-cost": "0",
"next-hop-type": "Mpls",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.19.198.26"
},
"next-hop-name": {"interface-name": "ge-0/0/2.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "167967 (S=0)",
"interface-cost": "0",
"next-hop-type": "Mpls",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.19.198.26"
},
"next-hop-name": {"interface-name": "ge-0/0/2.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "28985",
"interface-cost": "0",
"next-hop-type": "Mpls",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.189.5.94"
},
"next-hop-name": {"interface-name": "ge-0/0/0.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "28985 (S=0)",
"interface-cost": "0",
"next-hop-type": "Mpls",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.189.5.94"
},
"next-hop-name": {"interface-name": "ge-0/0/0.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "28986",
"interface-cost": "0",
"next-hop-type": "Mpls",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.189.5.94"
},
"next-hop-name": {"interface-name": "ge-0/0/0.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "28986 (S=0)",
"interface-cost": "0",
"next-hop-type": "Mpls",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.189.5.94"
},
"next-hop-name": {"interface-name": "ge-0/0/0.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "17000",
"interface-cost": "1201",
"next-hop-type": "Mpls",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup MPLS",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "16051",
"interface-cost": "100",
"next-hop-type": "Mpls",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup MPLS",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "16051 (S=0)",
"interface-cost": "100",
"next-hop-type": "Mpls",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup MPLS",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "16052",
"interface-cost": "105",
"next-hop-type": "Mpls",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "16061",
"interface-cost": "200",
"next-hop-type": "Mpls",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "16062",
"interface-cost": "205",
"next-hop-type": "Mpls",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "16063",
"interface-cost": "1201",
"next-hop-type": "Mpls",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup MPLS",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "16072",
"interface-cost": "5",
"next-hop-type": "Mpls",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.189.5.94"
},
"next-hop-name": {"interface-name": "ge-0/0/0.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "16073",
"interface-cost": "1001",
"next-hop-type": "Mpls",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup MPLS",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.19.198.26"
},
"next-hop-name": {"interface-name": "ge-0/0/2.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "16073 (S=0)",
"interface-cost": "1001",
"next-hop-type": "Mpls",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup MPLS",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.19.198.26"
},
"next-hop-name": {"interface-name": "ge-0/0/2.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
]
}
}
}
def test_empty(self):
self.device = Mock(**self.empty_output)
obj = ShowOspfRouteBrief(device=self.device)
with self.assertRaises(SchemaEmptyParserError):
obj.parse()
def test_golden(self):
self.device = Mock(**self.golden_output)
obj = ShowOspfRouteBrief(device=self.device)
parsed_output = obj.parse()
self.assertEqual(parsed_output, self.golden_parsed_output)
class TestShowOspfRouteDetail(unittest.TestCase):
""" Unit tests for:
* show ospf route detail
"""
maxDiff = None
device = Device(name="aDevice")
empty_output = {"execute.return_value": ""}
golden_output = {
"execute.return_value": """
show ospf route detail
Topology default Route Table:
Prefix Path Route NH Metric NextHop Nexthop
Type Type Type Interface Address/LSP
10.36.3.3 Intra Router IP 1201 ge-0/0/1.0 10.169.14.121
area 0.0.0.8, origin 10.36.3.3, optional-capability 0x0
10.100.5.5 Intra Router IP 1200 ge-0/0/1.0 10.169.14.121
area 0.0.0.8, origin 10.100.5.5, optional-capability 0x0
10.19.198.239 Intra Router IP 1000 ge-0/0/2.0 10.19.198.26
area 0.0.0.8, origin 10.19.198.239, optional-capability 0x0
10.34.2.250 Intra AS BR IP 200 ge-0/0/1.0 10.169.14.121
area 0.0.0.8, origin 10.34.2.250, optional-capability 0x2
10.34.2.251 Intra AS BR IP 205 ge-0/0/1.0 10.169.14.121
area 0.0.0.8, origin 10.34.2.251, optional-capability 0x2
10.169.196.241 Intra Router IP 1200 ge-0/0/1.0 10.169.14.121
area 0.0.0.8, origin 10.169.196.241, optional-capability 0x0
10.169.14.240 Intra AS BR IP 100 ge-0/0/1.0 10.169.14.121
area 0.0.0.8, origin 10.169.14.240, optional-capability 0x2
10.100.5.5/32 Intra Network Spring 1201 ge-0/0/1.0 10.169.14.121
Bkup SPRING ge-0/0/0.0 10.189.5.94
area 0.0.0.8, origin 10.100.5.5, priority medium
10.19.198.24/30 Intra Network IP 1000 ge-0/0/2.0
area 0.0.0.8, origin 10.189.5.252, priority low
10.19.198.28/30 Intra Network IP 1005 ge-0/0/0.0 10.189.5.94
area 0.0.0.8, origin 10.189.5.253, priority medium
10.19.198.239/32 Intra Network IP 1001 ge-0/0/2.0 10.19.198.26
area 0.0.0.8, origin 10.19.198.239, priority medium
10.19.198.239/32 Intra Network Spring 1001 ge-0/0/2.0 10.19.198.26
Bkup SPRING ge-0/0/0.0 10.189.5.94
area 0.0.0.8, origin 10.19.198.239, priority medium
192.168.100.252/32 Ext1 Network IP 32000 ge-0/0/1.0 10.169.14.121
area 0.0.0.0, origin 10.169.14.240, priority medium
192.168.36.48/30 Intra Network IP 10100 ge-0/0/1.0 10.169.14.121
area 0.0.0.8, origin 10.169.14.240, priority medium
192.168.36.56/30 Intra Network IP 10100 ge-0/0/1.0 10.169.14.121
area 0.0.0.8, origin 10.169.14.240, priority medium
192.168.36.119/32 Intra Network IP 10101 ge-0/0/1.0 10.169.14.121
area 0.0.0.8, origin 192.168.36.119, priority medium
192.168.36.120/32 Intra Network IP 10101 ge-0/0/1.0 10.169.14.121
area 0.0.0.8, origin 192.168.36.120, priority medium
2567 Intra Network Mpls 0 ge-0/0/1.0 10.169.14.121
Bkup MPLS ge-0/0/0.0 10.189.5.94
area 0.0.0.8, origin 10.189.5.252, priority medium
2567 (S=0) Intra Network Mpls 0 ge-0/0/1.0 10.169.14.121
Bkup MPLS ge-0/0/0.0 10.189.5.94
area 0.0.0.8, origin 10.189.5.252, priority medium
2568 Intra Network Mpls 0 ge-0/0/1.0 10.169.14.121
area 0.0.0.8, origin 10.189.5.252, priority medium
2568 (S=0) Intra Network Mpls 0 ge-0/0/1.0 10.169.14.121
area 0.0.0.8, origin 10.189.5.252, priority medium
167966 Intra Network Mpls 0 ge-0/0/2.0 10.19.198.26
Bkup MPLS ge-0/0/0.0 10.189.5.94
area 0.0.0.8, origin 10.189.5.252, priority medium
167966 (S=0) Intra Network Mpls 0 ge-0/0/2.0 10.19.198.26
Bkup MPLS ge-0/0/0.0 10.189.5.94
area 0.0.0.8, origin 10.189.5.252, priority medium
167967 Intra Network Mpls 0 ge-0/0/2.0 10.19.198.26
area 0.0.0.8, origin 10.189.5.252, priority medium
167967 (S=0) Intra Network Mpls 0 ge-0/0/2.0 10.19.198.26
area 0.0.0.8, origin 10.189.5.252, priority medium
16051 (S=0) Intra Network Mpls 100 ge-0/0/1.0 10.169.14.121
Bkup MPLS ge-0/0/0.0 10.189.5.94
area 0.0.0.8, origin 10.169.14.240, priority medium
16052 Intra Network Mpls 105 ge-0/0/1.0 10.169.14.121
area 0.0.0.8, origin 10.169.14.241, priority medium
16061 Intra Network Mpls 200 ge-0/0/1.0 10.169.14.121
area 0.0.0.8, origin 10.34.2.250, priority medium
16062 Intra Network Mpls 205 ge-0/0/1.0 10.169.14.121
area 0.0.0.8, origin 10.34.2.251, priority medium
16063 Intra Network Mpls 1201 ge-0/0/1.0 10.169.14.121
Bkup MPLS ge-0/0/0.0 10.189.5.94
area 0.0.0.8, origin 10.169.196.241, priority medium
16072 Intra Network Mpls 5 ge-0/0/0.0 10.189.5.94
area 0.0.0.8, origin 10.189.5.253, priority medium
16073 Intra Network Mpls 1001 ge-0/0/2.0 10.19.198.26
Bkup MPLS ge-0/0/0.0 10.189.5.94
area 0.0.0.8, origin 10.19.198.239, priority medium
16073 (S=0) Intra Network Mpls 1001 ge-0/0/2.0 10.19.198.26
Bkup MPLS ge-0/0/0.0 10.189.5.94
area 0.0.0.8, origin 10.19.198.239, priority medium
Bkup MPLS ge-0/0/0.0 10.189.5.94
"""
}
golden_parsed_output = {
"ospf-route-information": {
"ospf-topology-route-table": {
"ospf-route": [
{
"ospf-route-entry": [
{
"address-prefix": "10.36.3.3",
"interface-cost": "1201",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Router",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.100.5.5",
"interface-cost": "1200",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Router",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.19.198.239",
"interface-cost": "1000",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.19.198.26"
},
"next-hop-name": {"interface-name": "ge-0/0/2.0"},
},
"route-path-type": "Intra",
"route-type": "Router",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.34.2.250",
"interface-cost": "200",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "AS BR",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.34.2.251",
"interface-cost": "205",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "AS BR",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.169.196.241",
"interface-cost": "1200",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Router",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.169.14.240",
"interface-cost": "100",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "AS BR",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.100.5.5/32",
"interface-cost": "1201",
"next-hop-type": "Spring",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup SPRING",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.19.198.24/30",
"interface-cost": "1000",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-name": {"interface-name": "ge-0/0/2.0"}
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.19.198.28/30",
"interface-cost": "1005",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.189.5.94"
},
"next-hop-name": {"interface-name": "ge-0/0/0.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "10.19.198.239/32",
"interface-cost": "1001",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.19.198.26"
},
"next-hop-name": {"interface-name": "ge-0/0/2.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
},
{
"address-prefix": "10.19.198.239/32",
"interface-cost": "1001",
"next-hop-type": "Spring",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup SPRING",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.19.198.26"
},
"next-hop-name": {"interface-name": "ge-0/0/2.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
},
]
},
{
"ospf-route-entry": [
{
"address-prefix": "192.168.100.252/32",
"interface-cost": "32000",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Ext1",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "192.168.36.48/30",
"interface-cost": "10100",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "192.168.36.56/30",
"interface-cost": "10100",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "192.168.36.119/32",
"interface-cost": "10101",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "192.168.36.120/32",
"interface-cost": "10101",
"next-hop-type": "IP",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "2567",
"interface-cost": "0",
"next-hop-type": "Mpls",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup MPLS",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "2567 (S=0)",
"interface-cost": "0",
"next-hop-type": "Mpls",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup MPLS",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "2568",
"interface-cost": "0",
"next-hop-type": "Mpls",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "2568 (S=0)",
"interface-cost": "0",
"next-hop-type": "Mpls",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "167966",
"interface-cost": "0",
"next-hop-type": "Mpls",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup MPLS",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.19.198.26"
},
"next-hop-name": {"interface-name": "ge-0/0/2.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "167966 (S=0)",
"interface-cost": "0",
"next-hop-type": "Mpls",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup MPLS",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.19.198.26"
},
"next-hop-name": {"interface-name": "ge-0/0/2.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "167967",
"interface-cost": "0",
"next-hop-type": "Mpls",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.19.198.26"
},
"next-hop-name": {"interface-name": "ge-0/0/2.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "167967 (S=0)",
"interface-cost": "0",
"next-hop-type": "Mpls",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.19.198.26"
},
"next-hop-name": {"interface-name": "ge-0/0/2.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "16051 (S=0)",
"interface-cost": "100",
"next-hop-type": "Mpls",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup MPLS",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "16052",
"interface-cost": "105",
"next-hop-type": "Mpls",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "16061",
"interface-cost": "200",
"next-hop-type": "Mpls",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "16062",
"interface-cost": "205",
"next-hop-type": "Mpls",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "16063",
"interface-cost": "1201",
"next-hop-type": "Mpls",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup MPLS",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.169.14.121"
},
"next-hop-name": {"interface-name": "ge-0/0/1.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "16072",
"interface-cost": "5",
"next-hop-type": "Mpls",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.189.5.94"
},
"next-hop-name": {"interface-name": "ge-0/0/0.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "16073",
"interface-cost": "1001",
"next-hop-type": "Mpls",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup MPLS",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.19.198.26"
},
"next-hop-name": {"interface-name": "ge-0/0/2.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
{
"ospf-route-entry": [
{
"address-prefix": "16073 (S=0)",
"interface-cost": "1001",
"next-hop-type": "Mpls",
"ospf-backup-next-hop": {
"ospf-backup-next-hop-address": "10.189.5.94",
"ospf-backup-next-hop-interface": "ge-0/0/0.0",
"ospf-backup-next-hop-type": "Bkup MPLS",
},
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.19.198.26"
},
"next-hop-name": {"interface-name": "ge-0/0/2.0"},
},
"route-path-type": "Intra",
"route-type": "Network",
}
]
},
]
}
}
}
def test_empty(self):
self.device = Mock(**self.empty_output)
obj = ShowOspfRouteDetail(device=self.device)
with self.assertRaises(SchemaEmptyParserError):
obj.parse()
def test_golden(self):
self.device = Mock(**self.golden_output)
obj = ShowOspfRouteDetail(device=self.device)
parsed_output = obj.parse()
self.assertEqual(parsed_output, self.golden_parsed_output)
class TestShowOspfDatabaseNetworkLsaidDetail(unittest.TestCase):
""" Unit tests for:
* show ospf database network lsa-id {ipaddress} detail
"""
device = Device(name="aDevice")
maxDiff = None
empty_output = {"execute.return_value": ""}
golden_output = {
"execute.return_value": """
show ospf database network lsa-id 10.69.197.1 detail
OSPF database, Area 192.168.76.0
Type ID Adv Rtr Seq Age Opt Cksum Len
Network *10.69.197.1 192.168.219.235 0x80000026 1730 0x22 0x1b56 36
mask 255.255.255.128
attached router 192.168.219.235
attached router 10.69.198.249
attached router 192.168.219.236
Topology default (ID 0)
Type: Transit, Node ID: 192.168.219.236
Metric: 0, Bidirectional
Type: Transit, Node ID: 10.69.198.249
Metric: 0, Bidirectional
Type: Transit, Node ID: 192.168.219.235
Metric: 0, Bidirectional
"""
}
golden_parsed_output = {
"ospf-database-information": {
"ospf-area-header": {"ospf-area": "192.168.76.0"},
"ospf-database": {
"@heading": "Type ID Adv Rtr Seq Age Opt Cksum Len",
"advertising-router": "192.168.219.235",
"age": "1730",
"checksum": "0x1b56",
"lsa-id": "10.69.197.1",
"lsa-length": "36",
"lsa-type": "Network",
"options": "0x22",
"ospf-network-lsa": {
"address-mask": "255.255.255.128",
"attached-router": [
"192.168.219.235",
"10.69.198.249",
"192.168.219.236",
],
"ospf-lsa-topology": {
"ospf-lsa-topology-link": [
{
"link-type-name": "Transit",
"ospf-lsa-topology-link-metric": "0",
"ospf-lsa-topology-link-node-id": "192.168.219.236",
"ospf-lsa-topology-link-state": "Bidirectional",
},
{
"link-type-name": "Transit",
"ospf-lsa-topology-link-metric": "0",
"ospf-lsa-topology-link-node-id": "10.69.198.249",
"ospf-lsa-topology-link-state": "Bidirectional",
},
{
"link-type-name": "Transit",
"ospf-lsa-topology-link-metric": "0",
"ospf-lsa-topology-link-node-id": "192.168.219.235",
"ospf-lsa-topology-link-state": "Bidirectional",
},
],
"ospf-topology-id": "default",
"ospf-topology-name": "default",
},
},
"our-entry": True,
"sequence-number": "0x80000026",
},
}
}
def test_empty(self):
self.device = Mock(**self.empty_output)
obj = ShowOspfDatabaseNetworkLsaidDetail(device=self.device)
with self.assertRaises(SchemaEmptyParserError):
parsed_output = obj.parse(ipaddress="10.69.197.1")
def test_golden(self):
self.device = Mock(**self.golden_output)
obj = ShowOspfDatabaseNetworkLsaidDetail(device=self.device)
parsed_output = obj.parse(ipaddress="10.69.197.1")
self.assertEqual(parsed_output, self.golden_parsed_output)
class TestShowOspfDatabaseLsaidDetail(unittest.TestCase):
""" Unit tests for:
* show ospf database lsa-id {ipaddress} detail
"""
device = Device(name="aDevice")
maxDiff = None
empty_output = {"execute.return_value": ""}
golden_output = {
"execute.return_value": """
show ospf database lsa-id 10.34.2.250 detail
OSPF database, Area 0.0.0.8
Type ID Adv Rtr Seq Age Opt Cksum Len
Router 10.34.2.250 10.34.2.250 0x80000048 1598 0x22 0xed79 108
bits 0x2, link count 7
id 10.34.2.251, data 10.34.2.201, Type PointToPoint (1)
Topology count: 0, Default metric: 5
id 10.34.2.200, data 255.255.255.252, Type Stub (3)
Topology count: 0, Default metric: 5
id 10.169.14.240, data 10.169.14.158, Type PointToPoint (1)
Topology count: 0, Default metric: 100
id 10.169.14.156, data 255.255.255.252, Type Stub (3)
Topology count: 0, Default metric: 100
id 10.16.0.0, data 255.255.255.252, Type Stub (3)
Topology count: 0, Default metric: 1000
id 192.168.220.0, data 255.255.255.252, Type Stub (3)
Topology count: 0, Default metric: 1000
id 10.34.2.250, data 255.255.255.255, Type Stub (3)
Topology count: 0, Default metric: 0
Topology default (ID 0)
Type: PointToPoint, Node ID: 10.169.14.240
Metric: 100, Bidirectional
Type: PointToPoint, Node ID: 10.34.2.251
Metric: 5, Bidirectional
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern 10.34.2.250 10.169.14.240 0x80000043 1075 0x22 0xd7f4 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 50, Fwd addr: 0.0.0.0, Tag: 10.166.34.12
Extern *10.34.2.250 10.169.14.241 0x80000044 670 0x22 0xcffa 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 50, Fwd addr: 0.0.0.0, Tag: 10.166.34.12
"""
}
golden_parsed_output = {
"ospf-database-information": {
"ospf-area-header": {"ospf-area": "0.0.0.8"},
"ospf-database": [
{
"advertising-router": "10.34.2.250",
"age": "1598",
"checksum": "0xed79",
"lsa-id": "10.34.2.250",
"lsa-length": "108",
"lsa-type": "Router",
"options": "0x22",
"ospf-router-lsa": {
"bits": "0x2",
"link-count": "7",
"ospf-link": [
{
"link-data": "10.34.2.201",
"link-id": "10.34.2.251",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "5",
"ospf-topology-count": "0",
},
{
"link-data": "10.34.2.201",
"link-id": "10.34.2.251",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "5",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.34.2.200",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "5",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.34.2.200",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "5",
"ospf-topology-count": "0",
},
{
"link-data": "10.169.14.158",
"link-id": "10.169.14.240",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "100",
"ospf-topology-count": "0",
},
{
"link-data": "10.169.14.158",
"link-id": "10.169.14.240",
"link-type-name": "PointToPoint",
"link-type-value": "1",
"metric": "100",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.169.14.156",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "100",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.169.14.156",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "100",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.16.0.0",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "10.16.0.0",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "192.168.220.0",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.252",
"link-id": "192.168.220.0",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "1000",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.255",
"link-id": "10.34.2.250",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "0",
"ospf-topology-count": "0",
},
{
"link-data": "255.255.255.255",
"link-id": "10.34.2.250",
"link-type-name": "Stub",
"link-type-value": "3",
"metric": "0",
"ospf-topology-count": "0",
},
],
"ospf-lsa-topology": {
"ospf-lsa-topology-link": [
{
"link-type-name": "PointToPoint",
"ospf-lsa-topology-link-metric": "100",
"ospf-lsa-topology-link-node-id": "10.169.14.240",
"ospf-lsa-topology-link-state": "Bidirectional",
},
{
"link-type-name": "PointToPoint",
"ospf-lsa-topology-link-metric": "5",
"ospf-lsa-topology-link-node-id": "10.34.2.251",
"ospf-lsa-topology-link-state": "Bidirectional",
},
],
"ospf-topology-id": "0",
"ospf-topology-name": "default",
},
},
"sequence-number": "0x80000048",
},
{
"advertising-router": "10.169.14.240",
"age": "1075",
"checksum": "0xd7f4",
"lsa-id": "10.34.2.250",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-external-lsa": {
"address-mask": "255.255.255.255",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "50",
"ospf-topology-name": "default",
"tag": "10.166.34.12",
"type-value": "1",
},
},
"sequence-number": "0x80000043",
},
{
"advertising-router": "10.169.14.241",
"age": "670",
"checksum": "0xcffa",
"lsa-id": "10.34.2.250",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-external-lsa": {
"address-mask": "255.255.255.255",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "50",
"ospf-topology-name": "default",
"tag": "10.166.34.12",
"type-value": "1",
},
},
"our-entry": True,
"sequence-number": "0x80000044",
},
],
}
}
golden_output_2 = {
"execute.return_value": """
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern 10.34.2.250 10.169.14.240 0x80000043 1075 0x22 0xd7f4 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 50, Fwd addr: 0.0.0.0, Tag: 10.166.34.12
Extern *10.34.2.250 10.169.14.241 0x80000044 670 0x22 0xcffa 36
mask 255.255.255.255
Topology default (ID 0)
Type: 1, Metric: 50, Fwd addr: 0.0.0.0, Tag: 10.166.34.12
"""
}
golden_parsed_output_2 = {
"ospf-database-information": {
"ospf-database": [
{
"advertising-router": "10.169.14.240",
"age": "1075",
"checksum": "0xd7f4",
"lsa-id": "10.34.2.250",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-external-lsa": {
"address-mask": "255.255.255.255",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "50",
"ospf-topology-name": "default",
"tag": "10.166.34.12",
"type-value": "1",
},
},
"sequence-number": "0x80000043",
},
{
"advertising-router": "10.169.14.241",
"age": "670",
"checksum": "0xcffa",
"lsa-id": "10.34.2.250",
"lsa-length": "36",
"lsa-type": "Extern",
"options": "0x22",
"ospf-external-lsa": {
"address-mask": "255.255.255.255",
"ospf-external-lsa-topology": {
"forward-address": "0.0.0.0",
"ospf-topology-id": "0",
"ospf-topology-metric": "50",
"ospf-topology-name": "default",
"tag": "10.166.34.12",
"type-value": "1",
},
},
"our-entry": True,
"sequence-number": "0x80000044",
},
]
}
}
golden_output_3 = {
"execute.return_value": """
show ospf database lsa-id 10.145.0.3 detail
OSPF database, Area 0.0.0.0
Type ID Adv Rtr Seq Age Opt Cksum Len
Network *10.145.0.3 10.36.3.3 0x80000002 64 0x22 0x9958 36
mask 255.255.255.0
attached router 10.36.3.3
attached router 10.64.4.4
attached router 10.4.1.1
Topology default (ID 0)
Type: Transit, Node ID: 10.4.1.1
Metric: 0, Bidirectional
Type: Transit, Node ID: 10.64.4.4
Metric: 0, Bidirectional
Type: Transit, Node ID: 10.36.3.3
Metric: 0, Bidirectional
"""
}
golden_parsed_output_3 = {
"ospf-database-information": {
"ospf-area-header": {"ospf-area": "0.0.0.0"},
"ospf-database": [
{
"advertising-router": "10.36.3.3",
"age": "64",
"checksum": "0x9958",
"lsa-id": "10.145.0.3",
"lsa-length": "36",
"lsa-type": "Network",
"options": "0x22",
"ospf-network-lsa": {
"address-mask": "255.255.255.0",
"attached-router": ["10.36.3.3", "10.64.4.4", "10.4.1.1"],
"ospf-lsa-topology": {
"ospf-lsa-topology-link": [
{
"link-type-name": "Transit",
"ospf-lsa-topology-link-metric": "0",
"ospf-lsa-topology-link-node-id": "10.4.1.1",
"ospf-lsa-topology-link-state": "Bidirectional",
},
{
"link-type-name": "Transit",
"ospf-lsa-topology-link-metric": "0",
"ospf-lsa-topology-link-node-id": "10.64.4.4",
"ospf-lsa-topology-link-state": "Bidirectional",
},
{
"link-type-name": "Transit",
"ospf-lsa-topology-link-metric": "0",
"ospf-lsa-topology-link-node-id": "10.36.3.3",
"ospf-lsa-topology-link-state": "Bidirectional",
},
],
"ospf-topology-id": "0",
"ospf-topology-name": "default",
},
},
"our-entry": True,
"sequence-number": "0x80000002",
}
],
}
}
def test_empty(self):
self.device = Mock(**self.empty_output)
obj = ShowOspfDatabaseLsaidDetail(device=self.device)
with self.assertRaises(SchemaEmptyParserError):
parsed_output = obj.parse(ipaddress="10.34.2.250")
def test_golden(self):
self.device = Mock(**self.golden_output)
obj = ShowOspfDatabaseLsaidDetail(device=self.device)
parsed_output = obj.parse(ipaddress="10.34.2.250")
self.assertEqual(parsed_output, self.golden_parsed_output)
def test_golden_2(self):
self.device = Mock(**self.golden_output_2)
obj = ShowOspfDatabaseLsaidDetail(device=self.device)
parsed_output = obj.parse(ipaddress="10.34.2.250")
self.assertEqual(parsed_output, self.golden_parsed_output_2)
def test_golden_3(self):
self.device = Mock(**self.golden_output_3)
obj = ShowOspfDatabaseLsaidDetail(device=self.device)
parsed_output = obj.parse(ipaddress="10.145.0.3")
self.assertEqual(parsed_output, self.golden_parsed_output_3)
class TestShowOspfRouteNetworkExtensive(unittest.TestCase):
""" Unit tests for:
* show ospf route network extensive
"""
device = Device(name="aDevice")
maxDiff = None
empty_output = {"execute.return_value": ""}
golden_output = {
"execute.return_value": """
show ospf route network extensive
Topology default Route Table:
Prefix Path Route NH Metric NextHop Nexthop
Type Type Type Interface Address/LSP
10.1.0.0/24 Ext2 Network IP 0 ge-0/0/0.0 10.70.0.4
area 0.0.0.0, origin 10.36.3.3, priority medium
10.4.1.1/32 Intra Network IP 0 lo0.0
area 0.0.0.0, origin 10.4.1.1, priority low
10.16.2.2/32 Intra Network IP 1 ge-0/0/1.0 10.135.0.2
area 0.0.0.0, origin 10.16.2.2, priority medium
10.36.3.3/32 Intra Network IP 2 ge-0/0/0.0 10.70.0.4
area 0.0.0.0, origin 10.36.3.3, priority medium
10.64.4.4/32 Intra Network IP 1 ge-0/0/0.0 10.70.0.4
area 0.0.0.0, origin 10.64.4.4, priority medium
10.145.0.0/24 Ext2 Network IP 0 ge-0/0/0.0 10.70.0.4
area 0.0.0.0, origin 10.36.3.3, priority medium
10.135.0.0/24 Intra Network IP 1 ge-0/0/1.0
area 0.0.0.0, origin 10.4.1.1, priority low
10.70.0.0/24 Intra Network IP 1 ge-0/0/0.0
area 0.0.0.0, origin 10.4.1.1, priority low
10.205.0.0/24 Intra Network IP 2 ge-0/0/0.0 10.70.0.4
area 0.0.0.0, origin 10.64.4.4, priority medium
"""
}
golden_parsed_output = {
"ospf-route-information": {
"ospf-topology-route-table": {
"ospf-route": [
{
"ospf-route-entry": {
"address-prefix": "10.1.0.0/24",
"interface-cost": "0",
"next-hop-type": "IP",
"ospf-area": "0.0.0.0",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.70.0.4"
},
"next-hop-name": {
"interface-name": "ge-0/0/0.0"
}
},
"route-origin": "10.36.3.3",
"route-path-type": "Ext2",
"route-priority": "medium",
"route-type": "Network",
}
},
{
"ospf-route-entry": {
"address-prefix": "10.4.1.1/32",
"interface-cost": "0",
"next-hop-type": "IP",
"ospf-area": "0.0.0.0",
"ospf-next-hop": {
"next-hop-name": {"interface-name": "lo0.0"}
},
"route-origin": "10.4.1.1",
"route-path-type": "Intra",
"route-priority": "low",
"route-type": "Network",
}
},
{
"ospf-route-entry": {
"address-prefix": "10.16.2.2/32",
"interface-cost": "1",
"next-hop-type": "IP",
"ospf-area": "0.0.0.0",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.135.0.2"
},
"next-hop-name": {
"interface-name": "ge-0/0/1.0"
}
},
"route-origin": "10.16.2.2",
"route-path-type": "Intra",
"route-priority": "medium",
"route-type": "Network",
}
},
{
"ospf-route-entry": {
"address-prefix": "10.36.3.3/32",
"interface-cost": "2",
"next-hop-type": "IP",
"ospf-area": "0.0.0.0",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.70.0.4"
},
"next-hop-name": {
"interface-name": "ge-0/0/0.0"
}
},
"route-origin": "10.36.3.3",
"route-path-type": "Intra",
"route-priority": "medium",
"route-type": "Network",
}
},
{
"ospf-route-entry": {
"address-prefix": "10.64.4.4/32",
"interface-cost": "1",
"next-hop-type": "IP",
"ospf-area": "0.0.0.0",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.70.0.4"
},
"next-hop-name": {
"interface-name": "ge-0/0/0.0"
}
},
"route-origin": "10.64.4.4",
"route-path-type": "Intra",
"route-priority": "medium",
"route-type": "Network",
}
},
{
"ospf-route-entry": {
"address-prefix": "10.145.0.0/24",
"interface-cost": "0",
"next-hop-type": "IP",
"ospf-area": "0.0.0.0",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.70.0.4"
},
"next-hop-name": {
"interface-name": "ge-0/0/0.0"
}
},
"route-origin": "10.36.3.3",
"route-path-type": "Ext2",
"route-priority": "medium",
"route-type": "Network",
}
},
{
"ospf-route-entry": {
"address-prefix": "10.135.0.0/24",
"interface-cost": "1",
"next-hop-type": "IP",
"ospf-area": "0.0.0.0",
"ospf-next-hop": {
"next-hop-name": {"interface-name": "ge-0/0/1.0"}
},
"route-origin": "10.4.1.1",
"route-path-type": "Intra",
"route-priority": "low",
"route-type": "Network",
}
},
{
"ospf-route-entry": {
"address-prefix": "10.70.0.0/24",
"interface-cost": "1",
"next-hop-type": "IP",
"ospf-area": "0.0.0.0",
"ospf-next-hop": {
"next-hop-name": {"interface-name": "ge-0/0/0.0"}
},
"route-origin": "10.4.1.1",
"route-path-type": "Intra",
"route-priority": "low",
"route-type": "Network",
}
},
{
"ospf-route-entry": {
"address-prefix": "10.205.0.0/24",
"interface-cost": "2",
"next-hop-type": "IP",
"ospf-area": "0.0.0.0",
"ospf-next-hop": {
"next-hop-address": {
"interface-address": "10.70.0.4"
},
"next-hop-name": {
"interface-name": "ge-0/0/0.0"
}
},
"route-origin": "10.64.4.4",
"route-path-type": "Intra",
"route-priority": "medium",
"route-type": "Network",
}
},
],
"ospf-topology-name": "default",
}
}
}
def test_show_ospf_route_network_extensive_empty(self):
self.device = Mock(**self.empty_output)
obj = ShowOspfRouteNetworkExtensive(device=self.device)
with self.assertRaises(SchemaEmptyParserError):
obj.parse()
def test_show_ospf_route_network_extensive(self):
self.device = Mock(**self.golden_output)
obj = ShowOspfRouteNetworkExtensive(device=self.device)
parsed_output = obj.parse()
self.assertEqual(parsed_output, self.golden_parsed_output)
if __name__ == "__main__":
unittest.main() | 43.113826 | 110 | 0.287625 | 46,089 | 608,681 | 3.78496 | 0.020764 | 0.018963 | 0.014067 | 0.008897 | 0.928063 | 0.89309 | 0.875623 | 0.856654 | 0.840913 | 0.823532 | 0 | 0.179778 | 0.59405 | 608,681 | 14,118 | 111 | 43.113826 | 0.526209 | 0.001712 | 0 | 0.724915 | 0 | 0.026588 | 0.389002 | 0.016005 | 0 | 0 | 0.015526 | 0 | 0.003695 | 1 | 0.003695 | false | 0.000435 | 0.000362 | 0 | 0.01391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
18e49d1d6b94b2741c69e6352a52e5b42e54b247 | 98,237 | py | Python | msgraph-cli-extensions/v1_0/applications_v1_0/azext_applications_v1_0/generated/_params.py | thewahome/msgraph-cli | 33127d9efa23a0e5f5303c93242fbdbb73348671 | [
"MIT"
] | null | null | null | msgraph-cli-extensions/v1_0/applications_v1_0/azext_applications_v1_0/generated/_params.py | thewahome/msgraph-cli | 33127d9efa23a0e5f5303c93242fbdbb73348671 | [
"MIT"
] | null | null | null | msgraph-cli-extensions/v1_0/applications_v1_0/azext_applications_v1_0/generated/_params.py | thewahome/msgraph-cli | 33127d9efa23a0e5f5303c93242fbdbb73348671 | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
# pylint: disable=too-many-lines
# pylint: disable=too-many-statements
from msgraph.cli.core.commands.parameters import (
tags_type,
get_three_state_flag
)
from msgraph.cli.core.commands.validators import validate_file_or_dict
from azext_applications_v1_0.action import (
AddApplicationsApplicationAppRoles,
AddInfo,
AddApplicationsApplicationKeyCredentials,
AddParentalControlSettings,
AddApplicationsApplicationPasswordCredentials,
AddPublicClient,
AddCreatedOnBehalfOf,
AddExtensionProperties,
AddApplicationsApplicationHomeRealmDiscoveryPolicies,
AddApplicationsApplicationOwners,
AddApplicationsApplicationTokenIssuancePolicies,
AddApplicationsApplicationTokenLifetimePolicies,
AddImplicitGrantSettings,
AddAccessToken,
AddIdToken,
AddSaml2Token,
AddApplicationsApplicationOauth2PermissionScopes,
AddPreAuthorizedApplications,
AddKeyCredential,
AddPasswordCredential,
AddServiceprincipalsServiceprincipalAppRoles,
AddServiceprincipalsServiceprincipalKeyCredentials,
AddServiceprincipalsServiceprincipalOauth2PermissionScopes,
AddServiceprincipalsServiceprincipalPasswordCredentials,
AddAppRoleAssignedTo,
AddAppRoleAssignments,
AddClaimsMappingPolicies,
AddCreatedObjects,
AddEndpoints,
AddServiceprincipalsServiceprincipalHomeRealmDiscoveryPolicies,
AddMemberOf,
AddOauth2PermissionGrants,
AddOwnedObjects,
AddServiceprincipalsServiceprincipalOwners,
AddServiceprincipalsServiceprincipalTokenIssuancePolicies,
AddServiceprincipalsServiceprincipalTokenLifetimePolicies,
AddTransitiveMemberOf
)
def load_arguments(self, _):
with self.argument_context('applications application list') as c:
c.argument('orderby', nargs='+', help='Order items by property values')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications application create') as c:
c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
c.argument('deleted_date_time', help='')
c.argument('add_ins', type=validate_file_or_dict, help='Defines custom behavior that a consuming service can '
'use to call an app in specific contexts. For example, applications that can render file streams '
'may set the addIns property for its \'FileHandler\' functionality. This will let services like '
'Microsoft 365 call the application in the context of a document the user is working on. Expected '
'value: json-string/@json-file.')
c.argument('app_id', type=str, help='The unique identifier for the application that is assigned to an '
'application by Azure AD. Not nullable. Read-only.')
c.argument('application_template_id', type=str, help='')
c.argument('app_roles', action=AddApplicationsApplicationAppRoles, nargs='+', help='The collection of roles '
'the application declares. With app role assignments, these roles can be assigned to users, groups, '
'or other applications\' service principals. Not nullable.')
c.argument('created_date_time', help='The date and time the application was registered. Read-only.')
c.argument('description', type=str, help='')
c.argument('display_name', type=str, help='The display name for the application.')
c.argument('group_membership_claims', type=str, help='Configures the groups claim issued in a user or OAuth '
'2.0 access token that the application expects. To set this attribute, use one of the following '
'valid string values:NoneSecurityGroup: For security groups and Azure AD rolesAll: This will get '
'all of the security groups, distribution groups, and Azure AD directory roles that the signed-in '
'user is a member of')
c.argument('identifier_uris', nargs='+', help='The URIs that identify the application within its Azure AD '
'tenant, or within a verified custom domain if the application is multi-tenant. For more '
'information see Application Objects and Service Principal Objects. The any operator is required '
'for filter expressions on multi-valued properties. Not nullable.')
c.argument('info', action=AddInfo, nargs='+', help='informationalUrl')
c.argument('is_device_only_auth_supported', arg_type=get_three_state_flag(), help='')
c.argument('is_fallback_public_client', arg_type=get_three_state_flag(), help='Specifies the fallback '
'application type as public client, such as an installed application running on a mobile device. '
'The default value is false which means the fallback application type is confidential client such '
'as web app. There are certain scenarios where Azure AD cannot determine the client application '
'type (e.g. ROPC flow where it is configured without specifying a redirect URI). In those cases '
'Azure AD will interpret the application type based on the value of this property.')
c.argument('key_credentials', action=AddApplicationsApplicationKeyCredentials, nargs='+', help='The collection '
'of key credentials associated with the application Not nullable.')
c.argument('logo', help='The main logo for the application. Not nullable.')
c.argument('notes', type=str, help='')
c.argument('oauth2_require_post_response', arg_type=get_three_state_flag(), help='')
c.argument('parental_control_settings', action=AddParentalControlSettings, nargs='+',
help='parentalControlSettings')
c.argument('password_credentials', action=AddApplicationsApplicationPasswordCredentials, nargs='+', help='The '
'collection of password credentials associated with the application. Not nullable.')
c.argument('public_client', action=AddPublicClient, nargs='+', help='publicClientApplication')
c.argument('publisher_domain', type=str, help='The verified publisher domain for the application. Read-only.')
c.argument('required_resource_access', type=validate_file_or_dict, help='Specifies resources that this '
'application requires access to and the set of OAuth permission scopes and application roles that '
'it needs under each of those resources. This pre-configuration of required resource access drives '
'the consent experience. Not nullable. Expected value: json-string/@json-file.')
c.argument('sign_in_audience', type=str, help='Specifies the Microsoft accounts that are supported for the '
'current application. Supported values are:AzureADMyOrg: Users with a Microsoft work or school '
'account in my organization’s Azure AD tenant (single tenant)AzureADMultipleOrgs: Users with a '
'Microsoft work or school account in any organization’s Azure AD tenant '
'(multi-tenant)AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a '
'work or school account in any organization’s Azure AD tenant.')
c.argument('tags', tags_type)
c.argument('token_encryption_key_id', help='Specifies the keyId of a public key from the keyCredentials '
'collection. When configured, Azure AD encrypts all the tokens it emits by using the key this '
'property points to. The application code that receives the encrypted token must use the matching '
'private key to decrypt the token before it can be used for the signed-in user.')
c.argument('created_on_behalf_of', action=AddCreatedOnBehalfOf, nargs='+', help='Represents an Azure Active '
'Directory object. The directoryObject type is the base type for many other directory entity types.')
c.argument('extension_properties', action=AddExtensionProperties, nargs='+', help='Read-only. Nullable.')
c.argument('home_realm_discovery_policies', action=AddApplicationsApplicationHomeRealmDiscoveryPolicies,
nargs='+', help='')
c.argument('owners', action=AddApplicationsApplicationOwners, nargs='+', help='Directory objects that are '
'owners of the application. The owners are a set of non-admin users who are allowed to modify this '
'object. Requires version 2013-11-08 or newer. Read-only. Nullable.')
c.argument('token_issuance_policies', action=AddApplicationsApplicationTokenIssuancePolicies, nargs='+',
help='')
c.argument('token_lifetime_policies', action=AddApplicationsApplicationTokenLifetimePolicies, nargs='+',
help='')
c.argument('home_page_url', type=str, help='Home page or landing page of the application.', arg_group='Web')
c.argument('implicit_grant_settings', action=AddImplicitGrantSettings, nargs='+', help='implicitGrantSettings',
arg_group='Web')
c.argument('logout_url', type=str, help='Specifies the URL that will be used by Microsoft\'s authorization '
'service to logout an user using front-channel, back-channel or SAML logout protocols.',
arg_group='Web')
c.argument('redirect_uris', nargs='+', help='Specifies the URLs where user tokens are sent for sign-in, or the '
'redirect URIs where OAuth 2.0 authorization codes and access tokens are sent.', arg_group='Web')
c.argument('access_token', action=AddAccessToken, nargs='+', help='The optional claims returned in the JWT '
'access token.', arg_group='Optional Claims')
c.argument('id_token', action=AddIdToken, nargs='+', help='The optional claims returned in the JWT ID token.',
arg_group='Optional Claims')
c.argument('saml2_token', action=AddSaml2Token, nargs='+', help='The optional claims returned in the SAML '
'token.', arg_group='Optional Claims')
c.argument('accept_mapped_claims', arg_type=get_three_state_flag(), help='When true, allows an application to '
'use claims mapping without specifying a custom signing key.', arg_group='Api')
c.argument('known_client_applications', nargs='+', help='Used for bundling consent if you have a solution that '
'contains two parts: a client app and a custom web API app. If you set the appID of the client app '
'to this value, the user only consents once to the client app. Azure AD knows that consenting to '
'the client means implicitly consenting to the web API and automatically provisions service '
'principals for both APIs at the same time. Both the client and the web API app must be registered '
'in the same tenant.', arg_group='Api')
c.argument('oauth2_permission_scopes', action=AddApplicationsApplicationOauth2PermissionScopes, nargs='+',
help='The definition of the delegated permissions exposed by the web API represented by this '
'application registration. These delegated permissions may be requested by a client application, '
'and may be granted by users or administrators during consent. Delegated permissions are sometimes '
'referred to as OAuth 2.0 scopes.', arg_group='Api')
c.argument('pre_authorized_applications', action=AddPreAuthorizedApplications, nargs='+', help='Lists the '
'client applications that are pre-authorized with the specified delegated permissions to access '
'this application\'s APIs. Users are not required to consent to any pre-authorized application (for '
'the permissions specified). However, any additional permissions not listed in '
'preAuthorizedApplications (requested through incremental consent for example) will require user '
'consent.', arg_group='Api')
c.argument('requested_access_token_version', type=int, help='Specifies the access token version expected by '
'this resource. This changes the version and format of the JWT produced independent of the endpoint '
'or client used to request the access token. The endpoint used, v1.0 or v2.0, is chosen by the '
'client and only impacts the version of id_tokens. Resources need to explicitly configure '
'requestedAccessTokenVersion to indicate the supported access token format. Possible values for '
'requestedAccessTokenVersion are 1, 2, or null. If the value is null, this defaults to 1, which '
'corresponds to the v1.0 endpoint. If signInAudience on the application is configured as '
'AzureADandPersonalMicrosoftAccount, the value for this property must be 2', arg_group='Api')
with self.argument_context('applications application update') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
c.argument('deleted_date_time', help='')
c.argument('add_ins', type=validate_file_or_dict, help='Defines custom behavior that a consuming service can '
'use to call an app in specific contexts. For example, applications that can render file streams '
'may set the addIns property for its \'FileHandler\' functionality. This will let services like '
'Microsoft 365 call the application in the context of a document the user is working on. Expected '
'value: json-string/@json-file.')
c.argument('app_id', type=str, help='The unique identifier for the application that is assigned to an '
'application by Azure AD. Not nullable. Read-only.')
c.argument('application_template_id', type=str, help='')
c.argument('app_roles', action=AddApplicationsApplicationAppRoles, nargs='+', help='The collection of roles '
'the application declares. With app role assignments, these roles can be assigned to users, groups, '
'or other applications\' service principals. Not nullable.')
c.argument('created_date_time', help='The date and time the application was registered. Read-only.')
c.argument('description', type=str, help='')
c.argument('display_name', type=str, help='The display name for the application.')
c.argument('group_membership_claims', type=str, help='Configures the groups claim issued in a user or OAuth '
'2.0 access token that the application expects. To set this attribute, use one of the following '
'valid string values:NoneSecurityGroup: For security groups and Azure AD rolesAll: This will get '
'all of the security groups, distribution groups, and Azure AD directory roles that the signed-in '
'user is a member of')
c.argument('identifier_uris', nargs='+', help='The URIs that identify the application within its Azure AD '
'tenant, or within a verified custom domain if the application is multi-tenant. For more '
'information see Application Objects and Service Principal Objects. The any operator is required '
'for filter expressions on multi-valued properties. Not nullable.')
c.argument('info', action=AddInfo, nargs='+', help='informationalUrl')
c.argument('is_device_only_auth_supported', arg_type=get_three_state_flag(), help='')
c.argument('is_fallback_public_client', arg_type=get_three_state_flag(), help='Specifies the fallback '
'application type as public client, such as an installed application running on a mobile device. '
'The default value is false which means the fallback application type is confidential client such '
'as web app. There are certain scenarios where Azure AD cannot determine the client application '
'type (e.g. ROPC flow where it is configured without specifying a redirect URI). In those cases '
'Azure AD will interpret the application type based on the value of this property.')
c.argument('key_credentials', action=AddApplicationsApplicationKeyCredentials, nargs='+', help='The collection '
'of key credentials associated with the application Not nullable.')
c.argument('logo', help='The main logo for the application. Not nullable.')
c.argument('notes', type=str, help='')
c.argument('oauth2_require_post_response', arg_type=get_three_state_flag(), help='')
c.argument('parental_control_settings', action=AddParentalControlSettings, nargs='+',
help='parentalControlSettings')
c.argument('password_credentials', action=AddApplicationsApplicationPasswordCredentials, nargs='+', help='The '
'collection of password credentials associated with the application. Not nullable.')
c.argument('public_client', action=AddPublicClient, nargs='+', help='publicClientApplication')
c.argument('publisher_domain', type=str, help='The verified publisher domain for the application. Read-only.')
c.argument('required_resource_access', type=validate_file_or_dict, help='Specifies resources that this '
'application requires access to and the set of OAuth permission scopes and application roles that '
'it needs under each of those resources. This pre-configuration of required resource access drives '
'the consent experience. Not nullable. Expected value: json-string/@json-file.')
c.argument('sign_in_audience', type=str, help='Specifies the Microsoft accounts that are supported for the '
'current application. Supported values are:AzureADMyOrg: Users with a Microsoft work or school '
'account in my organization’s Azure AD tenant (single tenant)AzureADMultipleOrgs: Users with a '
'Microsoft work or school account in any organization’s Azure AD tenant '
'(multi-tenant)AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a '
'work or school account in any organization’s Azure AD tenant.')
c.argument('tags', tags_type)
c.argument('token_encryption_key_id', help='Specifies the keyId of a public key from the keyCredentials '
'collection. When configured, Azure AD encrypts all the tokens it emits by using the key this '
'property points to. The application code that receives the encrypted token must use the matching '
'private key to decrypt the token before it can be used for the signed-in user.')
c.argument('created_on_behalf_of', action=AddCreatedOnBehalfOf, nargs='+', help='Represents an Azure Active '
'Directory object. The directoryObject type is the base type for many other directory entity types.')
c.argument('extension_properties', action=AddExtensionProperties, nargs='+', help='Read-only. Nullable.')
c.argument('home_realm_discovery_policies', action=AddApplicationsApplicationHomeRealmDiscoveryPolicies,
nargs='+', help='')
c.argument('owners', action=AddApplicationsApplicationOwners, nargs='+', help='Directory objects that are '
'owners of the application. The owners are a set of non-admin users who are allowed to modify this '
'object. Requires version 2013-11-08 or newer. Read-only. Nullable.')
c.argument('token_issuance_policies', action=AddApplicationsApplicationTokenIssuancePolicies, nargs='+',
help='')
c.argument('token_lifetime_policies', action=AddApplicationsApplicationTokenLifetimePolicies, nargs='+',
help='')
c.argument('home_page_url', type=str, help='Home page or landing page of the application.', arg_group='Web')
c.argument('implicit_grant_settings', action=AddImplicitGrantSettings, nargs='+', help='implicitGrantSettings',
arg_group='Web')
c.argument('logout_url', type=str, help='Specifies the URL that will be used by Microsoft\'s authorization '
'service to logout an user using front-channel, back-channel or SAML logout protocols.',
arg_group='Web')
c.argument('redirect_uris', nargs='+', help='Specifies the URLs where user tokens are sent for sign-in, or the '
'redirect URIs where OAuth 2.0 authorization codes and access tokens are sent.', arg_group='Web')
c.argument('access_token', action=AddAccessToken, nargs='+', help='The optional claims returned in the JWT '
'access token.', arg_group='Optional Claims')
c.argument('id_token', action=AddIdToken, nargs='+', help='The optional claims returned in the JWT ID token.',
arg_group='Optional Claims')
c.argument('saml2_token', action=AddSaml2Token, nargs='+', help='The optional claims returned in the SAML '
'token.', arg_group='Optional Claims')
c.argument('accept_mapped_claims', arg_type=get_three_state_flag(), help='When true, allows an application to '
'use claims mapping without specifying a custom signing key.', arg_group='Api')
c.argument('known_client_applications', nargs='+', help='Used for bundling consent if you have a solution that '
'contains two parts: a client app and a custom web API app. If you set the appID of the client app '
'to this value, the user only consents once to the client app. Azure AD knows that consenting to '
'the client means implicitly consenting to the web API and automatically provisions service '
'principals for both APIs at the same time. Both the client and the web API app must be registered '
'in the same tenant.', arg_group='Api')
c.argument('oauth2_permission_scopes', action=AddApplicationsApplicationOauth2PermissionScopes, nargs='+',
help='The definition of the delegated permissions exposed by the web API represented by this '
'application registration. These delegated permissions may be requested by a client application, '
'and may be granted by users or administrators during consent. Delegated permissions are sometimes '
'referred to as OAuth 2.0 scopes.', arg_group='Api')
c.argument('pre_authorized_applications', action=AddPreAuthorizedApplications, nargs='+', help='Lists the '
'client applications that are pre-authorized with the specified delegated permissions to access '
'this application\'s APIs. Users are not required to consent to any pre-authorized application (for '
'the permissions specified). However, any additional permissions not listed in '
'preAuthorizedApplications (requested through incremental consent for example) will require user '
'consent.', arg_group='Api')
c.argument('requested_access_token_version', type=int, help='Specifies the access token version expected by '
'this resource. This changes the version and format of the JWT produced independent of the endpoint '
'or client used to request the access token. The endpoint used, v1.0 or v2.0, is chosen by the '
'client and only impacts the version of id_tokens. Resources need to explicitly configure '
'requestedAccessTokenVersion to indicate the supported access token format. Possible values for '
'requestedAccessTokenVersion are 1, 2, or null. If the value is null, this defaults to 1, which '
'corresponds to the v1.0 endpoint. If signInAudience on the application is configured as '
'AzureADandPersonalMicrosoftAccount, the value for this property must be 2', arg_group='Api')
with self.argument_context('applications application delete-application') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('if_match', type=str, help='ETag')
with self.argument_context('applications application set-logo') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('data', help='New media content.')
with self.argument_context('applications application show-application') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications application show-logo') as c:
c.argument('application_id', type=str, help='key: id of application')
with self.argument_context('applications application add-key') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('key_credential', action=AddKeyCredential, nargs='+', help='keyCredential')
c.argument('password_credential', action=AddPasswordCredential, nargs='+', help='passwordCredential')
c.argument('proof', type=str, help='')
with self.argument_context('applications application add-password') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('password_credential', action=AddPasswordCredential, nargs='+', help='passwordCredential')
with self.argument_context('applications application check-member-group') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('group_ids', nargs='+', help='')
with self.argument_context('applications application check-member-object') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('ids', nargs='+', help='')
with self.argument_context('applications application create-extension-property') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
c.argument('deleted_date_time', help='')
c.argument('app_display_name', type=str, help='Display name of the application object on which this extension '
'property is defined. Read-only.')
c.argument('data_type', type=str, help='Specifies the data type of the value the extension property can hold. '
'Following values are supported. Not nullable. Binary - 256 bytes maximumBooleanDateTime - Must be '
'specified in ISO 8601 format. Will be stored in UTC.Integer - 32-bit value.LargeInteger - 64-bit '
'value.String - 256 characters maximum')
c.argument('is_synced_from_on_premises', arg_type=get_three_state_flag(), help='Indicates if this extension '
'property was sycned from onpremises directory using Azure AD Connect. Read-only.')
c.argument('name', type=str, help='Name of the extension property. Not nullable.')
c.argument('target_objects', nargs='+', help='Following values are supported. Not nullable. '
'UserGroupOrganizationDeviceApplication')
with self.argument_context('applications application create-ref-home-realm-discovery-policy') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('body', type=validate_file_or_dict, help='New navigation property ref value Expected value: '
'json-string/@json-file.')
with self.argument_context('applications application create-ref-owner') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('body', type=validate_file_or_dict, help='New navigation property ref value Expected value: '
'json-string/@json-file.')
with self.argument_context('applications application create-ref-token-issuance-policy') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('body', type=validate_file_or_dict, help='New navigation property ref value Expected value: '
'json-string/@json-file.')
with self.argument_context('applications application create-ref-token-lifetime-policy') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('body', type=validate_file_or_dict, help='New navigation property ref value Expected value: '
'json-string/@json-file.')
with self.argument_context('applications application delete-extension-property') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('extension_property_id', type=str, help='key: id of extensionProperty')
c.argument('if_match', type=str, help='ETag')
with self.argument_context('applications application delete-ref-created-on-behalf-of') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('if_match', type=str, help='ETag')
with self.argument_context('applications application get-available-extension-property') as c:
c.argument('is_synced_from_on_premises', arg_type=get_three_state_flag(), help='')
with self.argument_context('applications application get-by-id') as c:
c.argument('ids', nargs='+', help='')
c.argument('types', nargs='+', help='')
with self.argument_context('applications application get-member-group') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('security_enabled_only', arg_type=get_three_state_flag(), help='')
with self.argument_context('applications application get-member-object') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('security_enabled_only', arg_type=get_three_state_flag(), help='')
with self.argument_context('applications application list-extension-property') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('orderby', nargs='+', help='Order items by property values')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications application list-home-realm-discovery-policy') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('orderby', nargs='+', help='Order items by property values')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications application list-owner') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('orderby', nargs='+', help='Order items by property values')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications application list-ref-home-realm-discovery-policy') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('orderby', nargs='+', help='Order items by property values')
with self.argument_context('applications application list-ref-owner') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('orderby', nargs='+', help='Order items by property values')
with self.argument_context('applications application list-ref-token-issuance-policy') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('orderby', nargs='+', help='Order items by property values')
with self.argument_context('applications application list-ref-token-lifetime-policy') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('orderby', nargs='+', help='Order items by property values')
with self.argument_context('applications application list-token-issuance-policy') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('orderby', nargs='+', help='Order items by property values')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications application list-token-lifetime-policy') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('orderby', nargs='+', help='Order items by property values')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications application remove-key') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('key_id', help='')
c.argument('proof', type=str, help='')
with self.argument_context('applications application remove-password') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('key_id', help='')
with self.argument_context('applications application restore') as c:
c.argument('application_id', type=str, help='key: id of application')
with self.argument_context('applications application set-ref-created-on-behalf-of') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('body', type=validate_file_or_dict, help='New navigation property ref values Expected value: '
'json-string/@json-file.')
with self.argument_context('applications application show-created-on-behalf-of') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications application show-extension-property') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('extension_property_id', type=str, help='key: id of extensionProperty')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications application show-ref-created-on-behalf-of') as c:
c.argument('application_id', type=str, help='key: id of application')
with self.argument_context('applications application update-extension-property') as c:
c.argument('application_id', type=str, help='key: id of application')
c.argument('extension_property_id', type=str, help='key: id of extensionProperty')
c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
c.argument('deleted_date_time', help='')
c.argument('app_display_name', type=str, help='Display name of the application object on which this extension '
'property is defined. Read-only.')
c.argument('data_type', type=str, help='Specifies the data type of the value the extension property can hold. '
'Following values are supported. Not nullable. Binary - 256 bytes maximumBooleanDateTime - Must be '
'specified in ISO 8601 format. Will be stored in UTC.Integer - 32-bit value.LargeInteger - 64-bit '
'value.String - 256 characters maximum')
c.argument('is_synced_from_on_premises', arg_type=get_three_state_flag(), help='Indicates if this extension '
'property was sycned from onpremises directory using Azure AD Connect. Read-only.')
c.argument('name', type=str, help='Name of the extension property. Not nullable.')
c.argument('target_objects', nargs='+', help='Following values are supported. Not nullable. '
'UserGroupOrganizationDeviceApplication')
with self.argument_context('applications application validate-property') as c:
c.argument('entity_type', type=str, help='')
c.argument('display_name', type=str, help='')
c.argument('mail_nickname', type=str, help='')
c.argument('on_behalf_of_user_id', help='')
with self.argument_context('applications group create-app-role-assignment') as c:
c.argument('group_id', type=str, help='key: id of group')
c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
c.argument('deleted_date_time', help='')
c.argument('app_role_id', help='The identifier (id) for the app role which is assigned to the principal. This '
'app role must be exposed in the appRoles property on the resource application\'s service principal '
'(resourceId). If the resource application has not declared any app roles, a default app role ID of '
'00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to '
'the resource app without any specific app roles. Required on create. Does not support $filter.')
c.argument('created_date_time', help='')
c.argument('principal_display_name', type=str, help='The display name of the user, group, or service principal '
'that was granted the app role assignment. Read-only. Supports $filter (eq and startswith).')
c.argument('principal_id', help='The unique identifier (id) for the user, group or service principal being '
'granted the app role. Required on create. Does not support $filter.')
c.argument('principal_type', type=str, help='The type of the assigned principal. This can either be \'User\', '
'\'Group\' or \'ServicePrincipal\'. Read-only. Does not support $filter.')
c.argument('resource_display_name', type=str, help='The display name of the resource app\'s service principal '
'to which the assignment is made. Does not support $filter.')
c.argument('resource_id', help='The unique identifier (id) for the resource service principal for which the '
'assignment is made. Required on create. Supports $filter (eq only).')
with self.argument_context('applications group delete-app-role-assignment') as c:
c.argument('group_id', type=str, help='key: id of group')
c.argument('app_role_assignment_id', type=str, help='key: id of appRoleAssignment')
c.argument('if_match', type=str, help='ETag')
with self.argument_context('applications group list-app-role-assignment') as c:
c.argument('group_id', type=str, help='key: id of group')
c.argument('orderby', nargs='+', help='Order items by property values')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications group show-app-role-assignment') as c:
c.argument('group_id', type=str, help='key: id of group')
c.argument('app_role_assignment_id', type=str, help='key: id of appRoleAssignment')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications group update-app-role-assignment') as c:
c.argument('group_id', type=str, help='key: id of group')
c.argument('app_role_assignment_id', type=str, help='key: id of appRoleAssignment')
c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
c.argument('deleted_date_time', help='')
c.argument('app_role_id', help='The identifier (id) for the app role which is assigned to the principal. This '
'app role must be exposed in the appRoles property on the resource application\'s service principal '
'(resourceId). If the resource application has not declared any app roles, a default app role ID of '
'00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to '
'the resource app without any specific app roles. Required on create. Does not support $filter.')
c.argument('created_date_time', help='')
c.argument('principal_display_name', type=str, help='The display name of the user, group, or service principal '
'that was granted the app role assignment. Read-only. Supports $filter (eq and startswith).')
c.argument('principal_id', help='The unique identifier (id) for the user, group or service principal being '
'granted the app role. Required on create. Does not support $filter.')
c.argument('principal_type', type=str, help='The type of the assigned principal. This can either be \'User\', '
'\'Group\' or \'ServicePrincipal\'. Read-only. Does not support $filter.')
c.argument('resource_display_name', type=str, help='The display name of the resource app\'s service principal '
'to which the assignment is made. Does not support $filter.')
c.argument('resource_id', help='The unique identifier (id) for the resource service principal for which the '
'assignment is made. Required on create. Supports $filter (eq only).')
with self.argument_context('applications service-principal-service-principal create-service-principal') as c:
c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
c.argument('deleted_date_time', help='')
c.argument('account_enabled', arg_type=get_three_state_flag(), help='true if the service principal account is '
'enabled; otherwise, false.')
c.argument('add_ins', type=validate_file_or_dict, help='Defines custom behavior that a consuming service can '
'use to call an app in specific contexts. For example, applications that can render file streams '
'may set the addIns property for its \'FileHandler\' functionality. This will let services like '
'Microsoft 365 call the application in the context of a document the user is working on. Expected '
'value: json-string/@json-file.')
c.argument('alternative_names', nargs='+', help='Used to retrieve service principals by subscription, identify '
'resource group and full resource ids for managed identities.')
c.argument('app_description', type=str, help='')
c.argument('app_display_name', type=str, help='The display name exposed by the associated application.')
c.argument('app_id', type=str, help='The unique identifier for the associated application (its appId '
'property).')
c.argument('application_template_id', type=str, help='Unique identifier of the applicationTemplate that the '
'servicePrincipal was created from. Read-only.')
c.argument('app_owner_organization_id', help='Contains the tenant id where the application is registered. This '
'is applicable only to service principals backed by applications.')
c.argument('app_role_assignment_required', arg_type=get_three_state_flag(), help='Specifies whether users or '
'other service principals need to be granted an app role assignment for this service principal '
'before users can sign in or apps can get tokens. The default value is false. Not nullable.')
c.argument('app_roles', action=AddServiceprincipalsServiceprincipalAppRoles, nargs='+', help='The roles '
'exposed by the application which this service principal represents. For more information see the '
'appRoles property definition on the application entity. Not nullable.')
c.argument('description', type=str, help='')
c.argument('display_name', type=str, help='The display name for the service principal.')
c.argument('homepage', type=str, help='Home page or landing page of the application.')
c.argument('info', action=AddInfo, nargs='+', help='informationalUrl')
c.argument('key_credentials', action=AddServiceprincipalsServiceprincipalKeyCredentials, nargs='+', help='The '
'collection of key credentials associated with the service principal. Not nullable.')
c.argument('login_url', type=str, help='Specifies the URL where the service provider redirects the user to '
'Azure AD to authenticate. Azure AD uses the URL to launch the application from Microsoft 365 or '
'the Azure AD My Apps. When blank, Azure AD performs IdP-initiated sign-on for applications '
'configured with SAML-based single sign-on. The user launches the application from Microsoft 365, '
'the Azure AD My Apps, or the Azure AD SSO URL.')
c.argument('logout_url', type=str, help='Specifies the URL that will be used by Microsoft\'s authorization '
'service to logout an user using OpenId Connect front-channel, back-channel or SAML logout '
'protocols.')
c.argument('notes', type=str, help='')
c.argument('notification_email_addresses', nargs='+', help='Specifies the list of email addresses where Azure '
'AD sends a notification when the active certificate is near the expiration date. This is only for '
'the certificates used to sign the SAML token issued for Azure AD Gallery applications.')
c.argument('oauth2_permission_scopes', action=AddServiceprincipalsServiceprincipalOauth2PermissionScopes,
nargs='+', help='The delegated permissions exposed by the application. For more information see the '
'oauth2PermissionScopes property on the application entity\'s api property. Not nullable.')
c.argument('password_credentials', action=AddServiceprincipalsServiceprincipalPasswordCredentials, nargs='+',
help='The collection of password credentials associated with the service principal. Not nullable.')
c.argument('preferred_single_sign_on_mode', type=str, help='Specifies the single sign-on mode configured for '
'this application. Azure AD uses the preferred single sign-on mode to launch the application from '
'Microsoft 365 or the Azure AD My Apps. The supported values are password, saml, external, and '
'oidc.')
c.argument('preferred_token_signing_key_thumbprint', type=str, help='')
c.argument('reply_urls', nargs='+', help='The URLs that user tokens are sent to for sign in with the '
'associated application, or the redirect URIs that OAuth 2.0 authorization codes and access tokens '
'are sent to for the associated application. Not nullable.')
c.argument('service_principal_names', nargs='+', help='Contains the list of identifiersUris, copied over from '
'the associated application. Additional values can be added to hybrid applications. These values '
'can be used to identify the permissions exposed by this app within Azure AD. For example,Client '
'apps can specify a resource URI which is based on the values of this property to acquire an access '
'token, which is the URI returned in the \'aud\' claim.The any operator is required for filter '
'expressions on multi-valued properties. Not nullable.')
c.argument('service_principal_type', type=str, help='Identifies if the service principal represents an '
'application or a managed identity. This is set by Azure AD internally. For a service principal '
'that represents an application this is set as Application. For a service principal that represent '
'a managed identity this is set as ManagedIdentity.')
c.argument('tags', tags_type)
c.argument('token_encryption_key_id', help='Specifies the keyId of a public key from the keyCredentials '
'collection. When configured, Azure AD issues tokens for this application encrypted using the key '
'specified by this property. The application code that receives the encrypted token must use the '
'matching private key to decrypt the token before it can be used for the signed-in user.')
c.argument('app_role_assigned_to', action=AddAppRoleAssignedTo, nargs='+', help='Principals (users, groups, '
'and service principals) that are assigned to this service principal. Read-only.')
c.argument('app_role_assignments', action=AddAppRoleAssignments, nargs='+', help='Applications that this '
'service principal is assigned to. Read-only. Nullable.')
c.argument('claims_mapping_policies', action=AddClaimsMappingPolicies, nargs='+', help='The '
'claimsMappingPolicies assigned to this service principal.')
c.argument('created_objects', action=AddCreatedObjects, nargs='+', help='Directory objects created by this '
'service principal. Read-only. Nullable.')
c.argument('endpoints', action=AddEndpoints, nargs='+', help='Endpoints available for discovery. Services like '
'Sharepoint populate this property with a tenant specific SharePoint endpoints that other '
'applications can discover and use in their experiences.')
c.argument('home_realm_discovery_policies',
action=AddServiceprincipalsServiceprincipalHomeRealmDiscoveryPolicies, nargs='+', help='The '
'homeRealmDiscoveryPolicies assigned to this service principal.')
c.argument('member_of', action=AddMemberOf, nargs='+', help='Roles that this service principal is a member of. '
'HTTP Methods: GET Read-only. Nullable.')
c.argument('oauth2_permission_grants', action=AddOauth2PermissionGrants, nargs='+', help='Delegated permission '
'grants authorizing this service principal to access an API on behalf of a signed-in user. '
'Read-only. Nullable.')
c.argument('owned_objects', action=AddOwnedObjects, nargs='+', help='Directory objects that are owned by this '
'service principal. Read-only. Nullable.')
c.argument('owners', action=AddServiceprincipalsServiceprincipalOwners, nargs='+', help='Directory objects '
'that are owners of this servicePrincipal. The owners are a set of non-admin users or '
'servicePrincipals who are allowed to modify this object. Read-only. Nullable.')
c.argument('token_issuance_policies', action=AddServiceprincipalsServiceprincipalTokenIssuancePolicies,
nargs='+', help='The tokenIssuancePolicies assigned to this service principal.')
c.argument('token_lifetime_policies', action=AddServiceprincipalsServiceprincipalTokenLifetimePolicies,
nargs='+', help='The tokenLifetimePolicies assigned to this service principal.')
c.argument('transitive_member_of', action=AddTransitiveMemberOf, nargs='+', help='')
c.argument('relay_state', type=str, help='The relative URI the service provider would redirect to after '
'completion of the single sign-on flow.', arg_group='Saml Single Sign On Settings')
with self.argument_context('applications service-principal-service-principal delete-service-principal') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('if_match', type=str, help='ETag')
with self.argument_context('applications service-principal-service-principal list-service-principal') as c:
c.argument('orderby', nargs='+', help='Order items by property values')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications service-principal-service-principal show-service-principal') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications service-principal-service-principal update-service-principal') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
c.argument('deleted_date_time', help='')
c.argument('account_enabled', arg_type=get_three_state_flag(), help='true if the service principal account is '
'enabled; otherwise, false.')
c.argument('add_ins', type=validate_file_or_dict, help='Defines custom behavior that a consuming service can '
'use to call an app in specific contexts. For example, applications that can render file streams '
'may set the addIns property for its \'FileHandler\' functionality. This will let services like '
'Microsoft 365 call the application in the context of a document the user is working on. Expected '
'value: json-string/@json-file.')
c.argument('alternative_names', nargs='+', help='Used to retrieve service principals by subscription, identify '
'resource group and full resource ids for managed identities.')
c.argument('app_description', type=str, help='')
c.argument('app_display_name', type=str, help='The display name exposed by the associated application.')
c.argument('app_id', type=str, help='The unique identifier for the associated application (its appId '
'property).')
c.argument('application_template_id', type=str, help='Unique identifier of the applicationTemplate that the '
'servicePrincipal was created from. Read-only.')
c.argument('app_owner_organization_id', help='Contains the tenant id where the application is registered. This '
'is applicable only to service principals backed by applications.')
c.argument('app_role_assignment_required', arg_type=get_three_state_flag(), help='Specifies whether users or '
'other service principals need to be granted an app role assignment for this service principal '
'before users can sign in or apps can get tokens. The default value is false. Not nullable.')
c.argument('app_roles', action=AddServiceprincipalsServiceprincipalAppRoles, nargs='+', help='The roles '
'exposed by the application which this service principal represents. For more information see the '
'appRoles property definition on the application entity. Not nullable.')
c.argument('description', type=str, help='')
c.argument('display_name', type=str, help='The display name for the service principal.')
c.argument('homepage', type=str, help='Home page or landing page of the application.')
c.argument('info', action=AddInfo, nargs='+', help='informationalUrl')
c.argument('key_credentials', action=AddServiceprincipalsServiceprincipalKeyCredentials, nargs='+', help='The '
'collection of key credentials associated with the service principal. Not nullable.')
c.argument('login_url', type=str, help='Specifies the URL where the service provider redirects the user to '
'Azure AD to authenticate. Azure AD uses the URL to launch the application from Microsoft 365 or '
'the Azure AD My Apps. When blank, Azure AD performs IdP-initiated sign-on for applications '
'configured with SAML-based single sign-on. The user launches the application from Microsoft 365, '
'the Azure AD My Apps, or the Azure AD SSO URL.')
c.argument('logout_url', type=str, help='Specifies the URL that will be used by Microsoft\'s authorization '
'service to logout an user using OpenId Connect front-channel, back-channel or SAML logout '
'protocols.')
c.argument('notes', type=str, help='')
c.argument('notification_email_addresses', nargs='+', help='Specifies the list of email addresses where Azure '
'AD sends a notification when the active certificate is near the expiration date. This is only for '
'the certificates used to sign the SAML token issued for Azure AD Gallery applications.')
c.argument('oauth2_permission_scopes', action=AddServiceprincipalsServiceprincipalOauth2PermissionScopes,
nargs='+', help='The delegated permissions exposed by the application. For more information see the '
'oauth2PermissionScopes property on the application entity\'s api property. Not nullable.')
c.argument('password_credentials', action=AddServiceprincipalsServiceprincipalPasswordCredentials, nargs='+',
help='The collection of password credentials associated with the service principal. Not nullable.')
c.argument('preferred_single_sign_on_mode', type=str, help='Specifies the single sign-on mode configured for '
'this application. Azure AD uses the preferred single sign-on mode to launch the application from '
'Microsoft 365 or the Azure AD My Apps. The supported values are password, saml, external, and '
'oidc.')
c.argument('preferred_token_signing_key_thumbprint', type=str, help='')
c.argument('reply_urls', nargs='+', help='The URLs that user tokens are sent to for sign in with the '
'associated application, or the redirect URIs that OAuth 2.0 authorization codes and access tokens '
'are sent to for the associated application. Not nullable.')
c.argument('service_principal_names', nargs='+', help='Contains the list of identifiersUris, copied over from '
'the associated application. Additional values can be added to hybrid applications. These values '
'can be used to identify the permissions exposed by this app within Azure AD. For example,Client '
'apps can specify a resource URI which is based on the values of this property to acquire an access '
'token, which is the URI returned in the \'aud\' claim.The any operator is required for filter '
'expressions on multi-valued properties. Not nullable.')
c.argument('service_principal_type', type=str, help='Identifies if the service principal represents an '
'application or a managed identity. This is set by Azure AD internally. For a service principal '
'that represents an application this is set as Application. For a service principal that represent '
'a managed identity this is set as ManagedIdentity.')
c.argument('tags', tags_type)
c.argument('token_encryption_key_id', help='Specifies the keyId of a public key from the keyCredentials '
'collection. When configured, Azure AD issues tokens for this application encrypted using the key '
'specified by this property. The application code that receives the encrypted token must use the '
'matching private key to decrypt the token before it can be used for the signed-in user.')
c.argument('app_role_assigned_to', action=AddAppRoleAssignedTo, nargs='+', help='Principals (users, groups, '
'and service principals) that are assigned to this service principal. Read-only.')
c.argument('app_role_assignments', action=AddAppRoleAssignments, nargs='+', help='Applications that this '
'service principal is assigned to. Read-only. Nullable.')
c.argument('claims_mapping_policies', action=AddClaimsMappingPolicies, nargs='+', help='The '
'claimsMappingPolicies assigned to this service principal.')
c.argument('created_objects', action=AddCreatedObjects, nargs='+', help='Directory objects created by this '
'service principal. Read-only. Nullable.')
c.argument('endpoints', action=AddEndpoints, nargs='+', help='Endpoints available for discovery. Services like '
'Sharepoint populate this property with a tenant specific SharePoint endpoints that other '
'applications can discover and use in their experiences.')
c.argument('home_realm_discovery_policies',
action=AddServiceprincipalsServiceprincipalHomeRealmDiscoveryPolicies, nargs='+', help='The '
'homeRealmDiscoveryPolicies assigned to this service principal.')
c.argument('member_of', action=AddMemberOf, nargs='+', help='Roles that this service principal is a member of. '
'HTTP Methods: GET Read-only. Nullable.')
c.argument('oauth2_permission_grants', action=AddOauth2PermissionGrants, nargs='+', help='Delegated permission '
'grants authorizing this service principal to access an API on behalf of a signed-in user. '
'Read-only. Nullable.')
c.argument('owned_objects', action=AddOwnedObjects, nargs='+', help='Directory objects that are owned by this '
'service principal. Read-only. Nullable.')
c.argument('owners', action=AddServiceprincipalsServiceprincipalOwners, nargs='+', help='Directory objects '
'that are owners of this servicePrincipal. The owners are a set of non-admin users or '
'servicePrincipals who are allowed to modify this object. Read-only. Nullable.')
c.argument('token_issuance_policies', action=AddServiceprincipalsServiceprincipalTokenIssuancePolicies,
nargs='+', help='The tokenIssuancePolicies assigned to this service principal.')
c.argument('token_lifetime_policies', action=AddServiceprincipalsServiceprincipalTokenLifetimePolicies,
nargs='+', help='The tokenLifetimePolicies assigned to this service principal.')
c.argument('transitive_member_of', action=AddTransitiveMemberOf, nargs='+', help='')
c.argument('relay_state', type=str, help='The relative URI the service provider would redirect to after '
'completion of the single sign-on flow.', arg_group='Saml Single Sign On Settings')
with self.argument_context('applications service-principal add-key') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('key_credential', action=AddKeyCredential, nargs='+', help='keyCredential')
c.argument('password_credential', action=AddPasswordCredential, nargs='+', help='passwordCredential')
c.argument('proof', type=str, help='')
with self.argument_context('applications service-principal add-password') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('password_credential', action=AddPasswordCredential, nargs='+', help='passwordCredential')
with self.argument_context('applications service-principal check-member-group') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('group_ids', nargs='+', help='')
with self.argument_context('applications service-principal check-member-object') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('ids', nargs='+', help='')
with self.argument_context('applications service-principal create-app-role-assigned-to') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
c.argument('deleted_date_time', help='')
c.argument('app_role_id', help='The identifier (id) for the app role which is assigned to the principal. This '
'app role must be exposed in the appRoles property on the resource application\'s service principal '
'(resourceId). If the resource application has not declared any app roles, a default app role ID of '
'00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to '
'the resource app without any specific app roles. Required on create. Does not support $filter.')
c.argument('created_date_time', help='')
c.argument('principal_display_name', type=str, help='The display name of the user, group, or service principal '
'that was granted the app role assignment. Read-only. Supports $filter (eq and startswith).')
c.argument('principal_id', help='The unique identifier (id) for the user, group or service principal being '
'granted the app role. Required on create. Does not support $filter.')
c.argument('principal_type', type=str, help='The type of the assigned principal. This can either be \'User\', '
'\'Group\' or \'ServicePrincipal\'. Read-only. Does not support $filter.')
c.argument('resource_display_name', type=str, help='The display name of the resource app\'s service principal '
'to which the assignment is made. Does not support $filter.')
c.argument('resource_id', help='The unique identifier (id) for the resource service principal for which the '
'assignment is made. Required on create. Supports $filter (eq only).')
with self.argument_context('applications service-principal create-app-role-assignment') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
c.argument('deleted_date_time', help='')
c.argument('app_role_id', help='The identifier (id) for the app role which is assigned to the principal. This '
'app role must be exposed in the appRoles property on the resource application\'s service principal '
'(resourceId). If the resource application has not declared any app roles, a default app role ID of '
'00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to '
'the resource app without any specific app roles. Required on create. Does not support $filter.')
c.argument('created_date_time', help='')
c.argument('principal_display_name', type=str, help='The display name of the user, group, or service principal '
'that was granted the app role assignment. Read-only. Supports $filter (eq and startswith).')
c.argument('principal_id', help='The unique identifier (id) for the user, group or service principal being '
'granted the app role. Required on create. Does not support $filter.')
c.argument('principal_type', type=str, help='The type of the assigned principal. This can either be \'User\', '
'\'Group\' or \'ServicePrincipal\'. Read-only. Does not support $filter.')
c.argument('resource_display_name', type=str, help='The display name of the resource app\'s service principal '
'to which the assignment is made. Does not support $filter.')
c.argument('resource_id', help='The unique identifier (id) for the resource service principal for which the '
'assignment is made. Required on create. Supports $filter (eq only).')
with self.argument_context('applications service-principal create-endpoint') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
c.argument('deleted_date_time', help='')
c.argument('capability', type=str, help='Describes the capability that is associated with this resource. (e.g. '
'Messages, Conversations, etc.) Not nullable. Read-only.')
c.argument('provider_id', type=str, help='Application id of the publishing underlying service. Not nullable. '
'Read-only.')
c.argument('provider_name', type=str, help='Name of the publishing underlying service. Read-only.')
c.argument('provider_resource_id', type=str, help='For Microsoft 365 groups, this is set to a well-known name '
'for the resource (e.g. Yammer.FeedURL etc.). Not nullable. Read-only.')
c.argument('uri', type=str, help='URL of the published resource. Not nullable. Read-only.')
with self.argument_context('applications service-principal create-ref-claim-mapping-policy') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('body', type=validate_file_or_dict, help='New navigation property ref value Expected value: '
'json-string/@json-file.')
with self.argument_context('applications service-principal create-ref-created-object') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('body', type=validate_file_or_dict, help='New navigation property ref value Expected value: '
'json-string/@json-file.')
with self.argument_context('applications service-principal create-ref-home-realm-discovery-policy') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('body', type=validate_file_or_dict, help='New navigation property ref value Expected value: '
'json-string/@json-file.')
with self.argument_context('applications service-principal create-ref-member-of') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('body', type=validate_file_or_dict, help='New navigation property ref value Expected value: '
'json-string/@json-file.')
with self.argument_context('applications service-principal create-ref-oauth2-permission-grant') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('body', type=validate_file_or_dict, help='New navigation property ref value Expected value: '
'json-string/@json-file.')
with self.argument_context('applications service-principal create-ref-owned-object') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('body', type=validate_file_or_dict, help='New navigation property ref value Expected value: '
'json-string/@json-file.')
with self.argument_context('applications service-principal create-ref-owner') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('body', type=validate_file_or_dict, help='New navigation property ref value Expected value: '
'json-string/@json-file.')
with self.argument_context('applications service-principal create-ref-token-issuance-policy') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('body', type=validate_file_or_dict, help='New navigation property ref value Expected value: '
'json-string/@json-file.')
with self.argument_context('applications service-principal create-ref-token-lifetime-policy') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('body', type=validate_file_or_dict, help='New navigation property ref value Expected value: '
'json-string/@json-file.')
with self.argument_context('applications service-principal create-ref-transitive-member-of') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('body', type=validate_file_or_dict, help='New navigation property ref value Expected value: '
'json-string/@json-file.')
with self.argument_context('applications service-principal delete-app-role-assigned-to') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('app_role_assignment_id', type=str, help='key: id of appRoleAssignment')
c.argument('if_match', type=str, help='ETag')
with self.argument_context('applications service-principal delete-app-role-assignment') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('app_role_assignment_id', type=str, help='key: id of appRoleAssignment')
c.argument('if_match', type=str, help='ETag')
with self.argument_context('applications service-principal delete-endpoint') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('endpoint_id', type=str, help='key: id of endpoint')
c.argument('if_match', type=str, help='ETag')
with self.argument_context('applications service-principal get-available-extension-property') as c:
c.argument('is_synced_from_on_premises', arg_type=get_three_state_flag(), help='')
with self.argument_context('applications service-principal get-by-id') as c:
c.argument('ids', nargs='+', help='')
c.argument('types', nargs='+', help='')
with self.argument_context('applications service-principal get-member-group') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('security_enabled_only', arg_type=get_three_state_flag(), help='')
with self.argument_context('applications service-principal get-member-object') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('security_enabled_only', arg_type=get_three_state_flag(), help='')
with self.argument_context('applications service-principal list-app-role-assigned-to') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('orderby', nargs='+', help='Order items by property values')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications service-principal list-app-role-assignment') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('orderby', nargs='+', help='Order items by property values')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications service-principal list-claim-mapping-policy') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('orderby', nargs='+', help='Order items by property values')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications service-principal list-created-object') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('orderby', nargs='+', help='Order items by property values')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications service-principal list-endpoint') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('orderby', nargs='+', help='Order items by property values')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications service-principal list-home-realm-discovery-policy') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('orderby', nargs='+', help='Order items by property values')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications service-principal list-member-of') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('orderby', nargs='+', help='Order items by property values')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications service-principal list-oauth2-permission-grant') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('orderby', nargs='+', help='Order items by property values')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications service-principal list-owned-object') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('orderby', nargs='+', help='Order items by property values')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications service-principal list-owner') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('orderby', nargs='+', help='Order items by property values')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications service-principal list-ref-claim-mapping-policy') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('orderby', nargs='+', help='Order items by property values')
with self.argument_context('applications service-principal list-ref-created-object') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('orderby', nargs='+', help='Order items by property values')
with self.argument_context('applications service-principal list-ref-home-realm-discovery-policy') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('orderby', nargs='+', help='Order items by property values')
with self.argument_context('applications service-principal list-ref-member-of') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('orderby', nargs='+', help='Order items by property values')
with self.argument_context('applications service-principal list-ref-oauth2-permission-grant') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('orderby', nargs='+', help='Order items by property values')
with self.argument_context('applications service-principal list-ref-owned-object') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('orderby', nargs='+', help='Order items by property values')
with self.argument_context('applications service-principal list-ref-owner') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('orderby', nargs='+', help='Order items by property values')
with self.argument_context('applications service-principal list-ref-token-issuance-policy') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('orderby', nargs='+', help='Order items by property values')
with self.argument_context('applications service-principal list-ref-token-lifetime-policy') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('orderby', nargs='+', help='Order items by property values')
with self.argument_context('applications service-principal list-ref-transitive-member-of') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('orderby', nargs='+', help='Order items by property values')
with self.argument_context('applications service-principal list-token-issuance-policy') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('orderby', nargs='+', help='Order items by property values')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications service-principal list-token-lifetime-policy') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('orderby', nargs='+', help='Order items by property values')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications service-principal list-transitive-member-of') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('orderby', nargs='+', help='Order items by property values')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications service-principal remove-key') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('key_id', help='')
c.argument('proof', type=str, help='')
with self.argument_context('applications service-principal remove-password') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('key_id', help='')
with self.argument_context('applications service-principal restore') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
with self.argument_context('applications service-principal show-app-role-assigned-to') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('app_role_assignment_id', type=str, help='key: id of appRoleAssignment')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications service-principal show-app-role-assignment') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('app_role_assignment_id', type=str, help='key: id of appRoleAssignment')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications service-principal show-endpoint') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('endpoint_id', type=str, help='key: id of endpoint')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications service-principal update-app-role-assigned-to') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('app_role_assignment_id', type=str, help='key: id of appRoleAssignment')
c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
c.argument('deleted_date_time', help='')
c.argument('app_role_id', help='The identifier (id) for the app role which is assigned to the principal. This '
'app role must be exposed in the appRoles property on the resource application\'s service principal '
'(resourceId). If the resource application has not declared any app roles, a default app role ID of '
'00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to '
'the resource app without any specific app roles. Required on create. Does not support $filter.')
c.argument('created_date_time', help='')
c.argument('principal_display_name', type=str, help='The display name of the user, group, or service principal '
'that was granted the app role assignment. Read-only. Supports $filter (eq and startswith).')
c.argument('principal_id', help='The unique identifier (id) for the user, group or service principal being '
'granted the app role. Required on create. Does not support $filter.')
c.argument('principal_type', type=str, help='The type of the assigned principal. This can either be \'User\', '
'\'Group\' or \'ServicePrincipal\'. Read-only. Does not support $filter.')
c.argument('resource_display_name', type=str, help='The display name of the resource app\'s service principal '
'to which the assignment is made. Does not support $filter.')
c.argument('resource_id', help='The unique identifier (id) for the resource service principal for which the '
'assignment is made. Required on create. Supports $filter (eq only).')
with self.argument_context('applications service-principal update-app-role-assignment') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('app_role_assignment_id', type=str, help='key: id of appRoleAssignment')
c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
c.argument('deleted_date_time', help='')
c.argument('app_role_id', help='The identifier (id) for the app role which is assigned to the principal. This '
'app role must be exposed in the appRoles property on the resource application\'s service principal '
'(resourceId). If the resource application has not declared any app roles, a default app role ID of '
'00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to '
'the resource app without any specific app roles. Required on create. Does not support $filter.')
c.argument('created_date_time', help='')
c.argument('principal_display_name', type=str, help='The display name of the user, group, or service principal '
'that was granted the app role assignment. Read-only. Supports $filter (eq and startswith).')
c.argument('principal_id', help='The unique identifier (id) for the user, group or service principal being '
'granted the app role. Required on create. Does not support $filter.')
c.argument('principal_type', type=str, help='The type of the assigned principal. This can either be \'User\', '
'\'Group\' or \'ServicePrincipal\'. Read-only. Does not support $filter.')
c.argument('resource_display_name', type=str, help='The display name of the resource app\'s service principal '
'to which the assignment is made. Does not support $filter.')
c.argument('resource_id', help='The unique identifier (id) for the resource service principal for which the '
'assignment is made. Required on create. Supports $filter (eq only).')
with self.argument_context('applications service-principal update-endpoint') as c:
c.argument('service_principal_id', type=str, help='key: id of servicePrincipal')
c.argument('endpoint_id', type=str, help='key: id of endpoint')
c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
c.argument('deleted_date_time', help='')
c.argument('capability', type=str, help='Describes the capability that is associated with this resource. (e.g. '
'Messages, Conversations, etc.) Not nullable. Read-only.')
c.argument('provider_id', type=str, help='Application id of the publishing underlying service. Not nullable. '
'Read-only.')
c.argument('provider_name', type=str, help='Name of the publishing underlying service. Read-only.')
c.argument('provider_resource_id', type=str, help='For Microsoft 365 groups, this is set to a well-known name '
'for the resource (e.g. Yammer.FeedURL etc.). Not nullable. Read-only.')
c.argument('uri', type=str, help='URL of the published resource. Not nullable. Read-only.')
with self.argument_context('applications service-principal validate-property') as c:
c.argument('entity_type', type=str, help='')
c.argument('display_name', type=str, help='')
c.argument('mail_nickname', type=str, help='')
c.argument('on_behalf_of_user_id', help='')
with self.argument_context('applications user create-app-role-assignment') as c:
c.argument('user_id', type=str, help='key: id of user')
c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
c.argument('deleted_date_time', help='')
c.argument('app_role_id', help='The identifier (id) for the app role which is assigned to the principal. This '
'app role must be exposed in the appRoles property on the resource application\'s service principal '
'(resourceId). If the resource application has not declared any app roles, a default app role ID of '
'00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to '
'the resource app without any specific app roles. Required on create. Does not support $filter.')
c.argument('created_date_time', help='')
c.argument('principal_display_name', type=str, help='The display name of the user, group, or service principal '
'that was granted the app role assignment. Read-only. Supports $filter (eq and startswith).')
c.argument('principal_id', help='The unique identifier (id) for the user, group or service principal being '
'granted the app role. Required on create. Does not support $filter.')
c.argument('principal_type', type=str, help='The type of the assigned principal. This can either be \'User\', '
'\'Group\' or \'ServicePrincipal\'. Read-only. Does not support $filter.')
c.argument('resource_display_name', type=str, help='The display name of the resource app\'s service principal '
'to which the assignment is made. Does not support $filter.')
c.argument('resource_id', help='The unique identifier (id) for the resource service principal for which the '
'assignment is made. Required on create. Supports $filter (eq only).')
with self.argument_context('applications user delete-app-role-assignment') as c:
c.argument('user_id', type=str, help='key: id of user')
c.argument('app_role_assignment_id', type=str, help='key: id of appRoleAssignment')
c.argument('if_match', type=str, help='ETag')
with self.argument_context('applications user list-app-role-assignment') as c:
c.argument('user_id', type=str, help='key: id of user')
c.argument('orderby', nargs='+', help='Order items by property values')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications user show-app-role-assignment') as c:
c.argument('user_id', type=str, help='key: id of user')
c.argument('app_role_assignment_id', type=str, help='key: id of appRoleAssignment')
c.argument('select', nargs='+', help='Select properties to be returned')
c.argument('expand', nargs='+', help='Expand related entities')
with self.argument_context('applications user update-app-role-assignment') as c:
c.argument('user_id', type=str, help='key: id of user')
c.argument('app_role_assignment_id', type=str, help='key: id of appRoleAssignment')
c.argument('id_', options_list=['--id'], type=str, help='Read-only.')
c.argument('deleted_date_time', help='')
c.argument('app_role_id', help='The identifier (id) for the app role which is assigned to the principal. This '
'app role must be exposed in the appRoles property on the resource application\'s service principal '
'(resourceId). If the resource application has not declared any app roles, a default app role ID of '
'00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to '
'the resource app without any specific app roles. Required on create. Does not support $filter.')
c.argument('created_date_time', help='')
c.argument('principal_display_name', type=str, help='The display name of the user, group, or service principal '
'that was granted the app role assignment. Read-only. Supports $filter (eq and startswith).')
c.argument('principal_id', help='The unique identifier (id) for the user, group or service principal being '
'granted the app role. Required on create. Does not support $filter.')
c.argument('principal_type', type=str, help='The type of the assigned principal. This can either be \'User\', '
'\'Group\' or \'ServicePrincipal\'. Read-only. Does not support $filter.')
c.argument('resource_display_name', type=str, help='The display name of the resource app\'s service principal '
'to which the assignment is made. Does not support $filter.')
c.argument('resource_id', help='The unique identifier (id) for the resource service principal for which the '
'assignment is made. Required on create. Supports $filter (eq only).')
| 82.13796 | 121 | 0.672252 | 12,151 | 98,237 | 5.353798 | 0.050284 | 0.076782 | 0.041089 | 0.029575 | 0.975282 | 0.973945 | 0.973038 | 0.970194 | 0.968549 | 0.966766 | 0 | 0.005246 | 0.221922 | 98,237 | 1,195 | 122 | 82.206695 | 0.845845 | 0.005151 | 0 | 0.851263 | 0 | 0.006548 | 0.561342 | 0.063528 | 0 | 0 | 0 | 0 | 0 | 1 | 0.000935 | false | 0.019645 | 0.002806 | 0 | 0.003742 | 0.001871 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
18fb869e617bcacaca973b1a29c03778993715a1 | 138 | py | Python | dataloader/__init__.py | PiperLiu/AliProducts | f51884c4dae035a879dbaca2c1575797f30ee7d3 | [
"MIT"
] | 1 | 2022-03-21T06:36:15.000Z | 2022-03-21T06:36:15.000Z | dataloader/__init__.py | PiperLiu/AliProducts | f51884c4dae035a879dbaca2c1575797f30ee7d3 | [
"MIT"
] | null | null | null | dataloader/__init__.py | PiperLiu/AliProducts | f51884c4dae035a879dbaca2c1575797f30ee7d3 | [
"MIT"
] | 2 | 2021-05-19T16:31:34.000Z | 2021-08-24T05:35:21.000Z | from .dataloaders import train_dataloader, val_dataloader, test_dataloader, train_dataloader_plain
from .dataloaders import train_dataset
| 46 | 98 | 0.884058 | 17 | 138 | 6.823529 | 0.529412 | 0.258621 | 0.362069 | 0.448276 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07971 | 138 | 2 | 99 | 69 | 0.913386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
e1bd33a725977a9a1538ea5e0427bda91b6981e8 | 189 | py | Python | tests/test_import.py | zkurtz/pydens | 0a38020daa745621e47602b4f2583b76d60b6591 | [
"MIT"
] | 6 | 2019-05-06T15:05:20.000Z | 2021-06-29T07:20:35.000Z | tests/test_import.py | zkurtz/pydens | 0a38020daa745621e47602b4f2583b76d60b6591 | [
"MIT"
] | 1 | 2019-04-23T18:39:28.000Z | 2019-05-05T14:38:58.000Z | tests/test_import.py | zkurtz/pydens | 0a38020daa745621e47602b4f2583b76d60b6591 | [
"MIT"
] | 3 | 2019-06-23T22:05:05.000Z | 2022-02-01T13:34:49.000Z | def test_import_shmistogram():
import shmistogram as shm
assert '__version__' in dir(shm)
def test_import_pydens():
import pydens as dens
assert '__version__' in dir(dens)
| 23.625 | 37 | 0.730159 | 26 | 189 | 4.846154 | 0.461538 | 0.111111 | 0.206349 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195767 | 189 | 7 | 38 | 27 | 0.828947 | 0 | 0 | 0 | 0 | 0 | 0.116402 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.666667 | 0 | 1 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
bedd28122214fd954eca4667626c2e3a431a94a9 | 8,758 | py | Python | tests/cli/test_validation_operator.py | syahdeini/great_expectations | 81dd0efee75616e6d676c56cebc87364da6d10ff | [
"Apache-2.0"
] | 1 | 2020-04-07T22:15:13.000Z | 2020-04-07T22:15:13.000Z | tests/cli/test_validation_operator.py | syahdeini/great_expectations | 81dd0efee75616e6d676c56cebc87364da6d10ff | [
"Apache-2.0"
] | null | null | null | tests/cli/test_validation_operator.py | syahdeini/great_expectations | 81dd0efee75616e6d676c56cebc87364da6d10ff | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import json
import os
import mock
from click.testing import CliRunner
from great_expectations import DataContext
from great_expectations.cli import cli
from tests.cli.utils import assert_no_logging_messages_or_tracebacks
def test_validation_operator_run_interactive_golden_path(caplog, data_context, filesystem_csv_2
):
"""
Interactive mode golden path - pass an existing suite name and an existing validation
operator name, select an existing file.
"""
not_so_empty_data_context = data_context
root_dir = not_so_empty_data_context.root_directory
os.mkdir(os.path.join(root_dir, "uncommitted"))
runner = CliRunner(mix_stderr=False)
csv_path = os.path.join(filesystem_csv_2, "f1.csv")
result = runner.invoke(
cli,
["validation-operator", "run", "-d", root_dir, "--name", "default", "--suite", "my_dag_node.default"],
input=f"{csv_path}\n",
catch_exceptions=False,
)
stdout = result.stdout
assert "Validation Failed" in stdout
assert result.exit_code == 1
assert_no_logging_messages_or_tracebacks(caplog, result)
def test_validation_operator_run_interactive_pass_non_existing_expectation_suite(caplog, data_context, filesystem_csv_2
):
"""
Interactive mode: pass an non-existing suite name and an existing validation
operator name, select an existing file.
"""
not_so_empty_data_context = data_context
root_dir = not_so_empty_data_context.root_directory
os.mkdir(os.path.join(root_dir, "uncommitted"))
runner = CliRunner(mix_stderr=False)
csv_path = os.path.join(filesystem_csv_2, "f1.csv")
result = runner.invoke(
cli,
["validation-operator", "run", "-d", root_dir, "--name", "default", "--suite", "this.suite.does.not.exist"],
input=f"{csv_path}\n",
catch_exceptions=False,
)
stdout = result.stdout
assert "Could not find a suite named" in stdout
assert result.exit_code == 1
assert_no_logging_messages_or_tracebacks(caplog, result)
def test_validation_operator_run_interactive_pass_non_existing_operator_name(caplog, data_context, filesystem_csv_2
):
"""
Interactive mode: pass an non-existing suite name and an existing validation
operator name, select an existing file.
"""
not_so_empty_data_context = data_context
root_dir = not_so_empty_data_context.root_directory
os.mkdir(os.path.join(root_dir, "uncommitted"))
runner = CliRunner(mix_stderr=False)
csv_path = os.path.join(filesystem_csv_2, "f1.csv")
result = runner.invoke(
cli,
["validation-operator", "run", "-d", root_dir, "--name", "this_val_op_does_not_exist", "--suite", "my_dag_node.default"],
input=f"{csv_path}\n",
catch_exceptions=False,
)
stdout = result.stdout
assert "Could not find a validation operator" in stdout
assert result.exit_code == 1
assert_no_logging_messages_or_tracebacks(caplog, result)
def test_validation_operator_run_noninteractive_golden_path(caplog, data_context, filesystem_csv_2
):
"""
Non-nteractive mode golden path - use the --validation_config_file argument to pass the path
to a valid validation config file
"""
not_so_empty_data_context = data_context
root_dir = not_so_empty_data_context.root_directory
os.mkdir(os.path.join(root_dir, "uncommitted"))
csv_path = os.path.join(filesystem_csv_2, "f1.csv")
validation_config = {
"validation_operator_name": "default",
"batches": [
{
"batch_kwargs": {
"path": csv_path,
"datasource": "mydatasource",
"reader_method": "read_csv"
},
"expectation_suite_names": ["my_dag_node.default"]
}
]
}
validation_config_file_path = os.path.join(root_dir, "uncommitted", "validation_config_1.json")
with open(validation_config_file_path, 'w') as f:
json.dump(validation_config, f)
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli,
["validation-operator", "run", "-d", root_dir, "--validation_config_file", validation_config_file_path],
catch_exceptions=False
)
stdout = result.stdout
assert "Validation Failed" in stdout
assert result.exit_code == 1
assert_no_logging_messages_or_tracebacks(caplog, result)
def test_validation_operator_run_noninteractive_validation_config_file_does_not_exist(caplog, data_context, filesystem_csv_2
):
"""
Non-nteractive mode. Use the --validation_config_file argument to pass the path
to a validation config file that does not exist.
"""
not_so_empty_data_context = data_context
root_dir = not_so_empty_data_context.root_directory
os.mkdir(os.path.join(root_dir, "uncommitted"))
validation_config_file_path = os.path.join(root_dir, "uncommitted", "validation_config_1.json")
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli,
["validation-operator", "run", "-d", root_dir, "--validation_config_file", validation_config_file_path],
catch_exceptions=False
)
stdout = result.stdout
assert "Failed to process the --validation_config_file argument" in stdout
assert result.exit_code == 1
assert_no_logging_messages_or_tracebacks(caplog, result)
def test_validation_operator_run_noninteractive_validation_config_file_does_is_misconfigured(caplog, data_context, filesystem_csv_2
):
"""
Non-nteractive mode. Use the --validation_config_file argument to pass the path
to a validation config file that is misconfigured - one of the batches does not
have expectation_suite_names attribute
"""
not_so_empty_data_context = data_context
root_dir = not_so_empty_data_context.root_directory
os.mkdir(os.path.join(root_dir, "uncommitted"))
csv_path = os.path.join(filesystem_csv_2, "f1.csv")
validation_config = {
"validation_operator_name": "default",
"batches": [
{
"batch_kwargs": {
"path": csv_path,
"datasource": "mydatasource",
"reader_method": "read_csv"
},
"wrong_attribute_expectation_suite_names": ["my_dag_node.default1"]
}
]
}
validation_config_file_path = os.path.join(root_dir, "uncommitted", "validation_config_1.json")
with open(validation_config_file_path, 'w') as f:
json.dump(validation_config, f)
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli,
["validation-operator", "run", "-d", root_dir, "--validation_config_file", validation_config_file_path],
catch_exceptions=False
)
stdout = result.stdout
assert "is misconfigured: Each batch must have a list of expectation suite names" in stdout
assert result.exit_code == 1
assert_no_logging_messages_or_tracebacks(caplog, result)
def test_validation_operator_list_with_one_operator(caplog, empty_data_context):
project_dir = empty_data_context.root_directory
context = DataContext(project_dir)
context.create_expectation_suite("a.warning")
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli, "validation-operator list -d {}".format(project_dir), catch_exceptions=False,
)
assert result.exit_code == 0
assert "1 validation operator found" in result.output
assert "\taction_list_operator" in result.output
assert_no_logging_messages_or_tracebacks(caplog, result)
@mock.patch.object(DataContext, 'list_validation_operator_names', return_value=[], side_effect=None)
def test_validation_operator_list_with_no_operators(caplog, empty_data_context):
project_dir = empty_data_context.root_directory
context = DataContext(project_dir)
context.create_expectation_suite("a.warning")
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli, "validation-operator list -d {}".format(project_dir), catch_exceptions=False,
)
assert result.exit_code == 0
assert "No validation operators are configured in the project" in result.output
@mock.patch.object(DataContext, 'list_validation_operator_names', return_value=["op_one", "op_two"], side_effect=None)
def test_validation_operator_list_with_two_operators(caplog, empty_data_context):
project_dir = empty_data_context.root_directory
context = DataContext(project_dir)
context.create_expectation_suite("a.warning")
runner = CliRunner(mix_stderr=False)
result = runner.invoke(
cli, "validation-operator list -d {}".format(project_dir), catch_exceptions=False,
)
assert result.exit_code == 0
assert "2 validation operators" in result.output
| 38.078261 | 131 | 0.721512 | 1,137 | 8,758 | 5.219877 | 0.128408 | 0.055602 | 0.067397 | 0.028307 | 0.874305 | 0.869082 | 0.845156 | 0.845156 | 0.826116 | 0.80219 | 0 | 0.004469 | 0.182348 | 8,758 | 229 | 132 | 38.244541 | 0.824326 | 0.09557 | 0 | 0.705202 | 0 | 0 | 0.183286 | 0.052679 | 0 | 0 | 0 | 0 | 0.156069 | 1 | 0.052023 | false | 0.011561 | 0.046243 | 0 | 0.098266 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
beec42aa7d1a8871d2a8aa57573d445def3f056f | 46 | py | Python | hyperbox/networks/bnnas/__init__.py | marsggbo/hyperbox | 91dcd04ad30164bcb12209d818df18961fa3f347 | [
"MIT"
] | 1 | 2022-01-17T00:34:14.000Z | 2022-01-17T00:34:14.000Z | hyperbox/networks/bnnas/__init__.py | marsggbo/hyperbox | 91dcd04ad30164bcb12209d818df18961fa3f347 | [
"MIT"
] | null | null | null | hyperbox/networks/bnnas/__init__.py | marsggbo/hyperbox | 91dcd04ad30164bcb12209d818df18961fa3f347 | [
"MIT"
] | null | null | null | from .bn_net import *
from .bn_blocks import * | 23 | 24 | 0.76087 | 8 | 46 | 4.125 | 0.625 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 46 | 2 | 24 | 23 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
bef40c1d24784493acc457b4a0f4a0b98d0bb6e0 | 473 | py | Python | challenges/largest-product/test_largest_product.py | zarkle/data-structures-and-algorithms | 0485b95f5aabc0ee255cd7e50b48a6ccec851e00 | [
"MIT"
] | 1 | 2021-01-28T07:32:17.000Z | 2021-01-28T07:32:17.000Z | challenges/largest-product/test_largest_product.py | zarkle/data-structures-and-algorithms | 0485b95f5aabc0ee255cd7e50b48a6ccec851e00 | [
"MIT"
] | null | null | null | challenges/largest-product/test_largest_product.py | zarkle/data-structures-and-algorithms | 0485b95f5aabc0ee255cd7e50b48a6ccec851e00 | [
"MIT"
] | 1 | 2020-04-10T08:01:50.000Z | 2020-04-10T08:01:50.000Z | from largest_product import largest_product
def test_largest_product():
"""test for the largest product"""
assert largest_product([[1, 2], [3, 4], [5, 6], [7, 8]]) == 56
def test_largest_product():
"""test for the largest product"""
assert largest_product([[8, 20], [5, 4], [100, 100], [8, 2], [9, 3], [2, 20]]) == 10000
def test_largest_product():
"""test for the largest product"""
assert largest_product([[3, 8], [4, 10], [10, 50]]) == 500
| 27.823529 | 91 | 0.610994 | 71 | 473 | 3.915493 | 0.352113 | 0.553957 | 0.151079 | 0.226619 | 0.701439 | 0.701439 | 0.701439 | 0.701439 | 0.701439 | 0.701439 | 0 | 0.117493 | 0.190275 | 473 | 16 | 92 | 29.5625 | 0.608355 | 0.181818 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.428571 | true | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 11 |
832407ec3a0a66516aa005a2f9a5d5596c9dc696 | 57 | py | Python | auto_deprecator_example/deprecate_from_package/doc_example_comment.py | auto-deprecator/auto-deprecator-example | ae4ec930e62b7a6bfe645832b6b83266eb971a76 | [
"MIT"
] | 1 | 2020-03-23T00:19:37.000Z | 2020-03-23T00:19:37.000Z | auto_deprecator_example/deprecate_from_package/doc_example_comment.py | auto-deprecator/auto-deprecator-example | ae4ec930e62b7a6bfe645832b6b83266eb971a76 | [
"MIT"
] | null | null | null | auto_deprecator_example/deprecate_from_package/doc_example_comment.py | auto-deprecator/auto-deprecator-example | ae4ec930e62b7a6bfe645832b6b83266eb971a76 | [
"MIT"
] | null | null | null | def hello_world():
return print("Hello world again!") | 28.5 | 38 | 0.701754 | 8 | 57 | 4.875 | 0.75 | 0.512821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 57 | 2 | 38 | 28.5 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 8 |
8330e000cc62bac5a9acc2ddfc4137f0441a2749 | 128 | py | Python | digestbot/core/__init__.py | Sergey778/digest_bot | f4f4245e464900e3e4d99634e1b2f8e4808f4f8d | [
"MIT"
] | null | null | null | digestbot/core/__init__.py | Sergey778/digest_bot | f4f4245e464900e3e4d99634e1b2f8e4808f4f8d | [
"MIT"
] | null | null | null | digestbot/core/__init__.py | Sergey778/digest_bot | f4f4245e464900e3e4d99634e1b2f8e4808f4f8d | [
"MIT"
] | null | null | null | from digestbot.core.db.dbengine.PostgreSQLEngine import PostgreSQLEngine
from digestbot.core.db.models import Message, Category
| 42.666667 | 72 | 0.867188 | 16 | 128 | 6.9375 | 0.625 | 0.234234 | 0.306306 | 0.342342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070313 | 128 | 2 | 73 | 64 | 0.932773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
834d72a87e65cc77c27263ab39d0afbff5e651fb | 32,503 | py | Python | tests/test_04_main_uniswap_v3.py | VolumeFi/exchange-add | 0021a55557cbce43f31b21078a44f62fb14e0d56 | [
"Apache-2.0"
] | 5 | 2021-03-23T21:09:06.000Z | 2021-07-06T19:29:38.000Z | tests/test_04_main_uniswap_v3.py | VolumeFi/exchange-add | 0021a55557cbce43f31b21078a44f62fb14e0d56 | [
"Apache-2.0"
] | 4 | 2021-02-08T17:08:06.000Z | 2021-02-24T04:59:50.000Z | tests/test_04_main_uniswap_v3.py | VolumeFi/exchange-liquidity | 0021a55557cbce43f31b21078a44f62fb14e0d56 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import pytest
import math
def test_main(USDC, DAI, WETH, accounts, UniswapV2Router02, MyUniswapV3ExchangeAdd, MyUniswapV3ExchangeRemove, Contract):
MyNonfungiblePositionManager = Contract.from_abi("NonfungiblePositionManager", "0xC36442b4a4522E871399CD717aBDD847Ab11FE88", [{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_WETH9","type":"address"},{"internalType":"address","name":"_tokenDescriptor_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"owner","type":"address"},{"indexed":True,"internalType":"address","name":"approved","type":"address"},{"indexed":True,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"owner","type":"address"},{"indexed":True,"internalType":"address","name":"operator","type":"address"},{"indexed":False,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":False,"internalType":"address","name":"recipient","type":"address"},{"indexed":False,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Collect","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":False,"internalType":"uint128","name":"liquidity","type":"uint128"},{"indexed":False,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"DecreaseLiquidity","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":False,"internalType":"uint128","name":"liquidity","type":"uint128"},{"indexed":False,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":False,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"IncreaseLiquidity","type":"event"},{"anonymous":False,"inputs":[{"indexed":True,"internalType":"address","name":"from","type":"address"},{"indexed":True,"internalType":"address","name":"to","type":"address"},{"indexed":True,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH9","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint128","name":"amount0Max","type":"uint128"},{"internalType":"uint128","name":"amount1Max","type":"uint128"}],"name":"collect","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"}],"name":"createAndInitializePoolIfNecessary","outputs":[{"internalType":"address","name":"pool","type":"address"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"decreaseLiquidity","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount0Desired","type":"uint256"},{"internalType":"uint256","name":"amount1Desired","type":"uint256"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"increaseLiquidity","outputs":[{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"uint256","name":"amount0Desired","type":"uint256"},{"internalType":"uint256","name":"amount1Desired","type":"uint256"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"structINonfungiblePositionManager.MintParams","name":"params","type":"tuple"}],"name":"mint","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"positions","outputs":[{"internalType":"uint96","name":"nonce","type":"uint96"},{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"feeGrowthInside0LastX128","type":"uint256"},{"internalType":"uint256","name":"feeGrowthInside1LastX128","type":"uint256"},{"internalType":"uint128","name":"tokensOwed0","type":"uint128"},{"internalType":"uint128","name":"tokensOwed1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitAllowed","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitAllowedIfNecessary","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitIfNecessary","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"sweepToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount0Owed","type":"uint256"},{"internalType":"uint256","name":"amount1Owed","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"uniswapV3MintCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"unwrapWETH9","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}])
print("NFT Balance")
print(MyNonfungiblePositionManager.balanceOf(accounts[0]))
print("Eth Balance")
print(accounts[0].balance())
print("WETH Balance")
print(WETH.balanceOf(accounts[0]))
print("DAI Balance")
print(DAI.balanceOf(accounts[0]))
print("USDC Balance")
print(USDC.balanceOf(accounts[0]))
print("Contract Balances")
print(MyNonfungiblePositionManager.balance())
print(WETH.balanceOf(MyUniswapV3ExchangeAdd))
print(DAI.balanceOf(MyUniswapV3ExchangeAdd))
print(USDC.balanceOf(MyUniswapV3ExchangeAdd))
UniswapV2Router02.swapETHForExactTokens(10000 * 10 ** 6, [WETH, USDC], accounts[0], 2 ** 256 - 1, {"from":accounts[0], "value": 10 * 10 ** 18})
USDC.approve(MyUniswapV3ExchangeAdd, 10000 * 10 ** 6, {"from":accounts[0]})
uniV3Params = [DAI, WETH, 3000, -210000, 210000, getSqrtRatioAtTick(-210000), getSqrtRatioAtTick(210000), 0, accounts[0], 2 ** 256 - 1]
MyUniswapV3ExchangeAdd.investTokenForUniPair(USDC, 10000 * 10 ** 6, 0, uniV3Params, {"from":accounts[0], "value": 5 * 10 ** 15})
print("NFT Balance")
print(MyNonfungiblePositionManager.balanceOf(accounts[0]))
print("Eth Balance")
print(accounts[0].balance())
print("WETH Balance")
print(WETH.balanceOf(accounts[0]))
print("DAI Balance")
print(DAI.balanceOf(accounts[0]))
print("USDC Balance")
print(USDC.balanceOf(accounts[0]))
print("Contract Balances")
print(MyNonfungiblePositionManager.balance())
print(WETH.balanceOf(MyUniswapV3ExchangeAdd))
print(DAI.balanceOf(MyUniswapV3ExchangeAdd))
print(USDC.balanceOf(MyUniswapV3ExchangeAdd))
WETH.deposit({"from": accounts[0], "value": 50 * 10 ** 18})
UniswapV2Router02.swapETHForExactTokens(100000 * 10 ** 18, [WETH, DAI], accounts[0], 2 ** 256 - 1, {"from":accounts[0], "value": 100 * 10 ** 18})
uniV3Params = [DAI, WETH, 500, -100000, 100000, 0xb8507a820728200000, 0xde0b6b3a7640000, 0, 0, accounts[0], 2 ** 256 - 1]
WETH.approve(MyUniswapV3ExchangeAdd, 0xde0b6b3a7640000, {"from": accounts[0]})
DAI.approve(MyUniswapV3ExchangeAdd, 0xb8507a820728200000, {"from": accounts[0]})
print("NFT Balance")
print(MyNonfungiblePositionManager.balanceOf(accounts[0]))
print("Eth Balance")
print(accounts[0].balance())
print("WETH Balance")
print(WETH.balanceOf(accounts[0]))
print("DAI Balance")
print(DAI.balanceOf(accounts[0]))
print("Contract Balances")
print(MyNonfungiblePositionManager.balance())
print(WETH.balanceOf(MyUniswapV3ExchangeAdd))
print(DAI.balanceOf(MyUniswapV3ExchangeAdd))
print("-----STEP1-----")
MyUniswapV3ExchangeAdd.addLiquidityForUniV3(0, uniV3Params, {'from': accounts[0]})
print("NFT Balance")
print(MyNonfungiblePositionManager.balanceOf(accounts[0]))
print("Eth Balance")
print(accounts[0].balance())
print("WETH Balance")
print(WETH.balanceOf(accounts[0]))
print("DAI Balance")
print(DAI.balanceOf(accounts[0]))
print("Contract Balances")
print(MyNonfungiblePositionManager.balance())
print(WETH.balanceOf(MyUniswapV3ExchangeAdd))
print(DAI.balanceOf(MyUniswapV3ExchangeAdd))
token_id_1 = MyNonfungiblePositionManager.tokenOfOwnerByIndex(accounts[0], 0)
WETH.approve(MyUniswapV3ExchangeAdd, 0xde0b6b3a7640000, {"from": accounts[0]})
DAI.approve(MyUniswapV3ExchangeAdd, 0xb8507a820728200000, {"from": accounts[0]})
print("-----STEP2-----")
MyUniswapV3ExchangeAdd.addLiquidityForUniV3(token_id_1, uniV3Params, {'from': accounts[0]})
print("NFT Balance")
print(MyNonfungiblePositionManager.balanceOf(accounts[0]))
print("Eth Balance")
print(accounts[0].balance())
print("WETH Balance")
print(WETH.balanceOf(accounts[0]))
print("DAI Balance")
print(DAI.balanceOf(accounts[0]))
print("Contract Balances")
print(MyNonfungiblePositionManager.balance())
print(WETH.balanceOf(MyUniswapV3ExchangeAdd))
print(DAI.balanceOf(MyUniswapV3ExchangeAdd))
uniV3Params = [DAI, WETH, 3000, -120000, 120000, 0xb8507a820728200000, 0xde0b6b3a7640000, 0, 0, accounts[0], 2 ** 256 - 1]
WETH.approve(MyUniswapV3ExchangeAdd, 0xde0b6b3a7640000, {"from": accounts[0]})
DAI.approve(MyUniswapV3ExchangeAdd, 0xb8507a820728200000, {"from": accounts[0]})
print("-----STEP3-----")
MyUniswapV3ExchangeAdd.addLiquidityForUniV3(0, uniV3Params, {'from': accounts[0]})
print("NFT Balance")
print(MyNonfungiblePositionManager.balanceOf(accounts[0]))
print("Eth Balance")
print(accounts[0].balance())
print("WETH Balance")
print(WETH.balanceOf(accounts[0]))
print("DAI Balance")
print(DAI.balanceOf(accounts[0]))
print("Contract Balances")
print(MyNonfungiblePositionManager.balance())
print(WETH.balanceOf(MyUniswapV3ExchangeAdd))
print(DAI.balanceOf(MyUniswapV3ExchangeAdd))
token_id_2 = MyNonfungiblePositionManager.tokenOfOwnerByIndex(accounts[0], 1)
WETH.approve(MyUniswapV3ExchangeAdd, 0xde0b6b3a7640000, {"from": accounts[0]})
DAI.approve(MyUniswapV3ExchangeAdd, 0xb8507a820728200000, {"from": accounts[0]})
print("-----STEP4-----")
MyUniswapV3ExchangeAdd.addLiquidityForUniV3(token_id_2, uniV3Params, {'from': accounts[0]})
print("NFT Balance")
print(MyNonfungiblePositionManager.balanceOf(accounts[0]))
print("Eth Balance")
print(accounts[0].balance())
print("WETH Balance")
print(WETH.balanceOf(accounts[0]))
print("DAI Balance")
print(DAI.balanceOf(accounts[0]))
print("Contract Balances")
print(MyNonfungiblePositionManager.balance())
print(WETH.balanceOf(MyUniswapV3ExchangeAdd))
print(DAI.balanceOf(MyUniswapV3ExchangeAdd))
uniV3Params = [DAI, WETH, 500, -100000, 100000, 0xb8507a820728200000, 0xde0b6b3a7640000, 0, 0, accounts[0], 2 ** 256 - 1]
DAI.approve(MyUniswapV3ExchangeAdd, 0xb8507a820728200000, {"from": accounts[0]})
print("-----STEP5-----")
MyUniswapV3ExchangeAdd.addLiquidityEthForUniV3(0, uniV3Params, {'from': accounts[0], 'value': 0xde0b6b3a7640000})
print("NFT Balance")
print(MyNonfungiblePositionManager.balanceOf(accounts[0]))
print("Eth Balance")
print(accounts[0].balance())
print("WETH Balance")
print(WETH.balanceOf(accounts[0]))
print("DAI Balance")
print(DAI.balanceOf(accounts[0]))
print("Contract Balances")
print(MyNonfungiblePositionManager.balance())
print(WETH.balanceOf(MyUniswapV3ExchangeAdd))
print(DAI.balanceOf(MyUniswapV3ExchangeAdd))
token_id_3 = MyNonfungiblePositionManager.tokenOfOwnerByIndex(accounts[0], 2)
DAI.approve(MyUniswapV3ExchangeAdd, 0xb8507a820728200000, {"from": accounts[0]})
print("-----STEP6-----")
MyUniswapV3ExchangeAdd.addLiquidityEthForUniV3(token_id_3, uniV3Params, {'from': accounts[0], 'value': 0xde0b6b3a7640000})
print("NFT Balance")
print(MyNonfungiblePositionManager.balanceOf(accounts[0]))
print("Eth Balance")
print(accounts[0].balance())
print("WETH Balance")
print(WETH.balanceOf(accounts[0]))
print("DAI Balance")
print(DAI.balanceOf(accounts[0]))
print("Contract Balances")
print(MyNonfungiblePositionManager.balance())
print(WETH.balanceOf(MyUniswapV3ExchangeAdd))
print(DAI.balanceOf(MyUniswapV3ExchangeAdd))
uniV3Params = [DAI, WETH, 3000, -120000, 120000, 0xb8507a820728200000, 0xde0b6b3a7640000, 0, 0, accounts[0], 2 ** 256 - 1]
DAI.approve(MyUniswapV3ExchangeAdd, 0xb8507a820728200000, {"from": accounts[0]})
print("-----STEP7-----")
MyUniswapV3ExchangeAdd.addLiquidityEthForUniV3(0, uniV3Params, {'from': accounts[0], 'value': 0xde0b6b3a7640000})
print("NFT Balance")
print(MyNonfungiblePositionManager.balanceOf(accounts[0]))
print("Eth Balance")
print(accounts[0].balance())
print("WETH Balance")
print(WETH.balanceOf(accounts[0]))
print("DAI Balance")
print(DAI.balanceOf(accounts[0]))
print("Contract Balances")
print(MyNonfungiblePositionManager.balance())
print(WETH.balanceOf(MyUniswapV3ExchangeAdd))
print(DAI.balanceOf(MyUniswapV3ExchangeAdd))
token_id_4 = MyNonfungiblePositionManager.tokenOfOwnerByIndex(accounts[0], 3)
DAI.approve(MyUniswapV3ExchangeAdd, 0xb8507a820728200000, {"from": accounts[0]})
print("-----STEP8-----")
MyUniswapV3ExchangeAdd.addLiquidityEthForUniV3(token_id_4, uniV3Params, {'from': accounts[0], 'value': 0xde0b6b3a7640000})
print("NFT Balance")
print(MyNonfungiblePositionManager.balanceOf(accounts[0]))
print("Eth Balance")
print(accounts[0].balance())
print("WETH Balance")
print(WETH.balanceOf(accounts[0]))
print("DAI Balance")
print(DAI.balanceOf(accounts[0]))
print("Contract Balances")
print(MyNonfungiblePositionManager.balance())
print(WETH.balanceOf(MyUniswapV3ExchangeAdd))
print(DAI.balanceOf(MyUniswapV3ExchangeAdd))
modifyParams = [500, -100000, -50000, accounts[0], 2 ** 256 - 1]
print("-----STEP9-----")
MyNonfungiblePositionManager.approve(MyUniswapV3ExchangeAdd, token_id_1, {'from': accounts[0]})
MyUniswapV3ExchangeAdd.modifyPositionForUniV3NFLP(token_id_1, modifyParams, {'from': accounts[0], 'value': 5 * 10 ** 15})
print("NFT Balance")
print(MyNonfungiblePositionManager.balanceOf(accounts[0]))
print("Eth Balance")
print(accounts[0].balance())
print("WETH Balance")
print(WETH.balanceOf(accounts[0]))
print("DAI Balance")
print(DAI.balanceOf(accounts[0]))
print("Contract Balances")
print(MyNonfungiblePositionManager.balance())
print(WETH.balanceOf(MyUniswapV3ExchangeAdd))
print(DAI.balanceOf(MyUniswapV3ExchangeAdd))
modifyParams = [3000, -120000, -60000, accounts[0], 2 ** 256 - 1]
print("-----STEP10-----")
MyNonfungiblePositionManager.approve(MyUniswapV3ExchangeAdd, token_id_2, {'from': accounts[0]})
MyUniswapV3ExchangeAdd.modifyPositionForUniV3NFLP(token_id_2, modifyParams, {'from': accounts[0], 'value': 5 * 10 ** 15})
print("NFT Balance")
print(MyNonfungiblePositionManager.balanceOf(accounts[0]))
print("Eth Balance")
print(accounts[0].balance())
print("WETH Balance")
print(WETH.balanceOf(accounts[0]))
print("DAI Balance")
print(DAI.balanceOf(accounts[0]))
print("Contract Balances")
print(MyNonfungiblePositionManager.balance())
print(WETH.balanceOf(MyUniswapV3ExchangeAdd))
print(DAI.balanceOf(MyUniswapV3ExchangeAdd))
modifyParams = [3000, -120000, -60000, accounts[0], 2 ** 256 - 1]
print("-----STEP11-----")
MyNonfungiblePositionManager.approve(MyUniswapV3ExchangeAdd, token_id_3, {'from': accounts[0]})
tx2 = MyUniswapV3ExchangeAdd.modifyPositionForUniV3NFLP(token_id_3, modifyParams, {'from': accounts[0], 'value': 5 * 10 ** 15})
print("NFT Balance")
print(MyNonfungiblePositionManager.balanceOf(accounts[0]))
print("Eth Balance")
print(accounts[0].balance())
print("WETH Balance")
print(WETH.balanceOf(accounts[0]))
print("DAI Balance")
print(DAI.balanceOf(accounts[0]))
print("Contract Balances")
print(MyNonfungiblePositionManager.balance())
print(WETH.balanceOf(MyUniswapV3ExchangeAdd))
print(DAI.balanceOf(MyUniswapV3ExchangeAdd))
modifyParams = [500, -120000, -60000, accounts[0], 2 ** 256 - 1]
print("-----STEP12-----")
MyNonfungiblePositionManager.approve(MyUniswapV3ExchangeAdd, token_id_4, {'from': accounts[0]})
tx1 = MyUniswapV3ExchangeAdd.modifyPositionForUniV3NFLP(token_id_4, modifyParams, {'from': accounts[0], 'value': 5 * 10 ** 15})
print("NFT Balance")
print(MyNonfungiblePositionManager.balanceOf(accounts[0]))
print("Eth Balance")
print(accounts[0].balance())
print("WETH Balance")
print(WETH.balanceOf(accounts[0]))
print("DAI Balance")
print(DAI.balanceOf(accounts[0]))
print("Contract Balances")
print(MyNonfungiblePositionManager.balance())
print(WETH.balanceOf(MyUniswapV3ExchangeAdd))
print(DAI.balanceOf(MyUniswapV3ExchangeAdd))
liq = tx1.events['IncreaseLiquidity']['liquidity']
removeParams = [liq // 2, accounts[0], 2 ** 256 - 1]
token_id = MyNonfungiblePositionManager.tokenOfOwnerByIndex(accounts[0], MyNonfungiblePositionManager.balanceOf(accounts[0]) - 1)
print("-----STEP13-----")
MyNonfungiblePositionManager.approve(MyUniswapV3ExchangeRemove, token_id, {'from': accounts[0]})
tx = MyUniswapV3ExchangeRemove.removeLiquidityEthFromUniV3NFLP(token_id, removeParams, {'from': accounts[0], 'value': 5 * 10 ** 15})
print("NFT Balance")
print(MyNonfungiblePositionManager.balanceOf(accounts[0]))
print("Eth Balance")
print(accounts[0].balance())
print("WETH Balance")
print(WETH.balanceOf(accounts[0]))
print("DAI Balance")
print(DAI.balanceOf(accounts[0]))
print("Contract Balances")
print(MyNonfungiblePositionManager.balance())
print(WETH.balanceOf(MyUniswapV3ExchangeAdd))
print(DAI.balanceOf(MyUniswapV3ExchangeAdd))
removeParams = [liq - liq // 2, accounts[0], 2 ** 256 - 1]
token_id = MyNonfungiblePositionManager.tokenOfOwnerByIndex(accounts[0], MyNonfungiblePositionManager.balanceOf(accounts[0]) - 1)
print("-----STEP14-----")
MyNonfungiblePositionManager.approve(MyUniswapV3ExchangeRemove, token_id, {'from': accounts[0]})
MyUniswapV3ExchangeRemove.removeLiquidityFromUniV3NFLP(token_id, removeParams, {'from': accounts[0], 'value': 5 * 10 ** 15})
print("NFT Balance")
print(MyNonfungiblePositionManager.balanceOf(accounts[0]))
print("Eth Balance")
print(accounts[0].balance())
print("WETH Balance")
print(WETH.balanceOf(accounts[0]))
print("DAI Balance")
print(DAI.balanceOf(accounts[0]))
print("Contract Balances")
print(MyNonfungiblePositionManager.balance())
print(WETH.balanceOf(MyUniswapV3ExchangeAdd))
print(DAI.balanceOf(MyUniswapV3ExchangeAdd))
liq = tx2.events['IncreaseLiquidity']['liquidity']
removeParams = [liq // 2, accounts[0], 2 ** 256 - 1]
token_id = MyNonfungiblePositionManager.tokenOfOwnerByIndex(accounts[0], MyNonfungiblePositionManager.balanceOf(accounts[0]) - 1)
print("-----STEP15-----")
MyNonfungiblePositionManager.approve(MyUniswapV3ExchangeRemove, token_id, {'from': accounts[0]})
MyUniswapV3ExchangeRemove.divestUniV3NFLPToToken(token_id, "0x0000000000000000000000000000000000000000", removeParams, 0, {'from': accounts[0], 'value': 5 * 10 ** 15})
print("NFT Balance")
print(MyNonfungiblePositionManager.balanceOf(accounts[0]))
print("Eth Balance")
print(accounts[0].balance())
print("WETH Balance")
print(WETH.balanceOf(accounts[0]))
print("DAI Balance")
print(DAI.balanceOf(accounts[0]))
print("USDC Balance")
print(USDC.balanceOf(accounts[0]))
print("Contract Balances")
print(MyNonfungiblePositionManager.balance())
print(WETH.balanceOf(MyUniswapV3ExchangeAdd))
print(DAI.balanceOf(MyUniswapV3ExchangeAdd))
removeParams = [liq - liq // 2, accounts[0], 2 ** 256 - 1]
token_id = MyNonfungiblePositionManager.tokenOfOwnerByIndex(accounts[0], MyNonfungiblePositionManager.balanceOf(accounts[0]) - 1)
print("-----STEP16-----")
MyNonfungiblePositionManager.approve(MyUniswapV3ExchangeRemove, token_id, {'from': accounts[0]})
MyUniswapV3ExchangeRemove.divestUniV3NFLPToToken(token_id, USDC, removeParams, 0, {'from': accounts[0], 'value': 5 * 10 ** 15})
print("NFT Balance")
print(MyNonfungiblePositionManager.balanceOf(accounts[0]))
print("Eth Balance")
print(accounts[0].balance())
print("WETH Balance")
print(WETH.balanceOf(accounts[0]))
print("DAI Balance")
print(DAI.balanceOf(accounts[0]))
print("USDC Balance")
print(USDC.balanceOf(accounts[0]))
print("Contract Balances")
print(MyNonfungiblePositionManager.balance())
print(WETH.balanceOf(MyUniswapV3ExchangeAdd))
print(DAI.balanceOf(MyUniswapV3ExchangeAdd))
def getSqrtRatioAtTick(tick: int):
assert tick >= -887272 and tick <= 887272
absTick = 0
if tick > 0:
absTick = tick
else:
absTick = -tick
ratio = 0x100000000000000000000000000000000
if absTick & 0x1 != 0:
ratio = 0xfffcb933bd6fad37aa2d162d1a594001
if absTick & 0x2 != 0:
ratio = (ratio * 0xfff97272373d413259a46990580e213a) >> 128
if absTick & 0x4 != 0:
ratio = (ratio * 0xfff2e50f5f656932ef12357cf3c7fdcc) >> 128
if absTick & 0x8 != 0:
ratio = (ratio * 0xffe5caca7e10e4e61c3624eaa0941cd0) >> 128
if absTick & 0x10 != 0:
ratio = (ratio * 0xffcb9843d60f6159c9db58835c926644) >> 128
if absTick & 0x20 != 0:
ratio = (ratio * 0xff973b41fa98c081472e6896dfb254c0) >> 128
if absTick & 0x40 != 0:
ratio = (ratio * 0xff2ea16466c96a3843ec78b326b52861) >> 128
if absTick & 0x80 != 0:
ratio = (ratio * 0xfe5dee046a99a2a811c461f1969c3053) >> 128
if absTick & 0x100 != 0:
ratio = (ratio * 0xfcbe86c7900a88aedcffc83b479aa3a4) >> 128
if absTick & 0x200 != 0:
ratio = (ratio * 0xf987a7253ac413176f2b074cf7815e54) >> 128
if absTick & 0x400 != 0:
ratio = (ratio * 0xf3392b0822b70005940c7a398e4b70f3) >> 128
if absTick & 0x800 != 0:
ratio = (ratio * 0xe7159475a2c29b7443b29c7fa6e889d9) >> 128
if absTick & 0x1000 != 0:
ratio = (ratio * 0xd097f3bdfd2022b8845ad8f792aa5825) >> 128
if absTick & 0x2000 != 0:
ratio = (ratio * 0xa9f746462d870fdf8a65dc1f90e061e5) >> 128
if absTick & 0x4000 != 0:
ratio = (ratio * 0x70d869a156d2a1b890bb3df62baf32f7) >> 128
if absTick & 0x8000 != 0:
ratio = (ratio * 0x31be135f97d08fd981231505542fcfa6) >> 128
if absTick & 0x10000 != 0:
ratio = (ratio * 0x9aa508b5b7a84e1c677de54f3e99bc9) >> 128
if absTick & 0x20000 != 0:
ratio = (ratio * 0x5d6af8dedb81196699c329225ee604) >> 128
if absTick & 0x40000 != 0:
ratio = (ratio * 0x2216e584f5fa1ea926041bedfe98) >> 128
if absTick & 0x80000 != 0:
ratio = (ratio * 0x48a170391f7dc42444e8fa2) >> 128
if tick > 0:
ratio = (1 << 256) // ratio
if ratio % (1 << 32) > 0:
return (ratio >> 32) + 1
else:
return ratio >> 32
| 81.665829 | 14,080 | 0.688644 | 3,128 | 32,503 | 7.138747 | 0.082801 | 0.059651 | 0.045768 | 0.06283 | 0.821809 | 0.79579 | 0.785087 | 0.760143 | 0.748948 | 0.714331 | 0 | 0.077765 | 0.086884 | 32,503 | 397 | 14,081 | 81.871537 | 0.674618 | 0.000523 | 0 | 0.734043 | 0 | 0 | 0.34145 | 0.00942 | 0 | 0 | 0.04085 | 0 | 0.00266 | 1 | 0.005319 | false | 0 | 0.005319 | 0 | 0.015957 | 0.675532 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 9 |
8356681f1b33fb33c3be2d74e4e7774104d7b70d | 145,019 | py | Python | reverseEngineering/dumps1.py | szczys/ellipticalDisplay | 78a7ec28ed19ccc98d0e62866c004533ab5dd04a | [
"MIT"
] | 1 | 2020-03-28T03:43:53.000Z | 2020-03-28T03:43:53.000Z | reverseEngineering/dumps1.py | szczys/ellipticalDisplay | 78a7ec28ed19ccc98d0e62866c004533ab5dd04a | [
"MIT"
] | null | null | null | reverseEngineering/dumps1.py | szczys/ellipticalDisplay | 78a7ec28ed19ccc98d0e62866c004533ab5dd04a | [
"MIT"
] | null | null | null | #This is raw data from a Bus Pirate on SPI sniffing mode
raw = '''[0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x03(0x00)0x98(0x00)0x28(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x03(0x00)0x98(0x00)0x28(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x03(0x00)0x98(0x00)0x28(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x03(0x00)0x98(0x00)0x28(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x03(0x00)0x98(0x00)0x28(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x03(0x00)0x98(0x00)0x28(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x03(0x00)0x98(0x00)0x28(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x03(0x00)0x98(0x00)0x28(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x03(0x00)0x98(0x00)0x28(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x03(0x00)0x98(0x00)0x28(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x03(0x00)0x98(0x00)0x28(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x03(0x00)0x98(0x00)0x28(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x03(0x00)0x98(0x00)0x28(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x03(0x00)0x98(0x00)0x28(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x03(0x00)0x98(0x00)0x28(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x03(0x00)0x98(0x00)0x28(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x03(0x00)0x98(0x00)0x28(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x03(0x00)0x98(0x00)0x28(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x03(0x00)0x98(0x00)0x28(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x03(0x00)0x98(0x00)0x28(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x03(0x00)0x98(0x00)0x28(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0xDF(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0xDF(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0xDF(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0xDF(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0xDF(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0xDF(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0xDF(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0xDF(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0xDF(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0xDF(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0xDF(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0xDF(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0xDF(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0xDF(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0xDF(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0xDF(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0xDF(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0xDF(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0xDF(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0xDF(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0xDF(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0xDF(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0x9F(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0x9F(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0x9F(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0x9F(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0x9F(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0x9F(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0x9F(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0x9F(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0x9F(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0x9F(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0x9F(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0x9F(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0x9F(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0x9F(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0x9F(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0x9F(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0x9F(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x06(0x00)0x9F(0x00)0xAF(0x00)0xEF(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x20(0x00)0x00(0x00)0x00(0x00)0x00(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x40(0x00)0x29(0x00)0x39(0x00)0x00(0x00)0x40(0x00)0x00(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x40(0x00)0x29(0x00)0x39(0x00)0x00(0x00)0x40(0x00)0x00(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x40(0x00)0x29(0x00)0x39(0x00)0x00(0x00)0x40(0x00)0x00(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x40(0x00)0x29(0x00)0x39(0x00)0x00(0x00)0x40(0x00)0x00(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x40(0x00)0x29(0x00)0x39(0x00)0x00(0x00)0x40(0x00)0x00(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x40(0x00)0x29(0x00)0x39(0x00)0x00(0x00)0x40(0x00)0x00(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x40(0x00)0x29(0x00)0x39(0x00)0x00(0x00)0x40(0x00)0x00(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x40(0x00)0x29(0x00)0x39(0x00)0x00(0x00)0x40(0x00)0x00(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x40(0x00)0x29(0x00)0x39(0x00)0x00(0x00)0x40(0x00)0x00(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x40(0x00)0x29(0x00)0x39(0x00)0x00(0x00)0x40(0x00)0x00(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x40(0x00)0x29(0x00)0x39(0x00)0x00(0x00)0x40(0x00)0x00(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x44(0x00)0xB9(0x00)0x39(0x00)0x00(0x00)0x47(0x00)0x00(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x44(0x00)0xB9(0x00)0x39(0x00)0x00(0x00)0x47(0x00)0x00(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x44(0x00)0xB9(0x00)0x39(0x00)0x00(0x00)0x47(0x00)0x00(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x44(0x00)0xB9(0x00)0x39(0x00)0x00(0x00)0x47(0x00)0x00(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x44(0x00)0xB9(0x00)0x39(0x00)0x00(0x00)0x47(0x00)0x00(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x44(0x00)0xB9(0x00)0x39(0x00)0x00(0x00)0x47(0x00)0x00(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x44(0x00)0xB9(0x00)0x39(0x00)0x00(0x00)0x47(0x00)0x00(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x44(0x00)0xB9(0x00)0x39(0x00)0x00(0x00)0x47(0x00)0x00(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x44(0x00)0xB9(0x00)0x39(0x00)0x00(0x00)0x47(0x00)0x00(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x44(0x00)0xB9(0x00)0x39(0x00)0x00(0x00)0x47(0x00)0x00(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x41(0x00)0x3F(0x00)0xB1(0x00)0x00(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x41(0x00)0x3F(0x00)0xB1(0x00)0x00(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x41(0x00)0x3F(0x00)0xB1(0x00)0x00(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x41(0x00)0x3F(0x00)0xB1(0x00)0x00(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x41(0x00)0x3F(0x00)0xB1(0x00)0x00(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x41(0x00)0x3F(0x00)0xB1(0x00)0x00(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x41(0x00)0x3F(0x00)0xB1(0x00)0x00(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x41(0x00)0x3F(0x00)0xB1(0x00)0x00(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x41(0x00)0x3F(0x00)0xB1(0x00)0x00(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x28(0x00)0x41(0x00)0x3F(0x00)0xB1(0x00)0x00(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF7(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF7(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF7(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF7(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF7(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF7(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF7(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF7(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF7(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF7(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF5(0x00)0xB0(0x00)0x45(0x00)0xB7(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF5(0x00)0xB0(0x00)0x45(0x00)0xB7(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF5(0x00)0xB0(0x00)0x45(0x00)0xB7(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF5(0x00)0xB0(0x00)0x45(0x00)0xB7(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF5(0x00)0xB0(0x00)0x45(0x00)0xB7(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF5(0x00)0xB0(0x00)0x45(0x00)0xB7(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF5(0x00)0xB0(0x00)0x45(0x00)0xB7(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF5(0x00)0xB0(0x00)0x45(0x00)0xB7(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF5(0x00)0xB0(0x00)0x45(0x00)0xB7(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF5(0x00)0xB0(0x00)0x45(0x00)0xB7(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF1(0x00)0x38(0x00)0x47(0x00)0xB7(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF1(0x00)0x38(0x00)0x47(0x00)0xB7(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF1(0x00)0x38(0x00)0x47(0x00)0xB7(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF1(0x00)0x38(0x00)0x47(0x00)0xB7(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF1(0x00)0x38(0x00)0x47(0x00)0xB7(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF1(0x00)0x38(0x00)0x47(0x00)0xB7(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF1(0x00)0x38(0x00)0x47(0x00)0xB7(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF1(0x00)0x38(0x00)0x47(0x00)0xB7(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF1(0x00)0x38(0x00)0x47(0x00)0xB7(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF1(0x00)0x38(0x00)0x47(0x00)0xB7(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF4(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF4(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF4(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF4(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF4(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF4(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF4(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF4(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF4(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF4(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF6(0x00)0x98(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF6(0x00)0x98(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF6(0x00)0x98(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF6(0x00)0x98(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF6(0x00)0x98(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF6(0x00)0x98(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF6(0x00)0x98(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF6(0x00)0x98(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF6(0x00)0x98(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF6(0x00)0x98(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF0(0x00)0x28(0x00)0x45(0x00)0xB7(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF0(0x00)0x28(0x00)0x45(0x00)0xB7(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF0(0x00)0x28(0x00)0x45(0x00)0xB7(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF0(0x00)0x28(0x00)0x45(0x00)0xB7(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF0(0x00)0x28(0x00)0x45(0x00)0xB7(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF0(0x00)0x28(0x00)0x45(0x00)0xB7(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF0(0x00)0x28(0x00)0x45(0x00)0xB7(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF0(0x00)0x28(0x00)0x45(0x00)0xB7(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF0(0x00)0x28(0x00)0x45(0x00)0xB7(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF0(0x00)0x28(0x00)0x45(0x00)0xB7(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF7(0x00)0xA8(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF7(0x00)0xA8(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF7(0x00)0xA8(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF7(0x00)0xA8(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF7(0x00)0xA8(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF7(0x00)0xA8(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF7(0x00)0xA8(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF7(0x00)0xA8(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF7(0x00)0xA8(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBD(0x00)0xF7(0x00)0xA8(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7D(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7D(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7D(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7D(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7D(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7D(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7D(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7D(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7D(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7D(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x78(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x78(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x78(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x78(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x78(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x78(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x78(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x78(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x78(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x78(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xB0(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xB0(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xB0(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xB0(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xB0(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xB0(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xB0(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xB0(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xB0(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xB0(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7D(0x00)0xB0(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7D(0x00)0xB0(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7D(0x00)0xB0(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7D(0x00)0xB0(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7D(0x00)0xB0(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7D(0x00)0xB0(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7D(0x00)0xB0(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7D(0x00)0xB0(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7D(0x00)0xB0(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7D(0x00)0xB0(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x79(0x00)0x38(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x79(0x00)0x38(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x79(0x00)0x38(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x79(0x00)0x38(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x79(0x00)0x38(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x79(0x00)0x38(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x79(0x00)0x38(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x79(0x00)0x38(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x79(0x00)0x38(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x79(0x00)0x38(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7C(0x00)0xB8(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7C(0x00)0xB8(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7C(0x00)0xB8(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7C(0x00)0xB8(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7C(0x00)0xB8(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7C(0x00)0xB8(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7C(0x00)0xB8(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7C(0x00)0xB8(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7C(0x00)0xB8(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7C(0x00)0xB8(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7E(0x00)0x98(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7E(0x00)0x98(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7E(0x00)0x98(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7E(0x00)0x98(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7E(0x00)0x98(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7E(0x00)0x98(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7E(0x00)0x98(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7E(0x00)0x98(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7E(0x00)0x98(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7E(0x00)0x98(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x78(0x00)0x28(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x78(0x00)0x28(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x78(0x00)0x28(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x78(0x00)0x28(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x78(0x00)0x28(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x78(0x00)0x28(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x78(0x00)0x28(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x78(0x00)0x28(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x78(0x00)0x28(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x78(0x00)0x28(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB9(0x00)0x7F(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFD(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFD(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFD(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFD(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFD(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFD(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFD(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFD(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFD(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFD(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF8(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF8(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF8(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF8(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF8(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF8(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF8(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF8(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF8(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF8(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFD(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFD(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFD(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFD(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFD(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFD(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFD(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFD(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFD(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFD(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF9(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF9(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF9(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF9(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF9(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF9(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF9(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF9(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF9(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF9(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFC(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFC(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFC(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFC(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFC(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFC(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFC(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFC(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFC(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFC(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFE(0x00)0x98(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFE(0x00)0x98(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFE(0x00)0x98(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFE(0x00)0x98(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFE(0x00)0x98(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFE(0x00)0x98(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFE(0x00)0x98(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFE(0x00)0x98(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFE(0x00)0x98(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFE(0x00)0x98(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF8(0x00)0x28(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF8(0x00)0x28(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF8(0x00)0x28(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF8(0x00)0x28(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF8(0x00)0x28(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF8(0x00)0x28(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF8(0x00)0x28(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF8(0x00)0x28(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF8(0x00)0x28(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xF8(0x00)0x28(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBC(0x00)0xFF(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDD(0x00)0xB8(0x00)0x47(0x00)0xB0(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDD(0x00)0xB8(0x00)0x47(0x00)0xB0(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDD(0x00)0xB8(0x00)0x47(0x00)0xB0(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDD(0x00)0xB8(0x00)0x47(0x00)0xB0(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDD(0x00)0xB8(0x00)0x47(0x00)0xB0(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDD(0x00)0xB8(0x00)0x47(0x00)0xB0(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDD(0x00)0xB8(0x00)0x47(0x00)0xB0(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDD(0x00)0xB8(0x00)0x47(0x00)0xB0(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDD(0x00)0xB8(0x00)0x47(0x00)0xB0(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDD(0x00)0xB8(0x00)0x47(0x00)0xB0(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xB8(0x00)0x6F(0x00)0xAD(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xB8(0x00)0x6F(0x00)0xAD(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xB8(0x00)0x6F(0x00)0xAD(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xB8(0x00)0x6F(0x00)0xAD(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xB8(0x00)0x6F(0x00)0xAD(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xB8(0x00)0x6F(0x00)0xAD(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xB8(0x00)0x6F(0x00)0xAD(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xB8(0x00)0x6F(0x00)0xAD(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xB8(0x00)0x6F(0x00)0xAD(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xB8(0x00)0x6F(0x00)0xAD(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD8(0x00)0xA8(0x00)0x6E(0x00)0x98(0x00)0x29(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD8(0x00)0xA8(0x00)0x6E(0x00)0x98(0x00)0x29(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD8(0x00)0xA8(0x00)0x6E(0x00)0x98(0x00)0x29(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD8(0x00)0xA8(0x00)0x6E(0x00)0x98(0x00)0x29(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD8(0x00)0xA8(0x00)0x6E(0x00)0x98(0x00)0x29(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD8(0x00)0xA8(0x00)0x6E(0x00)0x98(0x00)0x29(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD8(0x00)0xA8(0x00)0x6E(0x00)0x98(0x00)0x29(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD8(0x00)0xA8(0x00)0x6E(0x00)0x98(0x00)0x29(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD8(0x00)0xA8(0x00)0x6E(0x00)0x98(0x00)0x29(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD8(0x00)0xA8(0x00)0x6E(0x00)0x98(0x00)0x29(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xB0(0x00)0x6E(0x00)0x9D(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xB0(0x00)0x6E(0x00)0x9D(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xB0(0x00)0x6E(0x00)0x9D(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xB0(0x00)0x6E(0x00)0x9D(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xB0(0x00)0x6E(0x00)0x9D(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xB0(0x00)0x6E(0x00)0x9D(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xB0(0x00)0x6E(0x00)0x9D(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xB0(0x00)0x6E(0x00)0x9D(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xB0(0x00)0x6E(0x00)0x9D(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xB0(0x00)0x6E(0x00)0x9D(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDD(0x00)0xB0(0x00)0x6E(0x00)0x9D(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDD(0x00)0xB0(0x00)0x6E(0x00)0x9D(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDD(0x00)0xB0(0x00)0x6E(0x00)0x9D(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDD(0x00)0xB0(0x00)0x6E(0x00)0x9D(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDD(0x00)0xB0(0x00)0x6E(0x00)0x9D(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDD(0x00)0xB0(0x00)0x6E(0x00)0x9D(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDD(0x00)0xB0(0x00)0x6E(0x00)0x9D(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDD(0x00)0xB0(0x00)0x6E(0x00)0x9D(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDD(0x00)0xB0(0x00)0x6E(0x00)0x9D(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDD(0x00)0xB0(0x00)0x6E(0x00)0x9D(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD9(0x00)0x38(0x00)0x6F(0x00)0xA8(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD9(0x00)0x38(0x00)0x6F(0x00)0xA8(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD9(0x00)0x38(0x00)0x6F(0x00)0xA8(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD9(0x00)0x38(0x00)0x6F(0x00)0xA8(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD9(0x00)0x38(0x00)0x6F(0x00)0xA8(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD9(0x00)0x38(0x00)0x6F(0x00)0xA8(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD9(0x00)0x38(0x00)0x6F(0x00)0xA8(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD9(0x00)0x38(0x00)0x6F(0x00)0xA8(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD9(0x00)0x38(0x00)0x6F(0x00)0xA8(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD9(0x00)0x38(0x00)0x6F(0x00)0xA8(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0xFE(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDC(0x00)0xB8(0x00)0x47(0x00)0xB9(0x00)0x39(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDC(0x00)0xB8(0x00)0x47(0x00)0xB9(0x00)0x39(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDC(0x00)0xB8(0x00)0x47(0x00)0xB9(0x00)0x39(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDC(0x00)0xB8(0x00)0x47(0x00)0xB9(0x00)0x39(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDC(0x00)0xB8(0x00)0x47(0x00)0xB9(0x00)0x39(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDC(0x00)0xB8(0x00)0x47(0x00)0xB9(0x00)0x39(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDC(0x00)0xB8(0x00)0x47(0x00)0xB9(0x00)0x39(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDC(0x00)0xB8(0x00)0x47(0x00)0xB9(0x00)0x39(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDC(0x00)0xB8(0x00)0x47(0x00)0xB9(0x00)0x39(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDC(0x00)0xB8(0x00)0x47(0x00)0xB9(0x00)0x39(0x00)0xA0(0x00)0x07(0x00)0xFF(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDE(0x00)0x98(0x00)0x40(0x00)0xAE(0x00)0x99(0x00)0xA0(0x00)0x07(0x00)0xFC(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDE(0x00)0x98(0x00)0x40(0x00)0xAE(0x00)0x99(0x00)0xA0(0x00)0x07(0x00)0xFC(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDE(0x00)0x98(0x00)0x40(0x00)0xAE(0x00)0x99(0x00)0xA0(0x00)0x07(0x00)0xFC(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDE(0x00)0x98(0x00)0x40(0x00)0xAE(0x00)0x99(0x00)0xA0(0x00)0x07(0x00)0xFC(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDE(0x00)0x98(0x00)0x40(0x00)0xAE(0x00)0x99(0x00)0xA0(0x00)0x07(0x00)0xFC(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDE(0x00)0x98(0x00)0x40(0x00)0xAE(0x00)0x99(0x00)0xA0(0x00)0x07(0x00)0xFC(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDE(0x00)0x98(0x00)0x40(0x00)0xAE(0x00)0x99(0x00)0xA0(0x00)0x07(0x00)0xFC(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDE(0x00)0x98(0x00)0x40(0x00)0xAE(0x00)0x99(0x00)0xA0(0x00)0x07(0x00)0xFC(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDE(0x00)0x98(0x00)0x40(0x00)0xAE(0x00)0x99(0x00)0xA0(0x00)0x07(0x00)0xFC(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDE(0x00)0x98(0x00)0x40(0x00)0xAE(0x00)0x99(0x00)0xA0(0x00)0x07(0x00)0xFC(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD8(0x00)0x28(0x00)0x47(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD8(0x00)0x28(0x00)0x47(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD8(0x00)0x28(0x00)0x47(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD8(0x00)0x28(0x00)0x47(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD8(0x00)0x28(0x00)0x47(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD8(0x00)0x28(0x00)0x47(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD8(0x00)0x28(0x00)0x47(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD8(0x00)0x28(0x00)0x47(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD8(0x00)0x28(0x00)0x47(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xD8(0x00)0x28(0x00)0x47(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xA8(0x00)0x47(0x00)0xB6(0x00)0x99(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xA8(0x00)0x47(0x00)0xB6(0x00)0x99(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xA8(0x00)0x47(0x00)0xB6(0x00)0x99(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xA8(0x00)0x47(0x00)0xB6(0x00)0x99(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xA8(0x00)0x47(0x00)0xB6(0x00)0x99(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xA8(0x00)0x47(0x00)0xB6(0x00)0x99(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xA8(0x00)0x47(0x00)0xB6(0x00)0x99(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xA8(0x00)0x47(0x00)0xB6(0x00)0x99(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xA8(0x00)0x47(0x00)0xB6(0x00)0x99(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBE(0x00)0xDF(0x00)0xA8(0x00)0x47(0x00)0xB6(0x00)0x99(0x00)0xA0(0x00)0x07(0x00)0xF8(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6D(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6D(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6D(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6D(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6D(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6D(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6D(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6D(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6D(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6D(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xB8(0x00)0x45(0x00)0xB0(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xB8(0x00)0x45(0x00)0xB0(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xB8(0x00)0x45(0x00)0xB0(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xB8(0x00)0x45(0x00)0xB0(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xB8(0x00)0x45(0x00)0xB0(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xB8(0x00)0x45(0x00)0xB0(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xB8(0x00)0x45(0x00)0xB0(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xB8(0x00)0x45(0x00)0xB0(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xB8(0x00)0x45(0x00)0xB0(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xB8(0x00)0x45(0x00)0xB0(0x00)0xA9(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x68(0x00)0xA8(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x68(0x00)0xA8(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x68(0x00)0xA8(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x68(0x00)0xA8(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x68(0x00)0xA8(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x68(0x00)0xA8(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x68(0x00)0xA8(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x68(0x00)0xA8(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x68(0x00)0xA8(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x68(0x00)0xA8(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xB0(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xB0(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xB0(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xB0(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xB0(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xB0(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xB0(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xB0(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xB0(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xB0(0x00)0x45(0x00)0xB7(0x00)0xB1(0x00)0xA0(0x00)0x07(0x00)0xF0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6D(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6D(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6D(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6D(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6D(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6D(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6D(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6D(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6D(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6D(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x69(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x69(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x69(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x69(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x69(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x69(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x69(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x69(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x69(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x69(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6C(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6C(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6C(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6C(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6C(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6C(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6C(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6C(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6C(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6C(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6E(0x00)0x98(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6E(0x00)0x98(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6E(0x00)0x98(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6E(0x00)0x98(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6E(0x00)0x98(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6E(0x00)0x98(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6E(0x00)0x98(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6E(0x00)0x98(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6E(0x00)0x98(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6E(0x00)0x98(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x68(0x00)0x28(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x68(0x00)0x28(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x68(0x00)0x28(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x68(0x00)0x28(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x68(0x00)0x28(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x68(0x00)0x28(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x68(0x00)0x28(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x68(0x00)0x28(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x68(0x00)0x28(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x68(0x00)0x28(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xB8(0x00)0x6F(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xED(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xED(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xED(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xED(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xED(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xED(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xED(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xED(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xED(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xED(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE8(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE8(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE8(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE8(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE8(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE8(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE8(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE8(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE8(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE8(0x00)0xA8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xB0(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xED(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xED(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xED(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xED(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xED(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xED(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xED(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xED(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xED(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xED(0x00)0xB0(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE9(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE9(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE9(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE9(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE9(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE9(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE9(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE9(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE9(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE9(0x00)0x38(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEC(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEC(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEC(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEC(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEC(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEC(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEC(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEC(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEC(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEC(0x00)0xB8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEE(0x00)0x98(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEE(0x00)0x98(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEE(0x00)0x98(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEE(0x00)0x98(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEE(0x00)0x98(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEE(0x00)0x98(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEE(0x00)0x98(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEE(0x00)0x98(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEE(0x00)0x98(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEE(0x00)0x98(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE8(0x00)0x28(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE8(0x00)0x28(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE8(0x00)0x28(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE8(0x00)0x28(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE8(0x00)0x28(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE8(0x00)0x28(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE8(0x00)0x28(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE8(0x00)0x28(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE8(0x00)0x28(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xE8(0x00)0x28(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xA8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xA8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xA8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xA8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xA8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xA8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xA8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xA8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xA8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2D(0x00)0xBF(0x00)0xEF(0x00)0xA8(0x00)0x45(0x00)0xB5(0x00)0xB1(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF5(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF5(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF5(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF5(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF5(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF5(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF5(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF5(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF5(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF5(0x00)0xB8(0x00)0x45(0x00)0xB1(0x00)0x39(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF7(0x00)0xB8(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF7(0x00)0xB8(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF7(0x00)0xB8(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF7(0x00)0xB8(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF7(0x00)0xB8(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF7(0x00)0xB8(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF7(0x00)0xB8(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF7(0x00)0xB8(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF7(0x00)0xB8(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF7(0x00)0xB8(0x00)0x45(0x00)0xB4(0x00)0xB9(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF0(0x00)0xA8(0x00)0x45(0x00)0xB0(0x00)0x29(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF0(0x00)0xA8(0x00)0x45(0x00)0xB0(0x00)0x29(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF0(0x00)0xA8(0x00)0x45(0x00)0xB0(0x00)0x29(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF0(0x00)0xA8(0x00)0x45(0x00)0xB0(0x00)0x29(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF0(0x00)0xA8(0x00)0x45(0x00)0xB0(0x00)0x29(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF0(0x00)0xA8(0x00)0x45(0x00)0xB0(0x00)0x29(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF0(0x00)0xA8(0x00)0x45(0x00)0xB0(0x00)0x29(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF0(0x00)0xA8(0x00)0x45(0x00)0xB0(0x00)0x29(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF0(0x00)0xA8(0x00)0x45(0x00)0xB0(0x00)0x29(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF0(0x00)0xA8(0x00)0x45(0x00)0xB0(0x00)0x29(0x00)0x20(0x00)0x07(0x00)0xE0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF7(0x00)0xB0(0x00)0x41(0x00)0x3F(0x00)0xB1(0x00)0x20(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF7(0x00)0xB0(0x00)0x41(0x00)0x3F(0x00)0xB1(0x00)0x20(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF7(0x00)0xB0(0x00)0x41(0x00)0x3F(0x00)0xB1(0x00)0x20(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF7(0x00)0xB0(0x00)0x41(0x00)0x3F(0x00)0xB1(0x00)0x20(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF7(0x00)0xB0(0x00)0x41(0x00)0x3F(0x00)0xB1(0x00)0x20(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF7(0x00)0xB0(0x00)0x41(0x00)0x3F(0x00)0xB1(0x00)0x20(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF7(0x00)0xB0(0x00)0x41(0x00)0x3F(0x00)0xB1(0x00)0x20(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF7(0x00)0xB0(0x00)0x41(0x00)0x3F(0x00)0xB1(0x00)0x20(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF7(0x00)0xB0(0x00)0x41(0x00)0x3F(0x00)0xB1(0x00)0x20(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF7(0x00)0xB0(0x00)0x41(0x00)0x3F(0x00)0xB1(0x00)0x20(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF5(0x00)0xB0(0x00)0x41(0x00)0x39(0x00)0x39(0x00)0x20(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF5(0x00)0xB0(0x00)0x41(0x00)0x39(0x00)0x39(0x00)0x20(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF5(0x00)0xB0(0x00)0x41(0x00)0x39(0x00)0x39(0x00)0x20(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF5(0x00)0xB0(0x00)0x41(0x00)0x39(0x00)0x39(0x00)0x20(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF5(0x00)0xB0(0x00)0x41(0x00)0x39(0x00)0x39(0x00)0x20(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF5(0x00)0xB0(0x00)0x41(0x00)0x39(0x00)0x39(0x00)0x20(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF5(0x00)0xB0(0x00)0x41(0x00)0x39(0x00)0x39(0x00)0x20(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF5(0x00)0xB0(0x00)0x41(0x00)0x39(0x00)0x39(0x00)0x20(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF5(0x00)0xB0(0x00)0x41(0x00)0x39(0x00)0x39(0x00)0x20(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF5(0x00)0xB0(0x00)0x41(0x00)0x39(0x00)0x39(0x00)0x20(0x00)0x47(0x00)0xC0(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF1(0x00)0x38(0x00)0x41(0x00)0x38(0x00)0x29(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF1(0x00)0x38(0x00)0x41(0x00)0x38(0x00)0x29(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF1(0x00)0x38(0x00)0x41(0x00)0x38(0x00)0x29(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF1(0x00)0x38(0x00)0x41(0x00)0x38(0x00)0x29(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF1(0x00)0x38(0x00)0x41(0x00)0x38(0x00)0x29(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF1(0x00)0x38(0x00)0x41(0x00)0x38(0x00)0x29(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF1(0x00)0x38(0x00)0x41(0x00)0x38(0x00)0x29(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF1(0x00)0x38(0x00)0x41(0x00)0x38(0x00)0x29(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF1(0x00)0x38(0x00)0x41(0x00)0x38(0x00)0x29(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF1(0x00)0x38(0x00)0x41(0x00)0x38(0x00)0x29(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF4(0x00)0xB8(0x00)0x41(0x00)0x38(0x00)0x29(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF4(0x00)0xB8(0x00)0x41(0x00)0x38(0x00)0x29(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF4(0x00)0xB8(0x00)0x41(0x00)0x38(0x00)0x29(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF4(0x00)0xB8(0x00)0x41(0x00)0x38(0x00)0x29(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF4(0x00)0xB8(0x00)0x41(0x00)0x38(0x00)0x29(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF4(0x00)0xB8(0x00)0x41(0x00)0x38(0x00)0x29(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF4(0x00)0xB8(0x00)0x41(0x00)0x38(0x00)0x29(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF4(0x00)0xB8(0x00)0x41(0x00)0x38(0x00)0x29(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF4(0x00)0xB8(0x00)0x41(0x00)0x38(0x00)0x29(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF4(0x00)0xB8(0x00)0x41(0x00)0x38(0x00)0x29(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF6(0x00)0x98(0x00)0x41(0x00)0x3F(0x00)0xA9(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF6(0x00)0x98(0x00)0x41(0x00)0x3F(0x00)0xA9(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF6(0x00)0x98(0x00)0x41(0x00)0x3F(0x00)0xA9(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF6(0x00)0x98(0x00)0x41(0x00)0x3F(0x00)0xA9(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF6(0x00)0x98(0x00)0x41(0x00)0x3F(0x00)0xA9(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF6(0x00)0x98(0x00)0x41(0x00)0x3F(0x00)0xA9(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF6(0x00)0x98(0x00)0x41(0x00)0x3F(0x00)0xA9(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF6(0x00)0x98(0x00)0x41(0x00)0x3F(0x00)0xA9(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF6(0x00)0x98(0x00)0x41(0x00)0x3F(0x00)0xA9(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF6(0x00)0x98(0x00)0x41(0x00)0x3F(0x00)0xA9(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF0(0x00)0x28(0x00)0x41(0x00)0x3F(0x00)0xA9(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF0(0x00)0x28(0x00)0x41(0x00)0x3F(0x00)0xA9(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x2F(0x00)0xBD(0x00)0xF0(0x00)0x28(0x00)0x41(0x00)0x3F(0x00)0xA9(0x00)0x20(0x00)0x47(0x00)0x80(0x00)0x7E(0x00)][0x00(0x00)0x80(0x00)0x22(0x00)0x90(0x00)0xC0(0x00)][0xA0(0x00)0x7F(0x00)0xFF(0x00)0xFF(0x00)0xFF(0x00)0xFF(0x00)0xFF(0x00)0xFF(0x00)0xFF(0x00)0xFF(0x00)0xFF(0x00)0xFF(0x00)0xFF(0x00)0xFF(0x00)0xFF(0x00)0xFF(0x00)][0xA0(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)0x00(0x00)]'''
#some magic to clean up the data (separate packets and get rid of MISO values which are all (0x00)
def cleanUpRaw(rawData):
delimiter = ']'
cleaned = [entry + delimiter for entry in rawData.split(']') if len(entry+delimiter) == 162]
return cleaned
def getPacketAsList(packet):
#packets should look like this:
# '[0xA0(0x00)0x00(0x00)0x7E(0x00)0xFA(0x00)0xC0(0x00)0x40(0x00)0x00(0x00)0x07(0x00)0xA8(0x00)0x40(0x00)0x07(0x00)0xA9(0x00)0x40(0x00)0x00(0x00)0x00(0x00)0x00(0x00)]'
return [entry for entry in packet.strip('[]').split('(0x00)') if entry != '']
def listNonRepeating(cleanedRaw):
nonRepList = []
last = []
for i in cleanedRaw:
testPacket = getPacketAsList(i)
if testPacket != last:
last = testPacket
nonRepList.append(last)
return nonRepList
#This sampleSet was generated as follows:
# listNonRepeating(cleanUpRaw(raw))
#
#
sampleSet = [
['0xA0', '0x00', '0x7E', '0xFA', '0xC0', '0x40', '0x00', '0x07', '0xA8', '0x40', '0x07', '0xA9', '0x40', '0x00', '0x00', '0x00'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x03', '0x98', '0x28', '0x00', '0x00', '0x00', '0x00', '0x00', '0x00', '0x00', '0x00'],
['0xA0', '0x00', '0x00', '0x00', '0x06', '0xDF', '0xAF', '0xEF', '0xA8', '0x40', '0x07', '0xA9', '0x20', '0x00', '0x00', '0x00'],
['0xA0', '0x00', '0x00', '0x00', '0x06', '0x9F', '0xAF', '0xEF', '0xA8', '0x40', '0x07', '0xA9', '0x20', '0x00', '0x00', '0x00'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x00', '0x00', '0x00', '0x28', '0x40', '0x29', '0x39', '0x00', '0x40', '0x00', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x00', '0x00', '0x00', '0x28', '0x44', '0xB9', '0x39', '0x00', '0x47', '0x00', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x00', '0x00', '0x00', '0x28', '0x41', '0x3F', '0xB1', '0x00', '0x47', '0xC0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBD', '0xF7', '0xB0', '0x45', '0xB5', '0xB1', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBD', '0xF5', '0xB0', '0x45', '0xB7', '0xB9', '0xA0', '0x07', '0xF0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBD', '0xF1', '0x38', '0x47', '0xB7', '0xA9', '0xA0', '0x07', '0xF0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBD', '0xF4', '0xB8', '0x45', '0xB5', '0xB9', '0xA0', '0x07', '0xF0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBD', '0xF6', '0x98', '0x45', '0xB5', '0xB9', '0xA0', '0x07', '0xF0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBD', '0xF0', '0x28', '0x45', '0xB7', '0xB9', '0xA0', '0x07', '0xF0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBD', '0xF7', '0xA8', '0x45', '0xB7', '0xB1', '0xA0', '0x07', '0xF0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xB9', '0x7D', '0xB8', '0x45', '0xB5', '0xB1', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xB9', '0x7F', '0xB8', '0x45', '0xB1', '0x39', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xB9', '0x78', '0xA8', '0x45', '0xB1', '0x39', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xB9', '0x7F', '0xB0', '0x45', '0xB4', '0xB9', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xB9', '0x7D', '0xB0', '0x45', '0xB4', '0xB9', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xB9', '0x79', '0x38', '0x45', '0xB4', '0xB9', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xB9', '0x7C', '0xB8', '0x45', '0xB4', '0xB9', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xB9', '0x7E', '0x98', '0x45', '0xB4', '0xB9', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xB9', '0x78', '0x28', '0x45', '0xB1', '0x39', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xB9', '0x7F', '0xA8', '0x45', '0xB1', '0x39', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBC', '0xFD', '0xB8', '0x45', '0xB1', '0x39', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBC', '0xFF', '0xB8', '0x45', '0xB1', '0x39', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBC', '0xF8', '0xA8', '0x45', '0xB1', '0x39', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBC', '0xFF', '0xB0', '0x45', '0xB1', '0x39', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBC', '0xFD', '0xB0', '0x45', '0xB1', '0x39', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBC', '0xF9', '0x38', '0x45', '0xB1', '0x39', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBC', '0xFC', '0xB8', '0x45', '0xB5', '0xB1', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBC', '0xFE', '0x98', '0x45', '0xB7', '0xB1', '0xA0', '0x07', '0xF0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBC', '0xF8', '0x28', '0x45', '0xB7', '0xB1', '0xA0', '0x07', '0xF0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBC', '0xFF', '0xA8', '0x45', '0xB1', '0x39', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBE', '0xDD', '0xB8', '0x47', '0xB0', '0xA9', '0xA0', '0x07', '0xF8', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBE', '0xDF', '0xB8', '0x6F', '0xAD', '0xB1', '0xA0', '0x07', '0xFF', '0xFE'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBE', '0xD8', '0xA8', '0x6E', '0x98', '0x29', '0xA0', '0x07', '0xFF', '0xFE'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBE', '0xDF', '0xB0', '0x6E', '0x9D', '0xB1', '0xA0', '0x07', '0xFF', '0xFE'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBE', '0xDD', '0xB0', '0x6E', '0x9D', '0xB1', '0xA0', '0x07', '0xFF', '0xFE'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBE', '0xD9', '0x38', '0x6F', '0xA8', '0xA9', '0xA0', '0x07', '0xFF', '0xFE'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBE', '0xDC', '0xB8', '0x47', '0xB9', '0x39', '0xA0', '0x07', '0xFF', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBE', '0xDE', '0x98', '0x40', '0xAE', '0x99', '0xA0', '0x07', '0xFC', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBE', '0xD8', '0x28', '0x47', '0xB7', '0xB1', '0xA0', '0x07', '0xF8', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBE', '0xDF', '0xA8', '0x47', '0xB6', '0x99', '0xA0', '0x07', '0xF8', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xB8', '0x6D', '0xB8', '0x45', '0xB5', '0xB9', '0xA0', '0x07', '0xF0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xB8', '0x6F', '0xB8', '0x45', '0xB0', '0xA9', '0xA0', '0x07', '0xF0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xB8', '0x68', '0xA8', '0x45', '0xB7', '0xB1', '0xA0', '0x07', '0xF0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xB8', '0x6F', '0xB0', '0x45', '0xB7', '0xB1', '0xA0', '0x07', '0xF0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xB8', '0x6D', '0xB0', '0x45', '0xB5', '0xB1', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xB8', '0x69', '0x38', '0x45', '0xB1', '0x39', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xB8', '0x6C', '0xB8', '0x45', '0xB1', '0x39', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xB8', '0x6E', '0x98', '0x45', '0xB1', '0x39', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xB8', '0x68', '0x28', '0x45', '0xB1', '0x39', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xB8', '0x6F', '0xA8', '0x45', '0xB1', '0x39', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBF', '0xED', '0xB8', '0x45', '0xB1', '0x39', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBF', '0xEF', '0xB8', '0x45', '0xB1', '0x39', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBF', '0xE8', '0xA8', '0x45', '0xB1', '0x39', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBF', '0xEF', '0xB0', '0x45', '0xB1', '0x39', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBF', '0xED', '0xB0', '0x45', '0xB5', '0xB1', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBF', '0xE9', '0x38', '0x45', '0xB1', '0x39', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBF', '0xEC', '0xB8', '0x45', '0xB5', '0xB1', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBF', '0xEE', '0x98', '0x45', '0xB1', '0x39', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBF', '0xE8', '0x28', '0x45', '0xB5', '0xB1', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2D', '0xBF', '0xEF', '0xA8', '0x45', '0xB5', '0xB1', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2F', '0xBD', '0xF5', '0xB8', '0x45', '0xB1', '0x39', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2F', '0xBD', '0xF7', '0xB8', '0x45', '0xB4', '0xB9', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2F', '0xBD', '0xF0', '0xA8', '0x45', '0xB0', '0x29', '0x20', '0x07', '0xE0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2F', '0xBD', '0xF7', '0xB0', '0x41', '0x3F', '0xB1', '0x20', '0x47', '0xC0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2F', '0xBD', '0xF5', '0xB0', '0x41', '0x39', '0x39', '0x20', '0x47', '0xC0', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2F', '0xBD', '0xF1', '0x38', '0x41', '0x38', '0x29', '0x20', '0x47', '0x80', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2F', '0xBD', '0xF4', '0xB8', '0x41', '0x38', '0x29', '0x20', '0x47', '0x80', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2F', '0xBD', '0xF6', '0x98', '0x41', '0x3F', '0xA9', '0x20', '0x47', '0x80', '0x7E'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x2F', '0xBD', '0xF0', '0x28', '0x41', '0x3F', '0xA9', '0x20', '0x47', '0x80', '0x7E'],
['0xA0', '0x7F', '0xFF', '0xFF', '0xFF', '0xFF', '0xFF', '0xFF', '0xFF', '0xFF', '0xFF', '0xFF', '0xFF', '0xFF', '0xFF', '0xFF'],
['0xA0', '0x00', '0x00', '0x00', '0x00', '0x00', '0x00', '0x00', '0x00', '0x00', '0x00', '0x00', '0x00', '0x00', '0x00', '0x00'],
]
def loadExternalSet(rawDataFile):
global sampleSet
with open(rawDataFile,'r') as r:
rawSamples = r.read()
sampleSet = listNonRepeating(cleanUpRaw(rawSamples))
print "Success"
###############Master List################
# 7-Segment values are encoded in two bytes with the following mask:
# 0x07 0xB8
#
# Byte04 Byte05 Minutes Tens
# Byte05 Byte06 Minutes Ones
# Byte06 Byte07 Seconds Tens
# Byte07 Byte08 Seconds Ones
#
###########Tentatively Established########
#
# Byte07 Mask 0x40 Time colon (likely single segment)
# Byte08 Byte09 Speed Hundreds
# Byte09 Byte10 Speed Tens
# Byte10 Byte11 Speed Ones
# Byte13 Mask 0x07 Byte14 Mask 0xFF Byte15 Mask 0x80 RPM Bar Graph
# Byte15 Mask 0x7F (!! missing 5 bits from sniffed data) RPM Target Graph
# Byte13 Mask 0x40 Target Up (single segment)
# Byte12 Mask 0x80 Target Down (single segment)
# Byte09 Mask 0x40 RPM label (single segment)
# Byte05 Mask 0x40 Scan indicator (single segment)
# Byte12 Mask 0x20 Time indicator (single segment)
# Byte12 Mask 0x40 Distance indicator (single segment)
#
# ###Special: just like other digits but shifted by one nibble
# Byte01 plus upper nibble Byte02 Calories Hundreds
# Byte02 plus upper nibble Byte03 Calories Tens
# Byte03 plus upper nibble Byte04 Calories Ones
#
###########Still Needs to Be Found:#######
#
# Byte04 Mask 0x40 Calories indicator (single segment)
# Byte04 Mask 0x10 Pulse indicator (single segment)
# Byte03 Mask 0x04 Heart Icon
# Byte02 Mask 0x04 Calories DP (single segment)
#
###########End Master List################
def returnCharacter(byteH, byteL):
bitMaskH = 0x07
bitMaskL = 0xB8
filteredH = int(byteH,16) & bitMaskH
filteredL = int(byteL,16) & bitMaskL
#print str(hex(filteredH)), str(hex(filteredL))
dictValue = (filteredH,filteredL)
lookupTable = {
(7,168):'0', #0x07 0xA8
(0,40):'1', #0x00 0x28
(6,152):'2', #0x06 0x98
(4,184):'3', #0x04 0xB8
(1,56):'4', #0x01 0x38
(5,176):'5', #0x05 0xB0
(7,176):'6', #0x07 0xB0
(0,168):'7', #0x00 0xA8
(7,184):'8', #0x07 0xB8
(5,184):'9', #0x05 0xB8
(3,152):'P', #0x03 0x98
(0,16):'-', #0x00 0x10 used when reading pulse
(0,0):' ', #0x00 0x00
}
if dictValue in lookupTable.keys():
return lookupTable[dictValue]
else:
return str(hex(dictValue[0])), str(hex(dictValue[1]))
def nibbleShifter(byteH, byteL):
#returns tuple of bytes with nibbles shifted left by 1
shiftedH = int(byteH,16)>>4
shiftedL = ((int(byteH,16) & 0x0F)<<4) | int(byteL,16)>>4
return (format(shiftedH,'#04x'), format(shiftedL, '#04x'))
def decodeSpeedBar(byte1, byte2, byte3, byte4):
#inList must have 4 bytes
#count the number of segments that are lit for each speed bar
actual = 0
goal = 0
actual += countOnes(int(byte1,16) & 0x07)
actual += countOnes(int(byte2,16))
actual += countOnes(int(byte3,16) & 0x80)
goal += countOnes(int(byte3,16) & 0x7F)
goal += countOnes(int(byte4,16) & 0xF8)
return (actual, goal)
def countOnes(inByte):
count = 0
for i in range(8):
if inByte & 1<<i:
count += 1
return count
def parseKnownData(showRawLine=True):
#parses out the known data from the display
for idx,line in enumerate(sampleSet):
colon = ' '
rpm = ' '
scan = ' '
timeDist = ' '
upDnInd = ' '
calories = ' '
calDP = ' '
pulse = ' '
heart = ' '
if (int(line[4],16) & 0x40): calories = 'Cal:' #Preload calories
if (int(line[2],16) & 0x04): calDP = '.' #Preload calories decimal point
if (int(line[4],16) & 0x10): pulse = 'Pul:' #Preload pulse
if (int(line[3],16) & 0x04): heart = '<3' #Preload heart icon
if (int(line[5],16) & 0x40): scan = 'Scan' #Preload scan
if (int(line[12],16) & 0x20): timeDist = 'Time:' #Preload time
if (int(line[12],16) & 0x40): timeDist = 'Dist:' #Preload dist
if (int(line[7],16) & 0x40): colon = ':' #Preload colon
if (int(line[9],16) & 0x40): rpm = 'rpm:' #Preload rpm
tmpUp = int(line[13],16) & 0x40 #up indicator
tmpDn = int(line[12],16) & 0x80 #down indicator
if tmpUp: upDnInd = '/\\'
elif tmpDn: upDnInd = '\\/'
else: upDnInd = ' '
#These three digits are nibble shifted left compared to all others
#This intermediary step fixes that for prinout purposes
pulseH = nibbleShifter(line[1],line[2])
pulseT = nibbleShifter(line[2],line[3])
pulseO = nibbleShifter(line[3],line[4])
speedBar = decodeSpeedBar(line[13],line[14],line[15],'0x00') #We will never get the last byte in test data because it's only 5 bits (microcontroller should get it though)
if showRawLine: print line
print str(idx).rjust(4), \
pulse, \
calories, \
returnCharacter(pulseH[0], pulseH[1]), \
returnCharacter(pulseT[0], pulseT[1]), \
calDP, \
returnCharacter(pulseO[0], pulseO[1]), \
heart, \
scan, \
timeDist, \
returnCharacter(line[4],line[5]), \
returnCharacter(line[5],line[6]), \
colon, \
returnCharacter(line[6],line[7]), \
returnCharacter(line[7],line[8]), \
rpm, \
returnCharacter(line[8],line[9]), \
returnCharacter(line[9],line[10]), \
returnCharacter(line[10],line[11]), \
upDnInd, \
"Current:", \
str(speedBar[0]).rjust(2), \
"Goal:", \
str(speedBar[1]).rjust(2)
def filterOutKnown(samples):
#As I figure stuff out I add mask here
#This will print out the samples without known data
#what's left here needs to be figured out.
#Here's a trick for unsigned variables:
from numpy import uint8
knownMasks = [
(1,0x7B),(2,0x80), #Pulse Hundreds
(2,0x7B),(3,0x80), #Pulse Tens
(3,0x7B),(4,0x80), #Pulse Ones
(4,0x07),(5,0xB8), #Big minutes tens
(5,0x07),(6,0xB8), #Big minutes ones
(6,0x07),(7,0xB8), #Big seconds tens
(7,0x07),(8,0xB8), #Big meconds ones
(7,0x40), #Time colon
(8,0x07),(9,0xB8), #Speed hundreds
(9,0x07),(10,0xB8), #Speed tens
(10,0x07),(11,0xB8), #Speed ones
(9,0x40), #RPM Indicator
(5,0x40), #Scan Indicator
(13,0x07),(14,0xFF),(15,0x80), #RPM Bar Graph
(15,0x7F), # (!! missing 5 bits from sniffed data) RPM Target Graph
(13,0x40), #Target Up (single segment)
(12,0x80), #Target Down (single segment)
(9,0x40), #RPM label (single segment)
(12,0x20), #Time indicator (single segment)
(12,0x40), #Distance indicator (single segment)
(4,0x40), #Calories indicator (single segment)
(2,0x04) #Calories DP (single segment)
]
for samNum,s in enumerate(samples):
filtered = list(s)
for mask in knownMasks:
alteredByte = int(filtered[mask[0]],16) & uint8(~mask[1])
#print filtered[mask[0]], format(mask[1],'#04x'), format(alteredByte, '#04x')
filtered[mask[0]] = format(alteredByte, '#04x')
for idx in range(len(filtered)):
if filtered[idx] == '0x00':
filtered[idx] = ' '
print str(samNum).rjust(4), filtered
| 446.212308 | 125,938 | 0.754198 | 27,166 | 145,019 | 4.026099 | 0.013362 | 0.536805 | 0.69209 | 0.77211 | 0.955135 | 0.950564 | 0.950564 | 0.950564 | 0.948881 | 0.947857 | 0 | 0.505679 | 0.029279 | 145,019 | 324 | 125,939 | 447.589506 | 0.271267 | 0.022011 | 0 | 0.008621 | 0 | 0.00431 | 0.923969 | 0.889138 | 0 | 0 | 0.737967 | 0 | 0 | 0 | null | null | 0 | 0.00431 | null | null | 0.017241 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 17 |
8358dfb3df07cd797a43a0610b9d596850dbfa55 | 14,850 | py | Python | frt_bootstrap/boot_parser.py | Diren-Cober/fortik | d571b76823e6fefad98ebaf478d5df6af4e40d2a | [
"MIT"
] | null | null | null | frt_bootstrap/boot_parser.py | Diren-Cober/fortik | d571b76823e6fefad98ebaf478d5df6af4e40d2a | [
"MIT"
] | null | null | null | frt_bootstrap/boot_parser.py | Diren-Cober/fortik | d571b76823e6fefad98ebaf478d5df6af4e40d2a | [
"MIT"
] | null | null | null |
# Author: Kirill Leontyev
# Tags = frt_bootstrap.boot_optags.get_optags.Tags
# Words = dict<str, () -> none>
# Parsed = iterable<tuple<object, ...>>
# Ref: (bool, optional<(str) -> str>) -> (iterable<str>, int, int, Tags, Words) ->
# -> union< tuple<bool, union<Parsed, str>>, tuple<bool, union<tuple<Parsed, str>, str> >
def get_parser(with_debug=False, get_dbg_msg=None):
g_int = int
g_tuple = tuple
# semi-interval = tuple<int, int>
# Ref: (iterable<str>, int, int) -> tuple< union<semi-interval, none>, union<semi-interval, none> >
def analyze_condition(tokens_index, i, end):
try:
i_t = tokens_index('то', i, end)
except ValueError:
i_t = None
try:
i_f = tokens_index('иначе', i, end)
except ValueError:
i_f = None
if i_t and i_f:
if i_t < i_f:
c_t = (i, i_t) # [), semi-interval
c_f = (i_t + 1, i_f) # [)
j = i_f + 1
else:
c_f = (i, i_f) # [)
c_t = (i_f + 1, i_t) # [)
j = i_t + 1
elif i_t:
c_t = (i, i_t) # [)
c_f = (i_t, i_t) # [)
j = i_t + 1
elif i_f:
c_t = (i, i) # [)
c_f = (i, i_f) # [)
j = i_f + 1
else:
c_t = (i, end) # [)
c_f = (end, end) # [)
j = end
if j != end:
raise ValueError
return c_t, c_f
# Tags = frt_bootstrap.boot_optags.get_optags.Tags
# Words = dict<str, () -> none>
# Parsed = iterable<tuple<object, ...>>
# Ref: (iterable<str>, int, int, Tags, Words) -> tuple<bool, union<Parsed, str>>
def parse(tokens, i, end, tags, words):
parsed = []
defined = []
parsed_append = parsed.append
tokens_index = tokens.index
# The most frequently used tags.
tags_push = tags.push
tags_call = tags.call
while i < end:
token = tokens[i]
try:
parsed_append( (tags_push, g_int(token)) )
i += 1
except ValueError:
if token == ':':
if i + 2 >= end:
# word def can not be less than three tokens
return False, "too little def"
try:
end_of_def = tokens_index(';', i, end)
except ValueError:
# no limiter
return False, "no ;"
status = parse(tokens, i + 2, end_of_def, tags, words)
if status[0]:
i += 1
#____________________________a_word_________its_def____#
parsed_append( (tags.define, tokens[i], status[1]) )
else:
# err in word def
return False, status[1]
defined.append(tokens[i])
i = end_of_def + 1
elif token == 'если':
try:
end_of_if = tokens_index('сделать', i, end)
except ValueError:
# no limiter
return False, ""
try:
case_t, case_f = analyze_condition(tokens_index, i + 1, end_of_if)
except ValueError:
# additional useless words
return False, ""
status_t = parse(tokens, *case_t, tags, words)
if status_t[0]:
status_f = parse(tokens, *case_f, tags, words)
if status_t[0]:
#__________________________if_true______if_false_____#
parsed_append( (tags.fork, status_t[1], status_f[1]) )
else:
# err in case_f
return False, ""
else:
# err in case_t
return False, ""
i = end_of_if + 1
elif token == 'пока':
act = parsed.pop()
if act[0] != tags_call:
# must be a word's call
return False, ""
try:
end_of_while = tokens_index('повторять', i, end)
except ValueError:
# no limiter
return False, ""
status = parse(tokens, i + 1, end_of_while, tags, words)
if status[0]:
#____________________________the_cond_the_body___#
parsed_append( (tags.loop_while, act, status[1]) )
else:
# err in while body
return False, ""
i = end_of_while + 1
elif token == 'для':
t2, *oth_2 = parsed.pop()
t1, *oth_1 = parsed.pop()
if t1 != tags_push or t2 != tags_push:
# both must be push
return False, ""
try:
end_of_for = tokens_index('выполнять', i, end)
except ValueError:
# no limiter
return False, "нет границы"
try:
step_word_index = tokens_index('с_шагом', i, end)
if step_word_index == i + 2:
try:
step = g_int(tokens[i + 1])
except ValueError:
# step must be integer
return False, "нецелый шаг"
else:
# for loop error
return False, "с шагом"
except ValueError:
step_word_index = i
step = 1
status = parse(tokens, step_word_index + 1, end_of_for, tags, words)
if status[0]:
parsed_append( (tags.loop_for, *oth_1, *oth_2, step, status[1]) )
else:
# err in for body
return False, status[1]
i = end_of_for + 1
elif token == 'счётчик+':
parsed_append((tags.clock_p,))
i += 1
else:
try:
parsed_append( (tags_call, words[token]) )
except KeyError:
if token in defined:
parsed_append( (tags_call, None, token) )
else:
# unknown word
return False, ""
i += 1
return True, g_tuple(parsed)
g_str = str
str_join = str.join
str_format = g_str.format
# Tags = frt_bootstrap.boot_optags.get_optags.Tags
# Words = dict<str, () -> none>
# Parsed = iterable<tuple<object, ...>>
# Ref: (iterable<str>, int, int, Tags, Words, optional<int>) -> tuple<bool, union<tuple<Parsed, str>, str>>
def parse_with_debug(tokens, i, end, tags, words, nesting=0):
parsed = []
defined = []
debug_info = []
parsed_append = parsed.append
debug_info_pop = debug_info.pop
debug_info_append = debug_info.append
tokens_index = tokens.index
# The most frequently used tags.
tags_push = tags.push
tags_call = tags.call
post_indent = "\n" + "\t" * nesting
pre_indent = post_indent + "\t"
while i < end:
token = tokens[i]
try:
parsed_append( (tags_push, g_int(token)) )
debug_info_append( str_format("({}, {})", get_dbg_msg('push'), token) )
i += 1
except ValueError:
if token == ':':
if i + 2 >= end:
# word def can not be less than three tokens
return False, "too little def"
try:
end_of_def = tokens_index(';', i, end)
except ValueError:
# no limiter
return False, "no ;"
status = parse_with_debug(tokens, i + 2, end_of_def, tags, words, nesting=(nesting + 1))
if status[0]:
name = tokens[i + 1]
#___________________________a_word_its_def____#
parsed_append( (tags.define, name, status[1]) )
debug_info_append(
str_format(
"({}, '{}', {{{}{}{}}})",
get_dbg_msg('wdef'), name, pre_indent, status[2] , post_indent
)
)
else:
# err in word def
return False, status[1]
defined.append(name)
i = end_of_def + 1
elif token == 'если':
try:
end_of_if = tokens_index('сделать', i, end)
except ValueError:
# no limiter
return False, ""
try:
case_t, case_f = analyze_condition(tokens_index, i + 1, end_of_if)
except ValueError:
# additional useless words
return False, ""
status_t = parse_with_debug(tokens, *case_t, tags, words, nesting=(nesting + 1))
if status_t[0]:
status_f = parse_with_debug(tokens, *case_f, tags, words, nesting=(nesting + 1))
if status_t[0]:
#__________________________if_true______if_false_____#
parsed_append( (tags.fork, status_t[1], status_f[1]) )
debug_info_append(
str_format(
"({2}, {{{0}{3}{1}}}, {{{0}{4}{1}}})", pre_indent, post_indent,
get_dbg_msg('fork'), status_t[2], status_f[2]
)
)
else:
# err in case_f
return False, ""
else:
# err in case_t
return False, ""
i = end_of_if + 1
elif token == 'пока':
act = parsed.pop()
if act[0] != tags_call:
# must be a word's call
return False, ""
try:
end_of_while = tokens_index('повторять', i, end)
except ValueError:
# no limiter
return False, ""
status = parse_with_debug(tokens, i + 1, end_of_while, tags, words, nesting=(nesting + 1))
if status[0]:
#____________________________the_cond_the_body___#
parsed_append( (tags.loop_while, act, status[1]) )
debug_info_append(
str_format(
"({}, {}, {{{}{}{}}})",
get_dbg_msg('lwhl'), debug_info.pop(), pre_indent, status[2], post_indent
)
)
else:
# err in while body
return False, ""
elif token == 'для':
t2, *oth_2 = parsed.pop()
t1, *oth_1 = parsed.pop()
debug_info_pop()
debug_info_pop()
if t1 != tags_push or t2 != tags_push:
# both must be push
return False, ""
try:
end_of_for = tokens_index('выполнять', i, end)
except ValueError:
# no limiter
return False, "нет границы"
try:
step_word_index = tokens_index('с_шагом', i, end)
if step_word_index == i + 2:
try:
step = g_int(tokens[i + 1])
except ValueError:
# step must be integer
return False, "нецелый шаг"
else:
# for loop error
return False, "с шагом"
except ValueError:
step_word_index = i
step = 1
status = parse_with_debug(tokens, step_word_index + 1, end_of_for, tags, words, nesting=(nesting + 1))
if status[0]:
parsed_append( (tags.loop_for, *oth_1, *oth_2, step, status[1]) )
debug_info_append(
str_format(
"({}, {}, {}, {}, {{{}{}{}}})", get_dbg_msg('lfor'),
*oth_1, *oth_2, step, pre_indent, status[2], post_indent
)
)
else:
# err in for body
return False, status[1]
i = end_of_for + 1
elif token == 'счётчик+':
parsed_append((tags.clock_p,))
debug_info_append( str_format("({})", get_dbg_msg('clck+')) )
i += 1
else:
try:
parsed_append( (tags_call, None if token in defined else words[token], token) )
except KeyError:
# unknown word
return False, ""
debug_info_append(str_format("({}, '{}')", get_dbg_msg('call'), token))
i += 1
return True, g_tuple(parsed), str_join(post_indent, debug_info)
return parse_with_debug if with_debug else parse
| 37.5 | 122 | 0.396835 | 1,400 | 14,850 | 3.839286 | 0.098571 | 0.065488 | 0.044651 | 0.037209 | 0.841674 | 0.778977 | 0.750884 | 0.726512 | 0.64707 | 0.620093 | 0 | 0.013657 | 0.511852 | 14,850 | 395 | 123 | 37.594937 | 0.727825 | 0.122694 | 0 | 0.727941 | 0 | 0 | 0.028485 | 0 | 0.003676 | 0 | 0 | 0 | 0 | 1 | 0.014706 | false | 0 | 0 | 0 | 0.147059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
55dded4845e49ecad78121232d5997f02edf75fe | 165 | py | Python | hlib/python/hlib/frontend/__init__.py | zzzDavid/heterocl | 977aae575d54a30c5bf6d869e8f71bdc815cf7e9 | [
"Apache-2.0"
] | 236 | 2019-05-19T01:48:11.000Z | 2022-03-31T09:03:54.000Z | hlib/python/hlib/frontend/__init__.py | zzzDavid/heterocl | 977aae575d54a30c5bf6d869e8f71bdc815cf7e9 | [
"Apache-2.0"
] | 248 | 2019-05-17T19:18:36.000Z | 2022-03-30T21:25:47.000Z | hlib/python/hlib/frontend/__init__.py | AlgaPeng/heterocl-2 | b5197907d1fe07485466a63671a2a906a861c939 | [
"Apache-2.0"
] | 85 | 2019-05-17T20:09:27.000Z | 2022-02-28T20:19:00.000Z | try:
from . import relay_parser
from . import relay_attr
except:
print("[ WARNING ] Cannot import relay parser. Safely ignored if hlib.nn is not used.")
| 27.5 | 91 | 0.70303 | 24 | 165 | 4.75 | 0.75 | 0.289474 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218182 | 165 | 5 | 92 | 33 | 0.883721 | 0 | 0 | 0 | 0 | 0 | 0.472727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0.2 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
3686dbfd5a35c026a1af5e1c5f535f233dc6a4d5 | 783 | py | Python | OOPS/Encapsulation/encap.py | tverma332/python3 | 544c4ec9c726c37293c8da5799f50575cc50852d | [
"MIT"
] | 3 | 2022-03-28T09:10:08.000Z | 2022-03-29T10:47:56.000Z | OOPS/Encapsulation/encap.py | tverma332/python3 | 544c4ec9c726c37293c8da5799f50575cc50852d | [
"MIT"
] | 1 | 2022-03-27T11:52:58.000Z | 2022-03-27T11:52:58.000Z | OOPS/Encapsulation/encap.py | tverma332/python3 | 544c4ec9c726c37293c8da5799f50575cc50852d | [
"MIT"
] | null | null | null | #--------------------------Variable---------------------------------------------
'''
class Person():
def assign_name_and_age(self , name ,age):
self.name = name
self.__age = age
return None
def display(self):
print(self.name , self.__age)
return None
per1 = Person()
per1.assign_name_and_age("john" , 32)
per1.display()
'''
#-------------------------Method-----------------------------------------------
class Person():
def assign_name_and_age(self , name ,age):
self.name = name
self.__age = age
self.__display()
return None
def __display(self):
print(self.name , self.__age)
return None
per1 = Person()
per1.assign_name_and_age("john" , 32) | 21.162162 | 80 | 0.467433 | 80 | 783 | 4.275 | 0.2125 | 0.140351 | 0.152047 | 0.187135 | 0.894737 | 0.894737 | 0.894737 | 0.894737 | 0.894737 | 0.894737 | 0 | 0.015491 | 0.257982 | 783 | 37 | 81 | 21.162162 | 0.57315 | 0.588761 | 0 | 0.181818 | 0 | 0 | 0.012739 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.454545 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
369663919c113d0b3855af278180a26b242541e8 | 417 | py | Python | pygridtools/viz/_viz_bokeh.py | phobson/gridtools | 53c5792ed6826bb9487d3e6b8e943760ab421a75 | [
"BSD-3-Clause"
] | 26 | 2016-01-20T15:40:21.000Z | 2021-10-08T00:35:15.000Z | pygridtools/viz/_viz_bokeh.py | phobson/gridtools | 53c5792ed6826bb9487d3e6b8e943760ab421a75 | [
"BSD-3-Clause"
] | 48 | 2015-10-01T02:51:52.000Z | 2021-05-05T15:31:11.000Z | pygridtools/viz/_viz_bokeh.py | phobson/gridtools | 53c5792ed6826bb9487d3e6b8e943760ab421a75 | [
"BSD-3-Clause"
] | 8 | 2015-09-30T19:53:03.000Z | 2022-02-23T03:29:24.000Z | def _plot_domain(*args, **kwargs):
raise NotImplementedError("plotting with bokeh not yet ready")
def _plot_boundaries(*args, **kwargs):
raise NotImplementedError("plotting with bokeh not yet ready")
def _plot_points(*args, **kwargs):
raise NotImplementedError("plotting with bokeh not yet ready")
def _plot_cells(*args, **kwargs):
raise NotImplementedError("plotting with bokeh not yet ready")
| 27.8 | 66 | 0.745803 | 52 | 417 | 5.826923 | 0.307692 | 0.092409 | 0.19802 | 0.448845 | 0.887789 | 0.887789 | 0.887789 | 0.887789 | 0.887789 | 0.887789 | 0 | 0 | 0.148681 | 417 | 14 | 67 | 29.785714 | 0.853521 | 0 | 0 | 0.5 | 0 | 0 | 0.316547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
36be3ab18a853013946ab3c6ca2be2ae2212913c | 14,339 | py | Python | src/guidelines/ipo_oopo.py | noemiefedon/LAYLA | b4aec89131c5bca98d7a0f961090c9152800eccc | [
"MIT"
] | null | null | null | src/guidelines/ipo_oopo.py | noemiefedon/LAYLA | b4aec89131c5bca98d7a0f961090c9152800eccc | [
"MIT"
] | null | null | null | src/guidelines/ipo_oopo.py | noemiefedon/LAYLA | b4aec89131c5bca98d7a0f961090c9152800eccc | [
"MIT"
] | 1 | 2021-12-02T21:10:06.000Z | 2021-12-02T21:10:06.000Z | # -*- coding: utf-8 -*-
"""
Functions related to orthotropy requirements
- calc_penalty_ipo
calculates penalties for the balance constraint based on lamination
parameters
- ipo_param_1_12
calculates the twelve laminate in-plane orthotropy parameters
- ipo_param_1_6
calculates the first six laminate in-plane orthotropy parameters
- ipo_param_7_12
calculates the last six laminate in-plane orthotropy parameters
- calc_penalty_ipo_param
calculates penalties for in-plane orthotropy based on in-plane orthotropy
parameters
- calc_penalty_ipo_oopo_mp
calculates penalties for in-plane orthotropy and out-of-plane orthotropy
based on lamination parameters for a multi-panel structure
- calc_penalty_ipo_oopo_ss
calculates penalties for in-plane and out-of plane orthotropy based
lamination parameters for a single-panel structure
- calc_penalty_oopo_ss
calculates penalties for out-of plane orthotropy based lamination
parameters for a single-panel structure
"""
__version__ = '1.0'
__author__ = 'Noemie Fedon'
import sys
import numpy as np
sys.path.append(r'C:\LAYLA')
from src.CLA.lampam_functions import calc_lampam
from src.LAYLA_V02.materials import Material
from src.LAYLA_V02.parameters import Parameters
from src.LAYLA_V02.constraints import Constraints
def ipo_param_1_12(lampam, material, sym):
'calculates the twelve laminate in-plane orthotropy parameters'
# extensional stifness matrix
A11 = (material.U1 + material.U2*lampam[0] + material.U3*lampam[1])
A12 = (- material.U3*lampam[1] + material.U4)
A22 = (material.U1 - material.U2*lampam[0] + material.U3*lampam[1])
A66 = (- material.U3*lampam[1] + material.U5)
A16 = (0.5*material.U2*lampam[2] + material.U3*lampam[3])
A26 = (0.5*material.U2*lampam[2] - material.U3*lampam[3])
param1 = A16/A11
param2 = A16/A12
param3 = A16/A66
param4 = A26/A12
param5 = A26/A22
param6 = A26/A66
if sym:
param7 = (A12*A26 - A22*A16)/(A22*A66 - A26*A26)
param8 = (A12*A26 - A22*A16)/(A16*A26 - A12*A66)
param9 = (A12*A26 - A22*A16)/(A11*A22 - A12*A12)
param10 = (A12*A16 - A11*A26)/(A16*A26 - A12*A66)
param11 = (A12*A16 - A11*A26)/(A11*A66 - A16*A16)
param12 = (A12*A16 - A11*A26)/(A11*A22 - A12*A12)
else:
# coupling stifness matrix
B11 = (0.25)*(material.U2*lampam[4] + material.U3*lampam[5])
B12 = (0.25)*(- material.U3*lampam[5])
B22 = (0.25)*(- material.U2*lampam[4] + material.U3*lampam[5])
B66 = (0.25)*(- material.U3*lampam[5])
B16 = (0.25)*(0.5*material.U2*lampam[6] + material.U3*lampam[7])
B26 = (0.25)*(0.5*material.U2*lampam[6] - material.U3*lampam[7])
# bend/twist stifness matrix
D11 = (1/12)*(material.U1 + material.U2*lampam[8] + material.U3*lampam[9])
D12 = (1/12)*(- material.U3*lampam[9] + material.U4)
D22 = (1/12)*(material.U1 - material.U2*lampam[8] + material.U3*lampam[9])
D66 = (1/12)*(- material.U3*lampam[9] + material.U5)
D16 = (1/12)*(0.5*material.U2*lampam[10] + material.U3*lampam[11])
D26 = (1/12)*(0.5*material.U2*lampam[10] - material.U3*lampam[11])
A = np.array([[A11, A12, A16],
[A12, A22, A26],
[A16, A26, A66]])
B = np.array([[B11, B12, B16],
[B12, B22, B26],
[B16, B26, B66]])
D = np.array([[D11, D12, D16],
[D12, D22, D26],
[D16, D26, D66]])
# reduced menbrane compliance
a = np.linalg.inv(A - B@(np.linalg.inv(D))@B)
a11 = a[0, 0]
a12 = a[0, 1]
a22 = a[1, 1]
a66 = a[2, 2]
a16 = a[0, 2]
a26 = a[1, 2]
param7 = a16/a11
param8 = a16/a12
param9 = a16/a66
param10 = a26/a12
param11 = a26/a22
param12 = a26/a66
return abs(np.array([param1, param2, param3,
param4, param5, param6,
param7, param8, param9,
param10, param11, param12]))
def ipo_param_1_6(lampam, material, sym):
'calculates the first six laminate in-plane orthotropy parameters'
# extensional stifness matrix
A11 = (material.U1 + material.U2*lampam[0] + material.U3*lampam[1])
A12 = (- material.U3*lampam[1] + material.U4)
A22 = (material.U1 - material.U2*lampam[0] + material.U3*lampam[1])
A66 = (- material.U3*lampam[1]+ material.U5)
A16 = (0.5*material.U2*lampam[2] + material.U3*lampam[3])
A26 = (0.5*material.U2*lampam[2] - material.U3*lampam[3])
param1 = A16/A11
param2 = A16/A12
param3 = A16/A66
param4 = A26/A12
param5 = A26/A22
param6 = A26/A66
param1 = A16/A11
param2 = A16/A12
param3 = A16/A66
param4 = A26/A12
param5 = A26/A22
param6 = A26/A66
return abs(np.array([param1, param2, param3,
param4, param5, param6]))
def ipo_param_7_12(lampam, material, sym):
'calculates the last six laminate in-plane orthotropy parameters'
# extensional stifness matrix
A11 = (material.U1 + material.U2*lampam[0] + material.U3*lampam[1])
A12 = (- material.U3*lampam[1] + material.U4)
A22 = (material.U1 - material.U2*lampam[0] + material.U3*lampam[1])
A66 = (- material.U3*lampam[1] + material.U5)
A16 = (0.5*material.U2*lampam[2] + material.U3*lampam[3])
A26 = (0.5*material.U2*lampam[2] - material.U3*lampam[3])
if sym:
param7 = (A12*A26 - A22*A16)/(A22*A66 - A26*A26)
param8 = (A12*A26 - A22*A16)/(A16*A26 - A12*A66)
param9 = (A12*A26 - A22*A16)/(A11*A22 - A12*A12)
param10 = (A12*A16 - A11*A26)/(A16*A26 - A12*A66)
param11 = (A12*A16 - A11*A26)/(A11*A66 - A16*A16)
param12 = (A12*A16 - A11*A26)/(A11*A22 - A12*A12)
else:
# coupling stifness matrix
B11 = (0.25)*(material.U2*lampam[4] + material.U3*lampam[5])
B12 = (0.25)*(- material.U3*lampam[5])
B22 = (0.25)*(- material.U2*lampam[4] + material.U3*lampam[5])
B66 = (0.25)*(- material.U3*lampam[5])
B16 = (0.25)*(0.5*material.U2*lampam[6] + material.U3*lampam[7])
B26 = (0.25)*(0.5*material.U2*lampam[6] - material.U3*lampam[7])
# bend/twist stifness matrix
D11 = (1/12)*(material.U1 + material.U2*lampam[8] + material.U3*lampam[9])
D12 = (1/12)*(- material.U3*lampam[9] + material.U4)
D22 = (1/12)*(material.U1 - material.U2*lampam[8] + material.U3*lampam[9])
D66 = (1/12)*(- material.U3*lampam[9] + material.U5)
D16 = (1/12)*(0.5*material.U2*lampam[10] + material.U3*lampam[11])
D26 = (1/12)*(0.5*material.U2*lampam[10] - material.U3*lampam[11])
A = np.array([[A11, A12, A16],
[A12, A22, A26],
[A16, A26, A66]])
B = np.array([[B11, B12, B16],
[B12, B22, B26],
[B16, B26, B66]])
D = np.array([[D11, D12, D16],
[D12, D22, D26],
[D16, D26, D66]])
# reduced menbrane compliance
a = np.linalg.inv(A - B@(np.linalg.inv(D))@B)
a11 = a[0, 0]
a12 = a[0, 1]
a22 = a[1, 1]
a66 = a[2, 2]
a16 = a[0, 2]
a26 = a[1, 2]
param7 = a16/a11
param8 = a16/a12
param9 = a16/a66
param10 = a26/a12
param11 = a26/a22
param12 = a26/a66
return abs(np.array([param7, param8, param9,
param10, param11, param12]))
def calc_penalty_ipo_param(param, threshold):
"""
calculates penalties for in-plane orthotropy based on in-plane orthotropy
parameters
"""
return max(np.array([max(0, abs(param[ii]))
for ii in range(param.size)]))/param.size
# return sum(np.array([max(0, abs(param[ii]) - threshold)/threshold\
# for ii in range(param.size)]))/param.size
def calc_penalty_ipo(lampam, cummul_areas=1):
"""
calculates penalties for the balance constraint based on lamination
parameters
"""
if lampam.ndim == 2:
n_panels = lampam.shape[0]
penalties_ipo = np.zeros((n_panels,), dtype=float)
for ind_panel in range(n_panels):
penalties_ipo[ind_panel] = (
abs(lampam[ind_panel][2]) + abs(lampam[ind_panel][3])) / 2
else:
penalties_ipo = (abs(lampam[2]) + abs(lampam[3])) / 2
return cummul_areas * penalties_ipo
def calc_penalty_ipo_oopo_mp( lampam, constraints):
"""
calculates penalties for in-plane orthotropy and out-of-plane orthotropy
based on lamination parameters for a multi-panel structure
INPUTS
- lampam: panel lamination parameters
- constraints: design and maufacturing constraints
"""
n_panels = lampam.shape[0]
penalties_ipo = np.zeros((n_panels,), dtype=float)
penalties_oopo = np.zeros((n_panels,), dtype=float)
for ind_panel in range(n_panels):
# penalty for in-plane orthotropy
penalties_ipo[ind_panel] = (
abs(lampam[ind_panel][2]) + abs(lampam[ind_panel][3])) / 2
# penalty for out-of-plane orthotropy
penalties_oopo[ind_panel] = (
abs(lampam[ind_panel][10]) + abs(lampam[ind_panel][11])) / 2
return penalties_ipo, penalties_oopo
def calc_penalty_ipo_oopo_ss(
lampam,
constraints,
parameters,
cummul_areas=1,
cummul_sec_mom_areas=1):
"""
calculates penalties for in-plane and out-of plane orthotropy based
lamination parameters for a single-panel structure
INPUTS
- lampam: lamination parameters
- constraints: design and maufacturing constraints
- parameters: optimiser parameters
- cummul_areas: sum of the areas of the plies retrieved so far + the
current plies
- cummul_sec_mom_areas: sum of the second moments of areas of the plies
retrieved so far + the current plies
"""
if lampam.ndim == 2:
n_ss = lampam.shape[0]
penalties_ipo = np.zeros((n_ss,), dtype=float)
penalties_oopo = np.zeros((n_ss,), dtype=float)
if not parameters.opti_problem == 'Lamination parameters matching':
# penalty for in-plane orthotropy
if constraints.ipo and parameters.penalty_ipo_switch:
for ind_ss in range(n_ss):
penalties_ipo[ind_ss] = (
abs(lampam[ind_ss][2]) + abs(lampam[ind_ss][3])) / 2
# penalty for out-of-plane orthotropy
if constraints.oopo:
for ind_ss in range(n_ss):
penalties_oopo[ind_ss] = (
abs(lampam[ind_ss][10]) + abs(lampam[ind_ss][11])) / 2
else:
penalties_ipo = 0
penalties_oopo = 0
if not parameters.opti_problem == 'Lamination parameters matching':
# penalty for in-plane orthotropy
if constraints.ipo and parameters.penalty_ipo_switch:
penalties_ipo = (abs(lampam[2]) + abs(lampam[3])) / 2
# penalty for out-of-plane orthotropy
if constraints.oopo:
penalties_oopo = (abs(lampam[10]) + abs(lampam[11])) / 2
return cummul_areas * penalties_ipo, cummul_sec_mom_areas * penalties_oopo
def calc_penalty_oopo_ss(
lampam,
constraints,
obj_func_param=None,
cummul_sec_mom_areas=1,
calculate_penalty=False):
"""
calculates penalties for out-of plane orthotropy based lamination
parameters for a single-panel structure
INPUTS
- lampam: lamination parameters
- constraints: design and maufacturing constraints
- obj_func_param: objective function parameters
- cummul_sec_mom_areas: sum of the second moments of areas of the plies
retrieved so far + the current plies
"""
if calculate_penalty or obj_func_param is None \
or obj_func_param.opti_problem != 'Lamination parameters matching':
calculate_penalty = True
if lampam.ndim == 2:
n_ss = lampam.shape[0]
penalties_oopo = np.zeros((n_ss,), dtype=float)
if constraints.oopo and calculate_penalty:
for ind_ss in range(n_ss):
penalties_oopo[ind_ss] = (
abs(lampam[ind_ss][10]) + abs(lampam[ind_ss][11])) / 2
else:
penalties_oopo = 0
if constraints.oopo and calculate_penalty:
penalties_oopo = (abs(lampam[10]) + abs(lampam[11])) / 2
return cummul_sec_mom_areas * penalties_oopo
if __name__ == "__main__":
ss = np.array([0, 45, 45, -45, -45, 90, 45, 90])
ss = np.hstack((ss, np.flip(ss, axis=0)))
lampam = calc_lampam(ss)
E11 = 130e9
E22 = 9e9
nu12 = 0.3
G12 = 4e9
threshold = 0.01
mat = Material(E11=E11, E22=E22, G12=G12, nu12=nu12)
sym = False
print("""*** Test for the functions calc_penalty_ipo_param and ipo_param***\n""")
param = ipo_param_1_6(lampam, mat, sym)
print(f'In-plane orthotropy parameters = \n {param[0:6]}\n')
print(f'calc_penalty_ipo : {calc_penalty_ipo_param(param, threshold)}\n')
param = ipo_param_7_12(lampam, mat, sym)
print(f'In-plane orthotropy parameters = \n {param[0:6]}\n')
print(f'calc_penalty_ipo : {calc_penalty_ipo_param(param, threshold)}\n')
param = ipo_param_1_12(lampam, mat, sym)
print(f'In-plane orthotropy parameters = \n {param[0:6]} \n{param[6:12]}\n')
print(f'calc_penalty_ipo : {calc_penalty_ipo_param(param, threshold)}\n')
print('\n*** Test for the functions calc_penalty_ipo_oopo_mp***\n')
constraints = Constraints(bal=True, oopo=True)
lampam = 0.22*np.ones((2, 12))
print(calc_penalty_ipo_oopo_mp(lampam, constraints=constraints))
print('\n*** Test for the functions calc_penalty_ipo_oopo_ss***\n')
constraints = Constraints(bal=True, oopo=True)
parameters = Parameters(constraints)
lampam = 0.22*np.ones((2, 12))
lampam_target = 0.11*np.ones((12,))
lampam_weightings = np.ones((12,), dtype=float)
mat = Material()
print(calc_penalty_ipo_oopo_ss(
lampam,
constraints=constraints,
parameters=parameters,
cummul_areas=4,
cummul_sec_mom_areas=20))
| 38.964674 | 85 | 0.610015 | 1,993 | 14,339 | 4.274461 | 0.099849 | 0.049302 | 0.078883 | 0.019721 | 0.869116 | 0.838244 | 0.804555 | 0.74011 | 0.716516 | 0.68494 | 0 | 0.101374 | 0.259084 | 14,339 | 367 | 86 | 39.070845 | 0.700489 | 0.207616 | 0 | 0.70751 | 0 | 0.003953 | 0.074608 | 0.014957 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031621 | false | 0 | 0.023715 | 0 | 0.086957 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
36d3caf4ae73551f04376a2fea3eb6001558dc93 | 178 | py | Python | stacker/tests/fixtures/mock_lookups.py | theister/stacker | f563a6f5a23550c7a668a1500bcea2b4e94f5bbf | [
"BSD-2-Clause"
] | 372 | 2018-05-16T19:35:54.000Z | 2022-02-28T09:11:53.000Z | stacker/tests/fixtures/mock_lookups.py | theister/stacker | f563a6f5a23550c7a668a1500bcea2b4e94f5bbf | [
"BSD-2-Clause"
] | 452 | 2015-03-12T16:46:29.000Z | 2018-05-14T21:15:01.000Z | stacker/tests/fixtures/mock_lookups.py | theister/stacker | f563a6f5a23550c7a668a1500bcea2b4e94f5bbf | [
"BSD-2-Clause"
] | 111 | 2015-03-29T19:22:02.000Z | 2018-05-04T02:17:27.000Z | from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
TYPE_NAME = "mock"
def handler(value, **kwargs):
return "mock"
| 19.777778 | 38 | 0.792135 | 23 | 178 | 5.478261 | 0.652174 | 0.238095 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146067 | 178 | 8 | 39 | 22.25 | 0.828947 | 0 | 0 | 0 | 0 | 0 | 0.044944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.5 | 0.166667 | 0.833333 | 0.166667 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
36f4113fbe268764a4e11c4f4864a087f4b9ba32 | 7,398 | py | Python | model.py | TonyMTH/Translation | 04dea32e986f27455bba85aa470bb62739091a4a | [
"MIT"
] | null | null | null | model.py | TonyMTH/Translation | 04dea32e986f27455bba85aa470bb62739091a4a | [
"MIT"
] | null | null | null | model.py | TonyMTH/Translation | 04dea32e986f27455bba85aa470bb62739091a4a | [
"MIT"
] | null | null | null | import torch
from torch import nn
import torch.nn.functional as F
class EncoderRNN(nn.Module):
def __init__(self, input_size, hidden_size):
super(EncoderRNN, self).__init__()
self.hidden_size = hidden_size
self.embedding = nn.Embedding(input_size, hidden_size)
self.net = nn.RNN(hidden_size, hidden_size)
def forward(self, x):
hn = torch.zeros(1, 1, self.hidden_size, device=x.device)
x = self.embedding(x).view(1, 1, -1)
x, hn = self.net(x, hn)
return x, hn
class EncoderGRU(nn.Module):
def __init__(self, input_size, hidden_size):
super(EncoderGRU, self).__init__()
self.hidden_size = hidden_size
self.embedding = nn.Embedding(input_size, hidden_size)
self.net = nn.GRU(hidden_size, hidden_size)
def forward(self, x):
hn = torch.zeros(1, 1, self.hidden_size, device=x.device)
x = self.embedding(x).view(1, 1, -1)
x, hn = self.net(x, hn)
return x, hn
class EncoderLSTM(nn.Module):
def __init__(self, input_size, hidden_size):
super(EncoderLSTM, self).__init__()
self.hidden_size = hidden_size
self.embedding = nn.Embedding(input_size, hidden_size)
self.net = nn.LSTM(hidden_size, hidden_size, 1, batch_first=True)
def forward(self, x):
hn = torch.zeros(1, 1, self.hidden_size, device=x.device)
cn = torch.zeros(1, 1, self.hidden_size, device=x.device)
x = self.embedding(x).view(1, 1, -1)
x, (hn, cn) = self.net(x, (hn.detach(), cn.detach()))
return x, hn
class DecoderRNN(nn.Module):
def __init__(self, hidden_size, output_size):
super(DecoderRNN, self).__init__()
self.hidden_size = hidden_size
self.embedding = nn.Embedding(output_size, hidden_size)
self.net = nn.RNN(hidden_size, hidden_size)
self.out = nn.Linear(hidden_size, output_size)
self.softmax = nn.LogSoftmax(dim=1)
def forward(self, x, hn):
x = self.embedding(x).view(1, 1, -1)
x = F.relu(x)
x, hn = self.net(x, hn)
x = self.softmax(self.out(x[0]))
return x, hn
class DecoderGRU(nn.Module):
def __init__(self, hidden_size, output_size):
super(DecoderGRU, self).__init__()
self.hidden_size = hidden_size
self.embedding = nn.Embedding(output_size, hidden_size)
self.net = nn.GRU(hidden_size, hidden_size)
self.out = nn.Linear(hidden_size, output_size)
self.softmax = nn.LogSoftmax(dim=1)
def forward(self, x, hn):
x = self.embedding(x).view(1, 1, -1)
x = F.relu(x)
x, hn = self.net(x, hn)
x = self.softmax(self.out(x[0]))
return x, hn
class DecoderLSTM(nn.Module):
def __init__(self, hidden_size, output_size):
super(DecoderLSTM, self).__init__()
self.hidden_size = hidden_size
self.embedding = nn.Embedding(output_size, hidden_size)
self.net = nn.LSTM(hidden_size, hidden_size, 1, batch_first=True)
self.out = nn.Linear(hidden_size, output_size)
self.softmax = nn.LogSoftmax(dim=1)
def forward(self, x, hn):
cn = torch.zeros(1, 1, self.hidden_size, device=x.device)
x = self.embedding(x).view(1, 1, -1)
x = F.relu(x)
x, (hn, cn) = self.net(x, (hn.detach(), cn.detach()))
x = self.softmax(self.out(x[0]))
return x, hn
class AttnDecoderRNN(nn.Module):
def __init__(self, hidden_size, output_size, max_length, dropout_p=0.1):
super(AttnDecoderRNN, self).__init__()
self.hidden_size = hidden_size
self.output_size = output_size
self.dropout_p = dropout_p
self.max_length = max_length
self.embedding = nn.Embedding(self.output_size, self.hidden_size)
self.attn = nn.Linear(self.hidden_size * 2, self.max_length)
self.attn_combine = nn.Linear(self.hidden_size * 2, self.hidden_size)
self.dropout = nn.Dropout(self.dropout_p)
self.net = nn.RNN(self.hidden_size, self.hidden_size)
self.out = nn.Linear(self.hidden_size, self.output_size)
def forward(self, x, hn, encoder_outputs):
x = self.embedding(x).view(1, 1, -1)
x = self.dropout(x)
attn_weights = F.softmax(
self.attn(torch.cat((x[0], hn[0]), 1)), dim=1)
attn_applied = torch.bmm(attn_weights.unsqueeze(0),
encoder_outputs.unsqueeze(0))
x = torch.cat((x[0], attn_applied[0]), 1)
x = self.attn_combine(x).unsqueeze(0)
x = F.relu(x)
x, hn = self.net(x, hn)
x = F.log_softmax(self.out(x[0]), dim=1)
return x, hn, attn_weights
class AttnDecoderGRU(nn.Module):
def __init__(self, hidden_size, output_size, max_length, dropout_p=0.1):
super(AttnDecoderGRU, self).__init__()
self.hidden_size = hidden_size
self.output_size = output_size
self.dropout_p = dropout_p
self.max_length = max_length
self.embedding = nn.Embedding(self.output_size, self.hidden_size)
self.attn = nn.Linear(self.hidden_size * 2, self.max_length)
self.attn_combine = nn.Linear(self.hidden_size * 2, self.hidden_size)
self.dropout = nn.Dropout(self.dropout_p)
self.net = nn.GRU(self.hidden_size, self.hidden_size)
self.out = nn.Linear(self.hidden_size, self.output_size)
def forward(self, x, hn, encoder_outputs):
x = self.embedding(x).view(1, 1, -1)
x = self.dropout(x)
attn_weights = F.softmax(
self.attn(torch.cat((x[0], hn[0]), 1)), dim=1)
attn_applied = torch.bmm(attn_weights.unsqueeze(0),
encoder_outputs.unsqueeze(0))
x = torch.cat((x[0], attn_applied[0]), 1)
x = self.attn_combine(x).unsqueeze(0)
x = F.relu(x)
x, hn = self.net(x, hn)
x = F.log_softmax(self.out(x[0]), dim=1)
return x, hn, attn_weights
class AttnDecoderLSTM(nn.Module):
def __init__(self, hidden_size, output_size, max_length, dropout_p=0.1):
super(AttnDecoderLSTM, self).__init__()
self.hidden_size = hidden_size
self.output_size = output_size
self.dropout_p = dropout_p
self.max_length = max_length
self.embedding = nn.Embedding(self.output_size, self.hidden_size)
self.attn = nn.Linear(self.hidden_size * 2, self.max_length)
self.attn_combine = nn.Linear(self.hidden_size * 2, self.hidden_size)
self.dropout = nn.Dropout(self.dropout_p)
self.net = nn.LSTM(self.hidden_size, self.hidden_size, 1, batch_first=True)
self.out = nn.Linear(self.hidden_size, self.output_size)
def forward(self, x, hn, encoder_outputs):
cn = torch.zeros(1, 1, self.hidden_size, device=x.device)
x = self.embedding(x).view(1, 1, -1)
x = self.dropout(x)
attn_weights = F.softmax(
self.attn(torch.cat((x[0], hn[0]), 1)), dim=1)
attn_applied = torch.bmm(attn_weights.unsqueeze(0),
encoder_outputs.unsqueeze(0))
x = torch.cat((x[0], attn_applied[0]), 1)
x = self.attn_combine(x).unsqueeze(0)
x = F.relu(x)
x, (hn, cn) = self.net(x, (hn.detach(), cn.detach()))
x = F.log_softmax(self.out(x[0]), dim=1)
return x, hn, attn_weights
| 35.061611 | 83 | 0.617194 | 1,086 | 7,398 | 3.98895 | 0.060773 | 0.17313 | 0.135734 | 0.070637 | 0.932364 | 0.932364 | 0.928209 | 0.928209 | 0.928209 | 0.928209 | 0 | 0.017282 | 0.249121 | 7,398 | 210 | 84 | 35.228571 | 0.762556 | 0 | 0 | 0.849057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113208 | false | 0 | 0.018868 | 0 | 0.245283 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7fd1b844a0f352bbe8147bd7095f57188074e762 | 27,048 | py | Python | code/models.py | BasemElbarashy/image-compression-and-semantic-segmentation | 760d7f779e97659f3f8f59f68eaa4268ec08618b | [
"MIT"
] | null | null | null | code/models.py | BasemElbarashy/image-compression-and-semantic-segmentation | 760d7f779e97659f3f8f59f68eaa4268ec08618b | [
"MIT"
] | null | null | null | code/models.py | BasemElbarashy/image-compression-and-semantic-segmentation | 760d7f779e97659f3f8f59f68eaa4268ec08618b | [
"MIT"
] | null | null | null | # Arch
"""
comp_numfilters = 128
y = analysis_transform(x_rgb, comp_numfilters)
entropy_bottleneck = tfc.EntropyBottleneck()
y_tilde_hat, likelihoods = entropy_bottleneck(y, training=istraining)
x_tilde_hat = synthesis_transform(y_tilde_hat, comp_numfilters)
if mode == 'testing':
string = entropy_bottleneck.compress(y)
string = tf.squeeze(string, axis=0)
"""
# seg_comp_rgb
def build_model(x_rgb, x_depth, lmbda, num_classes, mode = 'training', seg_labels = None,
ignore_label = None):
# Args
train_loss, bpp, mse, y_tilde_hat, x_tilde_hat, y, string, entropy_bottleneck, seg_logits = [None]*9
seg_loss = None
istraining = (mode == 'training')
num_pixels = tf.to_float(tf.reduce_prod(tf.shape(x_rgb)[:-1]))
y, skip = seg_encoder('Encoder', x_rgb, training=istraining)
entropy_bottleneck = tfc.EntropyBottleneck()
y_tilde_hat, likelihoods = entropy_bottleneck(y, training=istraining)
skip = None
seg_logits = seg_decoder('Decoder', y_tilde_hat, training=istraining, num_classes=num_classes, skip=skip)
if mode == 'testing':
string = entropy_bottleneck.compress(y)
string = tf.squeeze(string, axis=0)
# Loss
bpp = tf.reduce_sum(tf.log(likelihoods)) / (-np.log(2) * num_pixels)
#mse = tf.reduce_mean(tf.squared_difference(x_rgb, x_tilde_hat))
if istraining:
seg_loss = softmax_cross_entropy_loss_mining(seg_logits,
seg_labels,
num_classes,
ignore_label,
loss_weight=1.0,
upsample_logits=False,
hard_example_mining_step=100000,
top_k_percent_pixels=0.2,
scope='CI_Loss')
train_loss = lmbda * seg_loss + bpp
return train_loss, bpp, mse, x_tilde_hat, y_tilde_hat, y, string, entropy_bottleneck, seg_logits, seg_loss
# seg_comp_depth
def build_model(x_rgb, x_depth, lmbda, num_classes, mode = 'training', seg_labels = None,
ignore_label = None):
# Args
train_loss, bpp, mse, y_tilde_hat, x_tilde_hat, y, string, entropy_bottleneck, seg_logits = [None]*9
seg_loss = None
istraining = (mode == 'training')
num_pixels = tf.to_float(tf.reduce_prod(tf.shape(x_rgb)[:-1]))
y, skip = seg_encoder('Encoder', x_depth, training=istraining)
entropy_bottleneck = tfc.EntropyBottleneck()
y_tilde_hat, likelihoods = entropy_bottleneck(y, training=istraining)
skip = None
seg_logits = seg_decoder('Decoder', y_tilde_hat, training=istraining, num_classes=num_classes, skip=skip)
if mode == 'testing':
string = entropy_bottleneck.compress(y)
string = tf.squeeze(string, axis=0)
# Loss
bpp = tf.reduce_sum(tf.log(likelihoods)) / (-np.log(2) * num_pixels)
#mse = tf.reduce_mean(tf.squared_difference(x_rgb, x_tilde_hat))
if istraining:
seg_loss = softmax_cross_entropy_loss_mining(seg_logits,
seg_labels,
num_classes,
ignore_label,
loss_weight=1.0,
upsample_logits=False,
hard_example_mining_step=100000,
top_k_percent_pixels=0.2,
scope='CI_Loss')
train_loss = lmbda * seg_loss + bpp
return train_loss, bpp, mse, x_tilde_hat, y_tilde_hat, y, string, entropy_bottleneck, seg_logits, seg_loss
# seg_comp_rgb_d
def build_model(x_rgb, x_depth, lmbda, num_classes, mode = 'training', seg_labels = None,
ignore_label = None):
# Args
train_loss, bpp, mse, y_tilde_hat, x_tilde_hat, y, string, entropy_bottleneck, seg_logits = [None]*9
seg_loss = None
istraining = (mode == 'training')
num_pixels = tf.to_float(tf.reduce_prod(tf.shape(x_rgb)[:-1]))
# arch
rgb_feats, _ = seg_encoder('Encoder_rgb', x_rgb, training=istraining)
depth_feats, _ = seg_encoder('Encoder_depth', x_depth, training=istraining)
y = fuse_SSMA('latent_fuse', rgb_feats, depth_feats, training=istraining, C=512)
entropy_bottleneck = tfc.EntropyBottleneck()
y_tilde_hat, likelihoods = entropy_bottleneck(y, training=istraining)
skip = None
seg_logits = seg_decoder('Decoder', y_tilde_hat, training=istraining, num_classes=num_classes, skip=skip)
if mode == 'testing':
string = entropy_bottleneck.compress(y)
string = tf.squeeze(string, axis=0)
# Loss
bpp = tf.reduce_sum(tf.log(likelihoods)) / (-np.log(2) * num_pixels)
#mse = tf.reduce_mean(tf.squared_difference(x_rgb, x_tilde_hat))
if istraining:
seg_loss = softmax_cross_entropy_loss_mining(seg_logits,
seg_labels,
num_classes,
ignore_label,
loss_weight=1.0,
upsample_logits=False,
hard_example_mining_step=100000,
top_k_percent_pixels=0.2,
scope='CI_Loss')
train_loss = lmbda * seg_loss + bpp
return train_loss, bpp, mse, x_tilde_hat, y_tilde_hat, y, string, entropy_bottleneck, seg_logits, seg_loss
# seg_arch_for_compAndReconsrurction
def build_model(x_rgb, x_depth, lmbda, num_classes, mode = 'training', seg_labels = None, ignore_label = None):
# Args
train_loss, bpp, mse, y_tilde_hat, x_tilde_hat, y, string, entropy_bottleneck, seg_logits = [None]*9
seg_loss = None
istraining = (mode == 'training')
num_pixels = tf.to_float(tf.reduce_prod(tf.shape(x_rgb)[:-1]))
y, skip = seg_encoder('Encoder', x_rgb, training=istraining)
entropy_bottleneck = tfc.EntropyBottleneck()
y_tilde_hat, likelihoods = entropy_bottleneck(y, training=istraining)
skip = None
# num_classes = -1 ==> reconstruct the rgb
x_tilde_hat = seg_decoder('Decoder', y_tilde_hat, training=istraining, num_classes=-1, skip=skip)
if mode == 'testing':
string = entropy_bottleneck.compress(y)
string = tf.squeeze(string, axis=0)
# Loss
bpp = tf.reduce_sum(tf.log(likelihoods)) / (-np.log(2) * num_pixels)
mse = tf.reduce_mean(tf.squared_difference(x_rgb, x_tilde_hat))
if istraining:
train_loss = lmbda * mse + bpp
return train_loss, bpp, mse, x_tilde_hat, y_tilde_hat, y, string, entropy_bottleneck, seg_logits, seg_loss
#seg_wocomp_depth
def build_model(x_rgb, x_depth, lmbda, num_classes, mode = 'training', seg_labels = None, ignore_label = None):
# Args
train_loss, bpp, mse, y_tilde_hat, x_tilde_hat, y, string, entropy_bottleneck, seg_logits = [None]*9
seg_loss = None
istraining = (mode == 'training')
num_pixels = tf.to_float(tf.reduce_prod(tf.shape(x_rgb)[:-1]))
y, _ = seg_encoder('Encoder_depth', x_depth, training=istraining)
skip = None
seg_logits = seg_decoder('Decoder', y, training=istraining, num_classes=num_classes, skip=skip)
# Loss
if istraining:
seg_loss = softmax_cross_entropy_loss_mining(seg_logits,
seg_labels,
num_classes,
ignore_label,
loss_weight=1.0,
upsample_logits=False,
hard_example_mining_step=100000,
top_k_percent_pixels=0.2,
scope='CI_Loss')
train_loss = seg_loss
return train_loss, bpp, mse, x_tilde_hat, y_tilde_hat, y, string, entropy_bottleneck, seg_logits, seg_loss
# seg_wocomp_rgbd
def build_model(x_rgb, x_depth, lmbda, num_classes, mode = 'training', seg_labels = None, ignore_label = None):
# Args
train_loss, bpp, mse, y_tilde_hat, x_tilde_hat, y, string, entropy_bottleneck, seg_logits = [None]*9
seg_loss = None
istraining = (mode == 'training')
num_pixels = tf.to_float(tf.reduce_prod(tf.shape(x_rgb)[:-1]))
rgb_feats, _ = seg_encoder('Encoder_rgb', x_rgb, training=istraining)
depth_feats, _ = seg_encoder('Encoder_depth', x_depth, training=istraining)
y = fuse_SSMA('latent_fuse', rgb_feats, depth_feats, training=istraining, C=512)
skip = None
seg_logits = seg_decoder('Decoder', y, training=istraining, num_classes=num_classes, skip=skip)
# Loss
if istraining:
seg_loss = softmax_cross_entropy_loss_mining(seg_logits,
seg_labels,
num_classes,
ignore_label,
loss_weight=1.0,
upsample_logits=False,
hard_example_mining_step=100000,
top_k_percent_pixels=0.2,
scope='CI_Loss')
train_loss = seg_loss
return train_loss, bpp, mse, x_tilde_hat, y_tilde_hat, y, string, entropy_bottleneck, seg_logits, seg_loss
# SSMA like concatenation
# seg_wocomp_rgbd_concat
def build_model(x_rgb, x_depth, lmbda, num_classes, mode = 'training', seg_labels = None, ignore_label = None):
# Args
train_loss, bpp, mse, y_tilde_hat, x_tilde_hat, y, string, entropy_bottleneck, seg_logits = [None]*9
seg_loss = None
istraining = (mode == 'training')
num_pixels = tf.to_float(tf.reduce_prod(tf.shape(x_rgb)[:-1]))
rgb_feats, _ = seg_encoder('Encoder_rgb', x_rgb, training=istraining)
depth_feats, _ = seg_encoder('Encoder_depth', x_depth, training=istraining)
y = fuse_SSMA_like_concat('latent_fuse', rgb_feats, depth_feats, training=istraining, C=512)
skip = None
seg_logits = seg_decoder('Decoder', y, training=istraining, num_classes=num_classes, skip=skip)
# Loss
if istraining:
seg_loss = softmax_cross_entropy_loss_mining(seg_logits,
seg_labels,
num_classes,
ignore_label,
loss_weight=1.0,
upsample_logits=False,
hard_example_mining_step=100000,
top_k_percent_pixels=0.2,
scope='CI_Loss')
train_loss = seg_loss
return train_loss, bpp, mse, x_tilde_hat, y_tilde_hat, y, string, entropy_bottleneck, seg_logits, seg_loss
# SSMA like summation
# seg_wocomp_rgbd_sum
def build_model(x_rgb, x_depth, lmbda, num_classes, mode = 'training', seg_labels = None, ignore_label = None):
# Args
train_loss, bpp, mse, y_tilde_hat, x_tilde_hat, y, string, entropy_bottleneck, seg_logits = [None]*9
seg_loss = None
istraining = (mode == 'training')
num_pixels = tf.to_float(tf.reduce_prod(tf.shape(x_rgb)[:-1]))
rgb_feats, _ = seg_encoder('Encoder_rgb', x_rgb, training=istraining)
depth_feats, _ = seg_encoder('Encoder_depth', x_depth, training=istraining)
y = fuse_SSMA_like_sum('latent_fuse', rgb_feats, depth_feats, training=istraining, C=512)
skip = None
seg_logits = seg_decoder('Decoder', y, training=istraining, num_classes=num_classes, skip=skip)
# Loss
if istraining:
seg_loss = softmax_cross_entropy_loss_mining(seg_logits,
seg_labels,
num_classes,
ignore_label,
loss_weight=1.0,
upsample_logits=False,
hard_example_mining_step=100000,
top_k_percent_pixels=0.2,
scope='CI_Loss')
train_loss = seg_loss
return train_loss, bpp, mse, x_tilde_hat, y_tilde_hat, y, string, entropy_bottleneck, seg_logits, seg_loss
# seg_com_rgb_gdn
def build_model(x_rgb, x_depth, lmbda, num_classes, mode = 'training', seg_labels = None,
ignore_label = None):
# Args
train_loss, bpp, mse, y_tilde_hat, x_tilde_hat, y, string, entropy_bottleneck, seg_logits = [None]*9
seg_loss = None
istraining = (mode == 'training')
num_pixels = tf.to_float(tf.reduce_prod(tf.shape(x_rgb)[:-1]))
y, skip = seg_encoder_gdn('Encoder', x_rgb, training=istraining)
entropy_bottleneck = tfc.EntropyBottleneck()
y_tilde_hat, likelihoods = entropy_bottleneck(y, training=istraining)
skip = None
seg_logits = seg_decoder_gdn('Decoder', y_tilde_hat, training=istraining, num_classes=num_classes, skip=skip)
if mode == 'testing':
string = entropy_bottleneck.compress(y)
string = tf.squeeze(string, axis=0)
# Loss
bpp = tf.reduce_sum(tf.log(likelihoods)) / (-np.log(2) * num_pixels)
#mse = tf.reduce_mean(tf.squared_difference(x_rgb, x_tilde_hat))
if istraining:
seg_loss = softmax_cross_entropy_loss_mining(seg_logits,
seg_labels,
num_classes,
ignore_label,
loss_weight=1.0,
upsample_logits=False,
hard_example_mining_step=100000,
top_k_percent_pixels=0.2,
scope='CI_Loss')
train_loss = lmbda * seg_loss + bpp
return train_loss, bpp, mse, x_tilde_hat, y_tilde_hat, y, string, entropy_bottleneck, seg_logits, seg_loss
#seg_com_reco_rgb_fixedlmbda2048
def build_model(x_rgb, x_depth, lmbda, num_classes, mode = 'training', seg_labels = None,
ignore_label = None):
# Args
train_loss, bpp, mse, y_tilde_hat, x_tilde_hat, y, string, entropy_bottleneck, seg_logits = [None]*9
seg_loss = None
istraining = (mode == 'training')
num_pixels = tf.to_float(tf.reduce_prod(tf.shape(x_rgb)[:-1]))
y, skip = seg_encoder('Encoder', x_rgb, training=istraining)
entropy_bottleneck = tfc.EntropyBottleneck()
y_tilde_hat, likelihoods = entropy_bottleneck(y, training=istraining)
skip = None
seg_logits = seg_decoder('Decoder_seg', y_tilde_hat, training=istraining, num_classes=num_classes, skip=skip)
x_tilde_hat = seg_decoder('Decoder_rec', y_tilde_hat, training=istraining, num_classes=-1, skip=skip)
if mode == 'testing':
string = entropy_bottleneck.compress(y)
string = tf.squeeze(string, axis=0)
# Loss
bpp = tf.reduce_sum(tf.log(likelihoods)) / (-np.log(2) * num_pixels)
mse = tf.reduce_mean(tf.squared_difference(x_rgb, x_tilde_hat))
if istraining:
seg_loss = softmax_cross_entropy_loss_mining(seg_logits,
seg_labels,
num_classes,
ignore_label,
loss_weight=1.0,
upsample_logits=False,
hard_example_mining_step=100000,
top_k_percent_pixels=0.2,
scope='CI_Loss')
beta = lmbda
lmbda = 2048
train_loss = lmbda *mse + beta* seg_loss + bpp
return train_loss, bpp, mse, x_tilde_hat, y_tilde_hat, y, string, entropy_bottleneck, seg_logits, seg_loss
#seg_com_reco_rgb_fixedlmbda512
def build_model(x_rgb, x_depth, lmbda, num_classes, mode = 'training', seg_labels = None,
ignore_label = None):
# Args
train_loss, bpp, mse, y_tilde_hat, x_tilde_hat, y, string, entropy_bottleneck, seg_logits = [None]*9
seg_loss = None
istraining = (mode == 'training')
num_pixels = tf.to_float(tf.reduce_prod(tf.shape(x_rgb)[:-1]))
y, skip = seg_encoder('Encoder', x_rgb, training=istraining)
entropy_bottleneck = tfc.EntropyBottleneck()
y_tilde_hat, likelihoods = entropy_bottleneck(y, training=istraining)
skip = None
seg_logits = seg_decoder('Decoder_seg', y_tilde_hat, training=istraining, num_classes=num_classes, skip=skip)
x_tilde_hat = seg_decoder('Decoder_rec', y_tilde_hat, training=istraining, num_classes=-1, skip=skip)
if mode == 'testing':
string = entropy_bottleneck.compress(y)
string = tf.squeeze(string, axis=0)
# Loss
bpp = tf.reduce_sum(tf.log(likelihoods)) / (-np.log(2) * num_pixels)
mse = tf.reduce_mean(tf.squared_difference(x_rgb, x_tilde_hat))
if istraining:
seg_loss = softmax_cross_entropy_loss_mining(seg_logits,
seg_labels,
num_classes,
ignore_label,
loss_weight=1.0,
upsample_logits=False,
hard_example_mining_step=100000,
top_k_percent_pixels=0.2,
scope='CI_Loss')
beta = lmbda
lmbda = 512
train_loss = lmbda *mse + beta* seg_loss + bpp
return train_loss, bpp, mse, x_tilde_hat, y_tilde_hat, y, string, entropy_bottleneck, seg_logits, seg_loss
#seg_com_reco_rgb_fixedlmbda8192
def build_model(x_rgb, x_depth, lmbda, num_classes, mode = 'training', seg_labels = None,
ignore_label = None):
# Args
train_loss, bpp, mse, y_tilde_hat, x_tilde_hat, y, string, entropy_bottleneck, seg_logits = [None]*9
seg_loss = None
istraining = (mode == 'training')
num_pixels = tf.to_float(tf.reduce_prod(tf.shape(x_rgb)[:-1]))
y, skip = seg_encoder('Encoder', x_rgb, training=istraining)
entropy_bottleneck = tfc.EntropyBottleneck()
y_tilde_hat, likelihoods = entropy_bottleneck(y, training=istraining)
skip = None
seg_logits = seg_decoder('Decoder_seg', y_tilde_hat, training=istraining, num_classes=num_classes, skip=skip)
x_tilde_hat = seg_decoder('Decoder_rec', y_tilde_hat, training=istraining, num_classes=-1, skip=skip)
if mode == 'testing':
string = entropy_bottleneck.compress(y)
string = tf.squeeze(string, axis=0)
# Loss
bpp = tf.reduce_sum(tf.log(likelihoods)) / (-np.log(2) * num_pixels)
mse = tf.reduce_mean(tf.squared_difference(x_rgb, x_tilde_hat))
if istraining:
seg_loss = softmax_cross_entropy_loss_mining(seg_logits,
seg_labels,
num_classes,
ignore_label,
loss_weight=1.0,
upsample_logits=False,
hard_example_mining_step=100000,
top_k_percent_pixels=0.2,
scope='CI_Loss')
beta = lmbda
lmbda = 8192
train_loss = lmbda *mse + beta* seg_loss + bpp
return train_loss, bpp, mse, x_tilde_hat, y_tilde_hat, y, string, entropy_bottleneck, seg_logits, seg_loss
#seg_com_reco_rgb_fixedlmbda128
def build_model(x_rgb, x_depth, lmbda, num_classes, mode = 'training', seg_labels = None,
ignore_label = None):
# Args
train_loss, bpp, mse, y_tilde_hat, x_tilde_hat, y, string, entropy_bottleneck, seg_logits = [None]*9
seg_loss = None
istraining = (mode == 'training')
num_pixels = tf.to_float(tf.reduce_prod(tf.shape(x_rgb)[:-1]))
y, skip = seg_encoder('Encoder', x_rgb, training=istraining)
entropy_bottleneck = tfc.EntropyBottleneck()
y_tilde_hat, likelihoods = entropy_bottleneck(y, training=istraining)
skip = None
seg_logits = seg_decoder('Decoder_seg', y_tilde_hat, training=istraining, num_classes=num_classes, skip=skip)
x_tilde_hat = seg_decoder('Decoder_rec', y_tilde_hat, training=istraining, num_classes=-1, skip=skip)
if mode == 'testing':
string = entropy_bottleneck.compress(y)
string = tf.squeeze(string, axis=0)
# Loss
bpp = tf.reduce_sum(tf.log(likelihoods)) / (-np.log(2) * num_pixels)
mse = tf.reduce_mean(tf.squared_difference(x_rgb, x_tilde_hat))
if istraining:
seg_loss = softmax_cross_entropy_loss_mining(seg_logits,
seg_labels,
num_classes,
ignore_label,
loss_weight=1.0,
upsample_logits=False,
hard_example_mining_step=100000,
top_k_percent_pixels=0.2,
scope='CI_Loss')
beta = lmbda
lmbda = 128
train_loss = lmbda *mse + beta* seg_loss + bpp
return train_loss, bpp, mse, x_tilde_hat, y_tilde_hat, y, string, entropy_bottleneck, seg_logits, seg_loss
#seg_com_reco_rgb_fixedlmbda16384
def build_model(x_rgb, x_depth, lmbda, num_classes, mode = 'training', seg_labels = None,
ignore_label = None):
# Args
train_loss, bpp, mse, y_tilde_hat, x_tilde_hat, y, string, entropy_bottleneck, seg_logits = [None]*9
seg_loss = None
istraining = (mode == 'training')
num_pixels = tf.to_float(tf.reduce_prod(tf.shape(x_rgb)[:-1]))
y, skip = seg_encoder('Encoder', x_rgb, training=istraining)
entropy_bottleneck = tfc.EntropyBottleneck()
y_tilde_hat, likelihoods = entropy_bottleneck(y, training=istraining)
skip = None
seg_logits = seg_decoder('Decoder_seg', y_tilde_hat, training=istraining, num_classes=num_classes, skip=skip)
x_tilde_hat = seg_decoder('Decoder_rec', y_tilde_hat, training=istraining, num_classes=-1, skip=skip)
if mode == 'testing':
string = entropy_bottleneck.compress(y)
string = tf.squeeze(string, axis=0)
# Loss
bpp = tf.reduce_sum(tf.log(likelihoods)) / (-np.log(2) * num_pixels)
mse = tf.reduce_mean(tf.squared_difference(x_rgb, x_tilde_hat))
if istraining:
seg_loss = softmax_cross_entropy_loss_mining(seg_logits,
seg_labels,
num_classes,
ignore_label,
loss_weight=1.0,
upsample_logits=False,
hard_example_mining_step=100000,
top_k_percent_pixels=0.2,
scope='CI_Loss')
beta = lmbda
lmbda = 16384
train_loss = lmbda *mse + beta* seg_loss + bpp
return train_loss, bpp, mse, x_tilde_hat, y_tilde_hat, y, string, entropy_bottleneck, seg_logits, seg_loss
# seg_comp_rgb_d_downby2
def build_model(x_rgb, x_depth, lmbda, num_classes, mode = 'training', seg_labels = None,
ignore_label = None):
# Args
train_loss, bpp, mse, y_tilde_hat, x_tilde_hat, y, string, entropy_bottleneck, seg_logits = [None]*9
seg_loss = None
istraining = (mode == 'training')
num_pixels = tf.to_float(tf.reduce_prod(tf.shape(x_rgb)[:-1]))
# arch
rgb_feats, _ = seg_encoder('Encoder_rgb', x_rgb, training=istraining, add_sampling_layer=True)
depth_feats, _ = seg_encoder('Encoder_depth', x_depth, training=istraining, add_sampling_layer=True)
y = fuse_SSMA('latent_fuse', rgb_feats, depth_feats, training=istraining, C=512)
entropy_bottleneck = tfc.EntropyBottleneck()
y_tilde_hat, likelihoods = entropy_bottleneck(y, training=istraining)
skip = None
seg_logits = seg_decoder('Decoder', y_tilde_hat, training=istraining, num_classes=num_classes, skip=skip, add_sampling_layer=True)
if mode == 'testing':
string = entropy_bottleneck.compress(y)
string = tf.squeeze(string, axis=0)
# Loss
bpp = tf.reduce_sum(tf.log(likelihoods)) / (-np.log(2) * num_pixels)
#mse = tf.reduce_mean(tf.squared_difference(x_rgb, x_tilde_hat))
if istraining:
seg_loss = softmax_cross_entropy_loss_mining(seg_logits,
seg_labels,
num_classes,
ignore_label,
loss_weight=1.0,
upsample_logits=False,
hard_example_mining_step=100000,
top_k_percent_pixels=0.2,
scope='CI_Loss')
train_loss = lmbda * seg_loss + bpp
return train_loss, bpp, mse, x_tilde_hat, y_tilde_hat, y, string, entropy_bottleneck, seg_logits, seg_loss
| 47.286713 | 134 | 0.5603 | 3,095 | 27,048 | 4.54378 | 0.037157 | 0.060869 | 0.037759 | 0.031999 | 0.972125 | 0.972125 | 0.968641 | 0.968641 | 0.96665 | 0.96665 | 0 | 0.014692 | 0.353261 | 27,048 | 571 | 135 | 47.369527 | 0.78923 | 0.046769 | 0 | 0.959799 | 0 | 0 | 0.032893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037688 | false | 0 | 0 | 0 | 0.075377 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e9e83eb92b1d5dea6133e477973fd75803d9e239 | 186 | py | Python | allennlp/semparse/worlds/__init__.py | MartinoMensio/allennlp | 9a6dce3997d17185650a5377c9a7a5af0f1ac241 | [
"Apache-2.0"
] | 1 | 2019-01-13T00:43:52.000Z | 2019-01-13T00:43:52.000Z | allennlp/semparse/worlds/__init__.py | shanesyy/allennlp | 4c99f8e82f7fd70c86652109bfca5282d470e981 | [
"Apache-2.0"
] | 1 | 2018-06-08T21:12:54.000Z | 2018-06-08T21:12:54.000Z | allennlp/semparse/worlds/__init__.py | shanesyy/allennlp | 4c99f8e82f7fd70c86652109bfca5282d470e981 | [
"Apache-2.0"
] | 1 | 2018-08-30T17:08:16.000Z | 2018-08-30T17:08:16.000Z | from allennlp.semparse.worlds.nlvr_world import NlvrWorld
from allennlp.semparse.worlds.wikitables_world import WikiTablesWorld
from allennlp.semparse.worlds.atis_world import AtisWorld
| 46.5 | 69 | 0.887097 | 24 | 186 | 6.75 | 0.5 | 0.222222 | 0.37037 | 0.481481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064516 | 186 | 3 | 70 | 62 | 0.931034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
e9ebd63ede07c958f6e290c6a66cac671dd15238 | 150,277 | py | Python | bin/temp/var/usd/cd/tmp/usd/data/data/data/data/data/temp/instaprof.py | RazorKenway/All-Downloader | e1c6d9ee277166faff8876e967b521fd752f0e7f | [
"MIT"
] | 44 | 2021-06-28T15:57:18.000Z | 2022-03-22T07:36:13.000Z | bin/temp/var/usd/cd/tmp/usd/data/data/data/data/data/temp/instaprof.py | RazorKenway/All-Downloader | e1c6d9ee277166faff8876e967b521fd752f0e7f | [
"MIT"
] | 1 | 2021-11-26T13:28:10.000Z | 2022-01-10T21:23:41.000Z | bin/temp/var/usd/cd/tmp/usd/data/data/data/data/data/temp/instaprof.py | RazorKenway/All-Downloader | e1c6d9ee277166faff8876e967b521fd752f0e7f | [
"MIT"
] | 5 | 2021-08-23T17:34:56.000Z | 2022-02-25T19:23:59.000Z | #ENCODE BY CRYPTO
#YOU CAN TRY THIS DECODE GOD BLESS
import gzip,marshal,zlib,base64,binascii,lzma
try:
exec(gzip.decompress(marshal.loads(b'se\xcc\x00\x00\x1f\x8b\x08\x00N\x89\x98a\x02\xff\x8c}W[Tk\xd0\xec\xfd\xf7+@AAQV\x0e\x80dQD@%\xcb\xa8\xac\x08(\xa0\xe4(\xbf\xfdLU\xd7\xbb\xc7\xf3\x9cs\xf1]\xec\xad \xcc\xacyC\x87\xea\xea\xea\xc3\xe3?\xbf\xcf.\xfa\xca\xe2\xbcI\xa2\x91\xe3\xe2\xec\xfc\xa08\x1a)\x0fO\x8a\xf3\xea\xf0pd\xff\xee\xf0\xcf\xc8\xdd\xd1a\xf9?\x17g\xb7c\xcdMS\r\xe9g^\x1f\xfd.\xea\xf3!\xfc\xc0\xeb\xba\xa9~\x1f\xff9k\xce\xcf\x87\xca\xe7\x9d\x1b\xbf\xed\xdcde\xe7\xc6\xcb\xba\xffy+\xdd/\xf2\xceM\x9e\x15\xdd\xaf\x82\xceM\xdbv:\x97k\x9d\x9b\xa2\xf2\xba\xdf\xa8\xf0\x97\xceM\x13unJ\xbf\xfb_\xd3\xfd\xa2\xee\xfen\x99\x1c\xff/\xfe\xd2}\xe9\xba\xfb\x8a\xf8/\xed~\xaf\xe9~\x9d.\xe3\x1f\x0e\xc7\x97\xc7\xba\xaf\xdev\xbf\xc8\xc3\x15\xf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xd53\t\xab\xed\xad\xf2`d\xb3T\xca\x05\xb4\xb6\xce\x07\xbe_\x88\x00\x10\x81S\x93\xed(\xf9\xaf\xd1\x9f[\xfd\\P\xbe\x83\xd5\x08X\xd2%\x1e\xb8\xb1\xe2\xdaP\xab#\\\x98\xfb\x13\x15\x04\x0b\x95E\x04\xdaV\xf5wq\xdb\x11\x8c\x18\x9d|\xfa\x8f\xfa\x81\\\xcf\x1b\x1av|\xd6\x06\xe0\xa8\xca\x17X\x82\x0c6\x1d5\xddVL\x80Z\x95\x1fd\x02ey\xa6\x8aC\xeb\xd8\xd3\x95\xbdD\x96o\xce\xda\xcdb\x14\x8e\xdf+\xd0\x80\x10\xa3R\xd6\xe0{8gY\xbc\xb2\xfe\xd4\x92\tF6\xe0\xac\xe0\xc8\xd2\xe3\xaa\x9f\xb8\xa8g-$V\x88\xcf\xae\xedUt\xfc\xf06\x97"2\xeb\xa7Y\x1eo@\xf0F\xfd\x80$s\xb6\xe3<\x00\x8c-?\x1d\xfdT\x0fl\xf9\xe6F\x85\xcc\xfa-\x9d\xc4\x85+\x96\xe0\xd0\x0f*\xc1VKc\xad\xae\xa5V\xcdU\xc8\x1br\xd1\xca\xb3\xba\xbe\xc4\xb6,\x0f\xbc\xa1\xd5<\xbb\x15\xee\x90\x92\xc5X\xa9\xf6\xebE\x1b\xca\x8eaO\x11\x03\xd4\xc1\xce\x96\xe2\x8aH\xb8\x17\xe2\xb4\xec\xdb\xe0\xa9\xfb+\xcb\xab\xb0\x01"\xbf\xc3I\xd7\xedq\x8f\x14\xc2\xf4\xd3\x9f\xb0\xab\x91\x83\xec\xc6\x04#\xd3]a\xeb\xc8\xba\x99y\xbf\x02\xba\x96 \xcb\x06J@\xe6#9\x14l1\x05\x05\xb3z\x8b\xf0\xa3\xfemF\x84[\x9c\xdd\xff]\x14\x03#xy\xb6\xa6\r\xad\xde|\x15\xb4\x10\xab\r\xa9\xbe\xd5\xbb\x95o\x15\x05\xc2*e\x87\xa2\x82\x90\xf4:w\xf4\'s\xbc\x999<\xa0\xa8?\x05\x01\x14\x84\xd5\xf4\xc0\x81\x03\xc8?\xbe\xb3SY\x07\xaf\xbf\xe0\xc7\x81\xa2\x06_\xd9\x03\xfe\xed\x15v\x11\xf4\xebzg\xb0W\x97\xccP\xe8\xccAC\xf4\x84Y[\x19\x02{\xca\xca.\xe9\xa78\x16\xc5\x8a\xa0\x02\xa6)?{\xb4i\xafRq\x83}\x82D#\xac\xa3\xb0\xa3oe\xc2\x9b\xd4P\t\x9f\x9eq\x19\x08\xae\x91\xbb\x07\x92X\xf8\xe1\x8b:,q\x9a\xb3\x0f[\xca=\x10LTd4\xc7\xae\x1d3\xf8yxv\xb1\xbf\xab\x82(#\x1a\xca\x1b\x1c\xe8\x11\xc1k\xeb\xbe\xdeY\xbb\x8bK\x19\xef\x1c\xe4\x13\x9f/\xff(sS\x05\x96}^\xb1J\x11\xdeoQF\xb4\xc5<b\x15[\xe8\xf6q\xf6^+uj\xb1\xd3\t\xea\xe6\xde\xb6\x8a\x01\xcaYp\xb1\x08\x12F\x8bK\x9f\xf6\xd7\xed\x04\xe7\xa2J\xf1\xf0\x97\xea%J\x8e.G\x1d\xdbz9\x12\xa9\x96\xacPxc\xe0\x1e,\xfe\x073\n\xf0\x92\x9fbR\x92\x939?\xd9k\xc55\x12/~\x96\x19\xca\x80rl\xc2\x8b\xbe/\xee\x0b,##\xa7H,#r\xb8Zsbm\r\xdfT\xa7\xe72&\x9e\xbd \x16\x99n\'\x14\x97"\x95I$\xe4\x16\x0ex\xbd\xdd$\x06D\xb6\xf1\xd6\xe2\xa8\xd8VJ;\x1b\xfa\x7fu\'d\xc9\xf4F\xa7\x03\x94\xa8\x99E\x12\x14\x9f\x89\xbf\x99\x89\x0b\xa3\x00\n\xabO\x10\xab\xe8\x13|\x11\xdf\xaa/\xdd\xd7\xaa5\xa0\xd1"s\xac\xf3\xb7\xaa\xb8\xd7k\x82R\x14\xde\xb1U\xd5\xb3\xfc\x93P1\xb4\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0\x02C\xfd\xf8n\xc2Q\xa9 sZ\x9c\xa8A\x1f\x1b\x02\x85\xeb\x1a\x9dzu\x82\xf9\x1fu\xba\xbd\x822z\x85\t\x1e,\xa2\x83\xae\xde\xa0R\x985?~\xe2\x8c B\xf7\x0f\xa2\xdb\x15\x8dSP\xdaS6\x07\x1a\xf2\xfc\x8f\x98\\Nj\x10\\m\xb4\xa9V\xf3bH\x85 o\xed\xc7\'Q(\xd3O|\xda3\x05\xc09\xfa|0\x07\xb8VsM\x01\t\xd1,\x18D\xad\x19U2^!@\x11\x85\x1a\xaf\xdb\xe4\xc5G;\x12)\x99b\xec\xd6\xbc\xfa>\xaf\x05\x00M\x8a\xc0e;+\x15\xab\xe8\xc8\xf5o\x175\xfb\x14\xa2]\x88\xc7\xd5\xef\xad\xa7<\xfa0\xa4\xfapj8\xcc\xb2\x1d\t6{\xab\x8d3\xab>*\x85\xf68\x99\xec\xf2\x97w\x08\xb4:\x88N\xcd\x0c\x14\xea\x96\xca\x84R\xb1=\x92\xa9[\x92\x0c\xca\xca\xb8\xc19\xd4\x06zX|\x94c\x96u\xceU\xb0j1\x8c\x85\xd6\xa5\xd9T&\x87\xdd$x\x11\xd4\x17C\xea\x1ee\xf7\xab\x04\x08`\x0c<\xf5\xb4\xf0\xd6\x8a\xa6\xc6vC\x8a\xb1\x9b\xac\xba\xf7\x19\x89[\xb3r\xa6\x048q3{\x15\x07F\xaf\xee_\xddS\xc6\x89\x98r\xa4\xb0&\x9a\xf9\xa8\x10\x8bH*\xe0D\xa0\x9a>@-\x16\x9dc\xe5\x08\xa4\xe5m\xcf\x83\x97\xd4\xbe\x95\x9eSY\xbc\xfemW\x82\x90\x03\x88\x8cd\xa8\x15\x9bG\x9a)Z\x95\x9f\xa5\xd3\x1e\xbbY\xc7\xd2HO\x1f\x0e\x14I\x92\xbb\x9b\x19\xe4\xf8\xf7\x8b\xaek\xb6DM\x9aU!\x18\r\xc5}f\x0e\xb5\x16\xa9*\xed\x9a\r\x96EL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d2,\xcfu\x916\xa2L:\xc9"\xbf\x90\xb8_\xeb\xab%\xae "\xcd9!"\xae\x14\xfeW\xe9\x03s*\xde\x93\x1e\xe9\xadT\x97g\xabV\xfc\\mT\xfc;\x88\xafe\xf0\xeadn\xee\t\x88\xf5E\xb49\xe3\x1a\x81\xa9\xa5\xfc\x17\xdf\xfc\x03\xdd9\x14E\xcc\x86\x1d8\x05\xba\xa1\x9b\x8dM)K\xc0:$9k\xf3d+e\xc3\xe8\x17\xf6a\x8a2\x9dp\xab\xc5\x08\x02u\x99e\x86\xbe\xbb\x18\x84\x1f?\x04@_\xb2_\x06t\xe5tv]3\xb18\xe0j\xf1\x872\xc8\x80\xfd\xcb*\x82\x97\xd5\xba\xa0R\xb4\xa1\xb1#VT\x94\xbc\xa8{m8\x9e\xef\x04j\x97\xde\x89D\xa7\x0eJN\xd8\x02C\x96\xaf\x96N\xfc#\xc0N\xf2\xe0/\xe1\x92\x12\x1d\xca\x92\x9b_\xa2\xda\xab:GW\x1aP\xea\x9c U$\x81\xda\xda\x9b\x9a\x97\xcc\x9c\xb8+\x05*\xe1\xe4V\xe5KbTzNm\x93mu\x8f\xa2\xf2\x96n\x14\xa8\xa4\x96\xf29\xb4%\xa1}\xae\x8e`U\xa9v\x1d\xfc\x12v[lH\x11\x94\x81i%\xcev\xa5\x191&\x1dGBd9\xf8\xb2\xa7\xfaT9\xdd\xbbH\x16\x19S\xa5\x89|\xb4d\x8c\x9e\x991\xf1\xeb\xab{\xc9\x9fW\x8dS\xf1\xf55\xd7\xbe\xcc\x1d \xe3\x06\x03\x8f\x8b\x94\x02\xa2~\xe3\xffU\x88\x96\x8c|\x15W0\xfa\x938n%\x0c\xf0\x85*\xd6\x9e\xb8c\x1e\x05\xe3Ir\xf0\x94\xad\x93m":1\xf9\xa4\xb9\xe7\x14\x18$\n\xe4\x9a\xc9\x1d\xe7^\xa3\xaf\xbc\xf6\x87\xca\xfc\x1ap\\\xab.\x90i\xcc-\x85\x1b\x12m|\xf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b\xe8S\xf8\xc5\x13\xc8\x1e\xeaX\xf0 \xf4\xc8\xe7;\x9ajB!\x9b4\xc7\xe1\xee\xb6\xb1\x8c\xec\xfc \x08\xfeJ\xe9\xa8\xe2\xa25\x06\x19\xf0\xbc\x91u\x8e\xbbR\x99qa\x87\x81\x03\xcb\xfe\x10\xff\xc5J\x84\\r]NI\xd8\xf7Q\r\x15\xcc\xf1f\x13C>_\x8b\xa6\x13\x9c\xd8\x8f\xff\xc3\xbe\xe6.\x8e2\xd7\xe5F\x82n\xf3\x1f\xcfF\x859A\x03\xd8{\x15\xc5\xbd\x02\xa5\xf2a\x85\x96\x9f\xb5\x10\xfe\xa6d\xe4\x89\xca\xf7\xe6\x9f\xfe\xff0\xcd\xd0QN\x88\x11E\x80\xe3R\xf4cV\xce\xa4\xec:\xf1kK*\xad\x0cO\xbc%)\xb1+\xf3\xe9]\xfb{6\x01\xac|&\x15\x06.\xca\x0e\x97eH5\xf6ez\xf8Hp\xbcF\xd4\xda\xa4\xd8\x14\xe1\x8ds\x91\xad\r\xfb\xa0%+\xb2p\x84\x9c3Q\x03VW\xdd\x08\xa6>\x90\xb6\x0f\xa1\x98\x8c\xdb\xecli\xb0[C\xd3\xd8\x9b\x1a\x95\xb2\x8b\x8b\x12\r\x1b\x13\xa5\xf2F|\x18\xb7\xa8d\x87<\x17\xd6\xa4\xa3\x0f\xc5\xedh\x11\x93D_L8\xc9\xd8\xb8\x97!\x16\xe6\x06o%c\xd6\xf0\x95\x95\xafW5\xad\xb2\x02t\xa4\xb9\x12\x04\x88\x10\xcb\xcf\x19\x056\xb9.\xab\xaa\x87C\x8d\x85tb\x061\xff\xf5\x16\r\x86\x99W\xddP7\xbfTH\x81\xa3\x90\xea#1UtO\r"\xa3\x05\xfbA2\xcf\x10\x84TipVg[;\xb8\xde\x8f~\x87\x02;\xd1\x12\xaa\xf2{\xe3\x9b-\xe2\xc5#\x10\xd0\xdfm\xaaQ\row\x14w\xc0\x1ed\x13[z\xff{\x853k\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
print(f'Error for : {b} ') | 13,661.545455 | 150,118 | 0.734657 | 34,506 | 150,277 | 3.19272 | 0.177534 | 0.000327 | 0.000163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229189 | 0.001331 | 150,277 | 11 | 150,119 | 13,661.545455 | 0.504887 | 0.000326 | 0 | 0 | 0 | 29 | 0.664621 | 0.662957 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e9fba6012f7d0089a7d420f349d2bd718bd76be0 | 19,315 | py | Python | tests/integration/test_reloading_storage_configuration/test.py | pdv-ru/ClickHouse | 0ff975bcf3008fa6c6373cbdfed16328e3863ec5 | [
"Apache-2.0"
] | 15,577 | 2019-09-23T11:57:53.000Z | 2022-03-31T18:21:48.000Z | tests/integration/test_reloading_storage_configuration/test.py | pdv-ru/ClickHouse | 0ff975bcf3008fa6c6373cbdfed16328e3863ec5 | [
"Apache-2.0"
] | 16,476 | 2019-09-23T11:47:00.000Z | 2022-03-31T23:06:01.000Z | tests/integration/test_reloading_storage_configuration/test.py | pdv-ru/ClickHouse | 0ff975bcf3008fa6c6373cbdfed16328e3863ec5 | [
"Apache-2.0"
] | 3,633 | 2019-09-23T12:18:28.000Z | 2022-03-31T15:55:48.000Z | import collections
import os
import re
import shutil
import time
import xml.etree.ElementTree as ET
import helpers.client
import helpers.cluster
from helpers.test_tools import TSV
import pytest
cluster = helpers.cluster.ClickHouseCluster(__file__)
node1 = cluster.add_instance('node1',
main_configs=['configs/logs_config.xml'],
with_zookeeper=True,
stay_alive=True,
tmpfs=['/jbod1:size=40M', '/jbod2:size=40M', '/jbod3:size=40M', '/jbod4:size=40M',
'/external:size=200M'],
macros={"shard": 0, "replica": 1})
node2 = cluster.add_instance('node2',
main_configs=['configs/logs_config.xml'],
with_zookeeper=True,
stay_alive=True,
tmpfs=['/jbod1:size=40M', '/jbod2:size=40M', '/jbod3:size=40M', '/jbod4:size=40M',
'/external:size=200M'],
macros={"shard": 0, "replica": 2})
def get_log(node):
return node.exec_in_container(["bash", "-c", "cat /var/log/clickhouse-server/clickhouse-server.log"])
@pytest.fixture(scope="module")
def started_cluster():
try:
cluster.start()
yield cluster
finally:
cluster.shutdown()
def start_over():
shutil.copy(os.path.join(os.path.dirname(__file__), "configs/config.d/storage_configuration.xml"),
os.path.join(node1.config_d_dir, "storage_configuration.xml"))
for node in (node1, node2):
separate_configuration_path = os.path.join(node.config_d_dir, "separate_configuration.xml")
try:
os.remove(separate_configuration_path)
except:
""""""
def add_disk(node, name, path, separate_file=False):
separate_configuration_path = os.path.join(node.config_d_dir, "separate_configuration.xml")
try:
if separate_file:
tree = ET.parse(separate_configuration_path)
else:
tree = ET.parse(os.path.join(node.config_d_dir, "storage_configuration.xml"))
except:
tree = ET.ElementTree(
ET.fromstring('<clickhouse><storage_configuration><disks/><policies/></storage_configuration></clickhouse>'))
root = tree.getroot()
new_disk = ET.Element(name)
new_path = ET.Element("path")
new_path.text = path
new_disk.append(new_path)
root.find("storage_configuration").find("disks").append(new_disk)
if separate_file:
tree.write(separate_configuration_path)
else:
tree.write(os.path.join(node.config_d_dir, "storage_configuration.xml"))
def update_disk(node, name, path, keep_free_space_bytes, separate_file=False):
separate_configuration_path = os.path.join(node.config_d_dir,
"separate_configuration.xml")
try:
if separate_file:
tree = ET.parse(separate_configuration_path)
else:
tree = ET.parse(
os.path.join(node.config_d_dir, "storage_configuration.xml"))
except:
tree = ET.ElementTree(
ET.fromstring('<clickhouse><storage_configuration><disks/><policies/></storage_configuration></clickhouse>'))
root = tree.getroot()
disk = root.find("storage_configuration").find("disks").find(name)
assert disk is not None
new_path = disk.find("path")
assert new_path is not None
new_path.text = path
new_keep_free_space_bytes = disk.find("keep_free_space_bytes")
assert new_keep_free_space_bytes is not None
new_keep_free_space_bytes.text = keep_free_space_bytes
if separate_file:
tree.write(separate_configuration_path)
else:
tree.write(os.path.join(node.config_d_dir, "storage_configuration.xml"))
def add_policy(node, name, volumes):
tree = ET.parse(os.path.join(node.config_d_dir, "storage_configuration.xml"))
root = tree.getroot()
new_policy = ET.Element(name)
new_volumes = ET.Element("volumes")
for volume, disks in list(volumes.items()):
new_volume = ET.Element(volume)
for disk in disks:
new_disk = ET.Element("disk")
new_disk.text = disk
new_volume.append(new_disk)
new_volumes.append(new_volume)
new_policy.append(new_volumes)
root.find("storage_configuration").find("policies").append(new_policy)
tree.write(os.path.join(node.config_d_dir, "storage_configuration.xml"))
def test_add_disk(started_cluster):
try:
name = "test_add_disk"
engine = "MergeTree()"
start_over()
node1.restart_clickhouse(kill=True)
time.sleep(2)
node1.query("""
CREATE TABLE {name} (
d UInt64
) ENGINE = {engine}
ORDER BY d
SETTINGS storage_policy='jbods_with_external'
""".format(name=name, engine=engine))
assert "jbod3" not in set(node1.query("SELECT name FROM system.disks").splitlines())
add_disk(node1, "jbod3", "/jbod3/")
node1.query("SYSTEM RELOAD CONFIG")
assert "jbod3" in set(node1.query("SELECT name FROM system.disks").splitlines())
finally:
try:
node1.query("DROP TABLE IF EXISTS {}".format(name))
except:
""""""
def test_update_disk(started_cluster):
try:
name = "test_update_disk"
engine = "MergeTree()"
start_over()
node1.restart_clickhouse(kill=True)
time.sleep(2)
node1.query("""
CREATE TABLE {name} (
d UInt64
) ENGINE = {engine}
ORDER BY d
SETTINGS storage_policy='jbods_with_external'
""".format(name=name, engine=engine))
assert node1.query("SELECT path, keep_free_space FROM system.disks where name = 'jbod2'") == TSV([
["/jbod2/", "10485760"]])
update_disk(node1, "jbod2", "/jbod2/", "20971520")
node1.query("SYSTEM RELOAD CONFIG")
assert node1.query("SELECT path, keep_free_space FROM system.disks where name = 'jbod2'") == TSV([
["/jbod2/", "20971520"]])
finally:
try:
node1.query("DROP TABLE IF EXISTS {}".format(name))
except:
""""""
def test_add_disk_to_separate_config(started_cluster):
try:
name = "test_add_disk"
engine = "MergeTree()"
start_over()
node1.restart_clickhouse(kill=True)
time.sleep(2)
node1.query("""
CREATE TABLE {name} (
d UInt64
) ENGINE = {engine}
ORDER BY d
SETTINGS storage_policy='jbods_with_external'
""".format(name=name, engine=engine))
assert "jbod3" not in set(node1.query("SELECT name FROM system.disks").splitlines())
add_disk(node1, "jbod3", "/jbod3/", separate_file=True)
node1.query("SYSTEM RELOAD CONFIG")
assert "jbod3" in set(node1.query("SELECT name FROM system.disks").splitlines())
start_over()
finally:
try:
node1.query("DROP TABLE IF EXISTS {}".format(name))
except:
""""""
def test_add_policy(started_cluster):
try:
name = "test_add_policy"
engine = "MergeTree()"
start_over()
add_disk(node1, "jbod3", "/jbod3/")
add_disk(node1, "jbod4", "/jbod4/")
node1.restart_clickhouse(kill=True)
time.sleep(2)
node1.query("""
CREATE TABLE {name} (
d UInt64
) ENGINE = {engine}
ORDER BY d
SETTINGS storage_policy='jbods_with_external'
""".format(name=name, engine=engine))
add_policy(node1, "cool_policy", {"volume1": ["jbod3", "jbod4"]})
node1.query("SYSTEM RELOAD CONFIG")
disks = set(node1.query("SELECT name FROM system.disks").splitlines())
assert "cool_policy" in set(node1.query("SELECT policy_name FROM system.storage_policies").splitlines())
assert {"volume1"} == set(node1.query(
"SELECT volume_name FROM system.storage_policies WHERE policy_name = 'cool_policy'").splitlines())
assert {"['jbod3','jbod4']"} == set(
node1.query("SELECT disks FROM system.storage_policies WHERE policy_name = 'cool_policy'").splitlines())
finally:
try:
node1.query("DROP TABLE IF EXISTS {}".format(name))
except:
""""""
def test_new_policy_works(started_cluster):
try:
name = "test_new_policy_works"
engine = "MergeTree()"
start_over()
add_disk(node1, "jbod3", "/jbod3/")
node1.restart_clickhouse(kill=True)
time.sleep(2)
node1.query("""
CREATE TABLE {name} (
d UInt64
) ENGINE = {engine}
ORDER BY d
SETTINGS storage_policy='jbods_with_external'
""".format(name=name, engine=engine))
add_policy(node1, "cool_policy", {"volume1": ["jbod3"]})
node1.query("SYSTEM RELOAD CONFIG")
# Incompatible storage policy.
with pytest.raises(helpers.client.QueryRuntimeException):
node1.query("""
ALTER TABLE {name} MODIFY SETTING storage_policy='cool_policy'
""".format(name=name))
start_over()
add_disk(node1, "jbod3", "/jbod3/")
add_disk(node1, "jbod4", "/jbod4/")
add_policy(node1, "cool_policy", collections.OrderedDict(
[("volume1", ["jbod3"]), ("main", ["jbod1", "jbod2"]), ("external", ["external"])]))
node1.query("SYSTEM RELOAD CONFIG")
node1.query("""
ALTER TABLE {name} MODIFY SETTING storage_policy='cool_policy'
""".format(name=name))
node1.query("""
INSERT INTO TABLE {name} VALUES (1)
""".format(name=name))
assert {"jbod3"} == set(node1.query(
"SELECT disk_name FROM system.parts WHERE active = 1 AND table = '{name}'".format(name=name)).splitlines())
finally:
try:
node1.query("DROP TABLE IF EXISTS {}".format(name))
except:
""""""
def test_add_volume_to_policy(started_cluster):
try:
name = "test_add_volume_to_policy"
engine = "MergeTree()"
start_over()
add_disk(node1, "jbod3", "/jbod3/")
add_disk(node1, "jbod4", "/jbod4/")
add_policy(node1, "cool_policy", {"volume1": ["jbod3"]})
node1.restart_clickhouse(kill=True)
time.sleep(2)
node1.query("""
CREATE TABLE {name} (
d UInt64
) ENGINE = {engine}
ORDER BY d
SETTINGS storage_policy='jbods_with_external'
""".format(name=name, engine=engine))
start_over()
add_disk(node1, "jbod3", "/jbod3/")
add_disk(node1, "jbod4", "/jbod4/")
add_policy(node1, "cool_policy", collections.OrderedDict([("volume1", ["jbod3"]), ("volume2", ["jbod4"])]))
node1.query("SYSTEM RELOAD CONFIG")
volumes = set(node1.query(
"SELECT volume_name FROM system.storage_policies WHERE policy_name = 'cool_policy'").splitlines())
disks_sets = set(
node1.query("SELECT disks FROM system.storage_policies WHERE policy_name = 'cool_policy'").splitlines())
assert {"volume1", "volume2"} == volumes
assert {"['jbod3']", "['jbod4']"} == disks_sets
finally:
try:
node1.query("DROP TABLE IF EXISTS {}".format(name))
except:
""""""
def test_add_disk_to_policy(started_cluster):
try:
name = "test_add_disk_to_policy"
engine = "MergeTree()"
start_over()
add_disk(node1, "jbod3", "/jbod3/")
add_disk(node1, "jbod4", "/jbod4/")
add_policy(node1, "cool_policy", {"volume1": ["jbod3"]})
node1.restart_clickhouse(kill=True)
time.sleep(2)
node1.query("""
CREATE TABLE {name} (
d UInt64
) ENGINE = {engine}
ORDER BY d
SETTINGS storage_policy='jbods_with_external'
""".format(name=name, engine=engine))
start_over()
add_disk(node1, "jbod3", "/jbod3/")
add_disk(node1, "jbod4", "/jbod4/")
add_policy(node1, "cool_policy", {"volume1": ["jbod3", "jbod4"]})
node1.query("SYSTEM RELOAD CONFIG")
volumes = set(node1.query(
"SELECT volume_name FROM system.storage_policies WHERE policy_name = 'cool_policy'").splitlines())
disks_sets = set(
node1.query("SELECT disks FROM system.storage_policies WHERE policy_name = 'cool_policy'").splitlines())
assert {"volume1"} == volumes
assert {"['jbod3','jbod4']"} == disks_sets
finally:
try:
node1.query("DROP TABLE IF EXISTS {}".format(name))
except:
""""""
def test_remove_disk(started_cluster):
try:
name = "test_remove_disk"
engine = "MergeTree()"
start_over()
add_disk(node1, "remove_disk_jbod3", "/jbod3/")
node1.restart_clickhouse(kill=True)
time.sleep(2)
node1.query("""
CREATE TABLE {name} (
d UInt64
) ENGINE = {engine}
ORDER BY d
SETTINGS storage_policy='jbods_with_external'
""".format(name=name, engine=engine))
assert "remove_disk_jbod3" in set(node1.query("SELECT name FROM system.disks").splitlines())
start_over()
node1.query("SYSTEM RELOAD CONFIG")
assert "remove_disk_jbod3" in set(node1.query("SELECT name FROM system.disks").splitlines())
assert re.search("Warning.*remove_disk_jbod3", get_log(node1))
finally:
try:
node1.query("DROP TABLE IF EXISTS {}".format(name))
except:
""""""
def test_remove_policy(started_cluster):
try:
name = "test_remove_policy"
engine = "MergeTree()"
start_over()
add_disk(node1, "jbod3", "/jbod3/")
add_disk(node1, "jbod4", "/jbod4/")
add_policy(node1, "remove_policy_cool_policy", {"volume1": ["jbod3", "jbod4"]})
node1.restart_clickhouse(kill=True)
time.sleep(2)
node1.query("""
CREATE TABLE {name} (
d UInt64
) ENGINE = {engine}
ORDER BY d
SETTINGS storage_policy='jbods_with_external'
""".format(name=name, engine=engine))
assert "remove_policy_cool_policy" in set(
node1.query("SELECT policy_name FROM system.storage_policies").splitlines())
start_over()
add_disk(node1, "jbod3", "/jbod3/")
add_disk(node1, "jbod4", "/jbod4/")
node1.query("SYSTEM RELOAD CONFIG")
assert "remove_policy_cool_policy" in set(
node1.query("SELECT policy_name FROM system.storage_policies").splitlines())
assert re.search("Error.*remove_policy_cool_policy", get_log(node1))
finally:
try:
node1.query("DROP TABLE IF EXISTS {}".format(name))
except:
""""""
def test_remove_volume_from_policy(started_cluster):
try:
name = "test_remove_volume_from_policy"
engine = "MergeTree()"
start_over()
add_disk(node1, "jbod3", "/jbod3/")
add_disk(node1, "jbod4", "/jbod4/")
add_policy(node1, "test_remove_volume_from_policy_cool_policy",
collections.OrderedDict([("volume1", ["jbod3"]), ("volume2", ["jbod4"])]))
node1.restart_clickhouse(kill=True)
time.sleep(2)
node1.query("""
CREATE TABLE {name} (
d UInt64
) ENGINE = {engine}
ORDER BY d
SETTINGS storage_policy='jbods_with_external'
""".format(name=name, engine=engine))
volumes = set(node1.query(
"SELECT volume_name FROM system.storage_policies WHERE policy_name = 'test_remove_volume_from_policy_cool_policy'").splitlines())
disks_sets = set(node1.query(
"SELECT disks FROM system.storage_policies WHERE policy_name = 'test_remove_volume_from_policy_cool_policy'").splitlines())
assert {"volume1", "volume2"} == volumes
assert {"['jbod3']", "['jbod4']"} == disks_sets
start_over()
add_disk(node1, "jbod3", "/jbod3/")
add_disk(node1, "jbod4", "/jbod4/")
add_policy(node1, "cool_policy", {"volume1": ["jbod3"]})
node1.query("SYSTEM RELOAD CONFIG")
volumes = set(node1.query(
"SELECT volume_name FROM system.storage_policies WHERE policy_name = 'test_remove_volume_from_policy_cool_policy'").splitlines())
disks_sets = set(node1.query(
"SELECT disks FROM system.storage_policies WHERE policy_name = 'test_remove_volume_from_policy_cool_policy'").splitlines())
assert {"volume1", "volume2"} == volumes
assert {"['jbod3']", "['jbod4']"} == disks_sets
assert re.search("Error.*test_remove_volume_from_policy_cool_policy", get_log(node1))
finally:
try:
node1.query("DROP TABLE IF EXISTS {}".format(name))
except:
""""""
def test_remove_disk_from_policy(started_cluster):
try:
name = "test_remove_disk_from_policy"
engine = "MergeTree()"
start_over()
add_disk(node1, "jbod3", "/jbod3/")
add_disk(node1, "jbod4", "/jbod4/")
add_policy(node1, "test_remove_disk_from_policy_cool_policy", {"volume1": ["jbod3", "jbod4"]})
node1.restart_clickhouse(kill=True)
time.sleep(2)
node1.query("""
CREATE TABLE {name} (
d UInt64
) ENGINE = {engine}
ORDER BY d
SETTINGS storage_policy='jbods_with_external'
""".format(name=name, engine=engine))
volumes = set(node1.query(
"SELECT volume_name FROM system.storage_policies WHERE policy_name = 'test_remove_disk_from_policy_cool_policy'").splitlines())
disks_sets = set(node1.query(
"SELECT disks FROM system.storage_policies WHERE policy_name = 'test_remove_disk_from_policy_cool_policy'").splitlines())
assert {"volume1"} == volumes
assert {"['jbod3','jbod4']"} == disks_sets
start_over()
add_disk(node1, "jbod3", "/jbod3/")
add_disk(node1, "jbod4", "/jbod4/")
add_policy(node1, "cool_policy", {"volume1": ["jbod3"]})
node1.query("SYSTEM RELOAD CONFIG")
volumes = set(node1.query(
"SELECT volume_name FROM system.storage_policies WHERE policy_name = 'test_remove_disk_from_policy_cool_policy'").splitlines())
disks_sets = set(node1.query(
"SELECT disks FROM system.storage_policies WHERE policy_name = 'test_remove_disk_from_policy_cool_policy'").splitlines())
assert {"volume1"} == volumes
assert {"['jbod3','jbod4']"} == disks_sets
assert re.search("Error.*test_remove_disk_from_policy_cool_policy", get_log(node1))
finally:
try:
node1.query("DROP TABLE IF EXISTS {}".format(name))
except:
""""""
| 34.801802 | 141 | 0.594667 | 2,160 | 19,315 | 5.093519 | 0.075463 | 0.058171 | 0.03054 | 0.043174 | 0.855663 | 0.835303 | 0.819487 | 0.798128 | 0.784312 | 0.775768 | 0 | 0.024793 | 0.273311 | 19,315 | 554 | 142 | 34.864621 | 0.759048 | 0.00145 | 0 | 0.770115 | 0 | 0 | 0.370895 | 0.11867 | 0 | 0 | 0 | 0 | 0.075862 | 1 | 0.03908 | false | 0 | 0.022989 | 0.002299 | 0.064368 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1865dc9b1f48cafed76742822ffd5d08e0194b2c | 104 | py | Python | ostools/utils.py | bluepython508/filepath | 692cc61e86c6a0ed9c347cce7f7c04036a82b894 | [
"MIT"
] | null | null | null | ostools/utils.py | bluepython508/filepath | 692cc61e86c6a0ed9c347cce7f7c04036a82b894 | [
"MIT"
] | null | null | null | ostools/utils.py | bluepython508/filepath | 692cc61e86c6a0ed9c347cce7f7c04036a82b894 | [
"MIT"
] | null | null | null | import os
def abspath(path):
return os.path.abspath(os.path.expanduser(os.path.expandvars(path)))
| 17.333333 | 72 | 0.740385 | 16 | 104 | 4.8125 | 0.5 | 0.233766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 104 | 5 | 73 | 20.8 | 0.836957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
a1a35aee5429cf3ce19c50ef715dfefd83938c09 | 3,034 | py | Python | sparsechem/test_losses.py | jaak-s/SparseChem-1 | 121c8c71bbe7ccd2d461d0311d8d627e8c68484b | [
"MIT"
] | 33 | 2020-04-14T16:37:56.000Z | 2022-03-24T21:35:59.000Z | sparsechem/test_losses.py | jaak-s/SparseChem-1 | 121c8c71bbe7ccd2d461d0311d8d627e8c68484b | [
"MIT"
] | 1 | 2020-04-21T11:55:28.000Z | 2020-04-21T11:55:28.000Z | sparsechem/test_losses.py | jaak-s/SparseChem-1 | 121c8c71bbe7ccd2d461d0311d8d627e8c68484b | [
"MIT"
] | 10 | 2020-04-14T17:52:35.000Z | 2022-02-18T15:27:39.000Z | import sparsechem as sc
import torch
import numpy as np
import pandas as pd
def test_mse_censored_loss():
tar = np.array([2.5, 2.0, 1.0, 0.5, -0.5, -1.0], dtype=np.float32)
inp = np.array([1.5, 1.5, 1.5, 1.5, 1.5, 1.5], dtype=np.float32)
cen1 = np.ones(6, dtype=np.float32)
cen0 = np.zeros(6, dtype=np.float32)
cen_n1 = -np.ones(6, dtype=np.float32)
tar = np.concatenate([tar, tar, tar])
inp = np.concatenate([inp, inp, inp])
cen = np.concatenate([cen1, cen0, cen_n1])
losses = sc.censored_mse_loss_numpy(target=tar, input=inp, censor=cen)
exp = np.array([
1.0, 0.25, 0.0, 0.0, 0.0, 0.0,
1.0, 0.25, 0.25, 1.0, 4.0, 6.25,
0.0, 0.0, 0.25, 1.0, 4.0, 6.25,
], dtype=np.float32)
assert np.allclose(losses, exp)
tar = torch.FloatTensor([2.5, 2.0, 1.0, 0.5, -0.5, -1.0])
inp = torch.FloatTensor([1.5, 1.5, 1.5, 1.5, 1.5, 1.5])
cen1 = torch.ones(6)
cen0 = torch.zeros(6)
cen_n1 = -torch.ones(6)
tar = torch.cat([tar, tar, tar])
inp = torch.cat([inp, inp, inp])
cen = torch.cat([cen1, cen0, cen_n1])
losses = sc.censored_mse_loss(target=tar, input=inp, censor=cen)
exp = torch.FloatTensor([
1.0, 0.25, 0.0, 0.0, 0.0, 0.0,
1.0, 0.25, 0.25, 1.0, 4.0, 6.25,
0.0, 0.0, 0.25, 1.0, 4.0, 6.25,
])
assert np.allclose(losses.numpy(), exp.numpy())
def test_mae_censored_loss():
tar = np.array([2.5, 2.0, 1.0, 0.5, -0.5, -1.0], dtype=np.float32)
inp = np.array([1.5, 1.5, 1.5, 1.5, 1.5, 1.5], dtype=np.float32)
cen1 = np.ones(6, dtype=np.float32)
cen0 = np.zeros(6, dtype=np.float32)
cen_n1 = -np.ones(6, dtype=np.float32)
tar = np.concatenate([tar, tar, tar])
inp = np.concatenate([inp, inp, inp])
cen = np.concatenate([cen1, cen0, cen_n1])
losses = sc.censored_mae_loss_numpy(target=tar, input=inp, censor=cen)
exp = np.array([
1.0, 0.5, 0.0, 0.0, 0.0, 0.0,
1.0, 0.5, 0.5, 1.0, 2.0, 2.5,
0.0, 0.0, 0.5, 1.0, 2.0, 2.5,
], dtype=np.float32)
assert np.allclose(losses, exp)
tar = torch.FloatTensor([2.5, 2.0, 1.0, 0.5, -0.5, -1.0])
inp = torch.FloatTensor([1.5, 1.5, 1.5, 1.5, 1.5, 1.5])
cen1 = torch.ones(6)
cen0 = torch.zeros(6)
cen_n1 = -torch.ones(6)
tar = torch.cat([tar, tar, tar])
inp = torch.cat([inp, inp, inp])
cen = torch.cat([cen1, cen0, cen_n1])
losses = sc.censored_mae_loss(target=tar, input=inp, censor=cen)
exp = torch.FloatTensor([
1.0, 0.5, 0.0, 0.0, 0.0, 0.0,
1.0, 0.5, 0.5, 1.0, 2.0, 2.5,
0.0, 0.0, 0.5, 1.0, 2.0, 2.5,
])
assert np.allclose(losses.numpy(), exp.numpy())
def test_aggregate_results():
df = pd.DataFrame(np.array([
[1.0, 2.0, np.nan],
[5.0, np.nan, 1.0],
[7.0, 3.0, np.nan],
[6.5, 8.0, np.nan],
]))
weights = np.array([0.1, 1.0, 0.6, 0.2])
agg = sc.aggregate_results(df, weights)
exp = np.array([5.578947368421, 4.0, 1.0])
assert np.allclose(agg, exp)
| 32.978261 | 74 | 0.552736 | 598 | 3,034 | 2.759197 | 0.090301 | 0.069091 | 0.065455 | 0.067879 | 0.849697 | 0.849697 | 0.849697 | 0.849697 | 0.849697 | 0.791515 | 0 | 0.152155 | 0.235333 | 3,034 | 91 | 75 | 33.340659 | 0.559052 | 0 | 0 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064935 | 1 | 0.038961 | false | 0 | 0.051948 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a1dfc63f3e4b2afde9689ebeaa443fdb0f975cc3 | 39 | py | Python | src/lib/hashlib.py | DTenore/skulpt | 098d20acfb088d6db85535132c324b7ac2f2d212 | [
"MIT"
] | 2,671 | 2015-01-03T08:23:25.000Z | 2022-03-31T06:15:48.000Z | src/lib/hashlib.py | wakeupmuyunhe/skulpt | a8fb11a80fb6d7c016bab5dfe3712517a350b347 | [
"MIT"
] | 972 | 2015-01-05T08:11:00.000Z | 2022-03-29T13:47:15.000Z | src/lib/hashlib.py | wakeupmuyunhe/skulpt | a8fb11a80fb6d7c016bab5dfe3712517a350b347 | [
"MIT"
] | 845 | 2015-01-03T19:53:36.000Z | 2022-03-29T18:34:22.000Z | import _sk_fail; _sk_fail._("hashlib")
| 19.5 | 38 | 0.769231 | 6 | 39 | 4.166667 | 0.666667 | 0.48 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 39 | 1 | 39 | 39 | 0.694444 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
b8128ad383adeaf423ef026d4cb4af7d49488492 | 4,100 | py | Python | tests/test_geometry.py | BrianPugh/pyntcloud | 0169c0349cdb785391160b16aadf6cac4dc957f3 | [
"MIT"
] | 5 | 2019-11-22T15:23:33.000Z | 2021-03-15T10:33:54.000Z | tests/test_geometry.py | BrianPugh/pyntcloud | 0169c0349cdb785391160b16aadf6cac4dc957f3 | [
"MIT"
] | null | null | null | tests/test_geometry.py | BrianPugh/pyntcloud | 0169c0349cdb785391160b16aadf6cac4dc957f3 | [
"MIT"
] | 1 | 2019-05-02T17:46:46.000Z | 2019-05-02T17:46:46.000Z | import numpy as np
from pyntcloud.geometry.coord_systems import (
spherical_to_cartesian,
cartesian_to_spherical,
cylindrical_to_cartesian,
cartesian_to_cylindrical,
cylindrical_to_spherical,
spherical_to_cylindrical
)
def test_spherical_to_cartesian():
expected = np.array([[0.5, 0.5, 0.7071], [0.5, -0.5, -0.7071]])
data = np.array([[1, 45, 45], [1, -45, 135]], dtype=np.float32)
result = spherical_to_cartesian(data[:, 0], data[:, 1], data[:, 2])
assert np.all(np.isclose(result, expected))
data[:, 1:] = np.deg2rad(data[:, 1:])
result = spherical_to_cartesian(
data[:, 0], data[:, 1], data[:, 2], degrees=False)
assert np.all(np.isclose(result, expected))
def test_cartesian_to_spherical():
expected = np.array([[1, 45, 45], [1, -45, 135]], dtype=np.float32)
data = np.array([[0.5, 0.5, 0.7071], [0.5, -0.5, -0.7071]])
result = np.zeros_like(expected)
radial, azimuthal, polar = cartesian_to_spherical(data)
result[:, 0] = radial
result[:, 1] = azimuthal
result[:, 2] = polar
assert np.all(np.isclose(result, expected))
expected[:, 1:] = np.deg2rad(expected[:, 1:])
radial, azimuthal, polar = cartesian_to_spherical(data, degrees=False)
result[:, 0] = radial
result[:, 1] = azimuthal
result[:, 2] = polar
assert np.all(np.isclose(result, expected))
def test_cylindrical_to_cartesian():
expected = np.array([[0.5, 0.5, 0.7071], [0.5, -0.5, -0.7071]])
data = np.array(
[[0.7071, 45, 0.7071], [0.7071, -45, -0.7071]], dtype=np.float32)
result = cylindrical_to_cartesian(data[:, 0], data[:, 1], data[:, 2])
assert np.all(np.isclose(result, expected))
data[:, 1] = np.deg2rad(data[:, 1])
result = cylindrical_to_cartesian(
data[:, 0], data[:, 1], data[:, 2], degrees=False)
assert np.all(np.isclose(result, expected))
def test_cartesian_to_cylindrical():
expected = np.array(
[[0.7071, 45, 0.7071], [0.7071, -45, -0.7071]], dtype=np.float32)
data = np.array([[0.5, 0.5, 0.7071], [0.5, -0.5, -0.7071]])
result = np.zeros_like(expected)
radial, angular, height = cartesian_to_cylindrical(data)
result[:, 0] = radial
result[:, 1] = angular
result[:, 2] = height
assert np.all(np.isclose(result, expected))
expected[:, 1] = np.deg2rad(expected[:, 1])
radial, angular, height = cartesian_to_cylindrical(data, degrees=False)
result[:, 0] = radial
result[:, 1] = angular
result[:, 2] = height
assert np.all(np.isclose(result, expected))
def test_cylindrical_to_spherical():
expected = np.array([[1, 45, 45], [1, -45, 135]], dtype=np.float32)
data = np.array(
[[0.7071, 45, 0.7071], [0.7071, -45, -0.7071]], dtype=np.float32)
result = np.zeros_like(expected)
r, theta, phi = cylindrical_to_spherical(
data[:, 0], data[:, 1], data[:, 2])
result[:, 0] = r
result[:, 1] = theta
result[:, 2] = phi
assert np.all(np.isclose(result, expected))
expected[:, 1:] = np.deg2rad(expected[:, 1:])
data[:, 1] = np.deg2rad(data[:, 1])
r, theta, phi = cylindrical_to_spherical(
data[:, 0], data[:, 1], data[:, 2], degrees=False)
result[:, 0] = r
result[:, 1] = theta
result[:, 2] = phi
assert np.all(np.isclose(result, expected))
def test_spherical_to_cylindrical():
expected = np.array(
[[0.7071, 45, 0.7071], [0.7071, -45, -0.7071]], dtype=np.float32)
data = np.array([[1, 45, 45], [1, -45, 135]], dtype=np.float32)
result = np.zeros_like(expected)
ro, phi, z = spherical_to_cylindrical(data[:, 0], data[:, 1], data[:, 2])
result[:, 0] = ro
result[:, 1] = phi
result[:, 2] = z
assert np.all(np.isclose(result, expected))
expected[:, 1] = np.deg2rad(expected[:, 1])
data[:, 1:] = np.deg2rad(data[:, 1:])
ro, phi, z = spherical_to_cylindrical(
data[:, 0], data[:, 1], data[:, 2], degrees=False)
result[:, 0] = ro
result[:, 1] = phi
result[:, 2] = z
assert np.all(np.isclose(result, expected))
| 28.275862 | 77 | 0.59878 | 582 | 4,100 | 4.116838 | 0.079038 | 0.050083 | 0.020033 | 0.065109 | 0.913606 | 0.913606 | 0.913606 | 0.852671 | 0.823456 | 0.820534 | 0 | 0.092421 | 0.208293 | 4,100 | 144 | 78 | 28.472222 | 0.645718 | 0 | 0 | 0.729167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.0625 | false | 0 | 0.020833 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
62bd7939fe5d6e34511ce4d22cb40f04e449d192 | 12,673 | py | Python | bin/python/Simulate.py | narslab/project-groundwork | 1d6ade695712bdd6ce773da7726b6c78a352ccff | [
"MIT"
] | null | null | null | bin/python/Simulate.py | narslab/project-groundwork | 1d6ade695712bdd6ce773da7726b6c78a352ccff | [
"MIT"
] | null | null | null | bin/python/Simulate.py | narslab/project-groundwork | 1d6ade695712bdd6ce773da7726b6c78a352ccff | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 10 10:42:22 2021
@author: Mahsa
"""
###Import network.py which includes variables and line segment class defenistion
import network
import numpy as np
import pandas as pd
import random
data = network.model_inputs()
###
#run simulation for calculating cost elemnts of statusQuo strategy and assign a data frame to them.
def run_cost_simulation_statusQuo_strategy(data):
line_segment_array=[]
line_segment_length_array=[]
for i in range (data.parameter_dict['segment_number']):
segment=network.Line_segment(data)
line_segment_array.append(segment)
line_segment_length_array.append(segment.length)
np.random.seed(10101)
random.seed(10102)
df=pd.DataFrame()
for t in range (data.parameter_dict['analysis_years']):
for i in range (len(line_segment_array)):
line_segment_array[i].update_underground_status()
line_segment_array[i].update_age()
line_segment_array[i].add_replcost_intrest_rate()
line_segment_array[i].calculate_capex()
line_segment_array[i].calculate_opex()
line_segment_array[i].add_opex_interest_rate()
line_segment_array[i].calculate_total_infrastructure_cost()
line_segment_array[i].calculate_environmental_restoration()
line_segment_array[i].calculate_non_fatal_cost()
line_segment_array[i].calculate_fatal_cost()
line_segment_array[i].calculate_total_safety()
line_segment_array[i].calculate_total_cost()
df_new=pd.DataFrame({'year':[t],
'segment number': [i],
'length':[line_segment_array[i].length],
'age': [line_segment_array[i].age[t]],
'under': [line_segment_array[i].underground[t]],
'capex':[line_segment_array[i].capex[t]],
'opex':[line_segment_array[i].opex[t]],
'lifecycle infrastructure':[line_segment_array[i].total_infra[t]],
'environmental restoration':[line_segment_array[i].environmental_restoration[t]],
'non fatal':[line_segment_array[i].non_fatal[t]],
'fatal':[line_segment_array[i].fatal[t]],
'safety':[line_segment_array[i].total_safety[t]],
'total cost':[line_segment_array[i].total_cost[t]]})
df=df.append(df_new, ignore_index = True)
df.to_csv(r'../../results/outcomes/cost-simulation-output-statusQuo-strategy.csv', index = False)
return(df.set_index(["year","segment number"]))
#run simulation for calculating cost elemnts of undergrounding after lifespan strategy and assign a data frame to them.
def run_cost_simulation_under_after_lifespan_strategy(data):
line_segment_array=[]
line_segment_length_array=[]
for i in range (data.parameter_dict['segment_number']):
segment=network.Line_segment(data)
line_segment_array.append(segment)
line_segment_length_array.append(segment.length)
np.random.seed(10101)
random.seed(10102)
df=pd.DataFrame()
#underground_length=[]
for t in range (data.parameter_dict['analysis_years']):
for i in range (len(line_segment_array)):
convert_new=False
lifespan_exceeded=line_segment_array[i].update_age()
if lifespan_exceeded==True:
convert_new+=True
else:
if line_segment_array[i].underground[-1]==1:
convert_new=True
else:
convert_new=False
line_segment_array[i].update_underground_status(convert=convert_new)
line_segment_array[i].add_replcost_intrest_rate()
line_segment_array[i].calculate_capex()
line_segment_array[i].calculate_opex()
line_segment_array[i].add_opex_interest_rate()
line_segment_array[i].calculate_total_infrastructure_cost()
line_segment_array[i].calculate_environmental_restoration()
line_segment_array[i].calculate_non_fatal_cost()
line_segment_array[i].calculate_fatal_cost()
line_segment_array[i].calculate_total_safety()
line_segment_array[i].calculate_total_cost()
#line_segment_array[i].
df_new=pd.DataFrame({'year':[t],
'segment number': [i],
'length':[line_segment_array[i].length],
'age': [line_segment_array[i].age[t]],
'under': [line_segment_array[i].underground[t]],
'capex':[line_segment_array[i].capex[t]],
'opex':[line_segment_array[i].opex[t]],
'lifecycle infrastructure':[line_segment_array[i].total_infra[t]],
'environmental restoration':[line_segment_array[i].environmental_restoration[t]],
'non fatal':[line_segment_array[i].non_fatal[t]],
'fatal':[line_segment_array[i].fatal[t]],
'safety':[line_segment_array[i].total_safety[t]],
'total cost':[line_segment_array[i].total_cost[t]]})
df=df.append(df_new, ignore_index = True)
df.to_csv(r'../../results/outcomes/cost-simulation-output-undergrounding-strategy.csv', index = False)
return(df.set_index(["year","segment number"]))
def run_benefit_simulation_statusQuo_strategy(data):
line_segment_array=[]
line_segment_length_array=[]
for i in range (data.parameter_dict['segment_number']):
segment=network.Line_segment(data)
line_segment_array.append(segment)
line_segment_length_array.append(segment.length)
np.random.seed(10101)
random.seed(10102)
df=pd.DataFrame()
for t in range (data.parameter_dict['analysis_years']):
for i in range (len(line_segment_array)):
line_segment_array[i].update_underground_status()
line_segment_array[i].update_age()
line_segment_array[i].calculate_economic_benefits()
line_segment_array[i].calculate_aesthetic_benefits()
line_segment_array[i].add_aesthetic_benefits_interest_rate()
line_segment_array[i].calculate_aesthetic_losses()
line_segment_array[i].add_aesthetic_losses_interest_rate()
line_segment_array[i].calculate_economic_outage_losses()
line_segment_array[i].add_economic_outage_losses_interest_rate()
line_segment_array[i].calculate_total_losses()
df_new=pd.DataFrame({'year':[t],
'segment number': [i],
'length':[line_segment_array[i].length],
'age': [line_segment_array[i].age[t]],
'under': [line_segment_array[i].underground[t]],
'economic benefits':[line_segment_array[i].total_economic_benefits[t]],
'aesthetic benefits':[line_segment_array[i].total_inflated_aesthetic_benefits[t]],
'aesthetic losses':[line_segment_array[i].total_inflated_aesthetic_losses[t]],
'economic losses':[line_segment_array[i].total_inflated_economic_losses[t]],
'total losses':[line_segment_array[i].total_losses[t]]
})
df=df.append(df_new, ignore_index = True)
df.to_csv(r'../../results/outcomes/benefit-simulation-output-statusQuo-strategy.csv', index = False)
return(df.set_index(["year","segment number"]))
def run_benefit_simulation_under_after_lifespan_strategy(data):
line_segment_array=[]
line_segment_length_array=[]
for i in range (data.parameter_dict['segment_number']):
segment=network.Line_segment(data)
line_segment_array.append(segment)
line_segment_length_array.append(segment.length)
np.random.seed(10101)
random.seed(10102)
df=pd.DataFrame()
for t in range (data.parameter_dict['analysis_years']):
for i in range (len(line_segment_array)):
convert_new=False
lifespan_exceeded=line_segment_array[i].update_age()
if lifespan_exceeded==True:
convert_new+=True
else:
if line_segment_array[i].underground[-1]==1:
convert_new=True
else:
convert_new=False
line_segment_array[i].update_underground_status(convert=convert_new)
line_segment_array[i].calculate_economic_benefits()
line_segment_array[i].calculate_aesthetic_benefits()
line_segment_array[i].add_aesthetic_benefits_interest_rate()
line_segment_array[i].calculate_aesthetic_losses()
line_segment_array[i].add_aesthetic_losses_interest_rate()
line_segment_array[i].calculate_economic_outage_losses()
line_segment_array[i].add_economic_outage_losses_interest_rate()
line_segment_array[i].calculate_total_losses()
df_new=pd.DataFrame({'year':[t],
'segment number': [i],
'length':[line_segment_array[i].length],
'age': [line_segment_array[i].age[t]],
'under': [line_segment_array[i].underground[t]],
'economic benefits':[line_segment_array[i].total_economic_benefits[t]],
'aesthetic benefits':[line_segment_array[i].total_inflated_aesthetic_benefits[t]],
'aesthetic losses':[line_segment_array[i].total_inflated_aesthetic_losses[t]],
'economic losses':[line_segment_array[i].total_inflated_economic_losses[t]],
'total losses':[line_segment_array[i].total_losses[t]]
})
df=df.append(df_new, ignore_index = True)
df.to_csv(r'../../results/outcomes/benefit-simulation-output-under-strategy.csv', index = False)
return(df.set_index(["year","segment number"]))
# calculate total length of underground line on each year
def calculate_percentage_underground_UL_strategy(data):
line_segment_array=[]
line_segment_length_array=[]
for i in range (data.parameter_dict['segment_number']):
segment=network.Line_segment(data)
line_segment_array.append(segment)
line_segment_length_array.append(segment.length)
np.random.seed(10101)
random.seed(10102)
df=pd.DataFrame()
underground_length=[0]
underground_percentage=[]
total_length=0
for t in range (data.parameter_dict['analysis_years']-1):
underground_length.append(0)
for i in range (len(line_segment_array)):
total_length+=line_segment_array[i].length
if line_segment_array[i].underground[0]==1:
underground_length[0]+=line_segment_array[i].length
for t in range (data.parameter_dict['analysis_years']):
for i in range (len(line_segment_array)):
convert_new=False
lifespan_exceeded=line_segment_array[i].update_age()
if lifespan_exceeded==True:
convert_new+=True
else:
if line_segment_array[i].underground[-1]==1:
convert_new=True
else:
convert_new=False
line_segment_array[i].update_underground_status(convert=convert_new)
retire_age=line_segment_array[i].determine_first_retire()
if line_segment_array[i].underground[0]==0:
if t==retire_age:
underground_length[t]+=underground_length[t-1]+line_segment_array[i].length
else:
pass
df_new=pd.DataFrame({'year':[t],
'underground_length': underground_length[t]})
df=df.append(df_new, ignore_index = True)
df.to_csv(r'../../results/outcomes/under-length-undergrounding-strategy.csv', index = False)
return(df) | 53.92766 | 119 | 0.608301 | 1,447 | 12,673 | 4.979959 | 0.085695 | 0.19234 | 0.244241 | 0.22176 | 0.926728 | 0.918401 | 0.909104 | 0.881488 | 0.877324 | 0.871635 | 0 | 0.008727 | 0.285726 | 12,673 | 235 | 120 | 53.92766 | 0.78734 | 0.036771 | 0 | 0.860465 | 0 | 0 | 0.086143 | 0.028058 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0.004651 | 0.018605 | 0 | 0.04186 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
62ca9460cc459676ea6e676e91597e8cce123343 | 105 | py | Python | app/prepare.py | harshmall/stocks-app | caeba31ce029579ffb0f8b8f3135cf254752a7bd | [
"MIT"
] | 1 | 2018-06-14T03:04:27.000Z | 2018-06-14T03:04:27.000Z | app/prepare.py | harshmall/stocks-app | caeba31ce029579ffb0f8b8f3135cf254752a7bd | [
"MIT"
] | null | null | null | app/prepare.py | harshmall/stocks-app | caeba31ce029579ffb0f8b8f3135cf254752a7bd | [
"MIT"
] | null | null | null | from robo_adviser import write_prices_to_file
write_prices_to_file(prices=[], filename="db/prices.csv")
| 26.25 | 57 | 0.828571 | 17 | 105 | 4.705882 | 0.647059 | 0.275 | 0.325 | 0.425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 105 | 3 | 58 | 35 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0.12381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
c53b3c22a63ffdc53bb28d1e7a5079cf664b614c | 126 | py | Python | backend/src/main.py | aws-samples/aws-dog-no-dog | 975e23c4c3c4cd1c2eff477e0f05f7c8d6ecaeb2 | [
"MIT-0"
] | 16 | 2019-11-02T01:07:35.000Z | 2021-06-17T15:07:27.000Z | backend/src/main.py | aws-samples/aws-dog-no-dog | 975e23c4c3c4cd1c2eff477e0f05f7c8d6ecaeb2 | [
"MIT-0"
] | null | null | null | backend/src/main.py | aws-samples/aws-dog-no-dog | 975e23c4c3c4cd1c2eff477e0f05f7c8d6ecaeb2 | [
"MIT-0"
] | 13 | 2019-11-11T14:44:15.000Z | 2021-08-14T07:50:01.000Z | import helpers
def has_dog_handler(event, _):
# TODO: implement logic here
return helpers.response("Hello, world!")
| 18 | 44 | 0.714286 | 16 | 126 | 5.4375 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18254 | 126 | 6 | 45 | 21 | 0.84466 | 0.206349 | 0 | 0 | 0 | 0 | 0.132653 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
9aa16ac7e8a5a6b3a0ba9c3a931ad88ee2bebfa2 | 4,332 | py | Python | tests/integration/help_test.py | candy-kingdom/mints | e68a2351cf3ff6823e978bc6a4b740bd2a974ca3 | [
"MIT"
] | 4 | 2020-05-09T11:01:32.000Z | 2020-06-03T14:44:06.000Z | tests/integration/help_test.py | candy-kingdom/cli | e68a2351cf3ff6823e978bc6a4b740bd2a974ca3 | [
"MIT"
] | 43 | 2020-01-27T21:14:16.000Z | 2020-06-18T17:57:20.000Z | tests/integration/help_test.py | candy-kingdom/mints | e68a2351cf3ff6823e978bc6a4b740bd2a974ca3 | [
"MIT"
] | null | null | null | """Various tests for `mints.command.Command.help`."""
import pytest
from mints.args.arg import Arg
from mints.args.flag import Flag
from mints.cli import cli, CLI
from mints.command import Command
from tests.execution import execute, redirect_stdout
@pytest.fixture(autouse=True)
def reset():
# Reset `cli` before each test
# as if we have just imported it.
globals()['cli'] = CLI()
def test_default_help_without_description():
# Arrange.
@cli
def main():
pass
# Act.
_, out = execute(cli, '--help', redirect_stdout)
# Assert.
assert out.startswith('usage: main')
def test_default_help_with_description():
# Arrange.
@cli
def main():
"""Here is your help."""
# Act.
_, out = execute(cli, '--help', redirect_stdout)
# Assert.
assert 'Here is your help.' in out
def test_default_help_with_one_argument():
# Arrange.
@cli
def main(x: Arg('description of `x`')):
return x
# Act.
_, out = execute(cli, '--help', redirect_stdout)
# Assert.
assert 'description of `x`' in out
def test_default_help_with_two_arguments():
# Arrange.
@cli
def main(x: Arg('description of `x`'),
y: Arg('description of `y`')):
return x + y
# Act.
_, out = execute(cli, '--help', redirect_stdout)
# Assert.
assert 'description of `x`' in out
assert 'description of `y`' in out
def test_default_help_with_one_flag():
# Arrange.
@cli
def main(x: Flag('description of `x`')):
return x
# Act.
_, out = execute(cli, '--help', redirect_stdout)
# Assert.
assert 'description of `x`' in out
def test_default_help_with_two_flags():
# Arrange.
@cli
def main(x: Flag('description of `x`'),
y: Flag('description of `y`')):
return x + y
# Act.
_, out = execute(cli, '--help', redirect_stdout)
# Assert.
assert 'description of `x`' in out
assert 'description of `y`' in out
def test_default_help_with_one_typed_argument():
# Arrange.
@cli
def main(x: Arg[int]('description of `x`')):
return x
# Act.
_, out = execute(cli, '--help', redirect_stdout)
# Assert.
assert 'description of `x`' in out
def test_default_help_with_two_typed_arguments():
# Arrange.
@cli
def main(x: Arg[int]('description of `x`'),
y: Arg[int]('description of `y`')):
return x + y
# Act.
_, out = execute(cli, '--help', redirect_stdout)
# Assert.
assert 'description of `x`' in out
assert 'description of `y`' in out
def test_default_help_for_subcommand():
# Arrange.
@cli
def main():
pass
@main.command
def sub():
pass
# Act.
_, out_a = execute(cli, '--help', redirect_stdout)
_, out_b = execute(cli, 'sub --help', redirect_stdout)
# Assert.
assert out_a.startswith('usage: main')
assert out_b.startswith('usage: main sub')
def test_custom_help():
# Arrange.
@cli
def main():
pass
@main.help
def help(x: Command):
return x.name
@main.command
def sub():
pass
# Act.
_, out_a = execute(cli, '--help', redirect_stdout)
_, out_b = execute(cli, 'sub --help', redirect_stdout)
# Assert.
assert out_a == 'main'
assert out_b.startswith('usage: main sub')
def test_custom_help_for_subcommand():
# Arrange.
@cli
def main():
pass
@main.command
def sub():
pass
@sub.help
def help(command: Command):
return command.name
# Act.
_, out_a = execute(cli, '--help', redirect_stdout)
_, out_b = execute(cli, 'sub --help', redirect_stdout)
# Assert.
assert out_a.startswith('usage: main')
assert out_b == 'sub'
def test_help_for_argument_with_whitespace_description():
# Arrange.
@cli
def main(x: Arg(' ')):
pass
# Act.
_, out = execute(cli, '--help', redirect_stdout)
# Assert.
assert out.startswith('usage: main')
def test_help_for_argument_with_newline_description():
# Arrange.
@cli
def main(x: Arg('\n\n\n\n')):
pass
# Act.
_, out = execute(cli, '--help', redirect_stdout)
# Assert.
assert out.startswith('usage: main')
| 19.780822 | 58 | 0.59603 | 555 | 4,332 | 4.459459 | 0.124324 | 0.094545 | 0.116364 | 0.089293 | 0.810101 | 0.778182 | 0.749899 | 0.710303 | 0.698182 | 0.633535 | 0 | 0 | 0.268698 | 4,332 | 218 | 59 | 19.87156 | 0.78125 | 0.095568 | 0 | 0.628319 | 0 | 0 | 0.143264 | 0 | 0 | 0 | 0 | 0 | 0.168142 | 1 | 0.283186 | false | 0.079646 | 0.053097 | 0.070796 | 0.40708 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
9ac1e1eb4ba84f233751ba56e261e874f5e1d58a | 420 | py | Python | fltk/synthpriv/synthetic/models/Private_PGM/mbi/__init__.py | tudelft-eemcs-dml/fltk-testbed-gr-1 | bbe01d5d82a447ad8b6d9e3f350f831922a8b8b7 | [
"BSD-2-Clause"
] | null | null | null | fltk/synthpriv/synthetic/models/Private_PGM/mbi/__init__.py | tudelft-eemcs-dml/fltk-testbed-gr-1 | bbe01d5d82a447ad8b6d9e3f350f831922a8b8b7 | [
"BSD-2-Clause"
] | null | null | null | fltk/synthpriv/synthetic/models/Private_PGM/mbi/__init__.py | tudelft-eemcs-dml/fltk-testbed-gr-1 | bbe01d5d82a447ad8b6d9e3f350f831922a8b8b7 | [
"BSD-2-Clause"
] | null | null | null | # This source code is licensed under the license found in the
# LICENSE file in the {root}/models/Private_PGM/ directory of this source tree.
from models.Private_PGM.mbi.domain import Domain
from models.Private_PGM.mbi.dataset import Dataset
from models.Private_PGM.mbi.factor import Factor
from models.Private_PGM.mbi.graphical_model import GraphicalModel
from models.Private_PGM.mbi.inference import FactoredInference
| 52.5 | 79 | 0.842857 | 65 | 420 | 5.338462 | 0.446154 | 0.224784 | 0.276657 | 0.288184 | 0.331412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102381 | 420 | 7 | 80 | 60 | 0.920424 | 0.32619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 7 |
9ad86bb4e86ca1fa3688c280c6d3dfd131ef7f15 | 4,896 | py | Python | models/transform_nets.py | jtchilders/atlas-pointnet-tf | f53774349e8468e392de63376dfd369cdf11dd42 | [
"BSD-3-Clause"
] | null | null | null | models/transform_nets.py | jtchilders/atlas-pointnet-tf | f53774349e8468e392de63376dfd369cdf11dd42 | [
"BSD-3-Clause"
] | null | null | null | models/transform_nets.py | jtchilders/atlas-pointnet-tf | f53774349e8468e392de63376dfd369cdf11dd42 | [
"BSD-3-Clause"
] | null | null | null | import tensorflow as tf
import numpy as np
import models.tf_util as tf_util
def input_transform_net(point_cloud, is_training, bn_decay=None, K=3, dtype=tf.float32, bn=False):
""" Input (XYZ) Transform Net, input is BxNx3 gray image
Return:
Transformation matrix of size 3xK """
batch_size = point_cloud.get_shape()[0].value
num_point = point_cloud.get_shape()[1].value
num_feature = point_cloud.get_shape()[2].value
input_image = tf.expand_dims(point_cloud, -1)
net = tf_util.conv2d(input_image, 64, [1,K],
padding='VALID', stride=[1,1],
bn=bn, is_training=is_training,
scope='tconv1', bn_decay=bn_decay,
dtype=dtype)
net = tf_util.conv2d(net, 128, [1,1],
padding='VALID', stride=[1,1],
bn=bn, is_training=is_training,
scope='tconv2', bn_decay=bn_decay,
dtype=dtype)
net = tf_util.conv2d(net, 1024, [1,1],
padding='VALID', stride=[1,1],
bn=bn, is_training=is_training,
scope='tconv3', bn_decay=bn_decay,
dtype=dtype)
net = tf_util.max_pool2d(net, [num_point,1],
padding='VALID', scope='tmaxpool')
net = tf.reshape(net, [batch_size, -1])
net = tf_util.fully_connected(net, 512, bn=bn, is_training=is_training,
scope='tfc1', bn_decay=bn_decay,
dtype=dtype)
net = tf_util.fully_connected(net, 256, bn=bn, is_training=is_training,
scope='tfc2', bn_decay=bn_decay,
dtype=dtype)
with tf.compat.v1.variable_scope('transform_XYZ'):
assert K == num_feature,f'K={K} num_feature={num_feature}'
weights = tf.compat.v1.get_variable('weights', [256, K * K],
initializer=tf.constant_initializer(0.0),
dtype=dtype)
biases = tf.compat.v1.get_variable('biases', [K * K],
initializer=tf.constant_initializer(0.0),
dtype=dtype)
biases = biases + tf.constant(np.eye(K).flatten(), dtype=dtype)
transform = tf.matmul(net, weights)
transform = tf.nn.bias_add(transform, biases)
transform = tf.reshape(transform, [batch_size, K, K])
return transform
def feature_transform_net(inputs, is_training, bn_decay=None, K=64, dtype=tf.float32, bn=False):
""" Feature Transform Net, input is BxNx1xK
Return:
Transformation matrix of size KxK """
batch_size = inputs.get_shape()[0].value
num_point = inputs.get_shape()[1].value
num_feature = inputs.get_shape()[2].value
net = tf_util.conv2d(inputs, 64, [1,1],
padding='VALID', stride=[1,1],
bn=bn, is_training=is_training,
scope='tconv1', bn_decay=bn_decay,
dtype=dtype)
net = tf_util.conv2d(net, 128, [1,1],
padding='VALID', stride=[1,1],
bn=bn, is_training=is_training,
scope='tconv2', bn_decay=bn_decay,
dtype=dtype)
net = tf_util.conv2d(net, 1024, [1,1],
padding='VALID', stride=[1,1],
bn=bn, is_training=is_training,
scope='tconv3', bn_decay=bn_decay,
dtype=dtype)
net = tf_util.max_pool2d(net, [num_point,1],
padding='VALID', scope='tmaxpool')
net = tf.reshape(net, [batch_size, -1])
net = tf_util.fully_connected(net, 512, bn=bn, is_training=is_training,
scope='tfc1', bn_decay=bn_decay,
dtype=dtype)
net = tf_util.fully_connected(net, 256, bn=bn, is_training=is_training,
scope='tfc2', bn_decay=bn_decay,
dtype=dtype)
with tf.compat.v1.variable_scope('transform_feat') as sc:
weights = tf.compat.v1.get_variable('weights', [256, K * K],
initializer=tf.constant_initializer(0.0),
dtype=dtype)
biases = tf.compat.v1.get_variable('biases', [K * K],
initializer=tf.constant_initializer(0.0),
dtype=dtype)
biases = biases + tf.constant(np.eye(K).flatten(), dtype=dtype)
transform = tf.matmul(net, weights)
transform = tf.nn.bias_add(transform, biases)
transform = tf.reshape(transform, [batch_size, K, K])
return transform
| 47.076923 | 98 | 0.526348 | 580 | 4,896 | 4.251724 | 0.15 | 0.089213 | 0.043796 | 0.056772 | 0.824818 | 0.781833 | 0.726683 | 0.726683 | 0.726683 | 0.726683 | 0 | 0.035635 | 0.358047 | 4,896 | 103 | 99 | 47.533981 | 0.748966 | 0.037786 | 0 | 0.8 | 0 | 0 | 0.041372 | 0.005359 | 0 | 0 | 0 | 0 | 0.011765 | 1 | 0.023529 | false | 0 | 0.035294 | 0 | 0.082353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b132799315f1521f252469d2d36a6c002d39eea3 | 147 | py | Python | unit_test.py | kodtanactc/kodpersonal | 25416dd492e4bcf60510e7744a88c740b3b55c72 | [
"Apache-2.0"
] | null | null | null | unit_test.py | kodtanactc/kodpersonal | 25416dd492e4bcf60510e7744a88c740b3b55c72 | [
"Apache-2.0"
] | null | null | null | unit_test.py | kodtanactc/kodpersonal | 25416dd492e4bcf60510e7744a88c740b3b55c72 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import pytest
def test_init():
assert get_redis_data.RedisHost == "redis-13849.c9.us-east-1-4.ec2.cloud.redislabs.com"
| 29.4 | 91 | 0.70068 | 24 | 147 | 4.166667 | 0.958333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.115646 | 147 | 4 | 92 | 36.75 | 0.692308 | 0.142857 | 0 | 0 | 0 | 0.333333 | 0.403226 | 0.403226 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
491c6e10b8eaee9326bcb179493e6936de70e08b | 15,782 | py | Python | vk_pub.py | quieneemi/vk_photos | db349e7cdf6dfa2c0e9fb8c074f8ebb4adf3a520 | [
"MIT"
] | 1 | 2019-07-30T04:08:22.000Z | 2019-07-30T04:08:22.000Z | vk_pub.py | quieneemi/vk_photos | db349e7cdf6dfa2c0e9fb8c074f8ebb4adf3a520 | [
"MIT"
] | null | null | null | vk_pub.py | quieneemi/vk_photos | db349e7cdf6dfa2c0e9fb8c074f8ebb4adf3a520 | [
"MIT"
] | null | null | null | import requests
import webbrowser
import json
import urllib.request
import os
import datetime
api = 'https://api.vk.com/method/'
vid = input('Enter ID: ')
print('\n')
utoken = '5fe08c3c5fe08c3c5fe08c3c335f8b6e9c55fe05fe08c3c02d9c2058d9fb1fb8caa8ee2'
response = requests.get(api+'photos.getAlbums?owner_id='+vid+'&v=5.52&access_token='+utoken)
result = response.text
resp = json.loads(result)
print('\n')
ac = resp['response']['count']
for i in range(ac):
at = resp['response']['items'][i]['title']
print(i+1)
print(' - ')
print(at)
print('\n')
choise = int(input('Choose an album: '))
cc = choise - 1
choosen = str(resp['response']['items'][cc]['id'])
print('\n')
for a in range(ac):
iddd = str(resp['response']['items'][a]['id'])
if iddd == choosen:
albumtitle = str(resp['response']['items'][a]['title'])
now = datetime.datetime.now()
microsecond = str(now.microsecond)
usrnm = os.getlogin()
dir = 'C:/Users/'+usrnm+'/Downloads/vk_app/'+albumtitle+' ('+microsecond+')'
try:
os.mkdir('C:/Users/'+usrnm+'/Downloads/vk_app/')
os.mkdir(dir)
except:
os.mkdir(dir)
photoscount = requests.get(api+'photos.get?owner_id='+vid+'&album_id='+choosen+'&v=5.52&access_token='+utoken)
phtcount = photoscount.text
phtcnt = json.loads(phtcount)
imgscount = phtcnt['response']['count']
imagescount = str(imgscount)
photos = requests.get(api+'photos.get?owner_id='+vid+'&album_id='+choosen+'&photo_sizes=src&count='+imagescount+'&v=5.52&access_token='+utoken)
images = photos.text
pht = json.loads(images)
imgs = pht['response']['count']
for x in range(imgs):
try:
tptp = 'w'
if pht['response']['items'][x]['sizes'][1]['type'] == tptp:
win = 1
elif pht['response']['items'][x]['sizes'][2]['type'] == tptp:
win = 2
elif pht['response']['items'][x]['sizes'][3]['type'] == tptp:
win = 3
elif pht['response']['items'][x]['sizes'][4]['type'] == tptp:
win = 4
elif pht['response']['items'][x]['sizes'][5]['type'] == tptp:
win = 5
elif pht['response']['items'][x]['sizes'][6]['type'] == tptp:
win = 6
elif pht['response']['items'][x]['sizes'][7]['type'] == tptp:
win = 7
elif pht['response']['items'][x]['sizes'][8]['type'] == tptp:
win = 8
elif pht['response']['items'][x]['sizes'][9]['type'] == tptp:
win = 9
elif pht['response']['items'][x]['sizes'][0]['type'] == tptp:
win = 0
except:
try:
tptp = 'z'
if pht['response']['items'][x]['sizes'][1]['type'] == tptp:
win = 1
elif pht['response']['items'][x]['sizes'][2]['type'] == tptp:
win = 2
elif pht['response']['items'][x]['sizes'][3]['type'] == tptp:
win = 3
elif pht['response']['items'][x]['sizes'][4]['type'] == tptp:
win = 4
elif pht['response']['items'][x]['sizes'][5]['type'] == tptp:
win = 5
elif pht['response']['items'][x]['sizes'][6]['type'] == tptp:
win = 6
elif pht['response']['items'][x]['sizes'][7]['type'] == tptp:
win = 7
elif pht['response']['items'][x]['sizes'][8]['type'] == tptp:
win = 8
elif pht['response']['items'][x]['sizes'][9]['type'] == tptp:
win = 9
elif pht['response']['items'][x]['sizes'][0]['type'] == tptp:
win = 0
except:
try:
tptp = 'y'
if pht['response']['items'][x]['sizes'][1]['type'] == tptp:
win = 1
elif pht['response']['items'][x]['sizes'][2]['type'] == tptp:
win = 2
elif pht['response']['items'][x]['sizes'][3]['type'] == tptp:
win = 3
elif pht['response']['items'][x]['sizes'][4]['type'] == tptp:
win = 4
elif pht['response']['items'][x]['sizes'][5]['type'] == tptp:
win = 5
elif pht['response']['items'][x]['sizes'][6]['type'] == tptp:
win = 6
elif pht['response']['items'][x]['sizes'][7]['type'] == tptp:
win = 7
elif pht['response']['items'][x]['sizes'][8]['type'] == tptp:
win = 8
elif pht['response']['items'][x]['sizes'][9]['type'] == tptp:
win = 9
elif pht['response']['items'][x]['sizes'][0]['type'] == tptp:
win = 0
except:
try:
tptp = 'x'
if pht['response']['items'][x]['sizes'][1]['type'] == tptp:
win = 1
elif pht['response']['items'][x]['sizes'][2]['type'] == tptp:
win = 2
elif pht['response']['items'][x]['sizes'][3]['type'] == tptp:
win = 3
elif pht['response']['items'][x]['sizes'][4]['type'] == tptp:
win = 4
elif pht['response']['items'][x]['sizes'][5]['type'] == tptp:
win = 5
elif pht['response']['items'][x]['sizes'][6]['type'] == tptp:
win = 6
elif pht['response']['items'][x]['sizes'][7]['type'] == tptp:
win = 7
elif pht['response']['items'][x]['sizes'][8]['type'] == tptp:
win = 8
elif pht['response']['items'][x]['sizes'][9]['type'] == tptp:
win = 9
elif pht['response']['items'][x]['sizes'][0]['type'] == tptp:
win = 0
except:
try:
tptp = 'm'
if pht['response']['items'][x]['sizes'][1]['type'] == tptp:
win = 1
elif pht['response']['items'][x]['sizes'][2]['type'] == tptp:
win = 2
elif pht['response']['items'][x]['sizes'][3]['type'] == tptp:
win = 3
elif pht['response']['items'][x]['sizes'][4]['type'] == tptp:
win = 4
elif pht['response']['items'][x]['sizes'][5]['type'] == tptp:
win = 5
elif pht['response']['items'][x]['sizes'][6]['type'] == tptp:
win = 6
elif pht['response']['items'][x]['sizes'][7]['type'] == tptp:
win = 7
elif pht['response']['items'][x]['sizes'][8]['type'] == tptp:
win = 8
elif pht['response']['items'][x]['sizes'][9]['type'] == tptp:
win = 9
elif pht['response']['items'][x]['sizes'][0]['type'] == tptp:
win = 0
except:
try:
tptp = 's'
if pht['response']['items'][x]['sizes'][1]['type'] == tptp:
win = 1
elif pht['response']['items'][x]['sizes'][2]['type'] == tptp:
win = 2
elif pht['response']['items'][x]['sizes'][3]['type'] == tptp:
win = 3
elif pht['response']['items'][x]['sizes'][4]['type'] == tptp:
win = 4
elif pht['response']['items'][x]['sizes'][5]['type'] == tptp:
win = 5
elif pht['response']['items'][x]['sizes'][6]['type'] == tptp:
win = 6
elif pht['response']['items'][x]['sizes'][7]['type'] == tptp:
win = 7
elif pht['response']['items'][x]['sizes'][8]['type'] == tptp:
win = 8
elif pht['response']['items'][x]['sizes'][9]['type'] == tptp:
win = 9
elif pht['response']['items'][x]['sizes'][0]['type'] == tptp:
win = 0
except:
try:
tptp = 'r'
if pht['response']['items'][x]['sizes'][1]['type'] == tptp:
win = 1
elif pht['response']['items'][x]['sizes'][2]['type'] == tptp:
win = 2
elif pht['response']['items'][x]['sizes'][3]['type'] == tptp:
win = 3
elif pht['response']['items'][x]['sizes'][4]['type'] == tptp:
win = 4
elif pht['response']['items'][x]['sizes'][5]['type'] == tptp:
win = 5
elif pht['response']['items'][x]['sizes'][6]['type'] == tptp:
win = 6
elif pht['response']['items'][x]['sizes'][7]['type'] == tptp:
win = 7
elif pht['response']['items'][x]['sizes'][8]['type'] == tptp:
win = 8
elif pht['response']['items'][x]['sizes'][9]['type'] == tptp:
win = 9
elif pht['response']['items'][x]['sizes'][0]['type'] == tptp:
win = 0
except:
try:
tptp = 'q'
if pht['response']['items'][x]['sizes'][1]['type'] == tptp:
win = 1
elif pht['response']['items'][x]['sizes'][2]['type'] == tptp:
win = 2
elif pht['response']['items'][x]['sizes'][3]['type'] == tptp:
win = 3
elif pht['response']['items'][x]['sizes'][4]['type'] == tptp:
win = 4
elif pht['response']['items'][x]['sizes'][5]['type'] == tptp:
win = 5
elif pht['response']['items'][x]['sizes'][6]['type'] == tptp:
win = 6
elif pht['response']['items'][x]['sizes'][7]['type'] == tptp:
win = 7
elif pht['response']['items'][x]['sizes'][8]['type'] == tptp:
win = 8
elif pht['response']['items'][x]['sizes'][9]['type'] == tptp:
win = 9
elif pht['response']['items'][x]['sizes'][0]['type'] == tptp:
win = 0
except:
try:
tptp = 'p'
if pht['response']['items'][x]['sizes'][1]['type'] == tptp:
win = 1
elif pht['response']['items'][x]['sizes'][2]['type'] == tptp:
win = 2
elif pht['response']['items'][x]['sizes'][3]['type'] == tptp:
win = 3
elif pht['response']['items'][x]['sizes'][4]['type'] == tptp:
win = 4
elif pht['response']['items'][x]['sizes'][5]['type'] == tptp:
win = 5
elif pht['response']['items'][x]['sizes'][6]['type'] == tptp:
win = 6
elif pht['response']['items'][x]['sizes'][7]['type'] == tptp:
win = 7
elif pht['response']['items'][x]['sizes'][8]['type'] == tptp:
win = 8
elif pht['response']['items'][x]['sizes'][9]['type'] == tptp:
win = 9
elif pht['response']['items'][x]['sizes'][0]['type'] == tptp:
win = 0
except:
try:
tptp = 'o'
if pht['response']['items'][x]['sizes'][1]['type'] == tptp:
win = 1
elif pht['response']['items'][x]['sizes'][2]['type'] == tptp:
win = 2
elif pht['response']['items'][x]['sizes'][3]['type'] == tptp:
win = 3
elif pht['response']['items'][x]['sizes'][4]['type'] == tptp:
win = 4
elif pht['response']['items'][x]['sizes'][5]['type'] == tptp:
win = 5
elif pht['response']['items'][x]['sizes'][6]['type'] == tptp:
win = 6
elif pht['response']['items'][x]['sizes'][7]['type'] == tptp:
win = 7
elif pht['response']['items'][x]['sizes'][8]['type'] == tptp:
win = 8
elif pht['response']['items'][x]['sizes'][9]['type'] == tptp:
win = 9
elif pht['response']['items'][x]['sizes'][0]['type'] == tptp:
win = 0
except:
print('Error')
print('\n')
try:
src = pht['response']['items'][x]['sizes'][win]['src']
name = str(x)
urllib.request.urlretrieve(src, dir+'/'+name+'.jpg')
print('Downloaded - '+name+'.jpeg')
except:
print('Unknown Error')
print('\n')
| 53.317568 | 144 | 0.333101 | 1,394 | 15,782 | 3.763271 | 0.078192 | 0.260198 | 0.308044 | 0.327297 | 0.814716 | 0.802516 | 0.780976 | 0.780976 | 0.780976 | 0.780976 | 0 | 0.030617 | 0.486757 | 15,782 | 295 | 145 | 53.498305 | 0.617037 | 0 | 0 | 0.805556 | 0 | 0 | 0.177257 | 0.011817 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020833 | 0 | 0.020833 | 0.041667 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
496f7b5e12146a0193a9d91373a490efca9e92ac | 123 | py | Python | build/lib.linux-x86_64-2.7/error_generator/strategies/switch_value/__init__.py | BigDaMa/error-generator | 7d8949fc8fb00b6285c7c220dbda7451dc152e44 | [
"Apache-2.0"
] | 2 | 2018-11-11T07:52:51.000Z | 2019-06-19T05:44:55.000Z | build/lib.linux-x86_64-2.7/error_generator/strategies/switch_value/__init__.py | BigDaMa/error-generator | 7d8949fc8fb00b6285c7c220dbda7451dc152e44 | [
"Apache-2.0"
] | 5 | 2018-07-20T15:08:23.000Z | 2018-11-21T13:18:01.000Z | error_generator/strategies/switch_value/__init__.py | BigDaMa/error-generator | 7d8949fc8fb00b6285c7c220dbda7451dc152e44 | [
"Apache-2.0"
] | 1 | 2020-11-25T15:16:16.000Z | 2020-11-25T15:16:16.000Z | from .random_active_domain import Random_Active_Domain
from .Similar_based_active_domain import Similar_Based_Active_Domain | 61.5 | 68 | 0.926829 | 18 | 123 | 5.777778 | 0.388889 | 0.461538 | 0.346154 | 0.461538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056911 | 123 | 2 | 68 | 61.5 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
4971fe9f358a0f4f6c0611bbd15b791fa48c92ad | 5,658 | py | Python | heap.py | jakerockland/searching-and-sorting | 5c5ed79a2c43c3c3a44a78ce02018531e9de3f30 | [
"MIT"
] | 1 | 2016-02-03T15:50:42.000Z | 2016-02-03T15:50:42.000Z | heap.py | grahamplace/data-structure-essentials | 5c5ed79a2c43c3c3a44a78ce02018531e9de3f30 | [
"MIT"
] | null | null | null | heap.py | grahamplace/data-structure-essentials | 5c5ed79a2c43c3c3a44a78ce02018531e9de3f30 | [
"MIT"
] | 1 | 2018-04-06T17:56:19.000Z | 2018-04-06T17:56:19.000Z | # Implementation of min and max heap data structures
# By: Jacob Rockland
# implementation of heap sort returning list in accending order, O(n*log(n))
def heap_sort_accending(items):
heap = MinHeap(items)
sorted = [heap.extract_min() for i in range(heap.size)]
return sorted
# implementation of heap sort returning list in decending order, O(n*log(n))
def heap_sort_decending(items):
heap = MaxHeap(items)
sorted = [heap.extract_max() for i in range(heap.size)]
return sorted
# implementation of min-heap
class MinHeap(object):
# initialize heap
def __init__(self, items = None):
if items is None:
self.heap_list = [None]
self.size = 0
else:
self.build_heap(items)
# returns string representation of heap
def __repr__(self):
temp = self.heap_list[1:]
return repr(temp)
# builds a heap from a given list of items, O(n)
def build_heap(self, items):
index = len(items) // 2
self.size = len(items)
self.heap_list = [None] + items[:]
while index > 0:
self.percolate_down(index)
index -= 1
# returns minimum item in heap, O(1)
def get_min(self):
if self.size > 0:
return self.heap_list[1]
else:
return None
# inserts a data item into the tree, O(log(n))
def insert(self, data):
self.heap_list.append(data)
self.size += 1
self.percolate_up(self.size)
# percolates item in heap list upwards
def percolate_up(self, index):
# percolates upwards so long as current node is smaller than parent
while index // 2 > 0:
if self.heap_list[index] < self.heap_list[index // 2]:
temp = self.heap_list[index // 2]
self.heap_list[index // 2] = self.heap_list[index]
self.heap_list[index] = temp
index = index // 2
# extract the minimum item in heap, O(log(n))
def extract_min(self):
if self.size > 0:
min_val = self.heap_list[1]
self.heap_list[1] = self.heap_list[self.size]
self.size -= 1
self.heap_list.pop()
self.percolate_down(1)
return min_val
else:
return None
# percolates item in heap list downwards
def percolate_down(self, index):
# percolates downwards so long as current node is greater than child
while index * 2 <= self.size:
min = self.min_child(index)
if self.heap_list[index] > self.heap_list[min]:
temp = self.heap_list[index]
self.heap_list[index] = self.heap_list[min]
self.heap_list[min] = temp
index = min
# returns index of smallest child of subtree
def min_child(self, index):
if index * 2 + 1 > self.size:
return index * 2
elif self.heap_list[index * 2] < self.heap_list[index * 2 + 1]:
return index * 2
else:
return index * 2 + 1
# implementation of max-heap
class MaxHeap(object):
# initialize heap
def __init__(self, items = None):
if items is None:
self.heap_list = [None]
self.size = 0
else:
self.build_heap(items)
# returns string representation of heap
def __repr__(self):
temp = self.heap_list[1:]
return repr(temp)
# builds a heap from a given list of items, O(n)
def build_heap(self, items):
index = len(items) // 2
self.size = len(items)
self.heap_list = [None] + items[:]
while index > 0:
self.percolate_down(index)
index -= 1
# returns maximum item in heap, O(1)
def get_max(self):
if self.size > 0:
return self.heap_list[1]
else:
return None
# inserts a data item into the tree, O(log(n))
def insert(self, data):
self.heap_list.append(data)
self.size += 1
self.percolate_up(self.size)
# percolates item in heap list upwards
def percolate_up(self, index):
# percolates upwards so long as current node is greater than parent
while index // 2 > 0:
if self.heap_list[index] > self.heap_list[index // 2]:
temp = self.heap_list[index // 2]
self.heap_list[index // 2] = self.heap_list[index]
self.heap_list[index] = temp
index = index // 2
# exctract the maximum item in heap, O(log(n))
def extract_max(self):
if self.size > 0:
max_val = self.heap_list[1]
self.heap_list[1] = self.heap_list[self.size]
self.size -= 1
self.heap_list.pop()
self.percolate_down(1)
return max_val
else:
return None
# percolates item in heap list downwards
def percolate_down(self, index):
# percolates downwards so long as current node is smaller than child
while index * 2 <= self.size:
max = self.max_child(index)
if self.heap_list[index] < self.heap_list[max]:
temp = self.heap_list[index]
self.heap_list[index] = self.heap_list[max]
self.heap_list[max] = temp
index = max
# returns index of greatest child of subtree
def max_child(self, index):
if index * 2 + 1 > self.size:
return index * 2
elif self.heap_list[index * 2] > self.heap_list[index * 2 + 1]:
return index * 2
else:
return index * 2 + 1
| 31.786517 | 76 | 0.571757 | 765 | 5,658 | 4.105882 | 0.117647 | 0.127348 | 0.17574 | 0.11907 | 0.878064 | 0.857052 | 0.84368 | 0.797198 | 0.75199 | 0.75199 | 0 | 0.015932 | 0.334394 | 5,658 | 177 | 77 | 31.966102 | 0.818109 | 0.217038 | 0 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0 | 0 | 0.322581 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
49774e2f0d5468a4bedf08294cf439fa54009013 | 7,073 | py | Python | tests/knowledge/rules/aws/non_context_aware/test_ensure_unused_roles_removed_rule.py | my-devops-info/cloudrail-knowledge | b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e | [
"MIT"
] | null | null | null | tests/knowledge/rules/aws/non_context_aware/test_ensure_unused_roles_removed_rule.py | my-devops-info/cloudrail-knowledge | b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e | [
"MIT"
] | null | null | null | tests/knowledge/rules/aws/non_context_aware/test_ensure_unused_roles_removed_rule.py | my-devops-info/cloudrail-knowledge | b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e | [
"MIT"
] | null | null | null | import unittest
from datetime import datetime, timedelta
from cloudrail.knowledge.context.aws.account.account import Account
from cloudrail.knowledge.context.aws.iam.role import Role
from cloudrail.knowledge.context.aws.iam.role_last_used import RoleLastUsed
from cloudrail.knowledge.context.aws.aws_environment_context import AwsEnvironmentContext
from cloudrail.knowledge.context.terraform_action_type import TerraformActionType
from cloudrail.knowledge.context.terraform_state import TerraformState
from cloudrail.knowledge.rules.aws.non_context_aware.ensure_unused_roles_removed_rule import EnsureUnusedRolesRemoved
from cloudrail.knowledge.rules.base_rule import RuleResultType
from cloudrail.dev_tools.rule_test_utils import create_empty_entity
class TestIamNoHumanUsersRule(unittest.TestCase):
def setUp(self):
self.rule = EnsureUnusedRolesRemoved()
def test_non_car_unused_roles__old_role_not_used_lately__fail(self):
# Arrange
role: Role = create_empty_entity(Role)
account: Account = create_empty_entity(Account)
account.account = 'account_id'
last_used_date: RoleLastUsed = create_empty_entity(RoleLastUsed)
current_date = datetime.today()
role.role_id = 'role_id'
role.creation_date = datetime.strftime(current_date - timedelta(days=100), '%Y-%m-%d')
last_used_date.last_used_date = datetime.strftime(current_date - timedelta(days=90), '%Y-%m-%d')
role.last_used_date = last_used_date
role.terraform_state = TerraformState(address='address',
action=TerraformActionType.NO_OP,
resource_metadata=None,
is_new=False)
context = AwsEnvironmentContext(roles=[role], accounts=[account])
# Act
result = self.rule.run(context, {})
# Assert
self.assertEqual(RuleResultType.FAILED, result.status)
self.assertEqual(1, len(result.issues))
def test_non_car_unused_roles__old_role_not_used_at_all__fail(self):
# Arrange
role: Role = create_empty_entity(Role)
account: Account = create_empty_entity(Account)
account.account = 'account_id'
current_date = datetime.today()
role.role_id = 'role_id'
role.creation_date = datetime.strftime(current_date - timedelta(days=100), '%Y-%m-%d')
role.terraform_state = TerraformState(address='address',
action=TerraformActionType.NO_OP,
resource_metadata=None,
is_new=False)
context = AwsEnvironmentContext(roles=[role], accounts=[account])
# Act
result = self.rule.run(context, {})
# Assert
self.assertEqual(RuleResultType.FAILED, result.status)
self.assertEqual(1, len(result.issues))
def test_non_car_unused_roles__lately_used__pass(self):
# Arrange
role: Role = create_empty_entity(Role)
account: Account = create_empty_entity(Account)
account.account = 'account_id'
last_used_date: RoleLastUsed = create_empty_entity(RoleLastUsed)
current_date = datetime.today()
role.role_id = 'role_id'
role.creation_date = datetime.strftime(current_date - timedelta(days=100), '%Y-%m-%d')
last_used_date.last_used_date = datetime.strftime(current_date - timedelta(days=10), '%Y-%m-%d')
role.last_used_date = last_used_date
role.terraform_state = TerraformState(address='address',
action=TerraformActionType.NO_OP,
resource_metadata=None,
is_new=False)
context = AwsEnvironmentContext(roles=[role], accounts=[account])
# Act
result = self.rule.run(context, {})
# Assert
self.assertEqual(RuleResultType.SUCCESS, result.status)
self.assertEqual(0, len(result.issues))
def test_non_car_unused_roles__new_role_never_used__pass(self):
# Arrange
role: Role = create_empty_entity(Role)
account: Account = create_empty_entity(Account)
account.account = 'account_id'
current_date = datetime.today()
role.role_id = 'role_id'
role.creation_date = datetime.strftime(current_date, '%Y-%m-%d')
role.terraform_state = TerraformState(address='address',
action=TerraformActionType.NO_OP,
resource_metadata=None,
is_new=False)
context = AwsEnvironmentContext(roles=[role], accounts=[account])
# Act
result = self.rule.run(context, {})
# Assert
self.assertEqual(RuleResultType.SUCCESS, result.status)
self.assertEqual(0, len(result.issues))
def test_non_car_unused_roles__old_role_lately_used__pass(self):
# Arrange
role: Role = create_empty_entity(Role)
account: Account = create_empty_entity(Account)
account.account = 'account_id'
last_used_date: RoleLastUsed = create_empty_entity(RoleLastUsed)
current_date = datetime.today()
role.role_id = 'role_id'
role.creation_date = datetime.strftime(current_date - timedelta(days=100), '%Y-%m-%d')
last_used_date.last_used_date = datetime.strftime(current_date, '%Y-%m-%d')
role.last_used_date = last_used_date
role.terraform_state = TerraformState(address='address',
action=TerraformActionType.NO_OP,
resource_metadata=None,
is_new=False)
context = AwsEnvironmentContext(roles=[role], accounts=[account])
# Act
result = self.rule.run(context, {})
# Assert
self.assertEqual(RuleResultType.SUCCESS, result.status)
self.assertEqual(0, len(result.issues))
def test_non_car_unused_roles__new_role_creating__pass(self):
# Arrange
role: Role = create_empty_entity(Role)
account: Account = create_empty_entity(Account)
account.account = 'account_id'
current_date = datetime.today()
role.role_id = 'role_id'
role.creation_date = datetime.strftime(current_date, '%Y-%m-%d')
role.terraform_state = TerraformState(address='address',
action=TerraformActionType.CREATE,
resource_metadata=None,
is_new=True)
context = AwsEnvironmentContext(roles=[role], accounts=[account])
# Act
result = self.rule.run(context, {})
# Assert
self.assertEqual(RuleResultType.SUCCESS, result.status)
self.assertEqual(0, len(result.issues))
| 50.163121 | 117 | 0.628729 | 742 | 7,073 | 5.714286 | 0.126685 | 0.082547 | 0.064151 | 0.057311 | 0.867689 | 0.828774 | 0.828774 | 0.810377 | 0.810377 | 0.810377 | 0 | 0.004332 | 0.281917 | 7,073 | 140 | 118 | 50.521429 | 0.830478 | 0.015976 | 0 | 0.778761 | 0 | 0 | 0.031119 | 0 | 0 | 0 | 0 | 0 | 0.106195 | 1 | 0.061947 | false | 0.035398 | 0.097345 | 0 | 0.168142 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
49783d985fd467368a21062b5c17469563794295 | 125 | py | Python | open-codegen/opengen/tcp/__init__.py | elsuizo/optimization-engine | c264264dd2ca035670ccd3d5d87e53c2f98b7d35 | [
"Apache-2.0",
"MIT"
] | 253 | 2019-03-02T03:47:54.000Z | 2022-03-25T01:00:41.000Z | open-codegen/opengen/tcp/__init__.py | elsuizo/optimization-engine | c264264dd2ca035670ccd3d5d87e53c2f98b7d35 | [
"Apache-2.0",
"MIT"
] | 157 | 2019-03-23T15:13:24.000Z | 2022-03-04T19:13:22.000Z | open-codegen/opengen/tcp/__init__.py | elsuizo/optimization-engine | c264264dd2ca035670ccd3d5d87e53c2f98b7d35 | [
"Apache-2.0",
"MIT"
] | 26 | 2019-03-05T01:48:35.000Z | 2022-03-18T15:31:27.000Z | from .optimizer_tcp_manager import *
from .solver_status import *
from .solver_error import *
from .solver_response import *
| 25 | 36 | 0.808 | 17 | 125 | 5.647059 | 0.529412 | 0.3125 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128 | 125 | 4 | 37 | 31.25 | 0.880734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
4986ecc5b83d752b7084658b0d9edbc75cf9fdc8 | 11,352 | py | Python | pm/models/situ_mobility_walking.py | aosojnik/pipeline-manager-features-models | e5232f1c1b2073253a1c505dc9fff0d3d839dd6c | [
"MIT"
] | null | null | null | pm/models/situ_mobility_walking.py | aosojnik/pipeline-manager-features-models | e5232f1c1b2073253a1c505dc9fff0d3d839dd6c | [
"MIT"
] | null | null | null | pm/models/situ_mobility_walking.py | aosojnik/pipeline-manager-features-models | e5232f1c1b2073253a1c505dc9fff0d3d839dd6c | [
"MIT"
] | null | null | null | ##################################################################################
##########--this is an autogenerated python model definition for proDEX--#########
##--original file: Mobility_general_v02.dxi --##
##################################################################################
from .lib.proDEX import *
situ_mobility_walking = Node()
Spacetime = Node()
Problems = Node()
feat_mobility_walking_episode_distance_qualitative = Atrib()
feat_mobility_walking_daily_distance_qualitative = Atrib()
feat_mobility_walking_duration_qualitative = Atrib()
feat_mobility_walking_mode = Atrib()
feat_mobility_walking_instabilities_count = Atrib()
feat_mobility_walking_falls_count = Atrib()
situ_mobility_walking.setName('situ_mobility_walking')
Spacetime.setName('Spacetime')
Problems.setName('Problems')
feat_mobility_walking_episode_distance_qualitative.setName('feat_mobility_walking_episode_distance_qualitative')
feat_mobility_walking_daily_distance_qualitative.setName('feat_mobility_walking_daily_distance_qualitative')
feat_mobility_walking_duration_qualitative.setName('feat_mobility_walking_duration_qualitative')
feat_mobility_walking_mode.setName('feat_mobility_walking_mode')
feat_mobility_walking_instabilities_count.setName('feat_mobility_walking_instabilities_count')
feat_mobility_walking_falls_count.setName('feat_mobility_walking_falls_count')
situ_mobility_walking.setValues(['very_low', 'low', 'medium', 'high', 'very_high'])
Spacetime.setValues(['low', 'medium', 'high'])
Problems.setValues(['severe', 'some', 'none'])
feat_mobility_walking_episode_distance_qualitative.setValues(['low', 'normal_or_high'])
feat_mobility_walking_daily_distance_qualitative.setValues(['low', 'medium', 'high'])
feat_mobility_walking_duration_qualitative.setValues(['low', 'medium', 'high'])
feat_mobility_walking_mode.setValues(['mostly_aided', 'mixed', 'mostly_unaided'])
feat_mobility_walking_instabilities_count.setValues(['many', 'some', 'none'])
feat_mobility_walking_falls_count.setValues(['many', 'some', 'none'])
situ_mobility_walking.addChild(Spacetime)
Spacetime.setParent(situ_mobility_walking)
situ_mobility_walking.addChild(feat_mobility_walking_mode)
feat_mobility_walking_mode.setParent(situ_mobility_walking)
situ_mobility_walking.addChild(Problems)
Problems.setParent(situ_mobility_walking)
Spacetime.addChild(feat_mobility_walking_episode_distance_qualitative)
feat_mobility_walking_episode_distance_qualitative.setParent(Spacetime)
Spacetime.addChild(feat_mobility_walking_daily_distance_qualitative)
feat_mobility_walking_daily_distance_qualitative.setParent(Spacetime)
Spacetime.addChild(feat_mobility_walking_duration_qualitative)
feat_mobility_walking_duration_qualitative.setParent(Spacetime)
Problems.addChild(feat_mobility_walking_instabilities_count)
feat_mobility_walking_instabilities_count.setParent(Problems)
Problems.addChild(feat_mobility_walking_falls_count)
feat_mobility_walking_falls_count.setParent(Problems)
situ_mobility_walking.addFunctionRow([{Spacetime:'low', feat_mobility_walking_mode:'mostly_aided', Problems:'severe'}, 'very_low'])
situ_mobility_walking.addFunctionRow([{Spacetime:'low', feat_mobility_walking_mode:'mostly_aided', Problems:'some'}, 'very_low'])
situ_mobility_walking.addFunctionRow([{Spacetime:'low', feat_mobility_walking_mode:'mostly_aided', Problems:'none'}, 'low'])
situ_mobility_walking.addFunctionRow([{Spacetime:'low', feat_mobility_walking_mode:'mixed', Problems:'severe'}, 'very_low'])
situ_mobility_walking.addFunctionRow([{Spacetime:'low', feat_mobility_walking_mode:'mixed', Problems:'some'}, 'very_low'])
situ_mobility_walking.addFunctionRow([{Spacetime:'low', feat_mobility_walking_mode:'mixed', Problems:'none'}, 'low'])
situ_mobility_walking.addFunctionRow([{Spacetime:'low', feat_mobility_walking_mode:'mostly_unaided', Problems:'severe'}, 'low'])
situ_mobility_walking.addFunctionRow([{Spacetime:'low', feat_mobility_walking_mode:'mostly_unaided', Problems:'some'}, 'low'])
situ_mobility_walking.addFunctionRow([{Spacetime:'low', feat_mobility_walking_mode:'mostly_unaided', Problems:'none'}, 'low'])
situ_mobility_walking.addFunctionRow([{Spacetime:'medium', feat_mobility_walking_mode:'mostly_aided', Problems:'severe'}, 'low'])
situ_mobility_walking.addFunctionRow([{Spacetime:'medium', feat_mobility_walking_mode:'mostly_aided', Problems:'some'}, 'low'])
situ_mobility_walking.addFunctionRow([{Spacetime:'medium', feat_mobility_walking_mode:'mostly_aided', Problems:'none'}, 'medium'])
situ_mobility_walking.addFunctionRow([{Spacetime:'medium', feat_mobility_walking_mode:'mixed', Problems:'severe'}, 'low'])
situ_mobility_walking.addFunctionRow([{Spacetime:'medium', feat_mobility_walking_mode:'mixed', Problems:'some'}, 'low'])
situ_mobility_walking.addFunctionRow([{Spacetime:'medium', feat_mobility_walking_mode:'mixed', Problems:'none'}, 'medium'])
situ_mobility_walking.addFunctionRow([{Spacetime:'medium', feat_mobility_walking_mode:'mostly_unaided', Problems:'severe'}, 'medium'])
situ_mobility_walking.addFunctionRow([{Spacetime:'medium', feat_mobility_walking_mode:'mostly_unaided', Problems:'some'}, 'medium'])
situ_mobility_walking.addFunctionRow([{Spacetime:'medium', feat_mobility_walking_mode:'mostly_unaided', Problems:'none'}, 'high'])
situ_mobility_walking.addFunctionRow([{Spacetime:'high', feat_mobility_walking_mode:'mostly_aided', Problems:'severe'}, 'medium'])
situ_mobility_walking.addFunctionRow([{Spacetime:'high', feat_mobility_walking_mode:'mostly_aided', Problems:'some'}, 'medium'])
situ_mobility_walking.addFunctionRow([{Spacetime:'high', feat_mobility_walking_mode:'mostly_aided', Problems:'none'}, 'medium'])
situ_mobility_walking.addFunctionRow([{Spacetime:'high', feat_mobility_walking_mode:'mixed', Problems:'severe'}, 'medium'])
situ_mobility_walking.addFunctionRow([{Spacetime:'high', feat_mobility_walking_mode:'mixed', Problems:'some'}, 'medium'])
situ_mobility_walking.addFunctionRow([{Spacetime:'high', feat_mobility_walking_mode:'mixed', Problems:'none'}, 'high'])
situ_mobility_walking.addFunctionRow([{Spacetime:'high', feat_mobility_walking_mode:'mostly_unaided', Problems:'severe'}, 'medium'])
situ_mobility_walking.addFunctionRow([{Spacetime:'high', feat_mobility_walking_mode:'mostly_unaided', Problems:'some'}, 'high'])
situ_mobility_walking.addFunctionRow([{Spacetime:'high', feat_mobility_walking_mode:'mostly_unaided', Problems:'none'}, 'very_high'])
Spacetime.addFunctionRow([{feat_mobility_walking_episode_distance_qualitative:'low', feat_mobility_walking_daily_distance_qualitative:'low', feat_mobility_walking_duration_qualitative:'low'}, 'low'])
Spacetime.addFunctionRow([{feat_mobility_walking_episode_distance_qualitative:'low', feat_mobility_walking_daily_distance_qualitative:'low', feat_mobility_walking_duration_qualitative:'medium'}, 'low'])
Spacetime.addFunctionRow([{feat_mobility_walking_episode_distance_qualitative:'low', feat_mobility_walking_daily_distance_qualitative:'low', feat_mobility_walking_duration_qualitative:'high'}, 'medium'])
Spacetime.addFunctionRow([{feat_mobility_walking_episode_distance_qualitative:'low', feat_mobility_walking_daily_distance_qualitative:'medium', feat_mobility_walking_duration_qualitative:'low'}, 'low'])
Spacetime.addFunctionRow([{feat_mobility_walking_episode_distance_qualitative:'low', feat_mobility_walking_daily_distance_qualitative:'medium', feat_mobility_walking_duration_qualitative:'medium'}, 'medium'])
Spacetime.addFunctionRow([{feat_mobility_walking_episode_distance_qualitative:'low', feat_mobility_walking_daily_distance_qualitative:'medium', feat_mobility_walking_duration_qualitative:'high'}, 'medium'])
Spacetime.addFunctionRow([{feat_mobility_walking_episode_distance_qualitative:'low', feat_mobility_walking_daily_distance_qualitative:'high', feat_mobility_walking_duration_qualitative:'low'}, 'medium'])
Spacetime.addFunctionRow([{feat_mobility_walking_episode_distance_qualitative:'low', feat_mobility_walking_daily_distance_qualitative:'high', feat_mobility_walking_duration_qualitative:'medium'}, 'medium'])
Spacetime.addFunctionRow([{feat_mobility_walking_episode_distance_qualitative:'low', feat_mobility_walking_daily_distance_qualitative:'high', feat_mobility_walking_duration_qualitative:'high'}, 'high'])
Spacetime.addFunctionRow([{feat_mobility_walking_episode_distance_qualitative:'normal_or_high', feat_mobility_walking_daily_distance_qualitative:'low', feat_mobility_walking_duration_qualitative:'low'}, 'low'])
Spacetime.addFunctionRow([{feat_mobility_walking_episode_distance_qualitative:'normal_or_high', feat_mobility_walking_daily_distance_qualitative:'low', feat_mobility_walking_duration_qualitative:'medium'}, 'medium'])
Spacetime.addFunctionRow([{feat_mobility_walking_episode_distance_qualitative:'normal_or_high', feat_mobility_walking_daily_distance_qualitative:'low', feat_mobility_walking_duration_qualitative:'high'}, 'medium'])
Spacetime.addFunctionRow([{feat_mobility_walking_episode_distance_qualitative:'normal_or_high', feat_mobility_walking_daily_distance_qualitative:'medium', feat_mobility_walking_duration_qualitative:'low'}, 'medium'])
Spacetime.addFunctionRow([{feat_mobility_walking_episode_distance_qualitative:'normal_or_high', feat_mobility_walking_daily_distance_qualitative:'medium', feat_mobility_walking_duration_qualitative:'medium'}, 'medium'])
Spacetime.addFunctionRow([{feat_mobility_walking_episode_distance_qualitative:'normal_or_high', feat_mobility_walking_daily_distance_qualitative:'medium', feat_mobility_walking_duration_qualitative:'high'}, 'high'])
Spacetime.addFunctionRow([{feat_mobility_walking_episode_distance_qualitative:'normal_or_high', feat_mobility_walking_daily_distance_qualitative:'high', feat_mobility_walking_duration_qualitative:'low'}, 'medium'])
Spacetime.addFunctionRow([{feat_mobility_walking_episode_distance_qualitative:'normal_or_high', feat_mobility_walking_daily_distance_qualitative:'high', feat_mobility_walking_duration_qualitative:'medium'}, 'high'])
Spacetime.addFunctionRow([{feat_mobility_walking_episode_distance_qualitative:'normal_or_high', feat_mobility_walking_daily_distance_qualitative:'high', feat_mobility_walking_duration_qualitative:'high'}, 'high'])
Problems.addFunctionRow([{feat_mobility_walking_instabilities_count:'many', feat_mobility_walking_falls_count:'many'}, 'severe'])
Problems.addFunctionRow([{feat_mobility_walking_instabilities_count:'many', feat_mobility_walking_falls_count:'some'}, 'severe'])
Problems.addFunctionRow([{feat_mobility_walking_instabilities_count:'many', feat_mobility_walking_falls_count:'none'}, 'some'])
Problems.addFunctionRow([{feat_mobility_walking_instabilities_count:'some', feat_mobility_walking_falls_count:'many'}, 'severe'])
Problems.addFunctionRow([{feat_mobility_walking_instabilities_count:'some', feat_mobility_walking_falls_count:'some'}, 'some'])
Problems.addFunctionRow([{feat_mobility_walking_instabilities_count:'some', feat_mobility_walking_falls_count:'none'}, 'some'])
Problems.addFunctionRow([{feat_mobility_walking_instabilities_count:'none', feat_mobility_walking_falls_count:'many'}, 'severe'])
Problems.addFunctionRow([{feat_mobility_walking_instabilities_count:'none', feat_mobility_walking_falls_count:'some'}, 'some'])
Problems.addFunctionRow([{feat_mobility_walking_instabilities_count:'none', feat_mobility_walking_falls_count:'none'}, 'none'])
| 101.357143 | 219 | 0.836769 | 1,302 | 11,352 | 6.774962 | 0.040707 | 0.292484 | 0.290783 | 0.086045 | 0.933454 | 0.893209 | 0.852511 | 0.842988 | 0.790273 | 0.740619 | 0 | 0.000181 | 0.027748 | 11,352 | 111 | 220 | 102.27027 | 0.79904 | 0.009426 | 0 | 0 | 1 | 0 | 0.145428 | 0.023605 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.010204 | 0 | 0.010204 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
7731cb9713420ad1255db92ab8531b19fc78c41a | 63,799 | py | Python | test/vanilla/Expected/AcceptanceTests/Header/header/operations/_header_operations.py | amrElroumy/autorest.python | b37af1779f6d53b4fa0d92da62151f8133006f98 | [
"MIT"
] | null | null | null | test/vanilla/Expected/AcceptanceTests/Header/header/operations/_header_operations.py | amrElroumy/autorest.python | b37af1779f6d53b4fa0d92da62151f8133006f98 | [
"MIT"
] | null | null | null | test/vanilla/Expected/AcceptanceTests/Header/header/operations/_header_operations.py | amrElroumy/autorest.python | b37af1779f6d53b4fa0d92da62151f8133006f98 | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import datetime
from typing import TYPE_CHECKING
import warnings
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
ResourceNotFoundError,
map_error,
)
from azure.core.pipeline import PipelineResponse
from azure.core.pipeline.transport import HttpRequest, HttpResponse
from azure.core.tracing.decorator import distributed_trace
from .. import models as _models
if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]
class HeaderOperations(object):
"""HeaderOperations operations.
You should not instantiate this class directly. Instead, you should create a Client instance that
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~header.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
"""
models = _models
def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self._config = config
@distributed_trace
def param_existing_key(
self,
user_agent_parameter, # type: str
**kwargs # type: Any
):
# type: (...) -> None
"""Send a post request with header value "User-Agent": "overwrite".
:param user_agent_parameter: Send a post request with header value "User-Agent": "overwrite".
:type user_agent_parameter: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.param_existing_key.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["User-Agent"] = self._serialize.header("user_agent_parameter", user_agent_parameter, "str")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
param_existing_key.metadata = {"url": "/header/param/existingkey"} # type: ignore
@distributed_trace
def response_existing_key(
self, **kwargs # type: Any
):
# type: (...) -> None
"""Get a response with header value "User-Agent": "overwrite".
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.response_existing_key.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
response_headers["User-Agent"] = self._deserialize("str", response.headers.get("User-Agent"))
if cls:
return cls(pipeline_response, None, response_headers)
response_existing_key.metadata = {"url": "/header/response/existingkey"} # type: ignore
@distributed_trace
def param_protected_key(
self,
content_type, # type: str
**kwargs # type: Any
):
# type: (...) -> None
"""Send a post request with header value "Content-Type": "text/html".
:param content_type: Send a post request with header value "Content-Type": "text/html".
:type content_type: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.param_protected_key.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["Content-Type"] = self._serialize.header("content_type", content_type, "str")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
param_protected_key.metadata = {"url": "/header/param/protectedkey"} # type: ignore
@distributed_trace
def response_protected_key(
self, **kwargs # type: Any
):
# type: (...) -> None
"""Get a response with header value "Content-Type": "text/html".
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.response_protected_key.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
response_headers["Content-Type"] = self._deserialize("str", response.headers.get("Content-Type"))
if cls:
return cls(pipeline_response, None, response_headers)
response_protected_key.metadata = {"url": "/header/response/protectedkey"} # type: ignore
@distributed_trace
def param_integer(
self,
scenario, # type: str
value, # type: int
**kwargs # type: Any
):
# type: (...) -> None
"""Send a post request with header values "scenario": "positive", "value": 1 or "scenario":
"negative", "value": -2.
:param scenario: Send a post request with header values "scenario": "positive" or "negative".
:type scenario: str
:param value: Send a post request with header values 1 or -2.
:type value: int
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.param_integer.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
header_parameters["value"] = self._serialize.header("value", value, "int")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
param_integer.metadata = {"url": "/header/param/prim/integer"} # type: ignore
@distributed_trace
def response_integer(
self,
scenario, # type: str
**kwargs # type: Any
):
# type: (...) -> None
"""Get a response with header value "value": 1 or -2.
:param scenario: Send a post request with header values "scenario": "positive" or "negative".
:type scenario: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.response_integer.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
response_headers["value"] = self._deserialize("int", response.headers.get("value"))
if cls:
return cls(pipeline_response, None, response_headers)
response_integer.metadata = {"url": "/header/response/prim/integer"} # type: ignore
@distributed_trace
def param_long(
self,
scenario, # type: str
value, # type: int
**kwargs # type: Any
):
# type: (...) -> None
"""Send a post request with header values "scenario": "positive", "value": 105 or "scenario":
"negative", "value": -2.
:param scenario: Send a post request with header values "scenario": "positive" or "negative".
:type scenario: str
:param value: Send a post request with header values 105 or -2.
:type value: long
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.param_long.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
header_parameters["value"] = self._serialize.header("value", value, "long")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
param_long.metadata = {"url": "/header/param/prim/long"} # type: ignore
@distributed_trace
def response_long(
self,
scenario, # type: str
**kwargs # type: Any
):
# type: (...) -> None
"""Get a response with header value "value": 105 or -2.
:param scenario: Send a post request with header values "scenario": "positive" or "negative".
:type scenario: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.response_long.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
response_headers["value"] = self._deserialize("long", response.headers.get("value"))
if cls:
return cls(pipeline_response, None, response_headers)
response_long.metadata = {"url": "/header/response/prim/long"} # type: ignore
@distributed_trace
def param_float(
self,
scenario, # type: str
value, # type: float
**kwargs # type: Any
):
# type: (...) -> None
"""Send a post request with header values "scenario": "positive", "value": 0.07 or "scenario":
"negative", "value": -3.0.
:param scenario: Send a post request with header values "scenario": "positive" or "negative".
:type scenario: str
:param value: Send a post request with header values 0.07 or -3.0.
:type value: float
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.param_float.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
header_parameters["value"] = self._serialize.header("value", value, "float")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
param_float.metadata = {"url": "/header/param/prim/float"} # type: ignore
@distributed_trace
def response_float(
self,
scenario, # type: str
**kwargs # type: Any
):
# type: (...) -> None
"""Get a response with header value "value": 0.07 or -3.0.
:param scenario: Send a post request with header values "scenario": "positive" or "negative".
:type scenario: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.response_float.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
response_headers["value"] = self._deserialize("float", response.headers.get("value"))
if cls:
return cls(pipeline_response, None, response_headers)
response_float.metadata = {"url": "/header/response/prim/float"} # type: ignore
@distributed_trace
def param_double(
self,
scenario, # type: str
value, # type: float
**kwargs # type: Any
):
# type: (...) -> None
"""Send a post request with header values "scenario": "positive", "value": 7e120 or "scenario":
"negative", "value": -3.0.
:param scenario: Send a post request with header values "scenario": "positive" or "negative".
:type scenario: str
:param value: Send a post request with header values 7e120 or -3.0.
:type value: float
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.param_double.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
header_parameters["value"] = self._serialize.header("value", value, "float")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
param_double.metadata = {"url": "/header/param/prim/double"} # type: ignore
@distributed_trace
def response_double(
self,
scenario, # type: str
**kwargs # type: Any
):
# type: (...) -> None
"""Get a response with header value "value": 7e120 or -3.0.
:param scenario: Send a post request with header values "scenario": "positive" or "negative".
:type scenario: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.response_double.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
response_headers["value"] = self._deserialize("float", response.headers.get("value"))
if cls:
return cls(pipeline_response, None, response_headers)
response_double.metadata = {"url": "/header/response/prim/double"} # type: ignore
@distributed_trace
def param_bool(
self,
scenario, # type: str
value, # type: bool
**kwargs # type: Any
):
# type: (...) -> None
"""Send a post request with header values "scenario": "true", "value": true or "scenario":
"false", "value": false.
:param scenario: Send a post request with header values "scenario": "true" or "false".
:type scenario: str
:param value: Send a post request with header values true or false.
:type value: bool
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.param_bool.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
header_parameters["value"] = self._serialize.header("value", value, "bool")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
param_bool.metadata = {"url": "/header/param/prim/bool"} # type: ignore
@distributed_trace
def response_bool(
self,
scenario, # type: str
**kwargs # type: Any
):
# type: (...) -> None
"""Get a response with header value "value": true or false.
:param scenario: Send a post request with header values "scenario": "true" or "false".
:type scenario: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.response_bool.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
response_headers["value"] = self._deserialize("bool", response.headers.get("value"))
if cls:
return cls(pipeline_response, None, response_headers)
response_bool.metadata = {"url": "/header/response/prim/bool"} # type: ignore
@distributed_trace
def param_string(
self,
scenario, # type: str
value=None, # type: Optional[str]
**kwargs # type: Any
):
# type: (...) -> None
"""Send a post request with header values "scenario": "valid", "value": "The quick brown fox jumps
over the lazy dog" or "scenario": "null", "value": null or "scenario": "empty", "value": "".
:param scenario: Send a post request with header values "scenario": "valid" or "null" or
"empty".
:type scenario: str
:param value: Send a post request with header values "The quick brown fox jumps over the lazy
dog" or null or "".
:type value: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.param_string.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
if value is not None:
header_parameters["value"] = self._serialize.header("value", value, "str")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
param_string.metadata = {"url": "/header/param/prim/string"} # type: ignore
@distributed_trace
def response_string(
self,
scenario, # type: str
**kwargs # type: Any
):
# type: (...) -> None
"""Get a response with header values "The quick brown fox jumps over the lazy dog" or null or "".
:param scenario: Send a post request with header values "scenario": "valid" or "null" or
"empty".
:type scenario: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.response_string.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
response_headers["value"] = self._deserialize("str", response.headers.get("value"))
if cls:
return cls(pipeline_response, None, response_headers)
response_string.metadata = {"url": "/header/response/prim/string"} # type: ignore
@distributed_trace
def param_date(
self,
scenario, # type: str
value, # type: datetime.date
**kwargs # type: Any
):
# type: (...) -> None
"""Send a post request with header values "scenario": "valid", "value": "2010-01-01" or
"scenario": "min", "value": "0001-01-01".
:param scenario: Send a post request with header values "scenario": "valid" or "min".
:type scenario: str
:param value: Send a post request with header values "2010-01-01" or "0001-01-01".
:type value: ~datetime.date
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.param_date.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
header_parameters["value"] = self._serialize.header("value", value, "date")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
param_date.metadata = {"url": "/header/param/prim/date"} # type: ignore
@distributed_trace
def response_date(
self,
scenario, # type: str
**kwargs # type: Any
):
# type: (...) -> None
"""Get a response with header values "2010-01-01" or "0001-01-01".
:param scenario: Send a post request with header values "scenario": "valid" or "min".
:type scenario: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.response_date.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
response_headers["value"] = self._deserialize("date", response.headers.get("value"))
if cls:
return cls(pipeline_response, None, response_headers)
response_date.metadata = {"url": "/header/response/prim/date"} # type: ignore
@distributed_trace
def param_datetime(
self,
scenario, # type: str
value, # type: datetime.datetime
**kwargs # type: Any
):
# type: (...) -> None
"""Send a post request with header values "scenario": "valid", "value": "2010-01-01T12:34:56Z" or
"scenario": "min", "value": "0001-01-01T00:00:00Z".
:param scenario: Send a post request with header values "scenario": "valid" or "min".
:type scenario: str
:param value: Send a post request with header values "2010-01-01T12:34:56Z" or
"0001-01-01T00:00:00Z".
:type value: ~datetime.datetime
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.param_datetime.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
header_parameters["value"] = self._serialize.header("value", value, "iso-8601")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
param_datetime.metadata = {"url": "/header/param/prim/datetime"} # type: ignore
@distributed_trace
def response_datetime(
self,
scenario, # type: str
**kwargs # type: Any
):
# type: (...) -> None
"""Get a response with header values "2010-01-01T12:34:56Z" or "0001-01-01T00:00:00Z".
:param scenario: Send a post request with header values "scenario": "valid" or "min".
:type scenario: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.response_datetime.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
response_headers["value"] = self._deserialize("iso-8601", response.headers.get("value"))
if cls:
return cls(pipeline_response, None, response_headers)
response_datetime.metadata = {"url": "/header/response/prim/datetime"} # type: ignore
@distributed_trace
def param_datetime_rfc1123(
self,
scenario, # type: str
value=None, # type: Optional[datetime.datetime]
**kwargs # type: Any
):
# type: (...) -> None
"""Send a post request with header values "scenario": "valid", "value": "Wed, 01 Jan 2010 12:34:56
GMT" or "scenario": "min", "value": "Mon, 01 Jan 0001 00:00:00 GMT".
:param scenario: Send a post request with header values "scenario": "valid" or "min".
:type scenario: str
:param value: Send a post request with header values "Wed, 01 Jan 2010 12:34:56 GMT" or "Mon,
01 Jan 0001 00:00:00 GMT".
:type value: ~datetime.datetime
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.param_datetime_rfc1123.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
if value is not None:
header_parameters["value"] = self._serialize.header("value", value, "rfc-1123")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
param_datetime_rfc1123.metadata = {"url": "/header/param/prim/datetimerfc1123"} # type: ignore
@distributed_trace
def response_datetime_rfc1123(
self,
scenario, # type: str
**kwargs # type: Any
):
# type: (...) -> None
"""Get a response with header values "Wed, 01 Jan 2010 12:34:56 GMT" or "Mon, 01 Jan 0001 00:00:00
GMT".
:param scenario: Send a post request with header values "scenario": "valid" or "min".
:type scenario: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.response_datetime_rfc1123.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
response_headers["value"] = self._deserialize("rfc-1123", response.headers.get("value"))
if cls:
return cls(pipeline_response, None, response_headers)
response_datetime_rfc1123.metadata = {"url": "/header/response/prim/datetimerfc1123"} # type: ignore
@distributed_trace
def param_duration(
self,
scenario, # type: str
value, # type: datetime.timedelta
**kwargs # type: Any
):
# type: (...) -> None
"""Send a post request with header values "scenario": "valid", "value": "P123DT22H14M12.011S".
:param scenario: Send a post request with header values "scenario": "valid".
:type scenario: str
:param value: Send a post request with header values "P123DT22H14M12.011S".
:type value: ~datetime.timedelta
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.param_duration.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
header_parameters["value"] = self._serialize.header("value", value, "duration")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
param_duration.metadata = {"url": "/header/param/prim/duration"} # type: ignore
@distributed_trace
def response_duration(
self,
scenario, # type: str
**kwargs # type: Any
):
# type: (...) -> None
"""Get a response with header values "P123DT22H14M12.011S".
:param scenario: Send a post request with header values "scenario": "valid".
:type scenario: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.response_duration.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
response_headers["value"] = self._deserialize("duration", response.headers.get("value"))
if cls:
return cls(pipeline_response, None, response_headers)
response_duration.metadata = {"url": "/header/response/prim/duration"} # type: ignore
@distributed_trace
def param_byte(
self,
scenario, # type: str
value, # type: bytearray
**kwargs # type: Any
):
# type: (...) -> None
"""Send a post request with header values "scenario": "valid", "value": "啊齄丂狛狜隣郎隣兀﨩".
:param scenario: Send a post request with header values "scenario": "valid".
:type scenario: str
:param value: Send a post request with header values "啊齄丂狛狜隣郎隣兀﨩".
:type value: bytearray
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.param_byte.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
header_parameters["value"] = self._serialize.header("value", value, "bytearray")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
param_byte.metadata = {"url": "/header/param/prim/byte"} # type: ignore
@distributed_trace
def response_byte(
self,
scenario, # type: str
**kwargs # type: Any
):
# type: (...) -> None
"""Get a response with header values "啊齄丂狛狜隣郎隣兀﨩".
:param scenario: Send a post request with header values "scenario": "valid".
:type scenario: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.response_byte.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
response_headers["value"] = self._deserialize("bytearray", response.headers.get("value"))
if cls:
return cls(pipeline_response, None, response_headers)
response_byte.metadata = {"url": "/header/response/prim/byte"} # type: ignore
@distributed_trace
def param_enum(
self,
scenario, # type: str
value=None, # type: Optional[Union[str, "_models.GreyscaleColors"]]
**kwargs # type: Any
):
# type: (...) -> None
"""Send a post request with header values "scenario": "valid", "value": "GREY" or "scenario":
"null", "value": null.
:param scenario: Send a post request with header values "scenario": "valid" or "null" or
"empty".
:type scenario: str
:param value: Send a post request with header values 'GREY'.
:type value: str or ~header.models.GreyscaleColors
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.param_enum.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
if value is not None:
header_parameters["value"] = self._serialize.header("value", value, "str")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
param_enum.metadata = {"url": "/header/param/prim/enum"} # type: ignore
@distributed_trace
def response_enum(
self,
scenario, # type: str
**kwargs # type: Any
):
# type: (...) -> None
"""Get a response with header values "GREY" or null.
:param scenario: Send a post request with header values "scenario": "valid" or "null" or
"empty".
:type scenario: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.response_enum.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["scenario"] = self._serialize.header("scenario", scenario, "str")
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
response_headers = {}
response_headers["value"] = self._deserialize("str", response.headers.get("value"))
if cls:
return cls(pipeline_response, None, response_headers)
response_enum.metadata = {"url": "/header/response/prim/enum"} # type: ignore
@distributed_trace
def custom_request_id(
self, **kwargs # type: Any
):
# type: (...) -> None
"""Send x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 in the header of the
request.
:keyword callable cls: A custom type or function that will be passed the direct response
:return: None, or the result of cls(response)
:rtype: None
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop("cls", None) # type: ClsType[None]
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map.update(kwargs.pop("error_map", {}))
accept = "application/json"
# Construct URL
url = self.custom_request_id.metadata["url"] # type: ignore
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters["Accept"] = self._serialize.header("accept", accept, "str")
request = self._client.post(url, query_parameters, header_parameters)
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize(_models.Error, response)
raise HttpResponseError(response=response, model=error)
if cls:
return cls(pipeline_response, None, {})
custom_request_id.metadata = {"url": "/header/custom/x-ms-client-request-id/9C4D50EE-2D56-4CD3-8152-34347DC9F2B0"} # type: ignore
| 42.96229 | 134 | 0.643035 | 7,087 | 63,799 | 5.64837 | 0.035276 | 0.028978 | 0.031801 | 0.030427 | 0.942918 | 0.91976 | 0.90607 | 0.878116 | 0.875119 | 0.874444 | 0 | 0.015105 | 0.242496 | 63,799 | 1,484 | 135 | 42.99124 | 0.813193 | 0.29723 | 0 | 0.831658 | 0 | 0.001256 | 0.075064 | 0.01945 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037688 | false | 0 | 0.011307 | 0 | 0.08794 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
7749bb6f20f2f3eb129d0e9999d9ee145a8d6226 | 71 | py | Python | tests/test_smoke.py | leadhub-code/spot-runner | 86e2104a126083b2d265b342e4e1305ec48be4c1 | [
"MIT"
] | 1 | 2017-11-23T10:34:58.000Z | 2017-11-23T10:34:58.000Z | tests/test_smoke.py | leadhub-code/spot-runner | 86e2104a126083b2d265b342e4e1305ec48be4c1 | [
"MIT"
] | 1 | 2017-11-29T12:31:06.000Z | 2017-12-11T13:12:49.000Z | tests/test_smoke.py | leadhub-code/spot-runner | 86e2104a126083b2d265b342e4e1305ec48be4c1 | [
"MIT"
] | null | null | null | def test_smoke():
pass
def test_import():
import spot_runner
| 10.142857 | 22 | 0.676056 | 10 | 71 | 4.5 | 0.7 | 0.311111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239437 | 71 | 6 | 23 | 11.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0.25 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 8 |
655de8d96e685ed4a08aa261946f2a01170d7dc5 | 590,321 | py | Python | code_generation/output/api.py | annihilatorrrr/pytgbot | 2f84b11253873f7af1bc7539eb7d93197d51c90c | [
"MIT"
] | null | null | null | code_generation/output/api.py | annihilatorrrr/pytgbot | 2f84b11253873f7af1bc7539eb7d93197d51c90c | [
"MIT"
] | 2 | 2016-06-27T16:59:27.000Z | 2016-06-27T17:00:10.000Z | code_generation/output/api.py | annihilatorrrr/pytgbot | 2f84b11253873f7af1bc7539eb7d93197d51c90c | [
"MIT"
] | null | null | null | [
Clazz(clazz='Update', import_path=Import(path='pytgbot.api_types.receivable.updates', name='Update', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.inline', name='ChosenInlineResult', is_init=False), Import(path='pytgbot.api_types.receivable.inline', name='InlineQuery', is_init=False), Import(path='pytgbot.api_types.receivable.media', name='Poll', is_init=False), Import(path='pytgbot.api_types.receivable.media', name='PollAnswer', is_init=False), Import(path='pytgbot.api_types.receivable.payments', name='PreCheckoutQuery', is_init=False), Import(path='pytgbot.api_types.receivable.payments', name='ShippingQuery', is_init=False), Import(path='pytgbot.api_types.receivable.peer', name='ChatJoinRequest', is_init=False), Import(path='pytgbot.api_types.receivable.peer', name='ChatMemberUpdated', is_init=False), Import(path='pytgbot.api_types.receivable.updates', name='CallbackQuery', is_init=False), Import(path='pytgbot.api_types.receivable.updates', name='Message', is_init=False)], parent_clazz=Type(string='Receivable', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#update', description='This object represents an incoming update.At most one of the optional parameters can be present in any given update.', parameters=[Variable(api_name='update_id', name='update_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if you're using Webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially.", duplicate_of_parent=False)], keywords=[Variable(api_name='message', name='message', pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=True, default=None, description='Optional. New incoming message of any kind — text, photo, sticker, etc.', duplicate_of_parent=False), Variable(api_name='edited_message', name='edited_message', pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=True, default=None, description='Optional. New version of a message that is known to the bot and was edited', duplicate_of_parent=False), Variable(api_name='channel_post', name='channel_post', pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=True, default=None, description='Optional. New incoming channel post of any kind — text, photo, sticker, etc.', duplicate_of_parent=False), Variable(api_name='edited_channel_post', name='edited_channel_post', pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=True, default=None, description='Optional. New version of a channel post that is known to the bot and was edited', duplicate_of_parent=False), Variable(api_name='inline_query', name='inline_query', pytg_name=None, types=[Type(string='InlineQuery', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.inline', description=None)], optional=True, default=None, description='Optional. New incoming inline query', duplicate_of_parent=False), Variable(api_name='chosen_inline_result', name='chosen_inline_result', pytg_name=None, types=[Type(string='ChosenInlineResult', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.inline', description=None)], optional=True, default=None, description='Optional. The result of an inline query that was chosen by a user and sent to their chat partner. Please see our documentation on the feedback collecting for details on how to enable these updates for your bot.', duplicate_of_parent=False), Variable(api_name='callback_query', name='callback_query', pytg_name=None, types=[Type(string='CallbackQuery', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=True, default=None, description='Optional. New incoming callback query', duplicate_of_parent=False), Variable(api_name='shipping_query', name='shipping_query', pytg_name=None, types=[Type(string='ShippingQuery', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.payments', description=None)], optional=True, default=None, description='Optional. New incoming shipping query. Only for invoices with flexible price', duplicate_of_parent=False), Variable(api_name='pre_checkout_query', name='pre_checkout_query', pytg_name=None, types=[Type(string='PreCheckoutQuery', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.payments', description=None)], optional=True, default=None, description='Optional. New incoming pre-checkout query. Contains full information about checkout', duplicate_of_parent=False), Variable(api_name='poll', name='poll', pytg_name=None, types=[Type(string='Poll', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. New poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot', duplicate_of_parent=False), Variable(api_name='poll_answer', name='poll_answer', pytg_name=None, types=[Type(string='PollAnswer', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were sent by the bot itself.', duplicate_of_parent=False), Variable(api_name='my_chat_member', name='my_chat_member', pytg_name=None, types=[Type(string='ChatMemberUpdated', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=True, default=None, description="Optional. The bot's chat member status was updated in a chat. For private chats, this update is received only when the bot is blocked or unblocked by the user.", duplicate_of_parent=False), Variable(api_name='chat_member', name='chat_member', pytg_name=None, types=[Type(string='ChatMemberUpdated', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=True, default=None, description='Optional. A chat member\'s status was updated in a chat. The bot must be an administrator in the chat and must explicitly specify "chat_member" in the list of allowed_updates to receive these updates.', duplicate_of_parent=False), Variable(api_name='chat_join_request', name='chat_join_request', pytg_name=None, types=[Type(string='ChatJoinRequest', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=True, default=None, description='Optional. A request to join the chat has been sent. The bot must have the can_invite_users administrator right in the chat to receive these updates.', duplicate_of_parent=False)]),
Function(api_name='getUpdates', imports=[], link='https://core.telegram.org/bots/api#getupdates', description='Use this method to receive incoming updates using long polling (wiki). An Array of Update objects is returned.\n\nNotes1. This method will not work if an outgoing webhook is set up.2. In order to avoid getting duplicate updates, recalculate offset after each server response.\n', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Update', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=None, default=None, description='An Array of Update objects is returned', duplicate_of_parent=None), parameters=[], keywords=[Variable(api_name='offset', name='offset', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Identifier of the first update to be returned. Must be greater by one than the highest among the identifiers of previously received updates. By default, updates starting with the earliest unconfirmed update are returned. An update is considered confirmed as soon as getUpdates is called with an offset higher than its update_id. The negative offset can be specified to retrieve updates starting from -offset update from the end of the updates queue. All previous updates will forgotten.', duplicate_of_parent=None), Variable(api_name='limit', name='limit', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Limits the number of updates to be retrieved. Values between 1-100 are accepted. Defaults to 100.', duplicate_of_parent=None), Variable(api_name='timeout', name='timeout', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Timeout in seconds for long polling. Defaults to 0, i.e. usual short polling. Should be positive, short polling should be used for testing purposes only.', duplicate_of_parent=None), Variable(api_name='allowed_updates', name='allowed_updates', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=1, import_path=None, description=None)], optional=True, default=None, description='A JSON-serialized list of the update types you want your bot to receive. For example, specify ["message", "edited_channel_post", "callback_query"] to only receive updates of these types. See Update for a complete list of available update types. Specify an empty list to receive all update types except chat_member (default). If not specified, the previous setting will be used.Please note that this parameter doesn\'t affect updates created before the call to the getUpdates, so unwanted updates may be received for a short period of time.', duplicate_of_parent=None)]),
Function(api_name='setWebhook', imports=[Import(path='pytgbot.api_types.sendable.files', name='InputFile', is_init=False)], link='https://core.telegram.org/bots/api#setwebhook', description="Use this method to specify a url and receive incoming updates via an outgoing webhook. Whenever there is an update for the bot, we will send an HTTPS POST request to the specified url, containing a JSON-serialized Update. In case of an unsuccessful request, we will give up after a reasonable amount of attempts. Returns True on success.\nIf you'd like to make sure that the Webhook request comes from Telegram, we recommend using a secret path in the URL, e.g. https://www.example.com/<token>. Since nobody else knows your bot's token, you can be pretty sure it's us.\n\nNotes1. You will not be able to receive updates using getUpdates for as long as an outgoing webhook is set up.2. To use a self-signed certificate, you need to upload your public key certificate using certificate parameter. Please upload as InputFile, sending a String will not work.3. Ports currently supported for Webhooks: 443, 80, 88, 8443.\nNEW! If you're having any trouble setting up webhooks, please check out this amazing guide to Webhooks.\n", returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='url', name='url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='HTTPS url to send updates to. Use an empty string to remove webhook integration', duplicate_of_parent=None)], keywords=[Variable(api_name='certificate', name='certificate', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None)], optional=True, default=None, description='Upload your public key certificate so that the root certificate in use can be checked. See our self-signed guide for details.', duplicate_of_parent=None), Variable(api_name='ip_address', name='ip_address', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='The fixed IP address which will be used to send webhook requests instead of the IP address resolved through DNS', duplicate_of_parent=None), Variable(api_name='max_connections', name='max_connections', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery, 1-100. Defaults to 40. Use lower values to limit the load on your bot's server, and higher values to increase your bot's throughput.", duplicate_of_parent=None), Variable(api_name='allowed_updates', name='allowed_updates', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=1, import_path=None, description=None)], optional=True, default=None, description='A JSON-serialized list of the update types you want your bot to receive. For example, specify ["message", "edited_channel_post", "callback_query"] to only receive updates of these types. See Update for a complete list of available update types. Specify an empty list to receive all update types except chat_member (default). If not specified, the previous setting will be used.Please note that this parameter doesn\'t affect updates created before the call to the setWebhook, so unwanted updates may be received for a short period of time.', duplicate_of_parent=None), Variable(api_name='drop_pending_updates', name='drop_pending_updates', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True to drop all pending updates', duplicate_of_parent=None)]),
Function(api_name='deleteWebhook', imports=[], link='https://core.telegram.org/bots/api#deletewebhook', description='Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[], keywords=[Variable(api_name='drop_pending_updates', name='drop_pending_updates', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True to drop all pending updates', duplicate_of_parent=None)]),
Function(api_name='getWebhookInfo', imports=[], link='https://core.telegram.org/bots/api#getwebhookinfo', description='Use this method to get current webhook status. Requires no parameters. On success, returns a WebhookInfo object. If the bot is using getUpdates, will return an object with the url field empty.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='WebhookInfo', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=None, default=None, description='On success, returns a WebhookInfo object', duplicate_of_parent=None), parameters=[], keywords=[]),
Clazz(clazz='WebhookInfo', import_path=Import(path='pytgbot.api_types.receivable.updates', name='WebhookInfo', is_init=False), imports=[], parent_clazz=Type(string='Receivable', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#webhookinfo', description='Contains information about the current status of a webhook.', parameters=[Variable(api_name='url', name='url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Webhook URL, may be empty if webhook is not set up', duplicate_of_parent=False), Variable(api_name='has_custom_certificate', name='has_custom_certificate', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if a custom certificate was provided for webhook certificate checks', duplicate_of_parent=False), Variable(api_name='pending_update_count', name='pending_update_count', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Number of updates awaiting delivery', duplicate_of_parent=False)], keywords=[Variable(api_name='ip_address', name='ip_address', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Currently used webhook IP address', duplicate_of_parent=False), Variable(api_name='last_error_date', name='last_error_date', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook', duplicate_of_parent=False), Variable(api_name='last_error_message', name='last_error_message', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook', duplicate_of_parent=False), Variable(api_name='max_connections', name='max_connections', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery', duplicate_of_parent=False), Variable(api_name='allowed_updates', name='allowed_updates', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=1, import_path=None, description=None)], optional=True, default=None, description='Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member', duplicate_of_parent=False)]),
Clazz(clazz='User', import_path=Import(path='pytgbot.api_types.receivable.peer', name='User', is_init=False), imports=[], parent_clazz=Type(string='Peer', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None), link='https://core.telegram.org/bots/api#user', description='This object represents a Telegram user or bot.', parameters=[Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this user or bot. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.', duplicate_of_parent=False), Variable(api_name='is_bot', name='is_bot', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if this user is a bot', duplicate_of_parent=False), Variable(api_name='first_name', name='first_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="User's or bot's first name", duplicate_of_parent=False)], keywords=[Variable(api_name='last_name', name='last_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. User's or bot's last name", duplicate_of_parent=False), Variable(api_name='username', name='username', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. User's or bot's username", duplicate_of_parent=False), Variable(api_name='language_code', name='language_code', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. IETF language tag of the user's language", duplicate_of_parent=False), Variable(api_name='can_join_groups', name='can_join_groups', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. True, if the bot can be invited to groups. Returned only in getMe.', duplicate_of_parent=False), Variable(api_name='can_read_all_group_messages', name='can_read_all_group_messages', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. True, if privacy mode is disabled for the bot. Returned only in getMe.', duplicate_of_parent=False), Variable(api_name='supports_inline_queries', name='supports_inline_queries', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. True, if the bot supports inline queries. Returned only in getMe.', duplicate_of_parent=False)]),
Clazz(clazz='Chat', import_path=Import(path='pytgbot.api_types.receivable.peer', name='Chat', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='ChatPhoto', is_init=False), Import(path='pytgbot.api_types.receivable.peer', name='ChatLocation', is_init=False), Import(path='pytgbot.api_types.receivable.peer', name='ChatPermissions', is_init=False), Import(path='pytgbot.api_types.receivable.updates', name='Message', is_init=False)], parent_clazz=Type(string='Peer', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None), link='https://core.telegram.org/bots/api#chat', description='This object represents a chat.', parameters=[Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.', duplicate_of_parent=False), Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of chat, can be either "private", "group", "supergroup" or "channel"', duplicate_of_parent=False)], keywords=[Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Title, for supergroups, channels and group chats', duplicate_of_parent=False), Variable(api_name='username', name='username', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Username, for private chats, supergroups and channels if available', duplicate_of_parent=False), Variable(api_name='first_name', name='first_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. First name of the other party in a private chat', duplicate_of_parent=False), Variable(api_name='last_name', name='last_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Last name of the other party in a private chat', duplicate_of_parent=False), Variable(api_name='photo', name='photo', pytg_name=None, types=[Type(string='ChatPhoto', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Chat photo. Returned only in getChat.', duplicate_of_parent=False), Variable(api_name='bio', name='bio', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Bio of the other party in a private chat. Returned only in getChat.', duplicate_of_parent=False), Variable(api_name='has_private_forwards', name='has_private_forwards', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?id=<user_id> links only in chats with the user. Returned only in getChat.', duplicate_of_parent=False), Variable(api_name='description', name='description', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Description, for groups, supergroups and channel chats. Returned only in getChat.', duplicate_of_parent=False), Variable(api_name='invite_link', name='invite_link', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Primary invite link, for groups, supergroups and channel chats. Returned only in getChat.', duplicate_of_parent=False), Variable(api_name='pinned_message', name='pinned_message', pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=True, default=None, description='Optional. The most recent pinned message (by sending date). Returned only in getChat.', duplicate_of_parent=False), Variable(api_name='permissions', name='permissions', pytg_name=None, types=[Type(string='ChatPermissions', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=True, default=None, description='Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat.', duplicate_of_parent=False), Variable(api_name='slow_mode_delay', name='slow_mode_delay', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged user; in seconds. Returned only in getChat.', duplicate_of_parent=False), Variable(api_name='message_auto_delete_time', name='message_auto_delete_time', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds. Returned only in getChat.', duplicate_of_parent=False), Variable(api_name='has_protected_content', name='has_protected_content', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. True, if messages from the chat can't be forwarded to other chats. Returned only in getChat.", duplicate_of_parent=False), Variable(api_name='sticker_set_name', name='sticker_set_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. For supergroups, name of group sticker set. Returned only in getChat.', duplicate_of_parent=False), Variable(api_name='can_set_sticker_set', name='can_set_sticker_set', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. True, if the bot can change the group sticker set. Returned only in getChat.', duplicate_of_parent=False), Variable(api_name='linked_chat_id', name='linked_chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats. This identifier may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier. Returned only in getChat.', duplicate_of_parent=False), Variable(api_name='location', name='location', pytg_name=None, types=[Type(string='ChatLocation', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=True, default=None, description='Optional. For supergroups, the location to which the supergroup is connected. Returned only in getChat.', duplicate_of_parent=False)]),
Clazz(clazz='Message', import_path=Import(path='pytgbot.api_types.receivable.updates', name='Message', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='Animation', is_init=False), Import(path='pytgbot.api_types.receivable.media', name='Audio', is_init=False), Import(path='pytgbot.api_types.receivable.media', name='Contact', is_init=False), Import(path='pytgbot.api_types.receivable.media', name='Dice', is_init=False), Import(path='pytgbot.api_types.receivable.media', name='Document', is_init=False), Import(path='pytgbot.api_types.receivable.media', name='Game', is_init=False), Import(path='pytgbot.api_types.receivable.media', name='Location', is_init=False), Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.receivable.media', name='PhotoSize', is_init=False), Import(path='pytgbot.api_types.receivable.media', name='Poll', is_init=False), Import(path='pytgbot.api_types.receivable.media', name='Sticker', is_init=False), Import(path='pytgbot.api_types.receivable.media', name='Venue', is_init=False), Import(path='pytgbot.api_types.receivable.media', name='Video', is_init=False), Import(path='pytgbot.api_types.receivable.media', name='VideoNote', is_init=False), Import(path='pytgbot.api_types.receivable.media', name='Voice', is_init=False), Import(path='pytgbot.api_types.receivable.passport', name='PassportData', is_init=False), Import(path='pytgbot.api_types.receivable.payments', name='Invoice', is_init=False), Import(path='pytgbot.api_types.receivable.payments', name='SuccessfulPayment', is_init=False), Import(path='pytgbot.api_types.receivable.peer', name='Chat', is_init=False), Import(path='pytgbot.api_types.receivable.peer', name='User', is_init=False), Import(path='pytgbot.api_types.receivable.service', name='MessageAutoDeleteTimerChanged', is_init=False), Import(path='pytgbot.api_types.receivable.service', name='ProximityAlertTriggered', is_init=False), Import(path='pytgbot.api_types.receivable.service', name='VoiceChatEnded', is_init=False), Import(path='pytgbot.api_types.receivable.service', name='VoiceChatParticipantsInvited', is_init=False), Import(path='pytgbot.api_types.receivable.service', name='VoiceChatScheduled', is_init=False), Import(path='pytgbot.api_types.receivable.service', name='VoiceChatStarted', is_init=False), Import(path='pytgbot.api_types.receivable.updates', name='Message', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], parent_clazz=Type(string='UpdateType', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None), link='https://core.telegram.org/bots/api#message', description='This object represents a message.', parameters=[Variable(api_name='message_id', name='message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique message identifier inside this chat', duplicate_of_parent=False), Variable(api_name='date', name='date', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Date the message was sent in Unix time', duplicate_of_parent=False), Variable(api_name='chat', name='chat', pytg_name=None, types=[Type(string='Chat', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='Conversation the message belongs to', duplicate_of_parent=False)], keywords=[Variable(api_name='from', name='from_peer', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=True, default=None, description='Optional. Sender of the message; empty for messages sent to channels. For backward compatibility, the field contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat.', duplicate_of_parent=False), Variable(api_name='sender_chat', name='sender_chat', pytg_name=None, types=[Type(string='Chat', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=True, default=None, description='Optional. Sender of the message, sent on behalf of a chat. For example, the channel itself for channel posts, the supergroup itself for messages from anonymous group administrators, the linked channel for messages automatically forwarded to the discussion group. For backward compatibility, the field from contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat.', duplicate_of_parent=False), Variable(api_name='forward_from', name='forward_from', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=True, default=None, description='Optional. For forwarded messages, sender of the original message', duplicate_of_parent=False), Variable(api_name='forward_from_chat', name='forward_from_chat', pytg_name=None, types=[Type(string='Chat', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=True, default=None, description='Optional. For messages forwarded from channels or from anonymous administrators, information about the original sender chat', duplicate_of_parent=False), Variable(api_name='forward_from_message_id', name='forward_from_message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. For messages forwarded from channels, identifier of the original message in the channel', duplicate_of_parent=False), Variable(api_name='forward_signature', name='forward_signature', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. For forwarded messages that were originally sent in channels or by an anonymous chat administrator, signature of the message sender if present', duplicate_of_parent=False), Variable(api_name='forward_sender_name', name='forward_sender_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. Sender's name for messages forwarded from users who disallow adding a link to their account in forwarded messages", duplicate_of_parent=False), Variable(api_name='forward_date', name='forward_date', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. For forwarded messages, date the original message was sent in Unix time', duplicate_of_parent=False), Variable(api_name='is_automatic_forward', name='is_automatic_forward', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion group', duplicate_of_parent=False), Variable(api_name='reply_to_message', name='reply_to_message', pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=True, default=None, description='Optional. For replies, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.', duplicate_of_parent=False), Variable(api_name='via_bot', name='via_bot', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=True, default=None, description='Optional. Bot through which the message was sent', duplicate_of_parent=False), Variable(api_name='edit_date', name='edit_date', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Date the message was last edited in Unix time', duplicate_of_parent=False), Variable(api_name='has_protected_content', name='has_protected_content', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. True, if the message can't be forwarded", duplicate_of_parent=False), Variable(api_name='media_group_id', name='media_group_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. The unique identifier of a media message group this message belongs to', duplicate_of_parent=False), Variable(api_name='author_signature', name='author_signature', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Signature of the post author for messages in channels, or the custom title of an anonymous group administrator', duplicate_of_parent=False), Variable(api_name='text', name='text', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. For text messages, the actual UTF-8 text of the message, 0-4096 characters', duplicate_of_parent=False), Variable(api_name='entities', name='entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text', duplicate_of_parent=False), Variable(api_name='animation', name='animation', pytg_name=None, types=[Type(string='Animation', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Message is an animation, information about the animation. For backward compatibility, when this field is set, the document field will also be set', duplicate_of_parent=False), Variable(api_name='audio', name='audio', pytg_name=None, types=[Type(string='Audio', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Message is an audio file, information about the file', duplicate_of_parent=False), Variable(api_name='document', name='document', pytg_name=None, types=[Type(string='Document', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Message is a general file, information about the file', duplicate_of_parent=False), Variable(api_name='photo', name='photo', pytg_name=None, types=[Type(string='PhotoSize', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Message is a photo, available sizes of the photo', duplicate_of_parent=False), Variable(api_name='sticker', name='sticker', pytg_name=None, types=[Type(string='Sticker', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Message is a sticker, information about the sticker', duplicate_of_parent=False), Variable(api_name='video', name='video', pytg_name=None, types=[Type(string='Video', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Message is a video, information about the video', duplicate_of_parent=False), Variable(api_name='video_note', name='video_note', pytg_name=None, types=[Type(string='VideoNote', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Message is a video note, information about the video message', duplicate_of_parent=False), Variable(api_name='voice', name='voice', pytg_name=None, types=[Type(string='Voice', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Message is a voice message, information about the file', duplicate_of_parent=False), Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Caption for the animation, audio, document, photo, video or voice, 0-1024 characters', duplicate_of_parent=False), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption', duplicate_of_parent=False), Variable(api_name='contact', name='contact', pytg_name=None, types=[Type(string='Contact', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Message is a shared contact, information about the contact', duplicate_of_parent=False), Variable(api_name='dice', name='dice', pytg_name=None, types=[Type(string='Dice', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Message is a dice with random value', duplicate_of_parent=False), Variable(api_name='game', name='game', pytg_name=None, types=[Type(string='Game', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Message is a game, information about the game. More about games »', duplicate_of_parent=False), Variable(api_name='poll', name='poll', pytg_name=None, types=[Type(string='Poll', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Message is a native poll, information about the poll', duplicate_of_parent=False), Variable(api_name='venue', name='venue', pytg_name=None, types=[Type(string='Venue', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Message is a venue, information about the venue. For backward compatibility, when this field is set, the location field will also be set', duplicate_of_parent=False), Variable(api_name='location', name='location', pytg_name=None, types=[Type(string='Location', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Message is a shared location, information about the location', duplicate_of_parent=False), Variable(api_name='new_chat_members', name='new_chat_members', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=True, default=None, description='Optional. New members that were added to the group or supergroup and information about them (the bot itself may be one of these members)', duplicate_of_parent=False), Variable(api_name='left_chat_member', name='left_chat_member', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=True, default=None, description='Optional. A member was removed from the group, information about them (this member may be the bot itself)', duplicate_of_parent=False), Variable(api_name='new_chat_title', name='new_chat_title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. A chat title was changed to this value', duplicate_of_parent=False), Variable(api_name='new_chat_photo', name='new_chat_photo', pytg_name=None, types=[Type(string='PhotoSize', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. A chat photo was change to this value', duplicate_of_parent=False), Variable(api_name='delete_chat_photo', name='delete_chat_photo', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Service message: the chat photo was deleted', duplicate_of_parent=False), Variable(api_name='group_chat_created', name='group_chat_created', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Service message: the group has been created', duplicate_of_parent=False), Variable(api_name='supergroup_chat_created', name='supergroup_chat_created', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. Service message: the supergroup has been created. This field can't be received in a message coming through updates, because bot can't be a member of a supergroup when it is created. It can only be found in reply_to_message if someone replies to a very first message in a directly created supergroup.", duplicate_of_parent=False), Variable(api_name='channel_chat_created', name='channel_chat_created', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. Service message: the channel has been created. This field can't be received in a message coming through updates, because bot can't be a member of a channel when it is created. It can only be found in reply_to_message if someone replies to a very first message in a channel.", duplicate_of_parent=False), Variable(api_name='message_auto_delete_timer_changed', name='message_auto_delete_timer_changed', pytg_name=None, types=[Type(string='MessageAutoDeleteTimerChanged', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.service', description=None)], optional=True, default=None, description='Optional. Service message: auto-delete timer settings changed in the chat', duplicate_of_parent=False), Variable(api_name='migrate_to_chat_id', name='migrate_to_chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. The group has been migrated to a supergroup with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.', duplicate_of_parent=False), Variable(api_name='migrate_from_chat_id', name='migrate_from_chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. The supergroup has been migrated from a group with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.', duplicate_of_parent=False), Variable(api_name='pinned_message', name='pinned_message', pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=True, default=None, description='Optional. Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it is itself a reply.', duplicate_of_parent=False), Variable(api_name='invoice', name='invoice', pytg_name=None, types=[Type(string='Invoice', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.payments', description=None)], optional=True, default=None, description='Optional. Message is an invoice for a payment, information about the invoice. More about payments »', duplicate_of_parent=False), Variable(api_name='successful_payment', name='successful_payment', pytg_name=None, types=[Type(string='SuccessfulPayment', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.payments', description=None)], optional=True, default=None, description='Optional. Message is a service message about a successful payment, information about the payment. More about payments »', duplicate_of_parent=False), Variable(api_name='connected_website', name='connected_website', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. The domain name of the website on which the user has logged in. More about Telegram Login »', duplicate_of_parent=False), Variable(api_name='passport_data', name='passport_data', pytg_name=None, types=[Type(string='PassportData', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.passport', description=None)], optional=True, default=None, description='Optional. Telegram Passport data', duplicate_of_parent=False), Variable(api_name='proximity_alert_triggered', name='proximity_alert_triggered', pytg_name=None, types=[Type(string='ProximityAlertTriggered', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.service', description=None)], optional=True, default=None, description="Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live Location.", duplicate_of_parent=False), Variable(api_name='voice_chat_scheduled', name='voice_chat_scheduled', pytg_name=None, types=[Type(string='VoiceChatScheduled', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.service', description=None)], optional=True, default=None, description='Optional. Service message: voice chat scheduled', duplicate_of_parent=False), Variable(api_name='voice_chat_started', name='voice_chat_started', pytg_name=None, types=[Type(string='VoiceChatStarted', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.service', description=None)], optional=True, default=None, description='Optional. Service message: voice chat started', duplicate_of_parent=False), Variable(api_name='voice_chat_ended', name='voice_chat_ended', pytg_name=None, types=[Type(string='VoiceChatEnded', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.service', description=None)], optional=True, default=None, description='Optional. Service message: voice chat ended', duplicate_of_parent=False), Variable(api_name='voice_chat_participants_invited', name='voice_chat_participants_invited', pytg_name=None, types=[Type(string='VoiceChatParticipantsInvited', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.service', description=None)], optional=True, default=None, description='Optional. Service message: new participants invited to a voice chat', duplicate_of_parent=False), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons.', duplicate_of_parent=False)]),
Clazz(clazz='MessageId', import_path=Import(path='pytgbot.api_types.receivable.responses', name='MessageId', is_init=False), imports=[], parent_clazz=Type(string='Result', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#messageid', description='This object represents a unique message identifier.', parameters=[Variable(api_name='message_id', name='message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique message identifier', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='MessageEntity', import_path=Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.peer', name='User', is_init=False)], parent_clazz=Type(string='Result', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#messageentity', description='This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the entity. Currently, can be "mention" (@username), "hashtag" (#hashtag), "cashtag" ($USD), "bot_command" (/start@jobs_bot), "url" (https://telegram.org), "email" (do-not-reply@telegram.org), "phone_number" (+1-212-555-0123), "bold" (bold text), "italic" (italic text), "underline" (underlined text), "strikethrough" (strikethrough text), "spoiler" (spoiler message), "code" (monowidth string), "pre" (monowidth block), "text_link" (for clickable text URLs), "text_mention" (for users without usernames)', duplicate_of_parent=False), Variable(api_name='offset', name='offset', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Offset in UTF-16 code units to the start of the entity', duplicate_of_parent=False), Variable(api_name='length', name='length', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Length of the entity in UTF-16 code units', duplicate_of_parent=False)], keywords=[Variable(api_name='url', name='url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. For "text_link" only, url that will be opened after user taps on the text', duplicate_of_parent=False), Variable(api_name='user', name='user', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=True, default=None, description='Optional. For "text_mention" only, the mentioned user', duplicate_of_parent=False), Variable(api_name='language', name='language', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. For "pre" only, the programming language of the entity text', duplicate_of_parent=False)]),
Clazz(clazz='PhotoSize', import_path=Import(path='pytgbot.api_types.receivable.media', name='PhotoSize', is_init=False), imports=[], parent_clazz=Type(string='Result', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#photosize', description='This object represents one size of a photo or a file / sticker thumbnail.', parameters=[Variable(api_name='file_id', name='file_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Identifier for this file, which can be used to download or reuse the file', duplicate_of_parent=False), Variable(api_name='file_unique_id', name='file_unique_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", duplicate_of_parent=False), Variable(api_name='width', name='width', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Photo width', duplicate_of_parent=False), Variable(api_name='height', name='height', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Photo height', duplicate_of_parent=False)], keywords=[Variable(api_name='file_size', name='file_size', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. File size in bytes', duplicate_of_parent=False)]),
Clazz(clazz='Animation', import_path=Import(path='pytgbot.api_types.receivable.media', name='Animation', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='PhotoSize', is_init=False)], parent_clazz=Type(string='Media', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None), link='https://core.telegram.org/bots/api#animation', description='This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).', parameters=[Variable(api_name='file_id', name='file_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Identifier for this file, which can be used to download or reuse the file', duplicate_of_parent=False), Variable(api_name='file_unique_id', name='file_unique_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", duplicate_of_parent=False), Variable(api_name='width', name='width', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Video width as defined by sender', duplicate_of_parent=False), Variable(api_name='height', name='height', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Video height as defined by sender', duplicate_of_parent=False), Variable(api_name='duration', name='duration', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Duration of the video in seconds as defined by sender', duplicate_of_parent=False)], keywords=[Variable(api_name='thumb', name='thumb', pytg_name=None, types=[Type(string='PhotoSize', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Animation thumbnail as defined by sender', duplicate_of_parent=False), Variable(api_name='file_name', name='file_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Original animation filename as defined by sender', duplicate_of_parent=False), Variable(api_name='mime_type', name='mime_type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. MIME type of the file as defined by sender', duplicate_of_parent=False), Variable(api_name='file_size', name='file_size', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. File size in bytes', duplicate_of_parent=False)]),
Clazz(clazz='Audio', import_path=Import(path='pytgbot.api_types.receivable.media', name='Audio', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='PhotoSize', is_init=False)], parent_clazz=Type(string='Media', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None), link='https://core.telegram.org/bots/api#audio', description='This object represents an audio file to be treated as music by the Telegram clients.', parameters=[Variable(api_name='file_id', name='file_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Identifier for this file, which can be used to download or reuse the file', duplicate_of_parent=False), Variable(api_name='file_unique_id', name='file_unique_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", duplicate_of_parent=False), Variable(api_name='duration', name='duration', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Duration of the audio in seconds as defined by sender', duplicate_of_parent=False)], keywords=[Variable(api_name='performer', name='performer', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Performer of the audio as defined by sender or by audio tags', duplicate_of_parent=False), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Title of the audio as defined by sender or by audio tags', duplicate_of_parent=False), Variable(api_name='file_name', name='file_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Original filename as defined by sender', duplicate_of_parent=False), Variable(api_name='mime_type', name='mime_type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. MIME type of the file as defined by sender', duplicate_of_parent=False), Variable(api_name='file_size', name='file_size', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. File size in bytes', duplicate_of_parent=False), Variable(api_name='thumb', name='thumb', pytg_name=None, types=[Type(string='PhotoSize', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Thumbnail of the album cover to which the music file belongs', duplicate_of_parent=False)]),
Clazz(clazz='Document', import_path=Import(path='pytgbot.api_types.receivable.media', name='Document', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='PhotoSize', is_init=False)], parent_clazz=Type(string='Media', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None), link='https://core.telegram.org/bots/api#document', description='This object represents a general file (as opposed to photos, voice messages and audio files).', parameters=[Variable(api_name='file_id', name='file_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Identifier for this file, which can be used to download or reuse the file', duplicate_of_parent=False), Variable(api_name='file_unique_id', name='file_unique_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", duplicate_of_parent=False)], keywords=[Variable(api_name='thumb', name='thumb', pytg_name=None, types=[Type(string='PhotoSize', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Document thumbnail as defined by sender', duplicate_of_parent=False), Variable(api_name='file_name', name='file_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Original filename as defined by sender', duplicate_of_parent=False), Variable(api_name='mime_type', name='mime_type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. MIME type of the file as defined by sender', duplicate_of_parent=False), Variable(api_name='file_size', name='file_size', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. File size in bytes', duplicate_of_parent=False)]),
Clazz(clazz='Video', import_path=Import(path='pytgbot.api_types.receivable.media', name='Video', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='PhotoSize', is_init=False)], parent_clazz=Type(string='Media', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None), link='https://core.telegram.org/bots/api#video', description='This object represents a video file.', parameters=[Variable(api_name='file_id', name='file_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Identifier for this file, which can be used to download or reuse the file', duplicate_of_parent=False), Variable(api_name='file_unique_id', name='file_unique_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", duplicate_of_parent=False), Variable(api_name='width', name='width', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Video width as defined by sender', duplicate_of_parent=False), Variable(api_name='height', name='height', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Video height as defined by sender', duplicate_of_parent=False), Variable(api_name='duration', name='duration', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Duration of the video in seconds as defined by sender', duplicate_of_parent=False)], keywords=[Variable(api_name='thumb', name='thumb', pytg_name=None, types=[Type(string='PhotoSize', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Video thumbnail', duplicate_of_parent=False), Variable(api_name='file_name', name='file_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Original filename as defined by sender', duplicate_of_parent=False), Variable(api_name='mime_type', name='mime_type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Mime type of a file as defined by sender', duplicate_of_parent=False), Variable(api_name='file_size', name='file_size', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. File size in bytes', duplicate_of_parent=False)]),
Clazz(clazz='VideoNote', import_path=Import(path='pytgbot.api_types.receivable.media', name='VideoNote', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='PhotoSize', is_init=False)], parent_clazz=Type(string='Media', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None), link='https://core.telegram.org/bots/api#videonote', description='This object represents a video message (available in Telegram apps as of v.4.0).', parameters=[Variable(api_name='file_id', name='file_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Identifier for this file, which can be used to download or reuse the file', duplicate_of_parent=False), Variable(api_name='file_unique_id', name='file_unique_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", duplicate_of_parent=False), Variable(api_name='length', name='length', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Video width and height (diameter of the video message) as defined by sender', duplicate_of_parent=False), Variable(api_name='duration', name='duration', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Duration of the video in seconds as defined by sender', duplicate_of_parent=False)], keywords=[Variable(api_name='thumb', name='thumb', pytg_name=None, types=[Type(string='PhotoSize', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Video thumbnail', duplicate_of_parent=False), Variable(api_name='file_size', name='file_size', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. File size in bytes', duplicate_of_parent=False)]),
Clazz(clazz='Voice', import_path=Import(path='pytgbot.api_types.receivable.media', name='Voice', is_init=False), imports=[], parent_clazz=Type(string='Media', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None), link='https://core.telegram.org/bots/api#voice', description='This object represents a voice note.', parameters=[Variable(api_name='file_id', name='file_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Identifier for this file, which can be used to download or reuse the file', duplicate_of_parent=False), Variable(api_name='file_unique_id', name='file_unique_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", duplicate_of_parent=False), Variable(api_name='duration', name='duration', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Duration of the audio in seconds as defined by sender', duplicate_of_parent=False)], keywords=[Variable(api_name='mime_type', name='mime_type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. MIME type of the file as defined by sender', duplicate_of_parent=False), Variable(api_name='file_size', name='file_size', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. File size in bytes', duplicate_of_parent=False)]),
Clazz(clazz='Contact', import_path=Import(path='pytgbot.api_types.receivable.media', name='Contact', is_init=False), imports=[], parent_clazz=Type(string='Media', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None), link='https://core.telegram.org/bots/api#contact', description='This object represents a phone contact.', parameters=[Variable(api_name='phone_number', name='phone_number', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Contact's phone number", duplicate_of_parent=False), Variable(api_name='first_name', name='first_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Contact's first name", duplicate_of_parent=False)], keywords=[Variable(api_name='last_name', name='last_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. Contact's last name", duplicate_of_parent=False), Variable(api_name='user_id', name='user_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. Contact's user identifier in Telegram. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.", duplicate_of_parent=False), Variable(api_name='vcard', name='vcard', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Additional data about the contact in the form of a vCard', duplicate_of_parent=False)]),
Clazz(clazz='Dice', import_path=Import(path='pytgbot.api_types.receivable.media', name='Dice', is_init=False), imports=[], parent_clazz=Type(string='Media', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None), link='https://core.telegram.org/bots/api#dice', description='This object represents an animated emoji that displays a random value.', parameters=[Variable(api_name='emoji', name='emoji', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Emoji on which the dice throw animation is based', duplicate_of_parent=False), Variable(api_name='value', name='value', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Value of the dice, 1-6 for "🎲", "🎯" and "🎳" base emoji, 1-5 for "🏀" and "⚽" base emoji, 1-64 for "🎰" base emoji', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='PollOption', import_path=Import(path='pytgbot.api_types.receivable.media', name='PollOption', is_init=False), imports=[], parent_clazz=Type(string='Receivable', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#polloption', description='This object contains information about one answer option in a poll.', parameters=[Variable(api_name='text', name='text', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Option text, 1-100 characters', duplicate_of_parent=False), Variable(api_name='voter_count', name='voter_count', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Number of users that voted for this option', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='PollAnswer', import_path=Import(path='pytgbot.api_types.receivable.media', name='PollAnswer', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.peer', name='User', is_init=False)], parent_clazz=Type(string='Receivable', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#pollanswer', description='This object represents an answer of a user in a non-anonymous poll.', parameters=[Variable(api_name='poll_id', name='poll_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique poll identifier', duplicate_of_parent=False), Variable(api_name='user', name='user', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='The user, who changed the answer to the poll', duplicate_of_parent=False), Variable(api_name='option_ids', name='option_ids', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=1, import_path=None, description=None)], optional=False, default=None, description='0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='Poll', import_path=Import(path='pytgbot.api_types.receivable.media', name='Poll', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.receivable.media', name='PollOption', is_init=False)], parent_clazz=Type(string='Media', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None), link='https://core.telegram.org/bots/api#poll', description='This object contains information about a poll.', parameters=[Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique poll identifier', duplicate_of_parent=False), Variable(api_name='question', name='question', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Poll question, 1-300 characters', duplicate_of_parent=False), Variable(api_name='options', name='options', pytg_name=None, types=[Type(string='PollOption', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=False, default=None, description='List of poll options', duplicate_of_parent=False), Variable(api_name='total_voter_count', name='total_voter_count', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Total number of users that voted in the poll', duplicate_of_parent=False), Variable(api_name='is_closed', name='is_closed', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the poll is closed', duplicate_of_parent=False), Variable(api_name='is_anonymous', name='is_anonymous', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the poll is anonymous', duplicate_of_parent=False), Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Poll type, currently can be "regular" or "quiz"', duplicate_of_parent=False), Variable(api_name='allows_multiple_answers', name='allows_multiple_answers', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the poll allows multiple answers', duplicate_of_parent=False)], keywords=[Variable(api_name='correct_option_id', name='correct_option_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. 0-based identifier of the correct answer option. Available only for polls in the quiz mode, which are closed, or was sent (not forwarded) by the bot or to the private chat with the bot.', duplicate_of_parent=False), Variable(api_name='explanation', name='explanation', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters', duplicate_of_parent=False), Variable(api_name='explanation_entities', name='explanation_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Special entities like usernames, URLs, bot commands, etc. that appear in the explanation', duplicate_of_parent=False), Variable(api_name='open_period', name='open_period', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Amount of time in seconds the poll will be active after creation', duplicate_of_parent=False), Variable(api_name='close_date', name='close_date', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Point in time (Unix timestamp) when the poll will be automatically closed', duplicate_of_parent=False)]),
Clazz(clazz='Location', import_path=Import(path='pytgbot.api_types.receivable.media', name='Location', is_init=False), imports=[], parent_clazz=Type(string='Media', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None), link='https://core.telegram.org/bots/api#location', description='This object represents a point on the map.', parameters=[Variable(api_name='longitude', name='longitude', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Longitude as defined by sender', duplicate_of_parent=False), Variable(api_name='latitude', name='latitude', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Latitude as defined by sender', duplicate_of_parent=False)], keywords=[Variable(api_name='horizontal_accuracy', name='horizontal_accuracy', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. The radius of uncertainty for the location, measured in meters; 0-1500', duplicate_of_parent=False), Variable(api_name='live_period', name='live_period', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.', duplicate_of_parent=False), Variable(api_name='heading', name='heading', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.', duplicate_of_parent=False), Variable(api_name='proximity_alert_radius', name='proximity_alert_radius', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.', duplicate_of_parent=False)]),
Clazz(clazz='Venue', import_path=Import(path='pytgbot.api_types.receivable.media', name='Venue', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='Location', is_init=False)], parent_clazz=Type(string='Media', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None), link='https://core.telegram.org/bots/api#venue', description='This object represents a venue.', parameters=[Variable(api_name='location', name='location', pytg_name=None, types=[Type(string='Location', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=False, default=None, description="Venue location. Can't be a live location", duplicate_of_parent=False), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Name of the venue', duplicate_of_parent=False), Variable(api_name='address', name='address', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Address of the venue', duplicate_of_parent=False)], keywords=[Variable(api_name='foursquare_id', name='foursquare_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Foursquare identifier of the venue', duplicate_of_parent=False), Variable(api_name='foursquare_type', name='foursquare_type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Foursquare type of the venue. (For example, "arts_entertainment/default", "arts_entertainment/aquarium" or "food/icecream".)', duplicate_of_parent=False), Variable(api_name='google_place_id', name='google_place_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Google Places identifier of the venue', duplicate_of_parent=False), Variable(api_name='google_place_type', name='google_place_type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Google Places type of the venue. (See supported types.)', duplicate_of_parent=False)]),
Clazz(clazz='ProximityAlertTriggered', import_path=Import(path='pytgbot.api_types.receivable.service', name='ProximityAlertTriggered', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.peer', name='User', is_init=False)], parent_clazz=Type(string='ServiceMessage', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.service', description=None), link='https://core.telegram.org/bots/api#proximityalerttriggered', description='This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user.', parameters=[Variable(api_name='traveler', name='traveler', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='User that triggered the alert', duplicate_of_parent=False), Variable(api_name='watcher', name='watcher', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='User that set the alert', duplicate_of_parent=False), Variable(api_name='distance', name='distance', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='The distance between the users', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='MessageAutoDeleteTimerChanged', import_path=Import(path='pytgbot.api_types.receivable.service', name='MessageAutoDeleteTimerChanged', is_init=False), imports=[], parent_clazz=Type(string='ServiceMessage', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.service', description=None), link='https://core.telegram.org/bots/api#messageautodeletetimerchanged', description='This object represents a service message about a change in auto-delete timer settings.', parameters=[Variable(api_name='message_auto_delete_time', name='message_auto_delete_time', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='New auto-delete time for messages in the chat; in seconds', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='VoiceChatScheduled', import_path=Import(path='pytgbot.api_types.receivable.service', name='VoiceChatScheduled', is_init=False), imports=[], parent_clazz=Type(string='ServiceMessage', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.service', description=None), link='https://core.telegram.org/bots/api#voicechatscheduled', description='This object represents a service message about a voice chat scheduled in the chat.', parameters=[Variable(api_name='start_date', name='start_date', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Point in time (Unix timestamp) when the voice chat is supposed to be started by a chat administrator', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='VoiceChatStarted', import_path=Import(path='pytgbot.api_types.receivable.service', name='VoiceChatStarted', is_init=False), imports=[], parent_clazz=Type(string='ServiceMessage', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.service', description=None), link='https://core.telegram.org/bots/api#voicechatstarted', description='This object represents a service message about a voice chat started in the chat. Currently holds no information.', parameters=[], keywords=[]),
Clazz(clazz='VoiceChatEnded', import_path=Import(path='pytgbot.api_types.receivable.service', name='VoiceChatEnded', is_init=False), imports=[], parent_clazz=Type(string='ServiceMessage', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.service', description=None), link='https://core.telegram.org/bots/api#voicechatended', description='This object represents a service message about a voice chat ended in the chat.', parameters=[Variable(api_name='duration', name='duration', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Voice chat duration in seconds', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='VoiceChatParticipantsInvited', import_path=Import(path='pytgbot.api_types.receivable.service', name='VoiceChatParticipantsInvited', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.peer', name='User', is_init=False)], parent_clazz=Type(string='ServiceMessage', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.service', description=None), link='https://core.telegram.org/bots/api#voicechatparticipantsinvited', description='This object represents a service message about new members invited to a voice chat.', parameters=[], keywords=[Variable(api_name='users', name='users', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=True, default=None, description='Optional. New members that were invited to the voice chat', duplicate_of_parent=False)]),
Clazz(clazz='UserProfilePhotos', import_path=Import(path='pytgbot.api_types.receivable.media', name='UserProfilePhotos', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='PhotoSize', is_init=False)], parent_clazz=Type(string='Result', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#userprofilephotos', description="This object represent a user's profile pictures.", parameters=[Variable(api_name='total_count', name='total_count', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Total number of profile pictures the target user has', duplicate_of_parent=False), Variable(api_name='photos', name='photos', pytg_name=None, types=[Type(string='PhotoSize', is_builtin=False, always_is_value=None, is_list=2, import_path='pytgbot.api_types.receivable.media', description=None)], optional=False, default=None, description='Requested profile pictures (in up to 4 sizes each)', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='File', import_path=Import(path='pytgbot.api_types.receivable.media', name='File', is_init=False), imports=[], parent_clazz=Type(string='Receivable', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#file', description='This object represents a file ready to be downloaded. The file can be downloaded via the link https://api.telegram.org/file/bot<token>/<file_path>. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile.\n\nMaximum file size to download is 20 MB\n', parameters=[Variable(api_name='file_id', name='file_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Identifier for this file, which can be used to download or reuse the file', duplicate_of_parent=False), Variable(api_name='file_unique_id', name='file_unique_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", duplicate_of_parent=False)], keywords=[Variable(api_name='file_size', name='file_size', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. File size in bytes, if known', duplicate_of_parent=False), Variable(api_name='file_path', name='file_path', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. File path. Use https://api.telegram.org/file/bot<token>/<file_path> to get the file.', duplicate_of_parent=False)]),
Clazz(clazz='ReplyKeyboardMarkup', import_path=Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardMarkup', is_init=False), imports=[Import(path='pytgbot.api_types.sendable.reply_markup', name='KeyboardButton', is_init=False)], parent_clazz=Type(string='ReplyMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), link='https://core.telegram.org/bots/api#replykeyboardmarkup', description='This object represents a custom keyboard with reply options (see Introduction to bots for details and examples).', parameters=[Variable(api_name='keyboard', name='keyboard', pytg_name=None, types=[Type(string='KeyboardButton', is_builtin=False, always_is_value=None, is_list=2, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=False, default=None, description='Array of button rows, each represented by an Array of KeyboardButton objects', duplicate_of_parent=False)], keywords=[Variable(api_name='resize_keyboard', name='resize_keyboard', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.", duplicate_of_parent=False), Variable(api_name='one_time_keyboard', name='one_time_keyboard', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat – the user can press a special button in the input field to see the custom keyboard again. Defaults to false.", duplicate_of_parent=False), Variable(api_name='input_field_placeholder', name='input_field_placeholder', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. The placeholder to be shown in the input field when the keyboard is active; 1-64 characters', duplicate_of_parent=False), Variable(api_name='selective', name='selective', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.Example: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard.", duplicate_of_parent=False)]),
Clazz(clazz='KeyboardButton', import_path=Import(path='pytgbot.api_types.sendable.reply_markup', name='KeyboardButton', is_init=False), imports=[Import(path='pytgbot.api_types.sendable.reply_markup', name='KeyboardButtonPollType', is_init=False)], parent_clazz=Type(string='Button', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), link='https://core.telegram.org/bots/api#keyboardbutton', description='This object represents one button of the reply keyboard. For simple text buttons String can be used instead of this object to specify text of the button. Optional fields request_contact, request_location, and request_poll are mutually exclusive.\nNote: request_contact and request_location options will only work in Telegram versions released after 9 April, 2016. Older clients will display unsupported message.Note: request_poll option will only work in Telegram versions released after 23 January, 2020. Older clients will display unsupported message.', parameters=[Variable(api_name='text', name='text', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Text of the button. If none of the optional fields are used, it will be sent as a message when the button is pressed', duplicate_of_parent=False)], keywords=[Variable(api_name='request_contact', name='request_contact', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. If True, the user's phone number will be sent as a contact when the button is pressed. Available in private chats only", duplicate_of_parent=False), Variable(api_name='request_location', name='request_location', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. If True, the user's current location will be sent when the button is pressed. Available in private chats only", duplicate_of_parent=False), Variable(api_name='request_poll', name='request_poll', pytg_name=None, types=[Type(string='KeyboardButtonPollType', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Optional. If specified, the user will be asked to create a poll and send it to the bot when the button is pressed. Available in private chats only', duplicate_of_parent=False)]),
Clazz(clazz='KeyboardButtonPollType', import_path=Import(path='pytgbot.api_types.sendable.reply_markup', name='KeyboardButtonPollType', is_init=False), imports=[], parent_clazz=Type(string='Button', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), link='https://core.telegram.org/bots/api#keyboardbuttonpolltype', description='This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.', parameters=[], keywords=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. If quiz is passed, the user will be allowed to create only polls in the quiz mode. If regular is passed, only regular polls will be allowed. Otherwise, the user will be allowed to create a poll of any type.', duplicate_of_parent=False)]),
Clazz(clazz='ReplyKeyboardRemove', import_path=Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardRemove', is_init=False), imports=[], parent_clazz=Type(string='ReplyMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), link='https://core.telegram.org/bots/api#replykeyboardremove', description='Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button (see ReplyKeyboardMarkup).', parameters=[Variable(api_name='remove_keyboard', name='remove_keyboard', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)', duplicate_of_parent=False)], keywords=[Variable(api_name='selective', name='selective', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. Use this parameter if you want to remove the keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.Example: A user votes in a poll, bot returns confirmation message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with poll options to users who haven't voted yet.", duplicate_of_parent=False)]),
Clazz(clazz='InlineKeyboardMarkup', import_path=Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False), imports=[Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardButton', is_init=False)], parent_clazz=Type(string='ReplyMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), link='https://core.telegram.org/bots/api#inlinekeyboardmarkup', description='This object represents an inline keyboard that appears right next to the message it belongs to.\nNote: This will only work in Telegram versions released after 9 April, 2016. Older clients will display unsupported message.', parameters=[Variable(api_name='inline_keyboard', name='inline_keyboard', pytg_name=None, types=[Type(string='InlineKeyboardButton', is_builtin=False, always_is_value=None, is_list=2, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=False, default=None, description='Array of button rows, each represented by an Array of InlineKeyboardButton objects', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='InlineKeyboardButton', import_path=Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardButton', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.updates', name='CallbackGame', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='LoginUrl', is_init=False)], parent_clazz=Type(string='Button', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), link='https://core.telegram.org/bots/api#inlinekeyboardbutton', description='This object represents one button of an inline keyboard. You must use exactly one of the optional fields.', parameters=[Variable(api_name='text', name='text', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Label text on the button', duplicate_of_parent=False)], keywords=[Variable(api_name='url', name='url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. HTTP or tg:// url to be opened when the button is pressed. Links tg://user?id=<user_id> can be used to mention a user by their ID without using a username, if this is allowed by their privacy settings.', duplicate_of_parent=False), Variable(api_name='login_url', name='login_url', pytg_name=None, types=[Type(string='LoginUrl', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Optional. An HTTP URL used to automatically authorize the user. Can be used as a replacement for the Telegram Login Widget.', duplicate_of_parent=False), Variable(api_name='callback_data', name='callback_data', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes', duplicate_of_parent=False), Variable(api_name='switch_inline_query', name='switch_inline_query', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. Can be empty, in which case just the bot's username will be inserted.Note: This offers an easy way for users to start using your bot in inline mode when they are currently in a private chat with it. Especially useful when combined with switch_pm… actions – in this case the user will be automatically returned to the chat they switched from, skipping the chat selection screen.", duplicate_of_parent=False), Variable(api_name='switch_inline_query_current_chat', name='switch_inline_query_current_chat', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field. Can be empty, in which case only the bot's username will be inserted.This offers a quick way for the user to open your bot in inline mode in the same chat – good for selecting something from multiple options.", duplicate_of_parent=False), Variable(api_name='callback_game', name='callback_game', pytg_name=None, types=[Type(string='CallbackGame', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=True, default=None, description='Optional. Description of the game that will be launched when the user presses the button.NOTE: This type of button must always be the first button in the first row.', duplicate_of_parent=False), Variable(api_name='pay', name='pay', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Specify True, to send a Pay button.NOTE: This type of button must always be the first button in the first row and can only be used in invoice messages.', duplicate_of_parent=False)]),
Clazz(clazz='LoginUrl', import_path=Import(path='pytgbot.api_types.sendable.reply_markup', name='LoginUrl', is_init=False), imports=[], parent_clazz=Type(string='Sendable', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable', description=None), link='https://core.telegram.org/bots/api#loginurl', description='This object represents a parameter of the inline keyboard button used to automatically authorize a user. Serves as a great replacement for the Telegram Login Widget when the user is coming from Telegram. All the user needs to do is tap/click a button and confirm that they want to log in:\nTelegram apps support these buttons as of version 5.7.\n\nSample bot: @discussbot\n', parameters=[Variable(api_name='url', name='url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.NOTE: You must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization.', duplicate_of_parent=False)], keywords=[Variable(api_name='forward_text', name='forward_text', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. New text of the button in forwarded messages.', duplicate_of_parent=False), Variable(api_name='bot_username', name='bot_username', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. Username of a bot, which will be used for user authorization. See Setting up a bot for more details. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See Linking your domain to the bot for more details.", duplicate_of_parent=False), Variable(api_name='request_write_access', name='request_write_access', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Pass True to request the permission for your bot to send messages to the user.', duplicate_of_parent=False)]),
Clazz(clazz='CallbackQuery', import_path=Import(path='pytgbot.api_types.receivable.updates', name='CallbackQuery', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.peer', name='User', is_init=False), Import(path='pytgbot.api_types.receivable.updates', name='Message', is_init=False)], parent_clazz=Type(string='UpdateType', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None), link='https://core.telegram.org/bots/api#callbackquery', description='This object represents an incoming callback query from a callback button in an inline keyboard. If the button that originated the query was attached to a message sent by the bot, the field message will be present. If the button was attached to a message sent via the bot (in inline mode), the field inline_message_id will be present. Exactly one of the fields data or game_short_name will be present.\n\nNOTE: After the user presses a callback button, Telegram clients will display a progress bar until you call answerCallbackQuery. It is, therefore, necessary to react by calling answerCallbackQuery even if no notification to the user is needed (e.g., without specifying any of the optional parameters).\n', parameters=[Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this query', duplicate_of_parent=False), Variable(api_name='from', name='from_peer', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='Sender', duplicate_of_parent=False), Variable(api_name='chat_instance', name='chat_instance', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.', duplicate_of_parent=False)], keywords=[Variable(api_name='message', name='message', pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=True, default=None, description='Optional. Message with the callback button that originated the query. Note that message content and message date will not be available if the message is too old', duplicate_of_parent=False), Variable(api_name='inline_message_id', name='inline_message_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Identifier of the message sent via the bot in inline mode, that originated the query.', duplicate_of_parent=False), Variable(api_name='data', name='data', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field.', duplicate_of_parent=False), Variable(api_name='game_short_name', name='game_short_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Short name of a Game to be returned, serves as the unique identifier for the game', duplicate_of_parent=False)]),
Clazz(clazz='ForceReply', import_path=Import(path='pytgbot.api_types.sendable.reply_markup', name='ForceReply', is_init=False), imports=[], parent_clazz=Type(string='ReplyMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), link='https://core.telegram.org/bots/api#forcereply', description="Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode.\n\nExample: A poll bot for groups runs in privacy mode (only receives commands, replies to its messages and mentions). There could be two ways to create a new poll:\n\nExplain the user how to send a command with parameters (e.g. /newpoll question answer1 answer2). May be appealing for hardcore users but lacks modern day polish.\nGuide the user through a step-by-step process. 'Please send me your question', 'Cool, now let's add the first answer option', 'Great. Keep adding answer options, then send /done when you're ready'.\n\nThe last option is definitely more attractive. And if you use ForceReply in your bot's questions, it will receive the user's answers even if it only receives replies, commands and mentions — without any extra work for the user.\n", parameters=[Variable(api_name='force_reply', name='force_reply', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=False, default=None, description="Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'", duplicate_of_parent=False)], keywords=[Variable(api_name='input_field_placeholder', name='input_field_placeholder', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters', duplicate_of_parent=False), Variable(api_name='selective', name='selective', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.", duplicate_of_parent=False)]),
Clazz(clazz='ChatPhoto', import_path=Import(path='pytgbot.api_types.receivable.media', name='ChatPhoto', is_init=False), imports=[], parent_clazz=Type(string='Result', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#chatphoto', description='This object represents a chat photo.', parameters=[Variable(api_name='small_file_id', name='small_file_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.', duplicate_of_parent=False), Variable(api_name='small_file_unique_id', name='small_file_unique_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", duplicate_of_parent=False), Variable(api_name='big_file_id', name='big_file_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='File identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.', duplicate_of_parent=False), Variable(api_name='big_file_unique_id', name='big_file_unique_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='ChatInviteLink', import_path=Import(path='pytgbot.api_types.receivable.peer', name='ChatInviteLink', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.peer', name='User', is_init=False)], parent_clazz=Type(string='Result', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#chatinvitelink', description='Represents an invite link for a chat.', parameters=[Variable(api_name='invite_link', name='invite_link', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with "…".', duplicate_of_parent=False), Variable(api_name='creator', name='creator', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='Creator of the link', duplicate_of_parent=False), Variable(api_name='creates_join_request', name='creates_join_request', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if users joining the chat via the link need to be approved by chat administrators', duplicate_of_parent=False), Variable(api_name='is_primary', name='is_primary', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the link is primary', duplicate_of_parent=False), Variable(api_name='is_revoked', name='is_revoked', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the link is revoked', duplicate_of_parent=False)], keywords=[Variable(api_name='name', name='name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Invite link name', duplicate_of_parent=False), Variable(api_name='expire_date', name='expire_date', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Point in time (Unix timestamp) when the link will expire or has been expired', duplicate_of_parent=False), Variable(api_name='member_limit', name='member_limit', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999', duplicate_of_parent=False), Variable(api_name='pending_join_request_count', name='pending_join_request_count', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Number of pending join requests created using this link', duplicate_of_parent=False)]),
Clazz(clazz='ChatMemberOwner', import_path=Import(path='pytgbot.api_types.receivable.peer', name='ChatMemberOwner', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.peer', name='User', is_init=False)], parent_clazz=Type(string='ChatMember', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None), link='https://core.telegram.org/bots/api#chatmemberowner', description='Represents a chat member that owns the chat and has all administrator privileges.', parameters=[Variable(api_name='status', name='status', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='The member\'s status in the chat, always "creator"', duplicate_of_parent=False), Variable(api_name='user', name='user', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='Information about the user', duplicate_of_parent=False), Variable(api_name='is_anonymous', name='is_anonymous', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="True, if the user's presence in the chat is hidden", duplicate_of_parent=False)], keywords=[Variable(api_name='custom_title', name='custom_title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Custom title for this user', duplicate_of_parent=False)]),
Clazz(clazz='ChatMemberAdministrator', import_path=Import(path='pytgbot.api_types.receivable.peer', name='ChatMemberAdministrator', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.peer', name='User', is_init=False)], parent_clazz=Type(string='ChatMember', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None), link='https://core.telegram.org/bots/api#chatmemberadministrator', description='Represents a chat member that has some additional privileges.', parameters=[Variable(api_name='status', name='status', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='The member\'s status in the chat, always "administrator"', duplicate_of_parent=False), Variable(api_name='user', name='user', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='Information about the user', duplicate_of_parent=False), Variable(api_name='can_be_edited', name='can_be_edited', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the bot is allowed to edit administrator privileges of that user', duplicate_of_parent=False), Variable(api_name='is_anonymous', name='is_anonymous', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="True, if the user's presence in the chat is hidden", duplicate_of_parent=False), Variable(api_name='can_manage_chat', name='can_manage_chat', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege', duplicate_of_parent=False), Variable(api_name='can_delete_messages', name='can_delete_messages', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the administrator can delete messages of other users', duplicate_of_parent=False), Variable(api_name='can_manage_voice_chats', name='can_manage_voice_chats', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the administrator can manage voice chats', duplicate_of_parent=False), Variable(api_name='can_restrict_members', name='can_restrict_members', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the administrator can restrict, ban or unban chat members', duplicate_of_parent=False), Variable(api_name='can_promote_members', name='can_promote_members', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user)', duplicate_of_parent=False), Variable(api_name='can_change_info', name='can_change_info', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the user is allowed to change the chat title, photo and other settings', duplicate_of_parent=False), Variable(api_name='can_invite_users', name='can_invite_users', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the user is allowed to invite new users to the chat', duplicate_of_parent=False)], keywords=[Variable(api_name='can_post_messages', name='can_post_messages', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. True, if the administrator can post in the channel; channels only', duplicate_of_parent=False), Variable(api_name='can_edit_messages', name='can_edit_messages', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. True, if the administrator can edit messages of other users and can pin messages; channels only', duplicate_of_parent=False), Variable(api_name='can_pin_messages', name='can_pin_messages', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. True, if the user is allowed to pin messages; groups and supergroups only', duplicate_of_parent=False), Variable(api_name='custom_title', name='custom_title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Custom title for this user', duplicate_of_parent=False)]),
Clazz(clazz='ChatMemberMember', import_path=Import(path='pytgbot.api_types.receivable.peer', name='ChatMemberMember', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.peer', name='User', is_init=False)], parent_clazz=Type(string='ChatMember', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None), link='https://core.telegram.org/bots/api#chatmembermember', description='Represents a chat member that has no additional privileges or restrictions.', parameters=[Variable(api_name='status', name='status', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='The member\'s status in the chat, always "member"', duplicate_of_parent=False), Variable(api_name='user', name='user', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='Information about the user', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='ChatMemberRestricted', import_path=Import(path='pytgbot.api_types.receivable.peer', name='ChatMemberRestricted', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.peer', name='User', is_init=False)], parent_clazz=Type(string='ChatMember', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None), link='https://core.telegram.org/bots/api#chatmemberrestricted', description='Represents a chat member that is under certain restrictions in the chat. Supergroups only.', parameters=[Variable(api_name='status', name='status', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='The member\'s status in the chat, always "restricted"', duplicate_of_parent=False), Variable(api_name='user', name='user', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='Information about the user', duplicate_of_parent=False), Variable(api_name='is_member', name='is_member', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the user is a member of the chat at the moment of the request', duplicate_of_parent=False), Variable(api_name='can_change_info', name='can_change_info', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the user is allowed to change the chat title, photo and other settings', duplicate_of_parent=False), Variable(api_name='can_invite_users', name='can_invite_users', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the user is allowed to invite new users to the chat', duplicate_of_parent=False), Variable(api_name='can_pin_messages', name='can_pin_messages', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the user is allowed to pin messages', duplicate_of_parent=False), Variable(api_name='can_send_messages', name='can_send_messages', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the user is allowed to send text messages, contacts, locations and venues', duplicate_of_parent=False), Variable(api_name='can_send_media_messages', name='can_send_media_messages', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes', duplicate_of_parent=False), Variable(api_name='can_send_polls', name='can_send_polls', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the user is allowed to send polls', duplicate_of_parent=False), Variable(api_name='can_send_other_messages', name='can_send_other_messages', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the user is allowed to send animations, games, stickers and use inline bots', duplicate_of_parent=False), Variable(api_name='can_add_web_page_previews', name='can_add_web_page_previews', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the user is allowed to add web page previews to their messages', duplicate_of_parent=False), Variable(api_name='until_date', name='until_date', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Date when restrictions will be lifted for this user; unix time. If 0, then the user is restricted forever', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='ChatMemberLeft', import_path=Import(path='pytgbot.api_types.receivable.peer', name='ChatMemberLeft', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.peer', name='User', is_init=False)], parent_clazz=Type(string='ChatMember', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None), link='https://core.telegram.org/bots/api#chatmemberleft', description="Represents a chat member that isn't currently a member of the chat, but may join it themselves.", parameters=[Variable(api_name='status', name='status', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='The member\'s status in the chat, always "left"', duplicate_of_parent=False), Variable(api_name='user', name='user', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='Information about the user', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='ChatMemberBanned', import_path=Import(path='pytgbot.api_types.receivable.peer', name='ChatMemberBanned', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.peer', name='User', is_init=False)], parent_clazz=Type(string='ChatMember', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None), link='https://core.telegram.org/bots/api#chatmemberbanned', description="Represents a chat member that was banned in the chat and can't return to the chat or view chat messages.", parameters=[Variable(api_name='status', name='status', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='The member\'s status in the chat, always "kicked"', duplicate_of_parent=False), Variable(api_name='user', name='user', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='Information about the user', duplicate_of_parent=False), Variable(api_name='until_date', name='until_date', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Date when restrictions will be lifted for this user; unix time. If 0, then the user is banned forever', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='ChatMemberUpdated', import_path=Import(path='pytgbot.api_types.receivable.peer', name='ChatMemberUpdated', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.peer', name='Chat', is_init=False), Import(path='pytgbot.api_types.receivable.peer', name='ChatInviteLink', is_init=False), Import(path='pytgbot.api_types.receivable.peer', name='ChatMember', is_init=False), Import(path='pytgbot.api_types.receivable.peer', name='User', is_init=False)], parent_clazz=Type(string='Result', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#chatmemberupdated', description='This object represents changes in the status of a chat member.', parameters=[Variable(api_name='chat', name='chat', pytg_name=None, types=[Type(string='Chat', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='Chat the user belongs to', duplicate_of_parent=False), Variable(api_name='from', name='from_peer', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='Performer of the action, which resulted in the change', duplicate_of_parent=False), Variable(api_name='date', name='date', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Date the change was done in Unix time', duplicate_of_parent=False), Variable(api_name='old_chat_member', name='old_chat_member', pytg_name=None, types=[Type(string='ChatMember', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='Previous information about the chat member', duplicate_of_parent=False), Variable(api_name='new_chat_member', name='new_chat_member', pytg_name=None, types=[Type(string='ChatMember', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='New information about the chat member', duplicate_of_parent=False)], keywords=[Variable(api_name='invite_link', name='invite_link', pytg_name=None, types=[Type(string='ChatInviteLink', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=True, default=None, description='Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.', duplicate_of_parent=False)]),
Clazz(clazz='ChatJoinRequest', import_path=Import(path='pytgbot.api_types.receivable.peer', name='ChatJoinRequest', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.peer', name='Chat', is_init=False), Import(path='pytgbot.api_types.receivable.peer', name='ChatInviteLink', is_init=False), Import(path='pytgbot.api_types.receivable.peer', name='User', is_init=False)], parent_clazz=Type(string='Result', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#chatjoinrequest', description='Represents a join request sent to a chat.', parameters=[Variable(api_name='chat', name='chat', pytg_name=None, types=[Type(string='Chat', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='Chat to which the request was sent', duplicate_of_parent=False), Variable(api_name='from', name='from_peer', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='User that sent the join request', duplicate_of_parent=False), Variable(api_name='date', name='date', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Date the request was sent in Unix time', duplicate_of_parent=False)], keywords=[Variable(api_name='bio', name='bio', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Bio of the user.', duplicate_of_parent=False), Variable(api_name='invite_link', name='invite_link', pytg_name=None, types=[Type(string='ChatInviteLink', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=True, default=None, description='Optional. Chat invite link that was used by the user to send the join request', duplicate_of_parent=False)]),
Clazz(clazz='ChatPermissions', import_path=Import(path='pytgbot.api_types.receivable.peer', name='ChatPermissions', is_init=False), imports=[], parent_clazz=Type(string='Result', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#chatpermissions', description='Describes actions that a non-administrator user is allowed to take in a chat.', parameters=[], keywords=[Variable(api_name='can_send_messages', name='can_send_messages', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. True, if the user is allowed to send text messages, contacts, locations and venues', duplicate_of_parent=False), Variable(api_name='can_send_media_messages', name='can_send_media_messages', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages', duplicate_of_parent=False), Variable(api_name='can_send_polls', name='can_send_polls', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. True, if the user is allowed to send polls, implies can_send_messages', duplicate_of_parent=False), Variable(api_name='can_send_other_messages', name='can_send_other_messages', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. True, if the user is allowed to send animations, games, stickers and use inline bots, implies can_send_media_messages', duplicate_of_parent=False), Variable(api_name='can_add_web_page_previews', name='can_add_web_page_previews', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. True, if the user is allowed to add web page previews to their messages, implies can_send_media_messages', duplicate_of_parent=False), Variable(api_name='can_change_info', name='can_change_info', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups', duplicate_of_parent=False), Variable(api_name='can_invite_users', name='can_invite_users', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. True, if the user is allowed to invite new users to the chat', duplicate_of_parent=False), Variable(api_name='can_pin_messages', name='can_pin_messages', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. True, if the user is allowed to pin messages. Ignored in public supergroups', duplicate_of_parent=False)]),
Clazz(clazz='ChatLocation', import_path=Import(path='pytgbot.api_types.receivable.peer', name='ChatLocation', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='Location', is_init=False)], parent_clazz=Type(string='Result', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#chatlocation', description='Represents a location to which a chat is connected.', parameters=[Variable(api_name='location', name='location', pytg_name=None, types=[Type(string='Location', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=False, default=None, description="The location to which the supergroup is connected. Can't be a live location.", duplicate_of_parent=False), Variable(api_name='address', name='address', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Location address; 1-64 characters, as defined by the chat owner', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='BotCommand', import_path=Import(path='pytgbot.api_types.sendable.command', name='BotCommand', is_init=False), imports=[], parent_clazz=Type(string='Sendable', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable', description=None), link='https://core.telegram.org/bots/api#botcommand', description='This object represents a bot command.', parameters=[Variable(api_name='command', name='command', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores.', duplicate_of_parent=False), Variable(api_name='description', name='description', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Description of the command; 1-256 characters.', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='BotCommandScope', import_path=Import(path='pytgbot.api_types.sendable.command', name='BotCommandScope', is_init=False), imports=[], parent_clazz=Type(string='Sendable', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable', description=None), link='https://core.telegram.org/bots/api#botcommandscope', description='This object represents the scope to which bot commands are applied. Currently, the following 7 scopes are supported:', parameters=[], keywords=[]),
Clazz(clazz='BotCommandScopeDefault', import_path=Import(path='pytgbot.api_types.sendable.command', name='BotCommandScopeDefault', is_init=False), imports=[], parent_clazz=Type(string='BotCommandScope', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.command', description=None), link='https://core.telegram.org/bots/api#botcommandscopedefault', description='Represents the default scope of bot commands. Default commands are used if no commands with a narrower scope are specified for the user.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='default', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Scope type, must be default', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='BotCommandScopeAllPrivateChats', import_path=Import(path='pytgbot.api_types.sendable.command', name='BotCommandScopeAllPrivateChats', is_init=False), imports=[], parent_clazz=Type(string='BotCommandScope', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.command', description=None), link='https://core.telegram.org/bots/api#botcommandscopeallprivatechats', description='Represents the scope of bot commands, covering all private chats.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='all_private_chats', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Scope type, must be all_private_chats', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='BotCommandScopeAllGroupChats', import_path=Import(path='pytgbot.api_types.sendable.command', name='BotCommandScopeAllGroupChats', is_init=False), imports=[], parent_clazz=Type(string='BotCommandScope', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.command', description=None), link='https://core.telegram.org/bots/api#botcommandscopeallgroupchats', description='Represents the scope of bot commands, covering all group and supergroup chats.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='all_group_chats', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Scope type, must be all_group_chats', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='BotCommandScopeAllChatAdministrators', import_path=Import(path='pytgbot.api_types.sendable.command', name='BotCommandScopeAllChatAdministrators', is_init=False), imports=[], parent_clazz=Type(string='BotCommandScope', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.command', description=None), link='https://core.telegram.org/bots/api#botcommandscopeallchatadministrators', description='Represents the scope of bot commands, covering all group and supergroup chat administrators.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='all_chat_administrators', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Scope type, must be all_chat_administrators', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='BotCommandScopeChat', import_path=Import(path='pytgbot.api_types.sendable.command', name='BotCommandScopeChat', is_init=False), imports=[], parent_clazz=Type(string='BotCommandScope', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.command', description=None), link='https://core.telegram.org/bots/api#botcommandscopechat', description='Represents the scope of bot commands, covering a specific chat.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='chat', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Scope type, must be chat', duplicate_of_parent=False), Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='BotCommandScopeChatAdministrators', import_path=Import(path='pytgbot.api_types.sendable.command', name='BotCommandScopeChatAdministrators', is_init=False), imports=[], parent_clazz=Type(string='BotCommandScope', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.command', description=None), link='https://core.telegram.org/bots/api#botcommandscopechatadministrators', description='Represents the scope of bot commands, covering all administrators of a specific group or supergroup chat.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='chat_administrators', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Scope type, must be chat_administrators', duplicate_of_parent=False), Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='BotCommandScopeChatMember', import_path=Import(path='pytgbot.api_types.sendable.command', name='BotCommandScopeChatMember', is_init=False), imports=[], parent_clazz=Type(string='BotCommandScope', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.command', description=None), link='https://core.telegram.org/bots/api#botcommandscopechatmember', description='Represents the scope of bot commands, covering a specific member of a group or supergroup chat.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='chat_member', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Scope type, must be chat_member', duplicate_of_parent=False), Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)', duplicate_of_parent=False), Variable(api_name='user_id', name='user_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier of the target user', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='ResponseParameters', import_path=Import(path='pytgbot.api_types.receivable.updates', name='ResponseParameters', is_init=False), imports=[], parent_clazz=Type(string='Receivable', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#responseparameters', description='Contains information about why a request was unsuccessful.', parameters=[], keywords=[Variable(api_name='migrate_to_chat_id', name='migrate_to_chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. The group has been migrated to a supergroup with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.', duplicate_of_parent=False), Variable(api_name='retry_after', name='retry_after', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. In case of exceeding flood control, the number of seconds left to wait before the request can be repeated', duplicate_of_parent=False)]),
Clazz(clazz='InputMediaPhoto', import_path=Import(path='pytgbot.api_types.sendable.input_media', name='InputMediaPhoto', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False)], parent_clazz=Type(string='InputMedia', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.input_media', description=None), link='https://core.telegram.org/bots/api#inputmediaphoto', description='Represents a photo to be sent.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='photo', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be photo', duplicate_of_parent=True), Variable(api_name='media', name='media', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files »', duplicate_of_parent=True)], keywords=[Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing', duplicate_of_parent=True), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Mode for parsing entities in the photo caption. See formatting options for more details.', duplicate_of_parent=True), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=True)]),
Clazz(clazz='InputMediaVideo', import_path=Import(path='pytgbot.api_types.sendable.input_media', name='InputMediaVideo', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.files', name='InputFile', is_init=False)], parent_clazz=Type(string='InputMediaVideolike', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.input_media', description=None), link='https://core.telegram.org/bots/api#inputmediavideo', description='Represents a video to be sent.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='video', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be video', duplicate_of_parent=True), Variable(api_name='media', name='media', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files »', duplicate_of_parent=True)], keywords=[Variable(api_name='thumb', name='thumb', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail\'s width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can\'t be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »', duplicate_of_parent=True), Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Caption of the video to be sent, 0-1024 characters after entities parsing', duplicate_of_parent=True), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Mode for parsing entities in the video caption. See formatting options for more details.', duplicate_of_parent=True), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=True), Variable(api_name='width', name='width', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Video width', duplicate_of_parent=True), Variable(api_name='height', name='height', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Video height', duplicate_of_parent=True), Variable(api_name='duration', name='duration', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Video duration in seconds', duplicate_of_parent=True), Variable(api_name='supports_streaming', name='supports_streaming', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Pass True, if the uploaded video is suitable for streaming', duplicate_of_parent=False)]),
Clazz(clazz='InputMediaAnimation', import_path=Import(path='pytgbot.api_types.sendable.input_media', name='InputMediaAnimation', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.files', name='InputFile', is_init=False)], parent_clazz=Type(string='InputMediaVideolike', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.input_media', description=None), link='https://core.telegram.org/bots/api#inputmediaanimation', description='Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='animation', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be animation', duplicate_of_parent=True), Variable(api_name='media', name='media', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files »', duplicate_of_parent=True)], keywords=[Variable(api_name='thumb', name='thumb', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail\'s width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can\'t be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »', duplicate_of_parent=True), Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Caption of the animation to be sent, 0-1024 characters after entities parsing', duplicate_of_parent=True), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Mode for parsing entities in the animation caption. See formatting options for more details.', duplicate_of_parent=True), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=True), Variable(api_name='width', name='width', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Animation width', duplicate_of_parent=True), Variable(api_name='height', name='height', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Animation height', duplicate_of_parent=True), Variable(api_name='duration', name='duration', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Animation duration in seconds', duplicate_of_parent=True)]),
Clazz(clazz='InputMediaAudio', import_path=Import(path='pytgbot.api_types.sendable.input_media', name='InputMediaAudio', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.files', name='InputFile', is_init=False)], parent_clazz=Type(string='InputMediaPlayable', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.input_media', description=None), link='https://core.telegram.org/bots/api#inputmediaaudio', description='Represents an audio file to be treated as music to be sent.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='audio', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be audio', duplicate_of_parent=True), Variable(api_name='media', name='media', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files »', duplicate_of_parent=True)], keywords=[Variable(api_name='thumb', name='thumb', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail\'s width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can\'t be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »', duplicate_of_parent=True), Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Caption of the audio to be sent, 0-1024 characters after entities parsing', duplicate_of_parent=True), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Mode for parsing entities in the audio caption. See formatting options for more details.', duplicate_of_parent=True), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=True), Variable(api_name='duration', name='duration', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Duration of the audio in seconds', duplicate_of_parent=True), Variable(api_name='performer', name='performer', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Performer of the audio', duplicate_of_parent=False), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Title of the audio', duplicate_of_parent=False)]),
Clazz(clazz='InputMediaDocument', import_path=Import(path='pytgbot.api_types.sendable.input_media', name='InputMediaDocument', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.files', name='InputFile', is_init=False)], parent_clazz=Type(string='InputMediaWithThumb', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.input_media', description=None), link='https://core.telegram.org/bots/api#inputmediadocument', description='Represents a general file to be sent.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='document', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be document', duplicate_of_parent=True), Variable(api_name='media', name='media', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name. More info on Sending Files »', duplicate_of_parent=True)], keywords=[Variable(api_name='thumb', name='thumb', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail\'s width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can\'t be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »', duplicate_of_parent=True), Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Caption of the document to be sent, 0-1024 characters after entities parsing', duplicate_of_parent=True), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Mode for parsing entities in the document caption. See formatting options for more details.', duplicate_of_parent=True), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=True), Variable(api_name='disable_content_type_detection', name='disable_content_type_detection', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Disables automatic server-side content type detection for files uploaded using multipart/form-data. Always True, if the document is sent as part of an album.', duplicate_of_parent=False)]),
Function(api_name='getMe', imports=[], link='https://core.telegram.org/bots/api#getme', description="A simple method for testing your bot's authentication token. Requires no parameters. Returns basic information about the bot in form of a User object.", returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=None, default=None, description='Returns basic information about the bot in form of a User object', duplicate_of_parent=None), parameters=[], keywords=[]),
Function(api_name='logOut', imports=[], link='https://core.telegram.org/bots/api#logout', description='Use this method to log out from the cloud Bot API server before launching the bot locally. You must log out the bot before running it locally, otherwise there is no guarantee that the bot will receive updates. After a successful call, you can immediately log in on a local server, but will not be able to log in back to the cloud Bot API server for 10 minutes. Returns True on success. Requires no parameters.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[], keywords=[]),
Function(api_name='sendMessage', imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ForceReply', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardRemove', is_init=False)], link='https://core.telegram.org/bots/api#sendmessage', description='Use this method to send text messages. On success, the sent Message is returned.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=None, default=None, description='On success, the sent Message is returned', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='text', name='text', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Text of the message to be sent, 1-4096 characters after entities parsing', duplicate_of_parent=None)], keywords=[Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Mode for parsing entities in the message text. See formatting options for more details.', duplicate_of_parent=None), Variable(api_name='entities', name='entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode', duplicate_of_parent=None), Variable(api_name='disable_web_page_preview', name='disable_web_page_preview', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Disables link previews for links in this message', duplicate_of_parent=None), Variable(api_name='disable_notification', name='disable_notification', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Sends the message silently. Users will receive a notification with no sound.', duplicate_of_parent=None), Variable(api_name='protect_content', name='protect_content', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Protects the contents of the sent message from forwarding and saving', duplicate_of_parent=None), Variable(api_name='reply_to_message_id', name='reply_to_message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='If the message is a reply, ID of the original message', duplicate_of_parent=None), Variable(api_name='allow_sending_without_reply', name='allow_sending_without_reply', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the message should be sent even if the specified replied-to message is not found', duplicate_of_parent=None), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardRemove', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ForceReply', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.', duplicate_of_parent=None)]),
Function(api_name='forwardMessage', imports=[], link='https://core.telegram.org/bots/api#forwardmessage', description="Use this method to forward messages of any kind. Service messages can't be forwarded. On success, the sent Message is returned.", returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=None, default=None, description='On success, the sent Message is returned', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='from_chat_id', name='from_chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='message_id', name='message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Message identifier in the chat specified in from_chat_id', duplicate_of_parent=None)], keywords=[Variable(api_name='disable_notification', name='disable_notification', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Sends the message silently. Users will receive a notification with no sound.', duplicate_of_parent=None), Variable(api_name='protect_content', name='protect_content', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Protects the contents of the forwarded message from forwarding and saving', duplicate_of_parent=None)]),
Function(api_name='copyMessage', imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ForceReply', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardRemove', is_init=False)], link='https://core.telegram.org/bots/api#copymessage', description="Use this method to copy messages of any kind. Service messages and invoice messages can't be copied. The method is analogous to the method forwardMessage, but the copied message doesn't have a link to the original message. Returns the MessageId of the sent message on success.", returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='MessageId', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.responses', description=None)], optional=None, default=None, description='Returns the MessageId of the sent message on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='from_chat_id', name='from_chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='message_id', name='message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Message identifier in the chat specified in from_chat_id', duplicate_of_parent=None)], keywords=[Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='New caption for media, 0-1024 characters after entities parsing. If not specified, the original caption is kept', duplicate_of_parent=None), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Mode for parsing entities in the new caption. See formatting options for more details.', duplicate_of_parent=None), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='A JSON-serialized list of special entities that appear in the new caption, which can be specified instead of parse_mode', duplicate_of_parent=None), Variable(api_name='disable_notification', name='disable_notification', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Sends the message silently. Users will receive a notification with no sound.', duplicate_of_parent=None), Variable(api_name='protect_content', name='protect_content', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Protects the contents of the sent message from forwarding and saving', duplicate_of_parent=None), Variable(api_name='reply_to_message_id', name='reply_to_message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='If the message is a reply, ID of the original message', duplicate_of_parent=None), Variable(api_name='allow_sending_without_reply', name='allow_sending_without_reply', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the message should be sent even if the specified replied-to message is not found', duplicate_of_parent=None), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardRemove', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ForceReply', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.', duplicate_of_parent=None)]),
Function(api_name='sendPhoto', imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.files', name='InputFile', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ForceReply', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardRemove', is_init=False)], link='https://core.telegram.org/bots/api#sendphoto', description='Use this method to send photos. On success, the sent Message is returned.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=None, default=None, description='On success, the sent Message is returned', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='photo', name='photo', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a photo from the Internet, or upload a new photo using multipart/form-data. The photo must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total. Width and height ratio must be at most 20. More info on Sending Files »", duplicate_of_parent=None)], keywords=[Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Photo caption (may also be used when resending photos by file_id), 0-1024 characters after entities parsing', duplicate_of_parent=None), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Mode for parsing entities in the photo caption. See formatting options for more details.', duplicate_of_parent=None), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=None), Variable(api_name='disable_notification', name='disable_notification', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Sends the message silently. Users will receive a notification with no sound.', duplicate_of_parent=None), Variable(api_name='protect_content', name='protect_content', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Protects the contents of the sent message from forwarding and saving', duplicate_of_parent=None), Variable(api_name='reply_to_message_id', name='reply_to_message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='If the message is a reply, ID of the original message', duplicate_of_parent=None), Variable(api_name='allow_sending_without_reply', name='allow_sending_without_reply', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the message should be sent even if the specified replied-to message is not found', duplicate_of_parent=None), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardRemove', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ForceReply', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.', duplicate_of_parent=None)]),
Function(api_name='sendAudio', imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.files', name='InputFile', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ForceReply', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardRemove', is_init=False)], link='https://core.telegram.org/bots/api#sendaudio', description='Use this method to send audio files, if you want Telegram clients to display them in the music player. Your audio must be in the .MP3 or .M4A format. On success, the sent Message is returned. Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future.\nFor sending voice messages, use the sendVoice method instead.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=None, default=None, description='On success, the sent Message is returned', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='audio', name='audio', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Audio file to send. Pass a file_id as String to send an audio file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an audio file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files »', duplicate_of_parent=None)], keywords=[Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Audio caption, 0-1024 characters after entities parsing', duplicate_of_parent=None), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Mode for parsing entities in the audio caption. See formatting options for more details.', duplicate_of_parent=None), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=None), Variable(api_name='duration', name='duration', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Duration of the audio in seconds', duplicate_of_parent=None), Variable(api_name='performer', name='performer', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Performer', duplicate_of_parent=None), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Track name', duplicate_of_parent=None), Variable(api_name='thumb', name='thumb', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail\'s width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can\'t be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »', duplicate_of_parent=None), Variable(api_name='disable_notification', name='disable_notification', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Sends the message silently. Users will receive a notification with no sound.', duplicate_of_parent=None), Variable(api_name='protect_content', name='protect_content', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Protects the contents of the sent message from forwarding and saving', duplicate_of_parent=None), Variable(api_name='reply_to_message_id', name='reply_to_message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='If the message is a reply, ID of the original message', duplicate_of_parent=None), Variable(api_name='allow_sending_without_reply', name='allow_sending_without_reply', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the message should be sent even if the specified replied-to message is not found', duplicate_of_parent=None), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardRemove', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ForceReply', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.', duplicate_of_parent=None)]),
Function(api_name='sendDocument', imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.files', name='InputFile', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ForceReply', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardRemove', is_init=False)], link='https://core.telegram.org/bots/api#senddocument', description='Use this method to send general files. On success, the sent Message is returned. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=None, default=None, description='On success, the sent Message is returned', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='document', name='document', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='File to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files »', duplicate_of_parent=None)], keywords=[Variable(api_name='thumb', name='thumb', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail\'s width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can\'t be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »', duplicate_of_parent=None), Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Document caption (may also be used when resending documents by file_id), 0-1024 characters after entities parsing', duplicate_of_parent=None), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Mode for parsing entities in the document caption. See formatting options for more details.', duplicate_of_parent=None), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=None), Variable(api_name='disable_content_type_detection', name='disable_content_type_detection', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Disables automatic server-side content type detection for files uploaded using multipart/form-data', duplicate_of_parent=None), Variable(api_name='disable_notification', name='disable_notification', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Sends the message silently. Users will receive a notification with no sound.', duplicate_of_parent=None), Variable(api_name='protect_content', name='protect_content', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Protects the contents of the sent message from forwarding and saving', duplicate_of_parent=None), Variable(api_name='reply_to_message_id', name='reply_to_message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='If the message is a reply, ID of the original message', duplicate_of_parent=None), Variable(api_name='allow_sending_without_reply', name='allow_sending_without_reply', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the message should be sent even if the specified replied-to message is not found', duplicate_of_parent=None), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardRemove', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ForceReply', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.', duplicate_of_parent=None)]),
Function(api_name='sendVideo', imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.files', name='InputFile', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ForceReply', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardRemove', is_init=False)], link='https://core.telegram.org/bots/api#sendvideo', description='Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as Document). On success, the sent Message is returned. Bots can currently send video files of up to 50 MB in size, this limit may be changed in the future.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=None, default=None, description='On success, the sent Message is returned', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='video', name='video', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Video to send. Pass a file_id as String to send a video that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a video from the Internet, or upload a new video using multipart/form-data. More info on Sending Files »', duplicate_of_parent=None)], keywords=[Variable(api_name='duration', name='duration', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Duration of sent video in seconds', duplicate_of_parent=None), Variable(api_name='width', name='width', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Video width', duplicate_of_parent=None), Variable(api_name='height', name='height', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Video height', duplicate_of_parent=None), Variable(api_name='thumb', name='thumb', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail\'s width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can\'t be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »', duplicate_of_parent=None), Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Video caption (may also be used when resending videos by file_id), 0-1024 characters after entities parsing', duplicate_of_parent=None), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Mode for parsing entities in the video caption. See formatting options for more details.', duplicate_of_parent=None), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=None), Variable(api_name='supports_streaming', name='supports_streaming', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the uploaded video is suitable for streaming', duplicate_of_parent=None), Variable(api_name='disable_notification', name='disable_notification', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Sends the message silently. Users will receive a notification with no sound.', duplicate_of_parent=None), Variable(api_name='protect_content', name='protect_content', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Protects the contents of the sent message from forwarding and saving', duplicate_of_parent=None), Variable(api_name='reply_to_message_id', name='reply_to_message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='If the message is a reply, ID of the original message', duplicate_of_parent=None), Variable(api_name='allow_sending_without_reply', name='allow_sending_without_reply', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the message should be sent even if the specified replied-to message is not found', duplicate_of_parent=None), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardRemove', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ForceReply', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.', duplicate_of_parent=None)]),
Function(api_name='sendAnimation', imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.files', name='InputFile', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ForceReply', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardRemove', is_init=False)], link='https://core.telegram.org/bots/api#sendanimation', description='Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound). On success, the sent Message is returned. Bots can currently send animation files of up to 50 MB in size, this limit may be changed in the future.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=None, default=None, description='On success, the sent Message is returned', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='animation', name='animation', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Animation to send. Pass a file_id as String to send an animation that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an animation from the Internet, or upload a new animation using multipart/form-data. More info on Sending Files »', duplicate_of_parent=None)], keywords=[Variable(api_name='duration', name='duration', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Duration of sent animation in seconds', duplicate_of_parent=None), Variable(api_name='width', name='width', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Animation width', duplicate_of_parent=None), Variable(api_name='height', name='height', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Animation height', duplicate_of_parent=None), Variable(api_name='thumb', name='thumb', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail\'s width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can\'t be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »', duplicate_of_parent=None), Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Animation caption (may also be used when resending animation by file_id), 0-1024 characters after entities parsing', duplicate_of_parent=None), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Mode for parsing entities in the animation caption. See formatting options for more details.', duplicate_of_parent=None), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=None), Variable(api_name='disable_notification', name='disable_notification', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Sends the message silently. Users will receive a notification with no sound.', duplicate_of_parent=None), Variable(api_name='protect_content', name='protect_content', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Protects the contents of the sent message from forwarding and saving', duplicate_of_parent=None), Variable(api_name='reply_to_message_id', name='reply_to_message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='If the message is a reply, ID of the original message', duplicate_of_parent=None), Variable(api_name='allow_sending_without_reply', name='allow_sending_without_reply', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the message should be sent even if the specified replied-to message is not found', duplicate_of_parent=None), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardRemove', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ForceReply', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.', duplicate_of_parent=None)]),
Function(api_name='sendVoice', imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.files', name='InputFile', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ForceReply', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardRemove', is_init=False)], link='https://core.telegram.org/bots/api#sendvoice', description='Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS (other formats may be sent as Audio or Document). On success, the sent Message is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=None, default=None, description='On success, the sent Message is returned', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='voice', name='voice', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Audio file to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files »', duplicate_of_parent=None)], keywords=[Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Voice message caption, 0-1024 characters after entities parsing', duplicate_of_parent=None), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Mode for parsing entities in the voice message caption. See formatting options for more details.', duplicate_of_parent=None), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=None), Variable(api_name='duration', name='duration', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Duration of the voice message in seconds', duplicate_of_parent=None), Variable(api_name='disable_notification', name='disable_notification', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Sends the message silently. Users will receive a notification with no sound.', duplicate_of_parent=None), Variable(api_name='protect_content', name='protect_content', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Protects the contents of the sent message from forwarding and saving', duplicate_of_parent=None), Variable(api_name='reply_to_message_id', name='reply_to_message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='If the message is a reply, ID of the original message', duplicate_of_parent=None), Variable(api_name='allow_sending_without_reply', name='allow_sending_without_reply', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the message should be sent even if the specified replied-to message is not found', duplicate_of_parent=None), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardRemove', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ForceReply', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.', duplicate_of_parent=None)]),
Function(api_name='sendVideoNote', imports=[Import(path='pytgbot.api_types.sendable.files', name='InputFile', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ForceReply', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardRemove', is_init=False)], link='https://core.telegram.org/bots/api#sendvideonote', description='As of v.4.0, Telegram clients support rounded square mp4 videos of up to 1 minute long. Use this method to send video messages. On success, the sent Message is returned.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=None, default=None, description='On success, the sent Message is returned', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='video_note', name='video_note', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Video note to send. Pass a file_id as String to send a video note that exists on the Telegram servers (recommended) or upload a new video using multipart/form-data. More info on Sending Files ». Sending video notes by a URL is currently unsupported', duplicate_of_parent=None)], keywords=[Variable(api_name='duration', name='duration', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Duration of sent video in seconds', duplicate_of_parent=None), Variable(api_name='length', name='length', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Video width and height, i.e. diameter of the video message', duplicate_of_parent=None), Variable(api_name='thumb', name='thumb', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail\'s width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can\'t be reused and can be only uploaded as a new file, so you can pass "attach://<file_attach_name>" if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files »', duplicate_of_parent=None), Variable(api_name='disable_notification', name='disable_notification', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Sends the message silently. Users will receive a notification with no sound.', duplicate_of_parent=None), Variable(api_name='protect_content', name='protect_content', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Protects the contents of the sent message from forwarding and saving', duplicate_of_parent=None), Variable(api_name='reply_to_message_id', name='reply_to_message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='If the message is a reply, ID of the original message', duplicate_of_parent=None), Variable(api_name='allow_sending_without_reply', name='allow_sending_without_reply', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the message should be sent even if the specified replied-to message is not found', duplicate_of_parent=None), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardRemove', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ForceReply', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.', duplicate_of_parent=None)]),
Function(api_name='sendMediaGroup', imports=[Import(path='pytgbot.api_types.sendable.input_media', name='InputMediaAudio', is_init=False), Import(path='pytgbot.api_types.sendable.input_media', name='InputMediaDocument', is_init=False), Import(path='pytgbot.api_types.sendable.input_media', name='InputMediaPhoto', is_init=False), Import(path='pytgbot.api_types.sendable.input_media', name='InputMediaVideo', is_init=False)], link='https://core.telegram.org/bots/api#sendmediagroup', description='Use this method to send a group of photos, videos, documents or audios as an album. Documents and audio files can be only grouped in an album with messages of the same type. On success, an array of Messages that were sent is returned.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=None, default=None, description='On success, an array of Messages that were sent is returned', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='media', name='media', pytg_name=None, types=[Type(string='InputMediaAudio', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.sendable.input_media', description=None), Type(string='InputMediaDocument', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.sendable.input_media', description=None), Type(string='InputMediaPhoto', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.sendable.input_media', description=None), Type(string='InputMediaVideo', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.sendable.input_media', description=None)], optional=False, default=None, description='A JSON-serialized array describing messages to be sent, must include 2-10 items', duplicate_of_parent=None)], keywords=[Variable(api_name='disable_notification', name='disable_notification', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Sends messages silently. Users will receive a notification with no sound.', duplicate_of_parent=None), Variable(api_name='protect_content', name='protect_content', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Protects the contents of the sent messages from forwarding and saving', duplicate_of_parent=None), Variable(api_name='reply_to_message_id', name='reply_to_message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='If the messages are a reply, ID of the original message', duplicate_of_parent=None), Variable(api_name='allow_sending_without_reply', name='allow_sending_without_reply', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the message should be sent even if the specified replied-to message is not found', duplicate_of_parent=None)]),
Function(api_name='sendLocation', imports=[Import(path='pytgbot.api_types.sendable.reply_markup', name='ForceReply', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardRemove', is_init=False)], link='https://core.telegram.org/bots/api#sendlocation', description='Use this method to send point on the map. On success, the sent Message is returned.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=None, default=None, description='On success, the sent Message is returned', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='latitude', name='latitude', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Latitude of the location', duplicate_of_parent=None), Variable(api_name='longitude', name='longitude', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Longitude of the location', duplicate_of_parent=None)], keywords=[Variable(api_name='horizontal_accuracy', name='horizontal_accuracy', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='The radius of uncertainty for the location, measured in meters; 0-1500', duplicate_of_parent=None), Variable(api_name='live_period', name='live_period', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Period in seconds for which the location will be updated (see Live Locations, should be between 60 and 86400.', duplicate_of_parent=None), Variable(api_name='heading', name='heading', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.', duplicate_of_parent=None), Variable(api_name='proximity_alert_radius', name='proximity_alert_radius', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.', duplicate_of_parent=None), Variable(api_name='disable_notification', name='disable_notification', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Sends the message silently. Users will receive a notification with no sound.', duplicate_of_parent=None), Variable(api_name='protect_content', name='protect_content', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Protects the contents of the sent message from forwarding and saving', duplicate_of_parent=None), Variable(api_name='reply_to_message_id', name='reply_to_message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='If the message is a reply, ID of the original message', duplicate_of_parent=None), Variable(api_name='allow_sending_without_reply', name='allow_sending_without_reply', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the message should be sent even if the specified replied-to message is not found', duplicate_of_parent=None), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardRemove', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ForceReply', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.', duplicate_of_parent=None)]),
Function(api_name='editMessageLiveLocation', imports=[Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], link='https://core.telegram.org/bots/api#editmessagelivelocation', description='Use this method to edit live location messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None), Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned', duplicate_of_parent=None), parameters=[Variable(api_name='latitude', name='latitude', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Latitude of new location', duplicate_of_parent=None), Variable(api_name='longitude', name='longitude', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Longitude of new location', duplicate_of_parent=None)], keywords=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='message_id', name='message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if inline_message_id is not specified. Identifier of the message to edit', duplicate_of_parent=None), Variable(api_name='inline_message_id', name='inline_message_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if chat_id and message_id are not specified. Identifier of the inline message', duplicate_of_parent=None), Variable(api_name='horizontal_accuracy', name='horizontal_accuracy', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='The radius of uncertainty for the location, measured in meters; 0-1500', duplicate_of_parent=None), Variable(api_name='heading', name='heading', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.', duplicate_of_parent=None), Variable(api_name='proximity_alert_radius', name='proximity_alert_radius', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.', duplicate_of_parent=None), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='A JSON-serialized object for a new inline keyboard.', duplicate_of_parent=None)]),
Function(api_name='stopMessageLiveLocation', imports=[Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], link='https://core.telegram.org/bots/api#stopmessagelivelocation', description='Use this method to stop updating a live location message before live_period expires. On success, if the message is not an inline message, the edited Message is returned, otherwise True is returned.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None), Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='On success, if the message is not an inline message, the edited Message is returned, otherwise True is returned', duplicate_of_parent=None), parameters=[], keywords=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='message_id', name='message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if inline_message_id is not specified. Identifier of the message with live location to stop', duplicate_of_parent=None), Variable(api_name='inline_message_id', name='inline_message_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if chat_id and message_id are not specified. Identifier of the inline message', duplicate_of_parent=None), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='A JSON-serialized object for a new inline keyboard.', duplicate_of_parent=None)]),
Function(api_name='sendVenue', imports=[Import(path='pytgbot.api_types.sendable.reply_markup', name='ForceReply', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardRemove', is_init=False)], link='https://core.telegram.org/bots/api#sendvenue', description='Use this method to send information about a venue. On success, the sent Message is returned.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=None, default=None, description='On success, the sent Message is returned', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='latitude', name='latitude', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Latitude of the venue', duplicate_of_parent=None), Variable(api_name='longitude', name='longitude', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Longitude of the venue', duplicate_of_parent=None), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Name of the venue', duplicate_of_parent=None), Variable(api_name='address', name='address', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Address of the venue', duplicate_of_parent=None)], keywords=[Variable(api_name='foursquare_id', name='foursquare_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Foursquare identifier of the venue', duplicate_of_parent=None), Variable(api_name='foursquare_type', name='foursquare_type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Foursquare type of the venue, if known. (For example, "arts_entertainment/default", "arts_entertainment/aquarium" or "food/icecream".)', duplicate_of_parent=None), Variable(api_name='google_place_id', name='google_place_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Google Places identifier of the venue', duplicate_of_parent=None), Variable(api_name='google_place_type', name='google_place_type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Google Places type of the venue. (See supported types.)', duplicate_of_parent=None), Variable(api_name='disable_notification', name='disable_notification', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Sends the message silently. Users will receive a notification with no sound.', duplicate_of_parent=None), Variable(api_name='protect_content', name='protect_content', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Protects the contents of the sent message from forwarding and saving', duplicate_of_parent=None), Variable(api_name='reply_to_message_id', name='reply_to_message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='If the message is a reply, ID of the original message', duplicate_of_parent=None), Variable(api_name='allow_sending_without_reply', name='allow_sending_without_reply', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the message should be sent even if the specified replied-to message is not found', duplicate_of_parent=None), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardRemove', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ForceReply', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.', duplicate_of_parent=None)]),
Function(api_name='sendContact', imports=[Import(path='pytgbot.api_types.sendable.reply_markup', name='ForceReply', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardRemove', is_init=False)], link='https://core.telegram.org/bots/api#sendcontact', description='Use this method to send phone contacts. On success, the sent Message is returned.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=None, default=None, description='On success, the sent Message is returned', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='phone_number', name='phone_number', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Contact's phone number", duplicate_of_parent=None), Variable(api_name='first_name', name='first_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Contact's first name", duplicate_of_parent=None)], keywords=[Variable(api_name='last_name', name='last_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Contact's last name", duplicate_of_parent=None), Variable(api_name='vcard', name='vcard', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Additional data about the contact in the form of a vCard, 0-2048 bytes', duplicate_of_parent=None), Variable(api_name='disable_notification', name='disable_notification', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Sends the message silently. Users will receive a notification with no sound.', duplicate_of_parent=None), Variable(api_name='protect_content', name='protect_content', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Protects the contents of the sent message from forwarding and saving', duplicate_of_parent=None), Variable(api_name='reply_to_message_id', name='reply_to_message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='If the message is a reply, ID of the original message', duplicate_of_parent=None), Variable(api_name='allow_sending_without_reply', name='allow_sending_without_reply', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the message should be sent even if the specified replied-to message is not found', duplicate_of_parent=None), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardRemove', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ForceReply', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove keyboard or to force a reply from the user.', duplicate_of_parent=None)]),
Function(api_name='sendPoll', imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ForceReply', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardRemove', is_init=False)], link='https://core.telegram.org/bots/api#sendpoll', description='Use this method to send a native poll. On success, the sent Message is returned.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=None, default=None, description='On success, the sent Message is returned', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='question', name='question', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Poll question, 1-300 characters', duplicate_of_parent=None), Variable(api_name='options', name='options', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=1, import_path=None, description=None)], optional=False, default=None, description='A JSON-serialized list of answer options, 2-10 strings 1-100 characters each', duplicate_of_parent=None)], keywords=[Variable(api_name='is_anonymous', name='is_anonymous', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='True, if the poll needs to be anonymous, defaults to True', duplicate_of_parent=None), Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Poll type, "quiz" or "regular", defaults to "regular"', duplicate_of_parent=None), Variable(api_name='allows_multiple_answers', name='allows_multiple_answers', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='True, if the poll allows multiple answers, ignored for polls in quiz mode, defaults to False', duplicate_of_parent=None), Variable(api_name='correct_option_id', name='correct_option_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='0-based identifier of the correct answer option, required for polls in quiz mode', duplicate_of_parent=None), Variable(api_name='explanation', name='explanation', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters with at most 2 line feeds after entities parsing', duplicate_of_parent=None), Variable(api_name='explanation_parse_mode', name='explanation_parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Mode for parsing entities in the explanation. See formatting options for more details.', duplicate_of_parent=None), Variable(api_name='explanation_entities', name='explanation_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='A JSON-serialized list of special entities that appear in the poll explanation, which can be specified instead of parse_mode', duplicate_of_parent=None), Variable(api_name='open_period', name='open_period', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Amount of time in seconds the poll will be active after creation, 5-600. Can't be used together with close_date.", duplicate_of_parent=None), Variable(api_name='close_date', name='close_date', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Point in time (Unix timestamp) when the poll will be automatically closed. Must be at least 5 and no more than 600 seconds in the future. Can't be used together with open_period.", duplicate_of_parent=None), Variable(api_name='is_closed', name='is_closed', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the poll needs to be immediately closed. This can be useful for poll preview.', duplicate_of_parent=None), Variable(api_name='disable_notification', name='disable_notification', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Sends the message silently. Users will receive a notification with no sound.', duplicate_of_parent=None), Variable(api_name='protect_content', name='protect_content', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Protects the contents of the sent message from forwarding and saving', duplicate_of_parent=None), Variable(api_name='reply_to_message_id', name='reply_to_message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='If the message is a reply, ID of the original message', duplicate_of_parent=None), Variable(api_name='allow_sending_without_reply', name='allow_sending_without_reply', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the message should be sent even if the specified replied-to message is not found', duplicate_of_parent=None), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardRemove', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ForceReply', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.', duplicate_of_parent=None)]),
Function(api_name='sendDice', imports=[Import(path='pytgbot.api_types.sendable.reply_markup', name='ForceReply', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardRemove', is_init=False)], link='https://core.telegram.org/bots/api#senddice', description='Use this method to send an animated emoji that will display a random value. On success, the sent Message is returned.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=None, default=None, description='On success, the sent Message is returned', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None)], keywords=[Variable(api_name='emoji', name='emoji', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Emoji on which the dice throw animation is based. Currently, must be one of "🎲", "🎯", "🏀", "⚽", "🎳", or "🎰". Dice can have values 1-6 for "🎲", "🎯" and "🎳", values 1-5 for "🏀" and "⚽", and values 1-64 for "🎰". Defaults to "🎲"', duplicate_of_parent=None), Variable(api_name='disable_notification', name='disable_notification', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Sends the message silently. Users will receive a notification with no sound.', duplicate_of_parent=None), Variable(api_name='protect_content', name='protect_content', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Protects the contents of the sent message from forwarding', duplicate_of_parent=None), Variable(api_name='reply_to_message_id', name='reply_to_message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='If the message is a reply, ID of the original message', duplicate_of_parent=None), Variable(api_name='allow_sending_without_reply', name='allow_sending_without_reply', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the message should be sent even if the specified replied-to message is not found', duplicate_of_parent=None), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardRemove', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ForceReply', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.', duplicate_of_parent=None)]),
Function(api_name='sendChatAction', imports=[], link='https://core.telegram.org/bots/api#sendchataction', description='Use this method when you need to tell the user that something is happening on the bot\'s side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status). Returns True on success.\n\nExample: The ImageBot needs some time to process a request and upload the image. Instead of sending a text message along the lines of "Retrieving image, please wait…", the bot may use sendChatAction with action = upload_photo. The user will see a "sending photo" status for the bot.\n\nWe only recommend using this method when a response from the bot will take a noticeable amount of time to arrive.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='action', name='action', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of action to broadcast. Choose one, depending on what the user is about to receive: typing for text messages, upload_photo for photos, record_video or upload_video for videos, record_voice or upload_voice for voice notes, upload_document for general files, choose_sticker for stickers, find_location for location data, record_video_note or upload_video_note for video notes.', duplicate_of_parent=None)], keywords=[]),
Function(api_name='getUserProfilePhotos', imports=[], link='https://core.telegram.org/bots/api#getuserprofilephotos', description='Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='UserProfilePhotos', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=None, default=None, description='Returns a UserProfilePhotos object', duplicate_of_parent=None), parameters=[Variable(api_name='user_id', name='user_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier of the target user', duplicate_of_parent=None)], keywords=[Variable(api_name='offset', name='offset', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Sequential number of the first photo to be returned. By default, all photos are returned.', duplicate_of_parent=None), Variable(api_name='limit', name='limit', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Limits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100.', duplicate_of_parent=None)]),
Function(api_name='getFile', imports=[], link='https://core.telegram.org/bots/api#getfile', description="Use this method to get basic info about a file and prepare it for downloading. For the moment, bots can download files of up to 20MB in size. On success, a File object is returned. The file can then be downloaded via the link https://api.telegram.org/file/bot<token>/<file_path>, where <file_path> is taken from the response. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile again.\nNote: This function may not preserve the original file name and MIME type. You should save the file's MIME type and name (if available) when the File object is received.", returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='File', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=None, default=None, description='On success, a File object is returned', duplicate_of_parent=None), parameters=[Variable(api_name='file_id', name='file_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='File identifier to get info about', duplicate_of_parent=None)], keywords=[]),
Function(api_name='banChatMember', imports=[], link='https://core.telegram.org/bots/api#banchatmember', description='Use this method to ban a user in a group, a supergroup or a channel. In the case of supergroups and channels, the user will not be able to return to the chat on their own using invite links, etc., unless unbanned first. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='user_id', name='user_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier of the target user', duplicate_of_parent=None)], keywords=[Variable(api_name='until_date', name='until_date', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Date when the user will be unbanned, unix time. If user is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever. Applied for supergroups and channels only.', duplicate_of_parent=None), Variable(api_name='revoke_messages', name='revoke_messages', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True to delete all messages from the chat for the user that is being removed. If False, the user will be able to see messages in the group that were sent before the user was removed. Always True for supergroups and channels.', duplicate_of_parent=None)]),
Function(api_name='unbanChatMember', imports=[], link='https://core.telegram.org/bots/api#unbanchatmember', description="Use this method to unban a previously banned user in a supergroup or channel. The user will not return to the group or channel automatically, but will be able to join via link, etc. The bot must be an administrator for this to work. By default, this method guarantees that after the call the user is not a member of the chat, but will be able to join it. So if the user is a member of the chat they will also be removed from the chat. If you don't want this, use the parameter only_if_banned. Returns True on success.", returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='user_id', name='user_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier of the target user', duplicate_of_parent=None)], keywords=[Variable(api_name='only_if_banned', name='only_if_banned', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Do nothing if the user is not banned', duplicate_of_parent=None)]),
Function(api_name='restrictChatMember', imports=[Import(path='pytgbot.api_types.receivable.peer', name='ChatPermissions', is_init=False)], link='https://core.telegram.org/bots/api#restrictchatmember', description='Use this method to restrict a user in a supergroup. The bot must be an administrator in the supergroup for this to work and must have the appropriate administrator rights. Pass True for all permissions to lift restrictions from a user. Returns True on success.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)', duplicate_of_parent=None), Variable(api_name='user_id', name='user_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier of the target user', duplicate_of_parent=None), Variable(api_name='permissions', name='permissions', pytg_name=None, types=[Type(string='ChatPermissions', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='A JSON-serialized object for new user permissions', duplicate_of_parent=None)], keywords=[Variable(api_name='until_date', name='until_date', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Date when restrictions will be lifted for the user, unix time. If user is restricted for more than 366 days or less than 30 seconds from the current time, they are considered to be restricted forever', duplicate_of_parent=None)]),
Function(api_name='promoteChatMember', imports=[], link='https://core.telegram.org/bots/api#promotechatmember', description='Use this method to promote or demote a user in a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Pass False for all boolean parameters to demote a user. Returns True on success.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='user_id', name='user_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier of the target user', duplicate_of_parent=None)], keywords=[Variable(api_name='is_anonymous', name='is_anonymous', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Pass True, if the administrator's presence in the chat is hidden", duplicate_of_parent=None), Variable(api_name='can_manage_chat', name='can_manage_chat', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege', duplicate_of_parent=None), Variable(api_name='can_post_messages', name='can_post_messages', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the administrator can create channel posts, channels only', duplicate_of_parent=None), Variable(api_name='can_edit_messages', name='can_edit_messages', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the administrator can edit messages of other users and can pin messages, channels only', duplicate_of_parent=None), Variable(api_name='can_delete_messages', name='can_delete_messages', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the administrator can delete messages of other users', duplicate_of_parent=None), Variable(api_name='can_manage_voice_chats', name='can_manage_voice_chats', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the administrator can manage voice chats', duplicate_of_parent=None), Variable(api_name='can_restrict_members', name='can_restrict_members', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the administrator can restrict, ban or unban chat members', duplicate_of_parent=None), Variable(api_name='can_promote_members', name='can_promote_members', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by him)', duplicate_of_parent=None), Variable(api_name='can_change_info', name='can_change_info', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the administrator can change chat title, photo and other settings', duplicate_of_parent=None), Variable(api_name='can_invite_users', name='can_invite_users', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the administrator can invite new users to the chat', duplicate_of_parent=None), Variable(api_name='can_pin_messages', name='can_pin_messages', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the administrator can pin messages, supergroups only', duplicate_of_parent=None)]),
Function(api_name='setChatAdministratorCustomTitle', imports=[], link='https://core.telegram.org/bots/api#setchatadministratorcustomtitle', description='Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)', duplicate_of_parent=None), Variable(api_name='user_id', name='user_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier of the target user', duplicate_of_parent=None), Variable(api_name='custom_title', name='custom_title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='New custom title for the administrator; 0-16 characters, emoji are not allowed', duplicate_of_parent=None)], keywords=[]),
Function(api_name='banChatSenderChat', imports=[], link='https://core.telegram.org/bots/api#banchatsenderchat', description="Use this method to ban a channel chat in a supergroup or a channel. Until the chat is unbanned, the owner of the banned chat won't be able to send messages on behalf of any of their channels. The bot must be an administrator in the supergroup or channel for this to work and must have the appropriate administrator rights. Returns True on success.", returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='sender_chat_id', name='sender_chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier of the target sender chat', duplicate_of_parent=None)], keywords=[]),
Function(api_name='unbanChatSenderChat', imports=[], link='https://core.telegram.org/bots/api#unbanchatsenderchat', description='Use this method to unban a previously banned channel chat in a supergroup or channel. The bot must be an administrator for this to work and must have the appropriate administrator rights. Returns True on success.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='sender_chat_id', name='sender_chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier of the target sender chat', duplicate_of_parent=None)], keywords=[]),
Function(api_name='setChatPermissions', imports=[Import(path='pytgbot.api_types.receivable.peer', name='ChatPermissions', is_init=False)], link='https://core.telegram.org/bots/api#setchatpermissions', description='Use this method to set default chat permissions for all members. The bot must be an administrator in the group or a supergroup for this to work and must have the can_restrict_members administrator rights. Returns True on success.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)', duplicate_of_parent=None), Variable(api_name='permissions', name='permissions', pytg_name=None, types=[Type(string='ChatPermissions', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='A JSON-serialized object for new default chat permissions', duplicate_of_parent=None)], keywords=[]),
Function(api_name='exportChatInviteLink', imports=[], link='https://core.telegram.org/bots/api#exportchatinvitelink', description="Use this method to generate a new primary invite link for a chat; any previously generated primary link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the new invite link as String on success.\n\nNote: Each administrator in a chat generates their own invite links. Bots can't use invite links generated by other administrators. If you want your bot to work with invite links, it will need to generate its own link using exportChatInviteLink or by calling the getChat method. If your bot needs to generate a new primary invite link replacing its previous one, use exportChatInviteLink again.\n", returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns the new invite link as String on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None)], keywords=[]),
Function(api_name='createChatInviteLink', imports=[], link='https://core.telegram.org/bots/api#createchatinvitelink', description='Use this method to create an additional invite link for a chat. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. The link can be revoked using the method revokeChatInviteLink. Returns the new invite link as ChatInviteLink object.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='ChatInviteLink', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=None, default=None, description='Returns the new invite link as ChatInviteLink object', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None)], keywords=[Variable(api_name='name', name='name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Invite link name; 0-32 characters', duplicate_of_parent=None), Variable(api_name='expire_date', name='expire_date', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Point in time (Unix timestamp) when the link will expire', duplicate_of_parent=None), Variable(api_name='member_limit', name='member_limit', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999', duplicate_of_parent=None), Variable(api_name='creates_join_request', name='creates_join_request', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can't be specified", duplicate_of_parent=None)]),
Function(api_name='editChatInviteLink', imports=[], link='https://core.telegram.org/bots/api#editchatinvitelink', description='Use this method to edit a non-primary invite link created by the bot. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the edited invite link as a ChatInviteLink object.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='ChatInviteLink', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=None, default=None, description='Returns the edited invite link as a ChatInviteLink object', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='invite_link', name='invite_link', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='The invite link to edit', duplicate_of_parent=None)], keywords=[Variable(api_name='name', name='name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Invite link name; 0-32 characters', duplicate_of_parent=None), Variable(api_name='expire_date', name='expire_date', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Point in time (Unix timestamp) when the link will expire', duplicate_of_parent=None), Variable(api_name='member_limit', name='member_limit', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999', duplicate_of_parent=None), Variable(api_name='creates_join_request', name='creates_join_request', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can't be specified", duplicate_of_parent=None)]),
Function(api_name='revokeChatInviteLink', imports=[], link='https://core.telegram.org/bots/api#revokechatinvitelink', description='Use this method to revoke an invite link created by the bot. If the primary link is revoked, a new link is automatically generated. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the revoked invite link as ChatInviteLink object.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='ChatInviteLink', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=None, default=None, description='Returns the revoked invite link as ChatInviteLink object', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier of the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='invite_link', name='invite_link', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='The invite link to revoke', duplicate_of_parent=None)], keywords=[]),
Function(api_name='approveChatJoinRequest', imports=[], link='https://core.telegram.org/bots/api#approvechatjoinrequest', description='Use this method to approve a chat join request. The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right. Returns True on success.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='user_id', name='user_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier of the target user', duplicate_of_parent=None)], keywords=[]),
Function(api_name='declineChatJoinRequest', imports=[], link='https://core.telegram.org/bots/api#declinechatjoinrequest', description='Use this method to decline a chat join request. The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right. Returns True on success.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='user_id', name='user_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier of the target user', duplicate_of_parent=None)], keywords=[]),
Function(api_name='setChatPhoto', imports=[Import(path='pytgbot.api_types.sendable.files', name='InputFile', is_init=False)], link='https://core.telegram.org/bots/api#setchatphoto', description="Use this method to set a new profile photo for the chat. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success.", returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='photo', name='photo', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None)], optional=False, default=None, description='New chat photo, uploaded using multipart/form-data', duplicate_of_parent=None)], keywords=[]),
Function(api_name='deleteChatPhoto', imports=[], link='https://core.telegram.org/bots/api#deletechatphoto', description="Use this method to delete a chat photo. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success.", returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None)], keywords=[]),
Function(api_name='setChatTitle', imports=[], link='https://core.telegram.org/bots/api#setchattitle', description="Use this method to change the title of a chat. Titles can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success.", returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='New chat title, 1-255 characters', duplicate_of_parent=None)], keywords=[]),
Function(api_name='setChatDescription', imports=[], link='https://core.telegram.org/bots/api#setchatdescription', description='Use this method to change the description of a group, a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None)], keywords=[Variable(api_name='description', name='description', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='New chat description, 0-255 characters', duplicate_of_parent=None)]),
Function(api_name='pinChatMessage', imports=[], link='https://core.telegram.org/bots/api#pinchatmessage', description="Use this method to add a message to the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success.", returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='message_id', name='message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Identifier of a message to pin', duplicate_of_parent=None)], keywords=[Variable(api_name='disable_notification', name='disable_notification', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if it is not necessary to send a notification to all chat members about the new pinned message. Notifications are always disabled in channels and private chats.', duplicate_of_parent=None)]),
Function(api_name='unpinChatMessage', imports=[], link='https://core.telegram.org/bots/api#unpinchatmessage', description="Use this method to remove a message from the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success.", returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None)], keywords=[Variable(api_name='message_id', name='message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Identifier of a message to unpin. If not specified, the most recent pinned message (by sending date) will be unpinned.', duplicate_of_parent=None)]),
Function(api_name='unpinAllChatMessages', imports=[], link='https://core.telegram.org/bots/api#unpinallchatmessages', description="Use this method to clear the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success.", returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None)], keywords=[]),
Function(api_name='leaveChat', imports=[], link='https://core.telegram.org/bots/api#leavechat', description='Use this method for your bot to leave a group, supergroup or channel. Returns True on success.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)', duplicate_of_parent=None)], keywords=[]),
Function(api_name='getChat', imports=[], link='https://core.telegram.org/bots/api#getchat', description='Use this method to get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.). Returns a Chat object on success.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Chat', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=None, default=None, description='Returns a Chat object on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)', duplicate_of_parent=None)], keywords=[]),
Function(api_name='getChatAdministrators', imports=[], link='https://core.telegram.org/bots/api#getchatadministrators', description='Use this method to get a list of administrators in a chat. On success, returns an Array of ChatMember objects that contains information about all chat administrators except other bots. If the chat is a group or a supergroup and no administrators were appointed, only the creator will be returned.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='ChatMember', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=None, default=None, description='On success, returns an Array of ChatMember objects that contains information about all chat administrators except other bots', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)', duplicate_of_parent=None)], keywords=[]),
Function(api_name='getChatMemberCount', imports=[], link='https://core.telegram.org/bots/api#getchatmembercount', description='Use this method to get the number of members in a chat. Returns Int on success.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns Int on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)', duplicate_of_parent=None)], keywords=[]),
Function(api_name='getChatMember', imports=[], link='https://core.telegram.org/bots/api#getchatmember', description='Use this method to get information about a member of a chat. Returns a ChatMember object on success.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='ChatMember', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=None, default=None, description='Returns a ChatMember object on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='user_id', name='user_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier of the target user', duplicate_of_parent=None)], keywords=[]),
Function(api_name='setChatStickerSet', imports=[], link='https://core.telegram.org/bots/api#setchatstickerset', description='Use this method to set a new group sticker set for a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Use the field can_set_sticker_set optionally returned in getChat requests to check if the bot can use this method. Returns True on success.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)', duplicate_of_parent=None), Variable(api_name='sticker_set_name', name='sticker_set_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Name of the sticker set to be set as the group sticker set', duplicate_of_parent=None)], keywords=[]),
Function(api_name='deleteChatStickerSet', imports=[], link='https://core.telegram.org/bots/api#deletechatstickerset', description='Use this method to delete a group sticker set from a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Use the field can_set_sticker_set optionally returned in getChat requests to check if the bot can use this method. Returns True on success.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)', duplicate_of_parent=None)], keywords=[]),
Function(api_name='answerCallbackQuery', imports=[], link='https://core.telegram.org/bots/api#answercallbackquery', description='Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, True is returned.\n\nAlternatively, the user can be redirected to the specified Game URL. For this option to work, you must first create a game for your bot via @Botfather and accept the terms. Otherwise, you may use links like t.me/your_bot?start=XXXX that open your bot with a parameter.\n', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='On success, True is returned', duplicate_of_parent=None), parameters=[Variable(api_name='callback_query_id', name='callback_query_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the query to be answered', duplicate_of_parent=None)], keywords=[Variable(api_name='text', name='text', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Text of the notification. If not specified, nothing will be shown to the user, 0-200 characters', duplicate_of_parent=None), Variable(api_name='show_alert', name='show_alert', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='If True, an alert will be shown by the client instead of a notification at the top of the chat screen. Defaults to false.', duplicate_of_parent=None), Variable(api_name='url', name='url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="URL that will be opened by the user's client. If you have created a Game and accepted the conditions via @Botfather, specify the URL that opens your game — note that this will only work if the query comes from a callback_game button.Otherwise, you may use links like t.me/your_bot?start=XXXX that open your bot with a parameter.", duplicate_of_parent=None), Variable(api_name='cache_time', name='cache_time', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='The maximum amount of time in seconds that the result of the callback query may be cached client-side. Telegram apps will support caching starting in version 3.14. Defaults to 0.', duplicate_of_parent=None)]),
Function(api_name='setMyCommands', imports=[Import(path='pytgbot.api_types.sendable.command', name='BotCommand', is_init=False), Import(path='pytgbot.api_types.sendable.command', name='BotCommandScope', is_init=False)], link='https://core.telegram.org/bots/api#setmycommands', description="Use this method to change the list of the bot's commands. See https://core.telegram.org/bots#commands for more details about bot commands. Returns True on success.", returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='commands', name='commands', pytg_name=None, types=[Type(string='BotCommand', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.sendable.command', description=None)], optional=False, default=None, description="A JSON-serialized list of bot commands to be set as the list of the bot's commands. At most 100 commands can be specified.", duplicate_of_parent=None)], keywords=[Variable(api_name='scope', name='scope', pytg_name=None, types=[Type(string='BotCommandScope', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.command', description=None)], optional=True, default=None, description='A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.', duplicate_of_parent=None), Variable(api_name='language_code', name='language_code', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands', duplicate_of_parent=None)]),
Function(api_name='deleteMyCommands', imports=[Import(path='pytgbot.api_types.sendable.command', name='BotCommandScope', is_init=False)], link='https://core.telegram.org/bots/api#deletemycommands', description="Use this method to delete the list of the bot's commands for the given scope and user language. After deletion, higher level commands will be shown to affected users. Returns True on success.", returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[], keywords=[Variable(api_name='scope', name='scope', pytg_name=None, types=[Type(string='BotCommandScope', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.command', description=None)], optional=True, default=None, description='A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.', duplicate_of_parent=None), Variable(api_name='language_code', name='language_code', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands', duplicate_of_parent=None)]),
Function(api_name='getMyCommands', imports=[Import(path='pytgbot.api_types.sendable.command', name='BotCommandScope', is_init=False)], link='https://core.telegram.org/bots/api#getmycommands', description="Use this method to get the current list of the bot's commands for the given scope and user language. Returns Array of BotCommand on success. If commands aren't set, an empty list is returned.", returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='BotCommand', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.sendable.command', description=None)], optional=None, default=None, description="On success, an array of the commands is returned. If commands aren't set, an empty list is returned", duplicate_of_parent=None), parameters=[], keywords=[Variable(api_name='scope', name='scope', pytg_name=None, types=[Type(string='BotCommandScope', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.command', description=None)], optional=True, default=None, description='A JSON-serialized object, describing scope of users. Defaults to BotCommandScopeDefault.', duplicate_of_parent=None), Variable(api_name='language_code', name='language_code', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='A two-letter ISO 639-1 language code or an empty string', duplicate_of_parent=None)]),
Function(api_name='editMessageText', imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], link='https://core.telegram.org/bots/api#editmessagetext', description='Use this method to edit text and game messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None), Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned', duplicate_of_parent=None), parameters=[Variable(api_name='text', name='text', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='New text of the message, 1-4096 characters after entities parsing', duplicate_of_parent=None)], keywords=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='message_id', name='message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if inline_message_id is not specified. Identifier of the message to edit', duplicate_of_parent=None), Variable(api_name='inline_message_id', name='inline_message_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if chat_id and message_id are not specified. Identifier of the inline message', duplicate_of_parent=None), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Mode for parsing entities in the message text. See formatting options for more details.', duplicate_of_parent=None), Variable(api_name='entities', name='entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode', duplicate_of_parent=None), Variable(api_name='disable_web_page_preview', name='disable_web_page_preview', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Disables link previews for links in this message', duplicate_of_parent=None), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='A JSON-serialized object for an inline keyboard.', duplicate_of_parent=None)]),
Function(api_name='editMessageCaption', imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], link='https://core.telegram.org/bots/api#editmessagecaption', description='Use this method to edit captions of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None), Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned', duplicate_of_parent=None), parameters=[], keywords=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='message_id', name='message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if inline_message_id is not specified. Identifier of the message to edit', duplicate_of_parent=None), Variable(api_name='inline_message_id', name='inline_message_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if chat_id and message_id are not specified. Identifier of the inline message', duplicate_of_parent=None), Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='New caption of the message, 0-1024 characters after entities parsing', duplicate_of_parent=None), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Mode for parsing entities in the message caption. See formatting options for more details.', duplicate_of_parent=None), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=None), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='A JSON-serialized object for an inline keyboard.', duplicate_of_parent=None)]),
Function(api_name='editMessageMedia', imports=[Import(path='pytgbot.api_types.sendable.input_media', name='InputMedia', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], link='https://core.telegram.org/bots/api#editmessagemedia', description="Use this method to edit animation, audio, document, photo, or video messages. If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise. When an inline message is edited, a new file can't be uploaded; use a previously uploaded file via its file_id or specify a URL. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.", returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None), Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned', duplicate_of_parent=None), parameters=[Variable(api_name='media', name='media', pytg_name=None, types=[Type(string='InputMedia', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.input_media', description=None)], optional=False, default=None, description='A JSON-serialized object for a new media content of the message', duplicate_of_parent=None)], keywords=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='message_id', name='message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if inline_message_id is not specified. Identifier of the message to edit', duplicate_of_parent=None), Variable(api_name='inline_message_id', name='inline_message_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if chat_id and message_id are not specified. Identifier of the inline message', duplicate_of_parent=None), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='A JSON-serialized object for a new inline keyboard.', duplicate_of_parent=None)]),
Function(api_name='editMessageReplyMarkup', imports=[Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], link='https://core.telegram.org/bots/api#editmessagereplymarkup', description='Use this method to edit only the reply markup of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None), Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned', duplicate_of_parent=None), parameters=[], keywords=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='message_id', name='message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if inline_message_id is not specified. Identifier of the message to edit', duplicate_of_parent=None), Variable(api_name='inline_message_id', name='inline_message_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if chat_id and message_id are not specified. Identifier of the inline message', duplicate_of_parent=None), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='A JSON-serialized object for an inline keyboard.', duplicate_of_parent=None)]),
Function(api_name='stopPoll', imports=[Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], link='https://core.telegram.org/bots/api#stoppoll', description='Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Poll', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=None, default=None, description='On success, the stopped Poll is returned', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='message_id', name='message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Identifier of the original message with the poll', duplicate_of_parent=None)], keywords=[Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='A JSON-serialized object for a new message inline keyboard.', duplicate_of_parent=None)]),
Function(api_name='deleteMessage', imports=[], link='https://core.telegram.org/bots/api#deletemessage', description='Use this method to delete a message, including service messages, with the following limitations:- A message can only be deleted if it was sent less than 48 hours ago.- A dice message in a private chat can only be deleted if it was sent more than 24 hours ago.- Bots can delete outgoing messages in private chats, groups, and supergroups.- Bots can delete incoming messages in private chats.- Bots granted can_post_messages permissions can delete outgoing messages in channels.- If the bot is an administrator of a group, it can delete any message there.- If the bot has can_delete_messages permission in a supergroup or a channel, it can delete any message there.Returns True on success.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='message_id', name='message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Identifier of the message to delete', duplicate_of_parent=None)], keywords=[]),
Clazz(clazz='Sticker', import_path=Import(path='pytgbot.api_types.receivable.media', name='Sticker', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='PhotoSize', is_init=False), Import(path='pytgbot.api_types.receivable.stickers', name='MaskPosition', is_init=False)], parent_clazz=Type(string='Media', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None), link='https://core.telegram.org/bots/api#sticker', description='This object represents a sticker.', parameters=[Variable(api_name='file_id', name='file_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Identifier for this file, which can be used to download or reuse the file', duplicate_of_parent=False), Variable(api_name='file_unique_id', name='file_unique_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", duplicate_of_parent=False), Variable(api_name='width', name='width', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Sticker width', duplicate_of_parent=False), Variable(api_name='height', name='height', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Sticker height', duplicate_of_parent=False), Variable(api_name='is_animated', name='is_animated', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the sticker is animated', duplicate_of_parent=False), Variable(api_name='is_video', name='is_video', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the sticker is a video sticker', duplicate_of_parent=False)], keywords=[Variable(api_name='thumb', name='thumb', pytg_name=None, types=[Type(string='PhotoSize', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Sticker thumbnail in the .WEBP or .JPG format', duplicate_of_parent=False), Variable(api_name='emoji', name='emoji', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Emoji associated with the sticker', duplicate_of_parent=False), Variable(api_name='set_name', name='set_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Name of the sticker set to which the sticker belongs', duplicate_of_parent=False), Variable(api_name='mask_position', name='mask_position', pytg_name=None, types=[Type(string='MaskPosition', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.stickers', description=None)], optional=True, default=None, description='Optional. For mask stickers, the position where the mask should be placed', duplicate_of_parent=False), Variable(api_name='file_size', name='file_size', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. File size in bytes', duplicate_of_parent=False)]),
Clazz(clazz='StickerSet', import_path=Import(path='pytgbot.api_types.receivable.stickers', name='StickerSet', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='PhotoSize', is_init=False), Import(path='pytgbot.api_types.receivable.media', name='Sticker', is_init=False)], parent_clazz=Type(string='Result', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#stickerset', description='This object represents a sticker set.', parameters=[Variable(api_name='name', name='name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Sticker set name', duplicate_of_parent=False), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Sticker set title', duplicate_of_parent=False), Variable(api_name='is_animated', name='is_animated', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the sticker set contains animated stickers', duplicate_of_parent=False), Variable(api_name='is_video', name='is_video', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the sticker set contains video stickers', duplicate_of_parent=False), Variable(api_name='contains_masks', name='contains_masks', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='True, if the sticker set contains masks', duplicate_of_parent=False), Variable(api_name='stickers', name='stickers', pytg_name=None, types=[Type(string='Sticker', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=False, default=None, description='List of all set stickers', duplicate_of_parent=False)], keywords=[Variable(api_name='thumb', name='thumb', pytg_name=None, types=[Type(string='PhotoSize', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format', duplicate_of_parent=False)]),
Clazz(clazz='MaskPosition', import_path=Import(path='pytgbot.api_types.receivable.stickers', name='MaskPosition', is_init=False), imports=[], parent_clazz=Type(string='Result', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#maskposition', description='This object describes the position on faces where a mask should be placed by default.', parameters=[Variable(api_name='point', name='point', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='The part of the face relative to which the mask should be placed. One of "forehead", "eyes", "mouth", or "chin".', duplicate_of_parent=False), Variable(api_name='x_shift', name='x_shift', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position.', duplicate_of_parent=False), Variable(api_name='y_shift', name='y_shift', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0 will place the mask just below the default mask position.', duplicate_of_parent=False), Variable(api_name='scale', name='scale', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Mask scaling coefficient. For example, 2.0 means double size.', duplicate_of_parent=False)], keywords=[]),
Function(api_name='sendSticker', imports=[Import(path='pytgbot.api_types.sendable.files', name='InputFile', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ForceReply', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardMarkup', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='ReplyKeyboardRemove', is_init=False)], link='https://core.telegram.org/bots/api#sendsticker', description='Use this method to send static .WEBP, animated .TGS, or video .WEBM stickers. On success, the sent Message is returned.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=None, default=None, description='On success, the sent Message is returned', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='sticker', name='sticker', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Sticker to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a .WEBP file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files »', duplicate_of_parent=None)], keywords=[Variable(api_name='disable_notification', name='disable_notification', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Sends the message silently. Users will receive a notification with no sound.', duplicate_of_parent=None), Variable(api_name='protect_content', name='protect_content', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Protects the contents of the sent message from forwarding and saving', duplicate_of_parent=None), Variable(api_name='reply_to_message_id', name='reply_to_message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='If the message is a reply, ID of the original message', duplicate_of_parent=None), Variable(api_name='allow_sending_without_reply', name='allow_sending_without_reply', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the message should be sent even if the specified replied-to message is not found', duplicate_of_parent=None), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ReplyKeyboardRemove', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None), Type(string='ForceReply', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.', duplicate_of_parent=None)]),
Function(api_name='getStickerSet', imports=[], link='https://core.telegram.org/bots/api#getstickerset', description='Use this method to get a sticker set. On success, a StickerSet object is returned.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='StickerSet', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.stickers', description=None)], optional=None, default=None, description='On success, a StickerSet object is returned', duplicate_of_parent=None), parameters=[Variable(api_name='name', name='name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Name of the sticker set', duplicate_of_parent=None)], keywords=[]),
Function(api_name='uploadStickerFile', imports=[Import(path='pytgbot.api_types.sendable.files', name='InputFile', is_init=False)], link='https://core.telegram.org/bots/api#uploadstickerfile', description='Use this method to upload a .PNG file with a sticker for later use in createNewStickerSet and addStickerToSet methods (can be used multiple times). Returns the uploaded File on success.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='File', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=None, default=None, description='Returns the uploaded File on success', duplicate_of_parent=None), parameters=[Variable(api_name='user_id', name='user_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='User identifier of sticker file owner', duplicate_of_parent=None), Variable(api_name='png_sticker', name='png_sticker', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None)], optional=False, default=None, description='PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. More info on Sending Files »', duplicate_of_parent=None)], keywords=[]),
Function(api_name='createNewStickerSet', imports=[Import(path='pytgbot.api_types.receivable.stickers', name='MaskPosition', is_init=False), Import(path='pytgbot.api_types.sendable.files', name='InputFile', is_init=False)], link='https://core.telegram.org/bots/api#createnewstickerset', description='Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Returns True on success.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='user_id', name='user_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='User identifier of created sticker set owner', duplicate_of_parent=None), Variable(api_name='name', name='name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only english letters, digits and underscores. Must begin with a letter, can\'t contain consecutive underscores and must end in "_by_<bot username>". <bot_username> is case insensitive. 1-64 characters.', duplicate_of_parent=None), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Sticker set title, 1-64 characters', duplicate_of_parent=None), Variable(api_name='emojis', name='emojis', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='One or more emoji corresponding to the sticker', duplicate_of_parent=None)], keywords=[Variable(api_name='png_sticker', name='png_sticker', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files »', duplicate_of_parent=None), Variable(api_name='tgs_sticker', name='tgs_sticker', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None)], optional=True, default=None, description='TGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#animated-sticker-requirements for technical requirements', duplicate_of_parent=None), Variable(api_name='webm_sticker', name='webm_sticker', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None)], optional=True, default=None, description='WEBM video with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#video-sticker-requirements for technical requirements', duplicate_of_parent=None), Variable(api_name='contains_masks', name='contains_masks', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if a set of mask stickers should be created', duplicate_of_parent=None), Variable(api_name='mask_position', name='mask_position', pytg_name=None, types=[Type(string='MaskPosition', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.stickers', description=None)], optional=True, default=None, description='A JSON-serialized object for position where the mask should be placed on faces', duplicate_of_parent=None)]),
Function(api_name='addStickerToSet', imports=[Import(path='pytgbot.api_types.receivable.stickers', name='MaskPosition', is_init=False), Import(path='pytgbot.api_types.sendable.files', name='InputFile', is_init=False)], link='https://core.telegram.org/bots/api#addstickertoset', description='Use this method to add a new sticker to a set created by the bot. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Animated stickers can be added to animated sticker sets and only to them. Animated sticker sets can have up to 50 stickers. Static sticker sets can have up to 120 stickers. Returns True on success.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='user_id', name='user_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='User identifier of sticker set owner', duplicate_of_parent=None), Variable(api_name='name', name='name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Sticker set name', duplicate_of_parent=None), Variable(api_name='emojis', name='emojis', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='One or more emoji corresponding to the sticker', duplicate_of_parent=None)], keywords=[Variable(api_name='png_sticker', name='png_sticker', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files »', duplicate_of_parent=None), Variable(api_name='tgs_sticker', name='tgs_sticker', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None)], optional=True, default=None, description='TGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#animated-sticker-requirements for technical requirements', duplicate_of_parent=None), Variable(api_name='webm_sticker', name='webm_sticker', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None)], optional=True, default=None, description='WEBM video with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#video-sticker-requirements for technical requirements', duplicate_of_parent=None), Variable(api_name='mask_position', name='mask_position', pytg_name=None, types=[Type(string='MaskPosition', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.stickers', description=None)], optional=True, default=None, description='A JSON-serialized object for position where the mask should be placed on faces', duplicate_of_parent=None)]),
Function(api_name='setStickerPositionInSet', imports=[], link='https://core.telegram.org/bots/api#setstickerpositioninset', description='Use this method to move a sticker in a set created by the bot to a specific position. Returns True on success.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='sticker', name='sticker', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='File identifier of the sticker', duplicate_of_parent=None), Variable(api_name='position', name='position', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='New sticker position in the set, zero-based', duplicate_of_parent=None)], keywords=[]),
Function(api_name='deleteStickerFromSet', imports=[], link='https://core.telegram.org/bots/api#deletestickerfromset', description='Use this method to delete a sticker from a set created by the bot. Returns True on success.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='sticker', name='sticker', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='File identifier of the sticker', duplicate_of_parent=None)], keywords=[]),
Function(api_name='setStickerSetThumb', imports=[Import(path='pytgbot.api_types.sendable.files', name='InputFile', is_init=False)], link='https://core.telegram.org/bots/api#setstickersetthumb', description='Use this method to set the thumbnail of a sticker set. Animated thumbnails can be set for animated sticker sets only. Video thumbnails can be set only for video sticker sets only. Returns True on success.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='name', name='name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Sticker set name', duplicate_of_parent=None), Variable(api_name='user_id', name='user_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='User identifier of the sticker set owner', duplicate_of_parent=None)], keywords=[Variable(api_name='thumb', name='thumb', pytg_name=None, types=[Type(string='InputFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.files', description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="A PNG image with the thumbnail, must be up to 128 kilobytes in size and have width and height exactly 100px, or a TGS animation with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/stickers#animated-sticker-requirements for animated sticker technical requirements, or a WEBM video with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/stickers#video-sticker-requirements for video sticker technical requirements. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files ». Animated sticker set thumbnails can't be uploaded via HTTP URL.", duplicate_of_parent=None)]),
Clazz(clazz='InlineQuery', import_path=Import(path='pytgbot.api_types.receivable.inline', name='InlineQuery', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='Location', is_init=False), Import(path='pytgbot.api_types.receivable.peer', name='User', is_init=False)], parent_clazz=Type(string='Result', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#inlinequery', description='This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.', parameters=[Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this query', duplicate_of_parent=False), Variable(api_name='from', name='from_peer', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='Sender', duplicate_of_parent=False), Variable(api_name='query', name='query', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Text of the query (up to 256 characters)', duplicate_of_parent=False), Variable(api_name='offset', name='offset', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Offset of the results to be returned, can be controlled by the bot', duplicate_of_parent=False)], keywords=[Variable(api_name='chat_type', name='chat_type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Type of the chat, from which the inline query was sent. Can be either "sender" for a private chat with the inline query sender, "private", "group", "supergroup", or "channel". The chat type should be always known for requests sent from official clients and most third-party clients, unless the request was sent from a secret chat', duplicate_of_parent=False), Variable(api_name='location', name='location', pytg_name=None, types=[Type(string='Location', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Sender location, only for bots that request user location', duplicate_of_parent=False)]),
Function(api_name='answerInlineQuery', imports=[Import(path='pytgbot.api_types.sendable.inline', name='InlineQueryResult', is_init=False)], link='https://core.telegram.org/bots/api#answerinlinequery', description='Use this method to send answers to an inline query. On success, True is returned.No more than 50 results per query are allowed.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='On success, True is returned', duplicate_of_parent=None), parameters=[Variable(api_name='inline_query_id', name='inline_query_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the answered query', duplicate_of_parent=None), Variable(api_name='results', name='results', pytg_name=None, types=[Type(string='InlineQueryResult', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.sendable.inline', description=None)], optional=False, default=None, description='A JSON-serialized array of results for the inline query', duplicate_of_parent=None)], keywords=[Variable(api_name='cache_time', name='cache_time', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300.', duplicate_of_parent=None), Variable(api_name='is_personal', name='is_personal', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query', duplicate_of_parent=None), Variable(api_name='next_offset', name='next_offset', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don't support pagination. Offset length can't exceed 64 bytes.", duplicate_of_parent=None), Variable(api_name='switch_pm_text', name='switch_pm_text', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='If passed, clients will display a button with specified text that switches the user to a private chat with the bot and sends the bot a start message with the parameter switch_pm_parameter', duplicate_of_parent=None), Variable(api_name='switch_pm_parameter', name='switch_pm_parameter', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Deep-linking parameter for the /start message sent to the bot when user presses the switch button. 1-64 characters, only A-Z, a-z, 0-9, _ and - are allowed.Example: An inline bot that sends YouTube videos can ask the user to connect the bot to their YouTube account to adapt search results accordingly. To do this, it displays a 'Connect your YouTube account' button above the results, or even before showing any. The user presses the button, switches to a private chat with the bot and, in doing so, passes a start parameter that instructs the bot to return an OAuth link. Once done, the bot can offer a switch_inline button so that the user can easily return to the chat where they wanted to use the bot's inline capabilities.", duplicate_of_parent=None)]),
Clazz(clazz='InlineQueryResultArticle', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InlineQueryResultArticle', is_init=False), imports=[Import(path='pytgbot.api_types.sendable.inline', name='InputMessageContent', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], parent_clazz=Type(string='InlineQueryResult', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inlinequeryresultarticle', description='Represents a link to an article or web page.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='article', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be article', duplicate_of_parent=False), Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this result, 1-64 Bytes', duplicate_of_parent=False), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Title of the result', duplicate_of_parent=False), Variable(api_name='input_message_content', name='input_message_content', pytg_name=None, types=[Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None)], optional=False, default=None, description='Content of the message to be sent', duplicate_of_parent=False)], keywords=[Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Optional. Inline keyboard attached to the message', duplicate_of_parent=False), Variable(api_name='url', name='url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. URL of the result', duplicate_of_parent=False), Variable(api_name='hide_url', name='hide_url', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. Pass True, if you don't want the URL to be shown in the message", duplicate_of_parent=False), Variable(api_name='description', name='description', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Short description of the result', duplicate_of_parent=False), Variable(api_name='thumb_url', name='thumb_url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Url of the thumbnail for the result', duplicate_of_parent=False), Variable(api_name='thumb_width', name='thumb_width', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Thumbnail width', duplicate_of_parent=False), Variable(api_name='thumb_height', name='thumb_height', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Thumbnail height', duplicate_of_parent=False)]),
Clazz(clazz='InlineQueryResultPhoto', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InlineQueryResultPhoto', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.inline', name='InputMessageContent', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], parent_clazz=Type(string='InlineQueryResult', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inlinequeryresultphoto', description='Represents a link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='photo', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be photo', duplicate_of_parent=False), Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this result, 1-64 bytes', duplicate_of_parent=False), Variable(api_name='photo_url', name='photo_url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='A valid URL of the photo. Photo must be in JPEG format. Photo size must not exceed 5MB', duplicate_of_parent=False), Variable(api_name='thumb_url', name='thumb_url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='URL of the thumbnail for the photo', duplicate_of_parent=False)], keywords=[Variable(api_name='photo_width', name='photo_width', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Width of the photo', duplicate_of_parent=False), Variable(api_name='photo_height', name='photo_height', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Height of the photo', duplicate_of_parent=False), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Title for the result', duplicate_of_parent=False), Variable(api_name='description', name='description', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Short description of the result', duplicate_of_parent=False), Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing', duplicate_of_parent=False), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Mode for parsing entities in the photo caption. See formatting options for more details.', duplicate_of_parent=False), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=False), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Optional. Inline keyboard attached to the message', duplicate_of_parent=False), Variable(api_name='input_message_content', name='input_message_content', pytg_name=None, types=[Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None)], optional=True, default=None, description='Optional. Content of the message to be sent instead of the photo', duplicate_of_parent=False)]),
Clazz(clazz='InlineQueryResultGif', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InlineQueryResultGif', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.inline', name='InputMessageContent', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], parent_clazz=Type(string='InlineQueryResult', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inlinequeryresultgif', description='Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='gif', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be gif', duplicate_of_parent=False), Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this result, 1-64 bytes', duplicate_of_parent=False), Variable(api_name='gif_url', name='gif_url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='A valid URL for the GIF file. File size must not exceed 1MB', duplicate_of_parent=False), Variable(api_name='thumb_url', name='thumb_url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result', duplicate_of_parent=False)], keywords=[Variable(api_name='gif_width', name='gif_width', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Width of the GIF', duplicate_of_parent=False), Variable(api_name='gif_height', name='gif_height', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Height of the GIF', duplicate_of_parent=False), Variable(api_name='gif_duration', name='gif_duration', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Duration of the GIF in seconds', duplicate_of_parent=False), Variable(api_name='thumb_mime_type', name='thumb_mime_type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. MIME type of the thumbnail, must be one of "image/jpeg", "image/gif", or "video/mp4". Defaults to "image/jpeg"', duplicate_of_parent=False), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Title for the result', duplicate_of_parent=False), Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing', duplicate_of_parent=False), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Mode for parsing entities in the caption. See formatting options for more details.', duplicate_of_parent=False), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=False), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Optional. Inline keyboard attached to the message', duplicate_of_parent=False), Variable(api_name='input_message_content', name='input_message_content', pytg_name=None, types=[Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None)], optional=True, default=None, description='Optional. Content of the message to be sent instead of the GIF animation', duplicate_of_parent=False)]),
Clazz(clazz='InlineQueryResultMpeg4Gif', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InlineQueryResultMpeg4Gif', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.inline', name='InputMessageContent', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], parent_clazz=Type(string='InlineQueryResult', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inlinequeryresultmpeg4gif', description='Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='mpeg4_gif', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be mpeg4_gif', duplicate_of_parent=False), Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this result, 1-64 bytes', duplicate_of_parent=False), Variable(api_name='mpeg4_url', name='mpeg4_url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='A valid URL for the MP4 file. File size must not exceed 1MB', duplicate_of_parent=False), Variable(api_name='thumb_url', name='thumb_url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result', duplicate_of_parent=False)], keywords=[Variable(api_name='mpeg4_width', name='mpeg4_width', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Video width', duplicate_of_parent=False), Variable(api_name='mpeg4_height', name='mpeg4_height', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Video height', duplicate_of_parent=False), Variable(api_name='mpeg4_duration', name='mpeg4_duration', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Video duration in seconds', duplicate_of_parent=False), Variable(api_name='thumb_mime_type', name='thumb_mime_type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. MIME type of the thumbnail, must be one of "image/jpeg", "image/gif", or "video/mp4". Defaults to "image/jpeg"', duplicate_of_parent=False), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Title for the result', duplicate_of_parent=False), Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing', duplicate_of_parent=False), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Mode for parsing entities in the caption. See formatting options for more details.', duplicate_of_parent=False), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=False), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Optional. Inline keyboard attached to the message', duplicate_of_parent=False), Variable(api_name='input_message_content', name='input_message_content', pytg_name=None, types=[Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None)], optional=True, default=None, description='Optional. Content of the message to be sent instead of the video animation', duplicate_of_parent=False)]),
Clazz(clazz='InlineQueryResultVideo', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InlineQueryResultVideo', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.inline', name='InputMessageContent', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], parent_clazz=Type(string='InlineQueryResult', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inlinequeryresultvideo', description='Represents a link to a page containing an embedded video player or a video file. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.\n\nIf an InlineQueryResultVideo message contains an embedded video (e.g., YouTube), you must replace its content using input_message_content.\n', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='video', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be video', duplicate_of_parent=False), Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this result, 1-64 bytes', duplicate_of_parent=False), Variable(api_name='video_url', name='video_url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='A valid URL for the embedded video player or video file', duplicate_of_parent=False), Variable(api_name='mime_type', name='mime_type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Mime type of the content of video url, "text/html" or "video/mp4"', duplicate_of_parent=False), Variable(api_name='thumb_url', name='thumb_url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='URL of the thumbnail (JPEG only) for the video', duplicate_of_parent=False), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Title for the result', duplicate_of_parent=False)], keywords=[Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Caption of the video to be sent, 0-1024 characters after entities parsing', duplicate_of_parent=False), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Mode for parsing entities in the video caption. See formatting options for more details.', duplicate_of_parent=False), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=False), Variable(api_name='video_width', name='video_width', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Video width', duplicate_of_parent=False), Variable(api_name='video_height', name='video_height', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Video height', duplicate_of_parent=False), Variable(api_name='video_duration', name='video_duration', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Video duration in seconds', duplicate_of_parent=False), Variable(api_name='description', name='description', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Short description of the result', duplicate_of_parent=False), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Optional. Inline keyboard attached to the message', duplicate_of_parent=False), Variable(api_name='input_message_content', name='input_message_content', pytg_name=None, types=[Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None)], optional=True, default=None, description='Optional. Content of the message to be sent instead of the video. This field is required if InlineQueryResultVideo is used to send an HTML-page as a result (e.g., a YouTube video).', duplicate_of_parent=False)]),
Clazz(clazz='InlineQueryResultAudio', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InlineQueryResultAudio', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.inline', name='InputMessageContent', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], parent_clazz=Type(string='InlineQueryResult', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inlinequeryresultaudio', description='Represents a link to an MP3 audio file. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.\nNote: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='audio', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be audio', duplicate_of_parent=False), Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this result, 1-64 bytes', duplicate_of_parent=False), Variable(api_name='audio_url', name='audio_url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='A valid URL for the audio file', duplicate_of_parent=False), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Title', duplicate_of_parent=False)], keywords=[Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Caption, 0-1024 characters after entities parsing', duplicate_of_parent=False), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Mode for parsing entities in the audio caption. See formatting options for more details.', duplicate_of_parent=False), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=False), Variable(api_name='performer', name='performer', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Performer', duplicate_of_parent=False), Variable(api_name='audio_duration', name='audio_duration', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Audio duration in seconds', duplicate_of_parent=False), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Optional. Inline keyboard attached to the message', duplicate_of_parent=False), Variable(api_name='input_message_content', name='input_message_content', pytg_name=None, types=[Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None)], optional=True, default=None, description='Optional. Content of the message to be sent instead of the audio', duplicate_of_parent=False)]),
Clazz(clazz='InlineQueryResultVoice', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InlineQueryResultVoice', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.inline', name='InputMessageContent', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], parent_clazz=Type(string='InlineQueryResult', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inlinequeryresultvoice', description='Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message.\nNote: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='voice', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be voice', duplicate_of_parent=False), Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this result, 1-64 bytes', duplicate_of_parent=False), Variable(api_name='voice_url', name='voice_url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='A valid URL for the voice recording', duplicate_of_parent=False), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Recording title', duplicate_of_parent=False)], keywords=[Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Caption, 0-1024 characters after entities parsing', duplicate_of_parent=False), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Mode for parsing entities in the voice message caption. See formatting options for more details.', duplicate_of_parent=False), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=False), Variable(api_name='voice_duration', name='voice_duration', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Recording duration in seconds', duplicate_of_parent=False), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Optional. Inline keyboard attached to the message', duplicate_of_parent=False), Variable(api_name='input_message_content', name='input_message_content', pytg_name=None, types=[Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None)], optional=True, default=None, description='Optional. Content of the message to be sent instead of the voice recording', duplicate_of_parent=False)]),
Clazz(clazz='InlineQueryResultDocument', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InlineQueryResultDocument', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.inline', name='InputMessageContent', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], parent_clazz=Type(string='InlineQueryResult', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inlinequeryresultdocument', description='Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method.\nNote: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='document', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be document', duplicate_of_parent=False), Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this result, 1-64 bytes', duplicate_of_parent=False), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Title for the result', duplicate_of_parent=False), Variable(api_name='document_url', name='document_url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='A valid URL for the file', duplicate_of_parent=False), Variable(api_name='mime_type', name='mime_type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Mime type of the content of the file, either "application/pdf" or "application/zip"', duplicate_of_parent=False)], keywords=[Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Caption of the document to be sent, 0-1024 characters after entities parsing', duplicate_of_parent=False), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Mode for parsing entities in the document caption. See formatting options for more details.', duplicate_of_parent=False), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=False), Variable(api_name='description', name='description', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Short description of the result', duplicate_of_parent=False), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Optional. Inline keyboard attached to the message', duplicate_of_parent=False), Variable(api_name='input_message_content', name='input_message_content', pytg_name=None, types=[Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None)], optional=True, default=None, description='Optional. Content of the message to be sent instead of the file', duplicate_of_parent=False), Variable(api_name='thumb_url', name='thumb_url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. URL of the thumbnail (JPEG only) for the file', duplicate_of_parent=False), Variable(api_name='thumb_width', name='thumb_width', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Thumbnail width', duplicate_of_parent=False), Variable(api_name='thumb_height', name='thumb_height', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Thumbnail height', duplicate_of_parent=False)]),
Clazz(clazz='InlineQueryResultLocation', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InlineQueryResultLocation', is_init=False), imports=[Import(path='pytgbot.api_types.sendable.inline', name='InputMessageContent', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], parent_clazz=Type(string='InlineQueryResult', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inlinequeryresultlocation', description='Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location.\nNote: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='location', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be location', duplicate_of_parent=False), Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this result, 1-64 Bytes', duplicate_of_parent=False), Variable(api_name='latitude', name='latitude', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Location latitude in degrees', duplicate_of_parent=False), Variable(api_name='longitude', name='longitude', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Location longitude in degrees', duplicate_of_parent=False), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Location title', duplicate_of_parent=False)], keywords=[Variable(api_name='horizontal_accuracy', name='horizontal_accuracy', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. The radius of uncertainty for the location, measured in meters; 0-1500', duplicate_of_parent=False), Variable(api_name='live_period', name='live_period', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.', duplicate_of_parent=False), Variable(api_name='heading', name='heading', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.', duplicate_of_parent=False), Variable(api_name='proximity_alert_radius', name='proximity_alert_radius', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.', duplicate_of_parent=False), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Optional. Inline keyboard attached to the message', duplicate_of_parent=False), Variable(api_name='input_message_content', name='input_message_content', pytg_name=None, types=[Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None)], optional=True, default=None, description='Optional. Content of the message to be sent instead of the location', duplicate_of_parent=False), Variable(api_name='thumb_url', name='thumb_url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Url of the thumbnail for the result', duplicate_of_parent=False), Variable(api_name='thumb_width', name='thumb_width', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Thumbnail width', duplicate_of_parent=False), Variable(api_name='thumb_height', name='thumb_height', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Thumbnail height', duplicate_of_parent=False)]),
Clazz(clazz='InlineQueryResultVenue', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InlineQueryResultVenue', is_init=False), imports=[Import(path='pytgbot.api_types.sendable.inline', name='InputMessageContent', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], parent_clazz=Type(string='InlineQueryResult', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inlinequeryresultvenue', description='Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the venue.\nNote: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='venue', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be venue', duplicate_of_parent=False), Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this result, 1-64 Bytes', duplicate_of_parent=False), Variable(api_name='latitude', name='latitude', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Latitude of the venue location in degrees', duplicate_of_parent=False), Variable(api_name='longitude', name='longitude', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Longitude of the venue location in degrees', duplicate_of_parent=False), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Title of the venue', duplicate_of_parent=False), Variable(api_name='address', name='address', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Address of the venue', duplicate_of_parent=False)], keywords=[Variable(api_name='foursquare_id', name='foursquare_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Foursquare identifier of the venue if known', duplicate_of_parent=False), Variable(api_name='foursquare_type', name='foursquare_type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Foursquare type of the venue, if known. (For example, "arts_entertainment/default", "arts_entertainment/aquarium" or "food/icecream".)', duplicate_of_parent=False), Variable(api_name='google_place_id', name='google_place_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Google Places identifier of the venue', duplicate_of_parent=False), Variable(api_name='google_place_type', name='google_place_type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Google Places type of the venue. (See supported types.)', duplicate_of_parent=False), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Optional. Inline keyboard attached to the message', duplicate_of_parent=False), Variable(api_name='input_message_content', name='input_message_content', pytg_name=None, types=[Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None)], optional=True, default=None, description='Optional. Content of the message to be sent instead of the venue', duplicate_of_parent=False), Variable(api_name='thumb_url', name='thumb_url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Url of the thumbnail for the result', duplicate_of_parent=False), Variable(api_name='thumb_width', name='thumb_width', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Thumbnail width', duplicate_of_parent=False), Variable(api_name='thumb_height', name='thumb_height', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Thumbnail height', duplicate_of_parent=False)]),
Clazz(clazz='InlineQueryResultContact', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InlineQueryResultContact', is_init=False), imports=[Import(path='pytgbot.api_types.sendable.inline', name='InputMessageContent', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], parent_clazz=Type(string='InlineQueryResult', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inlinequeryresultcontact', description='Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the contact.\nNote: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='contact', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be contact', duplicate_of_parent=False), Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this result, 1-64 Bytes', duplicate_of_parent=False), Variable(api_name='phone_number', name='phone_number', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Contact's phone number", duplicate_of_parent=False), Variable(api_name='first_name', name='first_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Contact's first name", duplicate_of_parent=False)], keywords=[Variable(api_name='last_name', name='last_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. Contact's last name", duplicate_of_parent=False), Variable(api_name='vcard', name='vcard', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes', duplicate_of_parent=False), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Optional. Inline keyboard attached to the message', duplicate_of_parent=False), Variable(api_name='input_message_content', name='input_message_content', pytg_name=None, types=[Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None)], optional=True, default=None, description='Optional. Content of the message to be sent instead of the contact', duplicate_of_parent=False), Variable(api_name='thumb_url', name='thumb_url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Url of the thumbnail for the result', duplicate_of_parent=False), Variable(api_name='thumb_width', name='thumb_width', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Thumbnail width', duplicate_of_parent=False), Variable(api_name='thumb_height', name='thumb_height', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Thumbnail height', duplicate_of_parent=False)]),
Clazz(clazz='InlineQueryResultGame', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InlineQueryResultGame', is_init=False), imports=[Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], parent_clazz=Type(string='InlineQueryResult', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inlinequeryresultgame', description='Represents a Game.\nNote: This will only work in Telegram versions released after October 1, 2016. Older clients will not display any inline results if a game result is among them.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='game', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be game', duplicate_of_parent=False), Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this result, 1-64 bytes', duplicate_of_parent=False), Variable(api_name='game_short_name', name='game_short_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Short name of the game', duplicate_of_parent=False)], keywords=[Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Optional. Inline keyboard attached to the message', duplicate_of_parent=False)]),
Clazz(clazz='InlineQueryResultCachedPhoto', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InlineQueryResultCachedPhoto', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.inline', name='InputMessageContent', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], parent_clazz=Type(string='InlineQueryCachedResult', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inlinequeryresultcachedphoto', description='Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='photo', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be photo', duplicate_of_parent=False), Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this result, 1-64 bytes', duplicate_of_parent=False), Variable(api_name='photo_file_id', name='photo_file_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='A valid file identifier of the photo', duplicate_of_parent=False)], keywords=[Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Title for the result', duplicate_of_parent=False), Variable(api_name='description', name='description', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Short description of the result', duplicate_of_parent=False), Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing', duplicate_of_parent=False), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Mode for parsing entities in the photo caption. See formatting options for more details.', duplicate_of_parent=False), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=False), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Optional. Inline keyboard attached to the message', duplicate_of_parent=False), Variable(api_name='input_message_content', name='input_message_content', pytg_name=None, types=[Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None)], optional=True, default=None, description='Optional. Content of the message to be sent instead of the photo', duplicate_of_parent=False)]),
Clazz(clazz='InlineQueryResultCachedGif', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InlineQueryResultCachedGif', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.inline', name='InputMessageContent', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], parent_clazz=Type(string='InlineQueryCachedResult', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inlinequeryresultcachedgif', description='Represents a link to an animated GIF file stored on the Telegram servers. By default, this animated GIF file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with specified content instead of the animation.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='gif', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be gif', duplicate_of_parent=False), Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this result, 1-64 bytes', duplicate_of_parent=False), Variable(api_name='gif_file_id', name='gif_file_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='A valid file identifier for the GIF file', duplicate_of_parent=False)], keywords=[Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Title for the result', duplicate_of_parent=False), Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing', duplicate_of_parent=False), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Mode for parsing entities in the caption. See formatting options for more details.', duplicate_of_parent=False), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=False), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Optional. Inline keyboard attached to the message', duplicate_of_parent=False), Variable(api_name='input_message_content', name='input_message_content', pytg_name=None, types=[Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None)], optional=True, default=None, description='Optional. Content of the message to be sent instead of the GIF animation', duplicate_of_parent=False)]),
Clazz(clazz='InlineQueryResultCachedMpeg4Gif', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InlineQueryResultCachedMpeg4Gif', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.inline', name='InputMessageContent', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], parent_clazz=Type(string='InlineQueryCachedResult', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inlinequeryresultcachedmpeg4gif', description='Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers. By default, this animated MPEG-4 file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='mpeg4_gif', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be mpeg4_gif', duplicate_of_parent=False), Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this result, 1-64 bytes', duplicate_of_parent=False), Variable(api_name='mpeg4_file_id', name='mpeg4_file_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='A valid file identifier for the MP4 file', duplicate_of_parent=False)], keywords=[Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Title for the result', duplicate_of_parent=False), Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing', duplicate_of_parent=False), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Mode for parsing entities in the caption. See formatting options for more details.', duplicate_of_parent=False), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=False), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Optional. Inline keyboard attached to the message', duplicate_of_parent=False), Variable(api_name='input_message_content', name='input_message_content', pytg_name=None, types=[Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None)], optional=True, default=None, description='Optional. Content of the message to be sent instead of the video animation', duplicate_of_parent=False)]),
Clazz(clazz='InlineQueryResultCachedSticker', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InlineQueryResultCachedSticker', is_init=False), imports=[Import(path='pytgbot.api_types.sendable.inline', name='InputMessageContent', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], parent_clazz=Type(string='InlineQueryCachedResult', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inlinequeryresultcachedsticker', description='Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the sticker.\nNote: This will only work in Telegram versions released after 9 April, 2016 for static stickers and after 06 July, 2019 for animated stickers. Older clients will ignore them.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='sticker', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be sticker', duplicate_of_parent=False), Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this result, 1-64 bytes', duplicate_of_parent=False), Variable(api_name='sticker_file_id', name='sticker_file_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='A valid file identifier of the sticker', duplicate_of_parent=False)], keywords=[Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Optional. Inline keyboard attached to the message', duplicate_of_parent=False), Variable(api_name='input_message_content', name='input_message_content', pytg_name=None, types=[Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None)], optional=True, default=None, description='Optional. Content of the message to be sent instead of the sticker', duplicate_of_parent=False)]),
Clazz(clazz='InlineQueryResultCachedDocument', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InlineQueryResultCachedDocument', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.inline', name='InputMessageContent', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], parent_clazz=Type(string='InlineQueryCachedResult', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inlinequeryresultcacheddocument', description='Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file.\nNote: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='document', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be document', duplicate_of_parent=False), Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this result, 1-64 bytes', duplicate_of_parent=False), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Title for the result', duplicate_of_parent=False), Variable(api_name='document_file_id', name='document_file_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='A valid file identifier for the file', duplicate_of_parent=False)], keywords=[Variable(api_name='description', name='description', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Short description of the result', duplicate_of_parent=False), Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Caption of the document to be sent, 0-1024 characters after entities parsing', duplicate_of_parent=False), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Mode for parsing entities in the document caption. See formatting options for more details.', duplicate_of_parent=False), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=False), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Optional. Inline keyboard attached to the message', duplicate_of_parent=False), Variable(api_name='input_message_content', name='input_message_content', pytg_name=None, types=[Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None)], optional=True, default=None, description='Optional. Content of the message to be sent instead of the file', duplicate_of_parent=False)]),
Clazz(clazz='InlineQueryResultCachedVideo', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InlineQueryResultCachedVideo', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.inline', name='InputMessageContent', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], parent_clazz=Type(string='InlineQueryCachedResult', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inlinequeryresultcachedvideo', description='Represents a link to a video file stored on the Telegram servers. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='video', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be video', duplicate_of_parent=False), Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this result, 1-64 bytes', duplicate_of_parent=False), Variable(api_name='video_file_id', name='video_file_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='A valid file identifier for the video file', duplicate_of_parent=False), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Title for the result', duplicate_of_parent=False)], keywords=[Variable(api_name='description', name='description', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Short description of the result', duplicate_of_parent=False), Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Caption of the video to be sent, 0-1024 characters after entities parsing', duplicate_of_parent=False), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Mode for parsing entities in the video caption. See formatting options for more details.', duplicate_of_parent=False), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=False), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Optional. Inline keyboard attached to the message', duplicate_of_parent=False), Variable(api_name='input_message_content', name='input_message_content', pytg_name=None, types=[Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None)], optional=True, default=None, description='Optional. Content of the message to be sent instead of the video', duplicate_of_parent=False)]),
Clazz(clazz='InlineQueryResultCachedVoice', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InlineQueryResultCachedVoice', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.inline', name='InputMessageContent', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], parent_clazz=Type(string='InlineQueryCachedResult', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inlinequeryresultcachedvoice', description='Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message.\nNote: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='voice', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be voice', duplicate_of_parent=False), Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this result, 1-64 bytes', duplicate_of_parent=False), Variable(api_name='voice_file_id', name='voice_file_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='A valid file identifier for the voice message', duplicate_of_parent=False), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Voice message title', duplicate_of_parent=False)], keywords=[Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Caption, 0-1024 characters after entities parsing', duplicate_of_parent=False), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Mode for parsing entities in the voice message caption. See formatting options for more details.', duplicate_of_parent=False), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=False), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Optional. Inline keyboard attached to the message', duplicate_of_parent=False), Variable(api_name='input_message_content', name='input_message_content', pytg_name=None, types=[Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None)], optional=True, default=None, description='Optional. Content of the message to be sent instead of the voice message', duplicate_of_parent=False)]),
Clazz(clazz='InlineQueryResultCachedAudio', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InlineQueryResultCachedAudio', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.sendable.inline', name='InputMessageContent', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], parent_clazz=Type(string='InlineQueryCachedResult', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inlinequeryresultcachedaudio', description='Represents a link to an MP3 audio file stored on the Telegram servers. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.\nNote: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='audio', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of the result, must be audio', duplicate_of_parent=False), Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for this result, 1-64 bytes', duplicate_of_parent=False), Variable(api_name='audio_file_id', name='audio_file_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='A valid file identifier for the audio file', duplicate_of_parent=False)], keywords=[Variable(api_name='caption', name='caption', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Caption, 0-1024 characters after entities parsing', duplicate_of_parent=False), Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Mode for parsing entities in the audio caption. See formatting options for more details.', duplicate_of_parent=False), Variable(api_name='caption_entities', name='caption_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode', duplicate_of_parent=False), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description='Optional. Inline keyboard attached to the message', duplicate_of_parent=False), Variable(api_name='input_message_content', name='input_message_content', pytg_name=None, types=[Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None)], optional=True, default=None, description='Optional. Content of the message to be sent instead of the audio', duplicate_of_parent=False)]),
Clazz(clazz='InputTextMessageContent', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InputTextMessageContent', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False)], parent_clazz=Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inputtextmessagecontent', description='Represents the content of a text message to be sent as the result of an inline query.', parameters=[Variable(api_name='message_text', name='message_text', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Text of the message to be sent, 1-4096 characters', duplicate_of_parent=False)], keywords=[Variable(api_name='parse_mode', name='parse_mode', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Mode for parsing entities in the message text. See formatting options for more details.', duplicate_of_parent=False), Variable(api_name='entities', name='entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. List of special entities that appear in message text, which can be specified instead of parse_mode', duplicate_of_parent=False), Variable(api_name='disable_web_page_preview', name='disable_web_page_preview', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Disables link previews for links in the sent message', duplicate_of_parent=False)]),
Clazz(clazz='InputLocationMessageContent', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InputLocationMessageContent', is_init=False), imports=[], parent_clazz=Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inputlocationmessagecontent', description='Represents the content of a location message to be sent as the result of an inline query.', parameters=[Variable(api_name='latitude', name='latitude', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Latitude of the location in degrees', duplicate_of_parent=False), Variable(api_name='longitude', name='longitude', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Longitude of the location in degrees', duplicate_of_parent=False)], keywords=[Variable(api_name='horizontal_accuracy', name='horizontal_accuracy', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. The radius of uncertainty for the location, measured in meters; 0-1500', duplicate_of_parent=False), Variable(api_name='live_period', name='live_period', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.', duplicate_of_parent=False), Variable(api_name='heading', name='heading', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.', duplicate_of_parent=False), Variable(api_name='proximity_alert_radius', name='proximity_alert_radius', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.', duplicate_of_parent=False)]),
Clazz(clazz='InputVenueMessageContent', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InputVenueMessageContent', is_init=False), imports=[], parent_clazz=Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inputvenuemessagecontent', description='Represents the content of a venue message to be sent as the result of an inline query.', parameters=[Variable(api_name='latitude', name='latitude', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Latitude of the venue in degrees', duplicate_of_parent=False), Variable(api_name='longitude', name='longitude', pytg_name=None, types=[Type(string='float', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Longitude of the venue in degrees', duplicate_of_parent=False), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Name of the venue', duplicate_of_parent=False), Variable(api_name='address', name='address', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Address of the venue', duplicate_of_parent=False)], keywords=[Variable(api_name='foursquare_id', name='foursquare_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Foursquare identifier of the venue, if known', duplicate_of_parent=False), Variable(api_name='foursquare_type', name='foursquare_type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Foursquare type of the venue, if known. (For example, "arts_entertainment/default", "arts_entertainment/aquarium" or "food/icecream".)', duplicate_of_parent=False), Variable(api_name='google_place_id', name='google_place_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Google Places identifier of the venue', duplicate_of_parent=False), Variable(api_name='google_place_type', name='google_place_type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Google Places type of the venue. (See supported types.)', duplicate_of_parent=False)]),
Clazz(clazz='InputContactMessageContent', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InputContactMessageContent', is_init=False), imports=[], parent_clazz=Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inputcontactmessagecontent', description='Represents the content of a contact message to be sent as the result of an inline query.', parameters=[Variable(api_name='phone_number', name='phone_number', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Contact's phone number", duplicate_of_parent=False), Variable(api_name='first_name', name='first_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Contact's first name", duplicate_of_parent=False)], keywords=[Variable(api_name='last_name', name='last_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. Contact's last name", duplicate_of_parent=False), Variable(api_name='vcard', name='vcard', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes', duplicate_of_parent=False)]),
Clazz(clazz='InputInvoiceMessageContent', import_path=Import(path='pytgbot.api_types.sendable.inline', name='InputInvoiceMessageContent', is_init=False), imports=[Import(path='pytgbot.api_types.sendable.payments', name='LabeledPrice', is_init=False)], parent_clazz=Type(string='InputMessageContent', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.inline', description=None), link='https://core.telegram.org/bots/api#inputinvoicemessagecontent', description='Represents the content of an invoice message to be sent as the result of an inline query.', parameters=[Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Product name, 1-32 characters', duplicate_of_parent=False), Variable(api_name='description', name='description', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Product description, 1-255 characters', duplicate_of_parent=False), Variable(api_name='payload', name='payload', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.', duplicate_of_parent=False), Variable(api_name='provider_token', name='provider_token', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Payment provider token, obtained via Botfather', duplicate_of_parent=False), Variable(api_name='currency', name='currency', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Three-letter ISO 4217 currency code, see more on currencies', duplicate_of_parent=False), Variable(api_name='prices', name='prices', pytg_name=None, types=[Type(string='LabeledPrice', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.sendable.payments', description=None)], optional=False, default=None, description='Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)', duplicate_of_parent=False)], keywords=[Variable(api_name='max_tip_amount', name='max_tip_amount', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). Defaults to 0', duplicate_of_parent=False), Variable(api_name='suggested_tip_amounts', name='suggested_tip_amounts', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=1, import_path=None, description=None)], optional=True, default=None, description='Optional. A JSON-serialized array of suggested amounts of tip in the smallest units of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount.', duplicate_of_parent=False), Variable(api_name='provider_data', name='provider_data', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. A JSON-serialized object for data about the invoice, which will be shared with the payment provider. A detailed description of the required fields should be provided by the payment provider.', duplicate_of_parent=False), Variable(api_name='photo_url', name='photo_url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for.', duplicate_of_parent=False), Variable(api_name='photo_size', name='photo_size', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Photo size', duplicate_of_parent=False), Variable(api_name='photo_width', name='photo_width', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Photo width', duplicate_of_parent=False), Variable(api_name='photo_height', name='photo_height', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Photo height', duplicate_of_parent=False), Variable(api_name='need_name', name='need_name', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. Pass True, if you require the user's full name to complete the order", duplicate_of_parent=False), Variable(api_name='need_phone_number', name='need_phone_number', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. Pass True, if you require the user's phone number to complete the order", duplicate_of_parent=False), Variable(api_name='need_email', name='need_email', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. Pass True, if you require the user's email address to complete the order", duplicate_of_parent=False), Variable(api_name='need_shipping_address', name='need_shipping_address', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. Pass True, if you require the user's shipping address to complete the order", duplicate_of_parent=False), Variable(api_name='send_phone_number_to_provider', name='send_phone_number_to_provider', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. Pass True, if user's phone number should be sent to provider", duplicate_of_parent=False), Variable(api_name='send_email_to_provider', name='send_email_to_provider', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. Pass True, if user's email address should be sent to provider", duplicate_of_parent=False), Variable(api_name='is_flexible', name='is_flexible', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Pass True, if the final price depends on the shipping method', duplicate_of_parent=False)]),
Clazz(clazz='ChosenInlineResult', import_path=Import(path='pytgbot.api_types.receivable.inline', name='ChosenInlineResult', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='Location', is_init=False), Import(path='pytgbot.api_types.receivable.peer', name='User', is_init=False)], parent_clazz=Type(string='UpdateType', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None), link='https://core.telegram.org/bots/api#choseninlineresult', description='Represents a result of an inline query that was chosen by the user and sent to their chat partner.\nNote: It is necessary to enable inline feedback via @Botfather in order to receive these objects in updates.', parameters=[Variable(api_name='result_id', name='result_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='The unique identifier for the result that was chosen', duplicate_of_parent=False), Variable(api_name='from', name='from_peer', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='The user that chose the result', duplicate_of_parent=False), Variable(api_name='query', name='query', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='The query that was used to obtain the result', duplicate_of_parent=False)], keywords=[Variable(api_name='location', name='location', pytg_name=None, types=[Type(string='Location', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Sender location, only for bots that require user location', duplicate_of_parent=False), Variable(api_name='inline_message_id', name='inline_message_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message.', duplicate_of_parent=False)]),
Function(api_name='sendInvoice', imports=[Import(path='pytgbot.api_types.sendable.payments', name='LabeledPrice', is_init=False), Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], link='https://core.telegram.org/bots/api#sendinvoice', description='Use this method to send invoices. On success, the sent Message is returned.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=None, default=None, description='On success, the sent Message is returned', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None), Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat or username of the target channel (in the format @channelusername)', duplicate_of_parent=None), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Product name, 1-32 characters', duplicate_of_parent=None), Variable(api_name='description', name='description', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Product description, 1-255 characters', duplicate_of_parent=None), Variable(api_name='payload', name='payload', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.', duplicate_of_parent=None), Variable(api_name='provider_token', name='provider_token', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Payments provider token, obtained via Botfather', duplicate_of_parent=None), Variable(api_name='currency', name='currency', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Three-letter ISO 4217 currency code, see more on currencies', duplicate_of_parent=None), Variable(api_name='prices', name='prices', pytg_name=None, types=[Type(string='LabeledPrice', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.sendable.payments', description=None)], optional=False, default=None, description='Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)', duplicate_of_parent=None)], keywords=[Variable(api_name='max_tip_amount', name='max_tip_amount', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). Defaults to 0', duplicate_of_parent=None), Variable(api_name='suggested_tip_amounts', name='suggested_tip_amounts', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=1, import_path=None, description=None)], optional=True, default=None, description='A JSON-serialized array of suggested amounts of tips in the smallest units of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount.', duplicate_of_parent=None), Variable(api_name='start_parameter', name='start_parameter', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Unique deep-linking parameter. If left empty, forwarded copies of the sent message will have a Pay button, allowing multiple users to pay directly from the forwarded message, using the same invoice. If non-empty, forwarded copies of the sent message will have a URL button with a deep link to the bot (instead of a Pay button), with the value used as the start parameter', duplicate_of_parent=None), Variable(api_name='provider_data', name='provider_data', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='A JSON-serialized data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider.', duplicate_of_parent=None), Variable(api_name='photo_url', name='photo_url', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for.', duplicate_of_parent=None), Variable(api_name='photo_size', name='photo_size', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Photo size', duplicate_of_parent=None), Variable(api_name='photo_width', name='photo_width', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Photo width', duplicate_of_parent=None), Variable(api_name='photo_height', name='photo_height', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Photo height', duplicate_of_parent=None), Variable(api_name='need_name', name='need_name', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Pass True, if you require the user's full name to complete the order", duplicate_of_parent=None), Variable(api_name='need_phone_number', name='need_phone_number', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Pass True, if you require the user's phone number to complete the order", duplicate_of_parent=None), Variable(api_name='need_email', name='need_email', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Pass True, if you require the user's email address to complete the order", duplicate_of_parent=None), Variable(api_name='need_shipping_address', name='need_shipping_address', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Pass True, if you require the user's shipping address to complete the order", duplicate_of_parent=None), Variable(api_name='send_phone_number_to_provider', name='send_phone_number_to_provider', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Pass True, if user's phone number should be sent to provider", duplicate_of_parent=None), Variable(api_name='send_email_to_provider', name='send_email_to_provider', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Pass True, if user's email address should be sent to provider", duplicate_of_parent=None), Variable(api_name='is_flexible', name='is_flexible', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the final price depends on the shipping method', duplicate_of_parent=None), Variable(api_name='disable_notification', name='disable_notification', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Sends the message silently. Users will receive a notification with no sound.', duplicate_of_parent=None), Variable(api_name='protect_content', name='protect_content', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Protects the contents of the sent message from forwarding and saving', duplicate_of_parent=None), Variable(api_name='reply_to_message_id', name='reply_to_message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='If the message is a reply, ID of the original message', duplicate_of_parent=None), Variable(api_name='allow_sending_without_reply', name='allow_sending_without_reply', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the message should be sent even if the specified replied-to message is not found', duplicate_of_parent=None), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description="A JSON-serialized object for an inline keyboard. If empty, one 'Pay total price' button will be shown. If not empty, the first button must be a Pay button.", duplicate_of_parent=None)]),
Function(api_name='answerShippingQuery', imports=[Import(path='pytgbot.api_types.sendable.payments', name='ShippingOption', is_init=False)], link='https://core.telegram.org/bots/api#answershippingquery', description='If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the Bot API will send an Update with a shipping_query field to the bot. Use this method to reply to shipping queries. On success, True is returned.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='On success, True is returned', duplicate_of_parent=None), parameters=[Variable(api_name='shipping_query_id', name='shipping_query_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the query to be answered', duplicate_of_parent=None), Variable(api_name='ok', name='ok', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Specify True if delivery to the specified address is possible and False if there are any problems (for example, if delivery to the specified address is not possible)', duplicate_of_parent=None)], keywords=[Variable(api_name='shipping_options', name='shipping_options', pytg_name=None, types=[Type(string='ShippingOption', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.sendable.payments', description=None)], optional=True, default=None, description='Required if ok is True. A JSON-serialized array of available shipping options.', duplicate_of_parent=None), Variable(api_name='error_message', name='error_message', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if ok is False. Error message in human readable form that explains why it is impossible to complete the order (e.g. "Sorry, delivery to your desired address is unavailable\'). Telegram will display this message to the user.', duplicate_of_parent=None)]),
Function(api_name='answerPreCheckoutQuery', imports=[], link='https://core.telegram.org/bots/api#answerprecheckoutquery', description='Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an Update with the field pre_checkout_query. Use this method to respond to such pre-checkout queries. On success, True is returned. Note: The Bot API must receive an answer within 10 seconds after the pre-checkout query was sent.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='On success, True is returned', duplicate_of_parent=None), parameters=[Variable(api_name='pre_checkout_query_id', name='pre_checkout_query_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the query to be answered', duplicate_of_parent=None), Variable(api_name='ok', name='ok', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Specify True if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order. Use False if there are any problems.', duplicate_of_parent=None)], keywords=[Variable(api_name='error_message', name='error_message', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if ok is False. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. "Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!"). Telegram will display this message to the user.', duplicate_of_parent=None)]),
Clazz(clazz='LabeledPrice', import_path=Import(path='pytgbot.api_types.sendable.payments', name='LabeledPrice', is_init=False), imports=[], parent_clazz=Type(string='Sendable', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable', description=None), link='https://core.telegram.org/bots/api#labeledprice', description='This object represents a portion of the price for goods or services.', parameters=[Variable(api_name='label', name='label', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Portion label', duplicate_of_parent=False), Variable(api_name='amount', name='amount', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='Invoice', import_path=Import(path='pytgbot.api_types.receivable.payments', name='Invoice', is_init=False), imports=[], parent_clazz=Type(string='Result', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#invoice', description='This object contains basic information about an invoice.', parameters=[Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Product name', duplicate_of_parent=False), Variable(api_name='description', name='description', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Product description', duplicate_of_parent=False), Variable(api_name='start_parameter', name='start_parameter', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique bot deep-linking parameter that can be used to generate this invoice', duplicate_of_parent=False), Variable(api_name='currency', name='currency', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Three-letter ISO 4217 currency code', duplicate_of_parent=False), Variable(api_name='total_amount', name='total_amount', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='ShippingAddress', import_path=Import(path='pytgbot.api_types.receivable.payments', name='ShippingAddress', is_init=False), imports=[], parent_clazz=Type(string='Result', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#shippingaddress', description='This object represents a shipping address.', parameters=[Variable(api_name='country_code', name='country_code', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='ISO 3166-1 alpha-2 country code', duplicate_of_parent=False), Variable(api_name='state', name='state', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='State, if applicable', duplicate_of_parent=False), Variable(api_name='city', name='city', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='City', duplicate_of_parent=False), Variable(api_name='street_line1', name='street_line1', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='First line for the address', duplicate_of_parent=False), Variable(api_name='street_line2', name='street_line2', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Second line for the address', duplicate_of_parent=False), Variable(api_name='post_code', name='post_code', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Address post code', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='OrderInfo', import_path=Import(path='pytgbot.api_types.receivable.payments', name='OrderInfo', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.payments', name='ShippingAddress', is_init=False)], parent_clazz=Type(string='Result', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#orderinfo', description='This object represents information about an order.', parameters=[], keywords=[Variable(api_name='name', name='name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. User name', duplicate_of_parent=False), Variable(api_name='phone_number', name='phone_number', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description="Optional. User's phone number", duplicate_of_parent=False), Variable(api_name='email', name='email', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. User email', duplicate_of_parent=False), Variable(api_name='shipping_address', name='shipping_address', pytg_name=None, types=[Type(string='ShippingAddress', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.payments', description=None)], optional=True, default=None, description='Optional. User shipping address', duplicate_of_parent=False)]),
Clazz(clazz='ShippingOption', import_path=Import(path='pytgbot.api_types.sendable.payments', name='ShippingOption', is_init=False), imports=[Import(path='pytgbot.api_types.sendable.payments', name='LabeledPrice', is_init=False)], parent_clazz=Type(string='Sendable', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable', description=None), link='https://core.telegram.org/bots/api#shippingoption', description='This object represents one shipping option.', parameters=[Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Shipping option identifier', duplicate_of_parent=False), Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Option title', duplicate_of_parent=False), Variable(api_name='prices', name='prices', pytg_name=None, types=[Type(string='LabeledPrice', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.sendable.payments', description=None)], optional=False, default=None, description='List of price portions', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='SuccessfulPayment', import_path=Import(path='pytgbot.api_types.receivable.payments', name='SuccessfulPayment', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.payments', name='OrderInfo', is_init=False)], parent_clazz=Type(string='Result', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#successfulpayment', description='This object contains basic information about a successful payment.', parameters=[Variable(api_name='currency', name='currency', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Three-letter ISO 4217 currency code', duplicate_of_parent=False), Variable(api_name='total_amount', name='total_amount', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).', duplicate_of_parent=False), Variable(api_name='invoice_payload', name='invoice_payload', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Bot specified invoice payload', duplicate_of_parent=False), Variable(api_name='telegram_payment_charge_id', name='telegram_payment_charge_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Telegram payment identifier', duplicate_of_parent=False), Variable(api_name='provider_payment_charge_id', name='provider_payment_charge_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Provider payment identifier', duplicate_of_parent=False)], keywords=[Variable(api_name='shipping_option_id', name='shipping_option_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Identifier of the shipping option chosen by the user', duplicate_of_parent=False), Variable(api_name='order_info', name='order_info', pytg_name=None, types=[Type(string='OrderInfo', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.payments', description=None)], optional=True, default=None, description='Optional. Order info provided by the user', duplicate_of_parent=False)]),
Clazz(clazz='ShippingQuery', import_path=Import(path='pytgbot.api_types.receivable.payments', name='ShippingQuery', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.payments', name='ShippingAddress', is_init=False), Import(path='pytgbot.api_types.receivable.peer', name='User', is_init=False)], parent_clazz=Type(string='UpdateType', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None), link='https://core.telegram.org/bots/api#shippingquery', description='This object contains information about an incoming shipping query.', parameters=[Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique query identifier', duplicate_of_parent=False), Variable(api_name='from', name='from_peer', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='User who sent the query', duplicate_of_parent=False), Variable(api_name='invoice_payload', name='invoice_payload', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Bot specified invoice payload', duplicate_of_parent=False), Variable(api_name='shipping_address', name='shipping_address', pytg_name=None, types=[Type(string='ShippingAddress', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.payments', description=None)], optional=False, default=None, description='User specified shipping address', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='PreCheckoutQuery', import_path=Import(path='pytgbot.api_types.receivable.payments', name='PreCheckoutQuery', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.payments', name='OrderInfo', is_init=False), Import(path='pytgbot.api_types.receivable.peer', name='User', is_init=False)], parent_clazz=Type(string='UpdateType', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None), link='https://core.telegram.org/bots/api#precheckoutquery', description='This object contains information about an incoming pre-checkout query.', parameters=[Variable(api_name='id', name='id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique query identifier', duplicate_of_parent=False), Variable(api_name='from', name='from_peer', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='User who sent the query', duplicate_of_parent=False), Variable(api_name='currency', name='currency', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Three-letter ISO 4217 currency code', duplicate_of_parent=False), Variable(api_name='total_amount', name='total_amount', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).', duplicate_of_parent=False), Variable(api_name='invoice_payload', name='invoice_payload', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Bot specified invoice payload', duplicate_of_parent=False)], keywords=[Variable(api_name='shipping_option_id', name='shipping_option_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Identifier of the shipping option chosen by the user', duplicate_of_parent=False), Variable(api_name='order_info', name='order_info', pytg_name=None, types=[Type(string='OrderInfo', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.payments', description=None)], optional=True, default=None, description='Optional. Order info provided by the user', duplicate_of_parent=False)]),
Clazz(clazz='PassportData', import_path=Import(path='pytgbot.api_types.receivable.passport', name='PassportData', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.passport', name='EncryptedCredentials', is_init=False), Import(path='pytgbot.api_types.receivable.passport', name='EncryptedPassportElement', is_init=False)], parent_clazz=Type(string='Result', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#passportdata', description='Contains information about Telegram Passport data shared with the bot by the user.', parameters=[Variable(api_name='data', name='data', pytg_name=None, types=[Type(string='EncryptedPassportElement', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.passport', description=None)], optional=False, default=None, description='Array with information about documents and other Telegram Passport elements that was shared with the bot', duplicate_of_parent=False), Variable(api_name='credentials', name='credentials', pytg_name=None, types=[Type(string='EncryptedCredentials', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.passport', description=None)], optional=False, default=None, description='Encrypted credentials required to decrypt the data', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='PassportFile', import_path=Import(path='pytgbot.api_types.receivable.passport', name='PassportFile', is_init=False), imports=[], parent_clazz=Type(string='Result', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#passportfile', description="This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB.", parameters=[Variable(api_name='file_id', name='file_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Identifier for this file, which can be used to download or reuse the file', duplicate_of_parent=False), Variable(api_name='file_unique_id', name='file_unique_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.", duplicate_of_parent=False), Variable(api_name='file_size', name='file_size', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='File size in bytes', duplicate_of_parent=False), Variable(api_name='file_date', name='file_date', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unix time when the file was uploaded', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='EncryptedPassportElement', import_path=Import(path='pytgbot.api_types.receivable.passport', name='EncryptedPassportElement', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.passport', name='PassportFile', is_init=False)], parent_clazz=Type(string='Result', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#encryptedpassportelement', description='Contains information about documents or other Telegram Passport elements shared with the bot by the user.', parameters=[Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Element type. One of "personal_details", "passport", "driver_license", "identity_card", "internal_passport", "address", "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration", "phone_number", "email".', duplicate_of_parent=False), Variable(api_name='hash', name='hash', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Base64-encoded element hash for using in PassportElementErrorUnspecified', duplicate_of_parent=False)], keywords=[Variable(api_name='data', name='data', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Base64-encoded encrypted Telegram Passport element data provided by the user, available for "personal_details", "passport", "driver_license", "identity_card", "internal_passport" and "address" types. Can be decrypted and verified using the accompanying EncryptedCredentials.', duplicate_of_parent=False), Variable(api_name='phone_number', name='phone_number', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. User\'s verified phone number, available only for "phone_number" type', duplicate_of_parent=False), Variable(api_name='email', name='email', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. User\'s verified email address, available only for "email" type', duplicate_of_parent=False), Variable(api_name='files', name='files', pytg_name=None, types=[Type(string='PassportFile', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.passport', description=None)], optional=True, default=None, description='Optional. Array of encrypted files with documents provided by the user, available for "utility_bill", "bank_statement", "rental_agreement", "passport_registration" and "temporary_registration" types. Files can be decrypted and verified using the accompanying EncryptedCredentials.', duplicate_of_parent=False), Variable(api_name='front_side', name='front_side', pytg_name=None, types=[Type(string='PassportFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.passport', description=None)], optional=True, default=None, description='Optional. Encrypted file with the front side of the document, provided by the user. Available for "passport", "driver_license", "identity_card" and "internal_passport". The file can be decrypted and verified using the accompanying EncryptedCredentials.', duplicate_of_parent=False), Variable(api_name='reverse_side', name='reverse_side', pytg_name=None, types=[Type(string='PassportFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.passport', description=None)], optional=True, default=None, description='Optional. Encrypted file with the reverse side of the document, provided by the user. Available for "driver_license" and "identity_card". The file can be decrypted and verified using the accompanying EncryptedCredentials.', duplicate_of_parent=False), Variable(api_name='selfie', name='selfie', pytg_name=None, types=[Type(string='PassportFile', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.passport', description=None)], optional=True, default=None, description='Optional. Encrypted file with the selfie of the user holding a document, provided by the user; available for "passport", "driver_license", "identity_card" and "internal_passport". The file can be decrypted and verified using the accompanying EncryptedCredentials.', duplicate_of_parent=False), Variable(api_name='translation', name='translation', pytg_name=None, types=[Type(string='PassportFile', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.passport', description=None)], optional=True, default=None, description='Optional. Array of encrypted files with translated versions of documents provided by the user. Available if requested for "passport", "driver_license", "identity_card", "internal_passport", "utility_bill", "bank_statement", "rental_agreement", "passport_registration" and "temporary_registration" types. Files can be decrypted and verified using the accompanying EncryptedCredentials.', duplicate_of_parent=False)]),
Clazz(clazz='EncryptedCredentials', import_path=Import(path='pytgbot.api_types.receivable.passport', name='EncryptedCredentials', is_init=False), imports=[], parent_clazz=Type(string='Result', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#encryptedcredentials', description='Contains data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.', parameters=[Variable(api_name='data', name='data', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication", duplicate_of_parent=False), Variable(api_name='hash', name='hash', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Base64-encoded data hash for data authentication', duplicate_of_parent=False), Variable(api_name='secret', name='secret', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption", duplicate_of_parent=False)], keywords=[]),
Function(api_name='setPassportDataErrors', imports=[Import(path='pytgbot.api_types.sendable.passport', name='PassportElementError', is_init=False)], link='https://core.telegram.org/bots/api#setpassportdataerrors', description="Informs a user that some of the Telegram Passport elements they provided contains errors. The user will not be able to re-submit their Passport to you until the errors are fixed (the contents of the field for which you returned the error must change). Returns True on success.\nUse this if the data submitted by the user doesn't satisfy the standards your service requires for any reason. For example, if a birthday date seems invalid, a submitted document is blurry, a scan shows evidence of tampering, etc. Supply some details in the error message to make sure the user knows how to correct the issues.", returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description='Returns True on success', duplicate_of_parent=None), parameters=[Variable(api_name='user_id', name='user_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='User identifier', duplicate_of_parent=None), Variable(api_name='errors', name='errors', pytg_name=None, types=[Type(string='PassportElementError', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.sendable.passport', description=None)], optional=False, default=None, description='A JSON-serialized array describing the errors', duplicate_of_parent=None)], keywords=[]),
Clazz(clazz='PassportElementErrorDataField', import_path=Import(path='pytgbot.api_types.sendable.passport', name='PassportElementErrorDataField', is_init=False), imports=[], parent_clazz=Type(string='PassportElementError', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.passport', description=None), link='https://core.telegram.org/bots/api#passportelementerrordatafield', description="Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes.", parameters=[Variable(api_name='source', name='source', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='data', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Error source, must be data', duplicate_of_parent=False), Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='The section of the user\'s Telegram Passport which has the error, one of "personal_details", "passport", "driver_license", "identity_card", "internal_passport", "address"', duplicate_of_parent=False), Variable(api_name='field_name', name='field_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Name of the data field which has the error', duplicate_of_parent=False), Variable(api_name='data_hash', name='data_hash', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Base64-encoded data hash', duplicate_of_parent=False), Variable(api_name='message', name='message', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Error message', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='PassportElementErrorFrontSide', import_path=Import(path='pytgbot.api_types.sendable.passport', name='PassportElementErrorFrontSide', is_init=False), imports=[], parent_clazz=Type(string='PassportElementError', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.passport', description=None), link='https://core.telegram.org/bots/api#passportelementerrorfrontside', description='Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes.', parameters=[Variable(api_name='source', name='source', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='front_side', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Error source, must be front_side', duplicate_of_parent=False), Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='The section of the user\'s Telegram Passport which has the issue, one of "passport", "driver_license", "identity_card", "internal_passport"', duplicate_of_parent=False), Variable(api_name='file_hash', name='file_hash', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Base64-encoded hash of the file with the front side of the document', duplicate_of_parent=False), Variable(api_name='message', name='message', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Error message', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='PassportElementErrorReverseSide', import_path=Import(path='pytgbot.api_types.sendable.passport', name='PassportElementErrorReverseSide', is_init=False), imports=[], parent_clazz=Type(string='PassportElementError', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.passport', description=None), link='https://core.telegram.org/bots/api#passportelementerrorreverseside', description='Represents an issue with the reverse side of a document. The error is considered resolved when the file with reverse side of the document changes.', parameters=[Variable(api_name='source', name='source', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='reverse_side', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Error source, must be reverse_side', duplicate_of_parent=False), Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='The section of the user\'s Telegram Passport which has the issue, one of "driver_license", "identity_card"', duplicate_of_parent=False), Variable(api_name='file_hash', name='file_hash', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Base64-encoded hash of the file with the reverse side of the document', duplicate_of_parent=False), Variable(api_name='message', name='message', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Error message', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='PassportElementErrorSelfie', import_path=Import(path='pytgbot.api_types.sendable.passport', name='PassportElementErrorSelfie', is_init=False), imports=[], parent_clazz=Type(string='PassportElementError', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.passport', description=None), link='https://core.telegram.org/bots/api#passportelementerrorselfie', description='Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes.', parameters=[Variable(api_name='source', name='source', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='selfie', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Error source, must be selfie', duplicate_of_parent=False), Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='The section of the user\'s Telegram Passport which has the issue, one of "passport", "driver_license", "identity_card", "internal_passport"', duplicate_of_parent=False), Variable(api_name='file_hash', name='file_hash', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Base64-encoded hash of the file with the selfie', duplicate_of_parent=False), Variable(api_name='message', name='message', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Error message', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='PassportElementErrorFile', import_path=Import(path='pytgbot.api_types.sendable.passport', name='PassportElementErrorFile', is_init=False), imports=[], parent_clazz=Type(string='PassportElementError', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.passport', description=None), link='https://core.telegram.org/bots/api#passportelementerrorfile', description='Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes.', parameters=[Variable(api_name='source', name='source', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='file', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Error source, must be file', duplicate_of_parent=False), Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='The section of the user\'s Telegram Passport which has the issue, one of "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration"', duplicate_of_parent=False), Variable(api_name='file_hash', name='file_hash', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Base64-encoded file hash', duplicate_of_parent=False), Variable(api_name='message', name='message', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Error message', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='PassportElementErrorFiles', import_path=Import(path='pytgbot.api_types.sendable.passport', name='PassportElementErrorFiles', is_init=False), imports=[], parent_clazz=Type(string='PassportElementError', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.passport', description=None), link='https://core.telegram.org/bots/api#passportelementerrorfiles', description='Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes.', parameters=[Variable(api_name='source', name='source', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='files', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Error source, must be files', duplicate_of_parent=False), Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='The section of the user\'s Telegram Passport which has the issue, one of "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration"', duplicate_of_parent=False), Variable(api_name='file_hashes', name='file_hashes', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=1, import_path=None, description=None)], optional=False, default=None, description='List of base64-encoded file hashes', duplicate_of_parent=False), Variable(api_name='message', name='message', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Error message', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='PassportElementErrorTranslationFile', import_path=Import(path='pytgbot.api_types.sendable.passport', name='PassportElementErrorTranslationFile', is_init=False), imports=[], parent_clazz=Type(string='PassportElementError', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.passport', description=None), link='https://core.telegram.org/bots/api#passportelementerrortranslationfile', description='Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes.', parameters=[Variable(api_name='source', name='source', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='translation_file', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Error source, must be translation_file', duplicate_of_parent=False), Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of element of the user\'s Telegram Passport which has the issue, one of "passport", "driver_license", "identity_card", "internal_passport", "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration"', duplicate_of_parent=False), Variable(api_name='file_hash', name='file_hash', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Base64-encoded file hash', duplicate_of_parent=False), Variable(api_name='message', name='message', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Error message', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='PassportElementErrorTranslationFiles', import_path=Import(path='pytgbot.api_types.sendable.passport', name='PassportElementErrorTranslationFiles', is_init=False), imports=[], parent_clazz=Type(string='PassportElementError', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.passport', description=None), link='https://core.telegram.org/bots/api#passportelementerrortranslationfiles', description='Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation change.', parameters=[Variable(api_name='source', name='source', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='translation_files', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Error source, must be translation_files', duplicate_of_parent=False), Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Type of element of the user\'s Telegram Passport which has the issue, one of "passport", "driver_license", "identity_card", "internal_passport", "utility_bill", "bank_statement", "rental_agreement", "passport_registration", "temporary_registration"', duplicate_of_parent=False), Variable(api_name='file_hashes', name='file_hashes', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=1, import_path=None, description=None)], optional=False, default=None, description='List of base64-encoded file hashes', duplicate_of_parent=False), Variable(api_name='message', name='message', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Error message', duplicate_of_parent=False)], keywords=[]),
Clazz(clazz='PassportElementErrorUnspecified', import_path=Import(path='pytgbot.api_types.sendable.passport', name='PassportElementErrorUnspecified', is_init=False), imports=[], parent_clazz=Type(string='PassportElementError', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.passport', description=None), link='https://core.telegram.org/bots/api#passportelementerrorunspecified', description='Represents an issue in an unspecified place. The error is considered resolved when new data is added.', parameters=[Variable(api_name='source', name='source', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value='unspecified', is_list=0, import_path=None, description=None)], optional=False, default=None, description='Error source, must be unspecified', duplicate_of_parent=False), Variable(api_name='type', name='type', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description="Type of element of the user's Telegram Passport which has the issue", duplicate_of_parent=False), Variable(api_name='element_hash', name='element_hash', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Base64-encoded element hash', duplicate_of_parent=False), Variable(api_name='message', name='message', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Error message', duplicate_of_parent=False)], keywords=[]),
Function(api_name='sendGame', imports=[Import(path='pytgbot.api_types.sendable.reply_markup', name='InlineKeyboardMarkup', is_init=False)], link='https://core.telegram.org/bots/api#sendgame', description='Use this method to send a game. On success, the sent Message is returned.', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None)], optional=None, default=None, description='On success, the sent Message is returned', duplicate_of_parent=None), parameters=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Unique identifier for the target chat', duplicate_of_parent=None), Variable(api_name='game_short_name', name='game_short_name', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Short name of the game, serves as the unique identifier for the game. Set up your games via Botfather.', duplicate_of_parent=None)], keywords=[Variable(api_name='disable_notification', name='disable_notification', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Sends the message silently. Users will receive a notification with no sound.', duplicate_of_parent=None), Variable(api_name='protect_content', name='protect_content', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Protects the contents of the sent message from forwarding and saving', duplicate_of_parent=None), Variable(api_name='reply_to_message_id', name='reply_to_message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='If the message is a reply, ID of the original message', duplicate_of_parent=None), Variable(api_name='allow_sending_without_reply', name='allow_sending_without_reply', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the message should be sent even if the specified replied-to message is not found', duplicate_of_parent=None), Variable(api_name='reply_markup', name='reply_markup', pytg_name=None, types=[Type(string='InlineKeyboardMarkup', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.sendable.reply_markup', description=None)], optional=True, default=None, description="A JSON-serialized object for an inline keyboard. If empty, one 'Play game_title' button will be shown. If not empty, the first button must launch the game.", duplicate_of_parent=None)]),
Clazz(clazz='Game', import_path=Import(path='pytgbot.api_types.receivable.media', name='Game', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.media', name='Animation', is_init=False), Import(path='pytgbot.api_types.receivable.media', name='MessageEntity', is_init=False), Import(path='pytgbot.api_types.receivable.media', name='PhotoSize', is_init=False)], parent_clazz=Type(string='Media', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None), link='https://core.telegram.org/bots/api#game', description='This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers.', parameters=[Variable(api_name='title', name='title', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Title of the game', duplicate_of_parent=False), Variable(api_name='description', name='description', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Description of the game', duplicate_of_parent=False), Variable(api_name='photo', name='photo', pytg_name=None, types=[Type(string='PhotoSize', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=False, default=None, description='Photo that will be displayed in the game message in chats.', duplicate_of_parent=False)], keywords=[Variable(api_name='text', name='text', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Optional. Brief description of the game or high scores included in the game message. Can be automatically edited to include current high scores for the game when the bot calls setGameScore, or manually edited using editMessageText. 0-4096 characters.', duplicate_of_parent=False), Variable(api_name='text_entities', name='text_entities', pytg_name=None, types=[Type(string='MessageEntity', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Special entities that appear in text, such as usernames, URLs, bot commands, etc.', duplicate_of_parent=False), Variable(api_name='animation', name='animation', pytg_name=None, types=[Type(string='Animation', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.media', description=None)], optional=True, default=None, description='Optional. Animation that will be displayed in the game message in chats. Upload via BotFather', duplicate_of_parent=False)]),
Function(api_name='setGameScore', imports=[], link='https://core.telegram.org/bots/api#setgamescore', description="Use this method to set the score of the specified user in a game message. On success, if the message is not an inline message, the Message is returned, otherwise True is returned. Returns an error, if the new score is not greater than the user's current score in the chat and force is False.", returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='Message', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.updates', description=None), Type(string='bool', is_builtin=True, always_is_value='True', is_list=0, import_path=None, description=None)], optional=None, default=None, description="On success, if the message is not an inline message, the Message is returned, otherwise True is returned. Returns an error, if the new score is not greater than the user's current score in the chat and force is False", duplicate_of_parent=None), parameters=[Variable(api_name='user_id', name='user_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='User identifier', duplicate_of_parent=None), Variable(api_name='score', name='score', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='New score, must be non-negative', duplicate_of_parent=None)], keywords=[Variable(api_name='force', name='force', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters', duplicate_of_parent=None), Variable(api_name='disable_edit_message', name='disable_edit_message', pytg_name=None, types=[Type(string='bool', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Pass True, if the game message should not be automatically edited to include the current scoreboard', duplicate_of_parent=None), Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if inline_message_id is not specified. Unique identifier for the target chat', duplicate_of_parent=None), Variable(api_name='message_id', name='message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if inline_message_id is not specified. Identifier of the sent message', duplicate_of_parent=None), Variable(api_name='inline_message_id', name='inline_message_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if chat_id and message_id are not specified. Identifier of the inline message', duplicate_of_parent=None)]),
Function(api_name='getGameHighScores', imports=[], link='https://core.telegram.org/bots/api#getgamehighscores', description='Use this method to get data for high score tables. Will return the score of the specified user and several of their neighbors in a game. On success, returns an Array of GameHighScore objects.\n\nThis method will currently return scores for the target user, plus two of their closest neighbors on each side. Will also return the top three users if the user and his neighbors are not among them. Please note that this behavior is subject to change.\n', returns=Variable(api_name=None, name=None, pytg_name=None, types=[Type(string='GameHighScore', is_builtin=False, always_is_value=None, is_list=1, import_path='pytgbot.api_types.receivable.game', description=None)], optional=None, default=None, description='On success, returns an Array of GameHighScore objects', duplicate_of_parent=None), parameters=[Variable(api_name='user_id', name='user_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Target user id', duplicate_of_parent=None)], keywords=[Variable(api_name='chat_id', name='chat_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if inline_message_id is not specified. Unique identifier for the target chat', duplicate_of_parent=None), Variable(api_name='message_id', name='message_id', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if inline_message_id is not specified. Identifier of the sent message', duplicate_of_parent=None), Variable(api_name='inline_message_id', name='inline_message_id', pytg_name=None, types=[Type(string='str', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=True, default=None, description='Required if chat_id and message_id are not specified. Identifier of the inline message', duplicate_of_parent=None)]),
Clazz(clazz='GameHighScore', import_path=Import(path='pytgbot.api_types.receivable.game', name='GameHighScore', is_init=False), imports=[Import(path='pytgbot.api_types.receivable.peer', name='User', is_init=False)], parent_clazz=Type(string='Result', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable', description=None), link='https://core.telegram.org/bots/api#gamehighscore', description='This object represents one row of the high scores table for a game.', parameters=[Variable(api_name='position', name='position', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Position in high score table for the game', duplicate_of_parent=False), Variable(api_name='user', name='user', pytg_name=None, types=[Type(string='User', is_builtin=False, always_is_value=None, is_list=0, import_path='pytgbot.api_types.receivable.peer', description=None)], optional=False, default=None, description='User', duplicate_of_parent=False), Variable(api_name='score', name='score', pytg_name=None, types=[Type(string='int', is_builtin=True, always_is_value=None, is_list=0, import_path=None, description=None)], optional=False, default=None, description='Score', duplicate_of_parent=False)], keywords=[])
] | 2,936.920398 | 25,662 | 0.797471 | 89,873 | 590,321 | 5.048368 | 0.01797 | 0.077064 | 0.043781 | 0.041689 | 0.909394 | 0.900596 | 0.889421 | 0.876763 | 0.859927 | 0.851229 | 0 | 0.004693 | 0.074173 | 590,321 | 201 | 25,663 | 2,936.920398 | 0.825349 | 0 | 0 | 0 | 0 | 3.552239 | 0.402928 | 0.070028 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.283582 | 0.99005 | 0 | 0.99005 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 13 |
65686ad4293f18f8670cd871019b09f9a004ab36 | 152 | py | Python | app/internal/celebrity.py | yammesicka/calendar | 7c15a24883dbdffb563b6d3286c2d458e4a1c9c0 | [
"Apache-2.0"
] | null | null | null | app/internal/celebrity.py | yammesicka/calendar | 7c15a24883dbdffb563b6d3286c2d458e4a1c9c0 | [
"Apache-2.0"
] | null | null | null | app/internal/celebrity.py | yammesicka/calendar | 7c15a24883dbdffb563b6d3286c2d458e4a1c9c0 | [
"Apache-2.0"
] | null | null | null | import datetime
def get_today_month_and_day() -> str:
"""Get today's month and day - %m-%d"""
return datetime.date.today().strftime("%m-%d")
| 19 | 50 | 0.644737 | 24 | 152 | 3.916667 | 0.625 | 0.170213 | 0.234043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171053 | 152 | 7 | 51 | 21.714286 | 0.746032 | 0.217105 | 0 | 0 | 0 | 0 | 0.044248 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
6574436d59521110387b60eca268778a4314a162 | 113,365 | py | Python | spec/linia_spec.py | gisce/tipoinstalacion | 4938f34f9e29fec277f16f5b15952724401c5918 | [
"MIT"
] | 1 | 2017-01-11T11:41:39.000Z | 2017-01-11T11:41:39.000Z | spec/linia_spec.py | gisce/tipoinstalacion | 4938f34f9e29fec277f16f5b15952724401c5918 | [
"MIT"
] | 5 | 2016-08-29T06:44:52.000Z | 2018-02-21T08:08:23.000Z | spec/linia_spec.py | gisce/tipoinstalacion | 4938f34f9e29fec277f16f5b15952724401c5918 | [
"MIT"
] | null | null | null | # coding=utf-8
from tipoinstalacion.models import *
from decimal import Decimal
from expects import *
def frange(start, end, step=0.1):
"""Floating range
"""
step = Decimal(step)
precision = abs(step.as_tuple().exponent)
start = Decimal(str(round(start, precision)))
end = Decimal(str(round(end, precision)))
r = start
while r < end:
res = round(float(r), precision)
yield res
r += step
with description('Test Linea sin tension'):
with context('si la tension es nula'):
with before.each:
self.l = Linea()
with context('despliege AP'):
with it('must be None'):
self.l.despliegue = 'AP'
expect(self.l.tipoinstalacion).to(equal(None))
with context('despliege AF'):
with it('must be None'):
self.l.despliegue = 'AF'
expect(self.l.tipoinstalacion).to(equal(None))
with context('despliege S'):
with it('must be None'):
self.l.despliegue = 'S'
expect(self.l.tipoinstalacion).to(equal(None))
with context('si no tiene despliegue'):
with it('must be None'):
expect(self.l.tipoinstalacion).to(be_none)
with context('si la tension es 0'):
with before.each:
self.l = Linea()
self.l.tension = 0
with context('despliege AP'):
with it('must be None'):
self.l.despliegue = 'AP'
expect(self.l.tipoinstalacion).to(equal(None))
with context('despliege AF'):
with it('must be None'):
self.l.despliegue = 'AF'
expect(self.l.tipoinstalacion).to(equal(None))
with context('despliege S'):
with it('must be None'):
self.l.despliegue = 'S'
expect(self.l.tipoinstalacion).to(equal(None))
with description('Calculando el TI de una linia'):
with context('si lat tensión > 123 kV'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 1
self.l.num_conductores = 1
self.l.tension = 124
with context('si la sección 0 < s < 180 '):
with context('si la linea es Aerea simple circuito-Simplex'):
with it('must be TI-1UX'):
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-1UX'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea simple circuito-Simplex'):
with it('must be TI-1UY'):
for s in range(181, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-1UY'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea simple circuito-Simplex'):
with it('must be TI-1UZ'):
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-1UZ'))
with context('si lat tensión > 123 kV'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 1
self.l.num_conductores = 2
self.l.tension = 124
with context('si la sección 0 < s < 180 '):
with context('si la linea es Aerea simple circuito-Duplex'):
with it('must be TI-2UX'):
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-2UX'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea simple circuito-Duplex'):
with it('must be TI-2UY'):
for s in range(181, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-2UY'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea simple circuito-Duplex'):
with it('must be TI-2UZ'):
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-2UZ'))
with context('si lat tensión > 123 kV'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 2
self.l.num_conductores = 1
self.l.tension = 124
with context('si la sección 0 < s < 180 '):
with context('si la linea es Aerea doble circuito-Simplex'):
with it('TI-3UX'):
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-3UX'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea doble circuito-Simplex'):
with it('must be TI-3UY'):
for s in range(181, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-3UY'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea doble circuito-Simplex'):
with it('must be TI-3UZ'):
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-3UZ'))
with context('si lat tensión > 123 kV'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 2
self.l.num_conductores = 2
self.l.tension = 124
with context('si la sección 0 < s < 180 '):
with context('si la linea es Aerea doble circuito-Duplex'):
with it('must be TI-4UX'):
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-4UX'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea doble circuito-Duplex'):
with it('must be TI-4UY'):
for s in range(181, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-4UY'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea doble circuito-Duplex'):
with it('must be TI-4UZ'):
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-4UZ'))
with context('si lat tensión > 123 kV'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 3
self.l.num_conductores = 1
self.l.tension = 124
with context('si la sección 0 < s < 180 '):
with context('si la linea es Aerea triple circuito-Simplex'):
with it('must be TI-3AUX'):
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-3AUX'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea doble circuito-Duplex'):
with it('must be TI-3AUY'):
for s in range(181, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-3AUY'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea doble circuito-Duplex'):
with it('must be TI-3AUZ'):
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-3AUZ'))
with context('si lat tensión > 123 kV'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 4
self.l.num_conductores = 1
self.l.tension = 124
with context('si la sección 0 < s < 180 '):
with context('si la linea es Aerea cuatruple circuito-Simplex'):
with it('must be TI-3AUX'):
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-3AUX'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea cuatruple circuito-Simplex'):
with it('must be TI-3AUY'):
for s in range(181, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-3AUY'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea cuatruple circuito-Simplex'):
with it('must be TI-3AUZ'):
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-3AUZ'))
with context('si la 72,5Kv < tensión<=123Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 1
self.l.num_conductores = 1
self.tensiones = range(73, 123) + [72.6]
with context('si la sección 0 < s <= 180 '):
with context('si la linea es Aerea circuito simple-Simplex'):
with it('must be TI-1VX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-1VX'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea circuito simple-Simplex'):
with it('must be TI-1VY'):
for t in self.tensiones:
self.l.tension = t
for s in range(181, 299):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-1VY'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea circuito simple-Simplex'):
with it('must be TI-1VZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-1VZ'))
with context('si la 72,5Kv < tensión<=123Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 1
self.l.num_conductores = 2
self.tensiones = range(73, 123) + [72.6]
with context('si la sección 0 < s < 180 '):
with context('si la linea es Aerea circuito simple-Simplex'):
with it('must be TI-2VX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-2VX'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea circuito simple-Simplex'):
with it('must be TI-2VY'):
for t in self.tensiones:
self.l.tension = t
for s in range(181, 299):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-2VY'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea circuito simple-Simplex'):
with it('must be TI-2VZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-2VZ'))
with context('si la 72,5Kv < tensión<=123Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 2
self.l.num_conductores = 1
self.tensiones = range(73, 123) + [72.6]
with context('si la sección 0 < s <= 180 '):
with context('si la linea es Aerea circuito doble-Simplex'):
with it('must be TI-3VX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-3VX'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea circuito doble-Simplex'):
with it('must be TI-3VY'):
for t in self.tensiones:
self.l.tension = t
for s in range(181, 299):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-3VY'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea circuito doble-Simplex'):
with it('must be TI-3VZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-3VZ'))
with context('si la 72,5Kv < tensión<=123Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 2
self.l.num_conductores = 2
self.tensiones = range(73, 123) + [72.6]
with context('si la sección 0 < s <= 180 '):
with context('si la linea es Aerea circuito doble-Duplex'):
with it('must be TI-4VX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal( 'TI-4VX'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea circuito doble-Duplex'):
with it('must be TI-4VY'):
for t in self.tensiones:
self.l.tension = t
for s in range(181, 299):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-4VY'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea circuito doble-Dupluex'):
with it('must be TI-4VZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal( 'TI-4VZ'))
with context('si la 72,5Kv < tensión<=123Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 3
self.l.num_conductores = 1
self.tensiones = range(73, 123) + [72.6]
with context('si la sección 0 < s < 180 '):
with context('si la linea es Aerea circuito triple-Simplex'):
with it('must be TI-3AVX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-3AVX'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea circuito triple-Simplex'):
with it('must be TI-3AVY'):
for t in self.tensiones:
self.l.tension = t
for s in range(181, 299):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-3AVY'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea circuito triple-Simplex'):
with it('must be TI-3AVZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-3AVZ'))
with context('si la 72,5Kv < tensión<=123Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 4
self.l.num_conductores = 1
self.tensiones = range(73, 123) + [72.6]
with context('si la sección 0 < s < 180 '):
with context('si la linea es Aerea cuatruple circuito-Simplex'):
with it('must be TI-3AVX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-3AVX'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea cuatruple circuito-Simplex'):
with it('must be TI-3AVY'):
for t in self.tensiones:
self.l.tension = t
for s in range(181, 299):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-3AVY'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea cuatruple circuito-Simplex'):
with it('must be TI-3AVZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-3AVZ'))
with context('si la 52Kv < tensión<=72,5Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 1
self.l.num_conductores = 1
self.tensiones = range(53, 72) + [72.5]
with context('si la sección 0 < s <= 180 '):
with context('si la linea es Aerea circuito simple-Simplex'):
with it('must be TI-5UX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-5UX'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea circuito simple-Simplex'):
with it('must be TI-5UY'):
for t in self.tensiones:
self.l.tension = t
for s in range(181, 299):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-5UY'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea circuito simple-Simplex'):
with it('must be TI-5UZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-5UZ'))
with context('si la 52Kv < tensión<=72,5Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 1
self.l.num_conductores = 2
self.tensiones = range(53, 72) + [72.5]
with context('si la sección 0 < s <= 180 '):
with context('si la linea es Aerea circuito simple-Duplex'):
with it('must be TI-6UX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-6UX'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea circuito simple-Duplex'):
with it('must be TI-6UY'):
for t in self.tensiones:
self.l.tension = t
for s in range(181, 299):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-6UY'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea circuito simple-Duplex'):
with it('must be TI-6UZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-6UZ'))
with context('si la 52Kv < tensión<=72,5Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 2
self.l.num_conductores = 1
self.tensiones = range(53, 72) + [72.5]
with context('si la sección 0 < s < 180 '):
with context('si la linea es Aerea circuito doble-Simplex'):
with it('must be TI-7UX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal( 'TI-7UX'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea circuito doble-Simplex'):
with it('must be TI-7UY'):
for t in self.tensiones:
self.l.tension = t
for s in range(181, 299):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-7UY'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea circuito doble-Simplex'):
with it('must be TI-7UZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-7UZ'))
with context('si la 52Kv < tensión<=72,5Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 2
self.l.num_conductores = 2
self.tensiones = range(53, 72) + [72.5]
with context('si la sección 0 < s < 180 '):
with context('si la linea es Aerea circuito doble-Duplex'):
with it('must be TI-8UX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-8UX'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea circuito doble-Duplex'):
with it('must be TI-8UY'):
for t in self.tensiones:
self.l.tension = t
for s in range(181, 299):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-8UY'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea circuito doble-Duplex'):
with it('must be TI-8UZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-8UZ'))
with context('si la 52Kv < tensión<=72,5Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 3
self.l.num_conductores = 1
self.tensiones = range(53, 72) + [72.5]
with context('si la sección 0 < s < 180 '):
with context('si la linea es Aerea circuito triple-Simplex'):
with it('must be TI-7AUZ'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-7AUY'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea circuito triple-Simplex'):
with it('must be TI-7AUX'):
for t in self.tensiones:
self.l.tension = t
for s in range(181, 299):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-7AUX'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea circuito triple-Simplex'):
with it('must be TI-7AUZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-7AUZ'))
with context('si la 52Kv < tensión<=72,5Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 4
self.l.num_conductores = 1
self.tensiones = range(53, 72) + [72.5]
with context('si la sección 0 < s < 180 '):
with context('si la linea es Aerea cuatruple circuito-Simplex'):
with it('must be TI-7AUY'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-7AUY'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea cuatruple circuito-Simplex'):
with it('must be TI-7AUX'):
for t in self.tensiones:
self.l.tension = t
for s in range(181, 299):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-7AUX'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea cuatruple circuito-Simplex'):
with it('must be TI-7AUZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-7AUZ'))
with context('si la 36Kv < tensión <= 52Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 1
self.l.num_conductores = 1
self.tensiones = range(37, 52)
with context('si la sección 0 < s <= 180 '):
with context('si la linea es Aerea circuito simple-Simplex'):
with it('must be TI-5VX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-5VX'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea circuito simple-Simplex'):
with it('must be TI-5VY'):
for t in self.tensiones:
self.l.tension = t
for s in range(181, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-5VY'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea circuito simple-Simplex'):
with it('must be TI-5VZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-5VZ'))
with context('si la 36Kv < tensión <= 52Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 1
self.l.num_conductores = 2
self.tensiones = range(37, 52)
with context('si la sección 0 < s <= 180 '):
with context('si la linea es Aerea circuito simple-Duplex'):
with it('must be TI-6VX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal( 'TI-6VX'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea circuito simple-Duplex'):
with it('must be TI-6VY'):
for t in self.tensiones:
self.l.tension = t
for s in range(181, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-6VY'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea circuito simple-Duplex'):
with it('must be TI-6VZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-6VZ'))
with context('si la 36Kv < tensión <= 52Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 2
self.l.num_conductores = 1
self.tensiones = range(37, 52)
with context('si la sección 0 < s <= 180 '):
with context('si la linea es Aerea circuito doble-Simplex'):
with it('must be TI-7VX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-7VX'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea circuito doble-Simplex'):
with it('must be TI-7VY'):
for t in self.tensiones:
self.l.tension = t
for s in range(181, 299):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal( 'TI-7VY'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea circuito doble-Simplex'):
with it('must be TI-7VZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-7VZ'))
with context('si la 36Kv < tensión <= 52Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 2
self.l.num_conductores = 2
self.tensiones = range(37, 52)
with context('si la sección 0 < s <= 180 '):
with context('si la linea es Aerea circuito doble-Duplex'):
with it('must be TI-8VX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal( 'TI-8VX'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea circuito doble-Duplex'):
with it('must be TI-8VY'):
for t in self.tensiones:
self.l.tension = t
for s in range(181, 299):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-8VY'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea circuito doble-Duplex'):
with it('must be TI-8VZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-8VZ'))
with context('si la 36Kv < tensión <= 52Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 3
self.l.num_conductores = 1
self.tensiones = range(37, 52)
with context('si la sección 0 < s < 180 '):
with context('si la linea es Aerea circuito triple-Simplex'):
with it('must be TI-7AVY'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-7AVY'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea circuito triple-Simplex'):
with it('must be TI-7AVX'):
for t in self.tensiones:
self.l.tension = t
for s in range(181, 299):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-7AVX'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea circuito triple-Simplex'):
with it('must be TI-7AVZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-7AVZ'))
with context('si la 36Kv < tensión <= 52Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 4
self.l.num_conductores = 1
self.tensiones = range(37, 52)
with context('si la sección 0 < s < 180 '):
with context('si la linea es Aerea cuatruple circuito-Simplex'):
with it('must be TI-7AVY'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 180):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-7AVY'))
with context('si la sección 180 < s <= 300 '):
with context('si la linea es Aerea cuatruple circuito-Simplex'):
with it('must be TI-7AVX'):
for t in self.tensiones:
self.l.tension = t
for s in range(181, 299):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-7AVX'))
with context('si la sección s < 300 '):
with context('si la linea es Aerea cuatruple circuito-Simplex'):
with it('must be TI-7AVZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-7AVZ'))
with context('si la 24Kv < tensión <= 36Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 1
self.l.num_conductores = 1
self.tensiones = range(25, 36)
with context('si la sección 0 < s <= 56 '):
with context('si la linea es Aerea circuito simple'):
with it('must be TI-9UX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 56):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-9UX'))
with context('si la sección 56 < s <= 110 '):
with context('si la linea es Aerea circuito simple'):
with it('must be TI-9UY'):
for t in self.tensiones:
self.l.tension = t
for s in range(57, 110):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-9UY'))
with context('si la sección 110 < s'):
with context('si la linea es Aerea circuito simple'):
with it('must be TI-9UZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 111
expect(self.l.tipoinstalacion).to(equal('TI-9UZ'))
with context('si la 24Kv < tensión <= 36Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 2
self.l.num_conductores = 1
self.tensiones = range(25, 36)
with context('si la sección 0 < s <= 56 '):
with context('si la linea es Aerea circuito doble'):
with it('must be TI-10AUX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 56):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10UX'))
with context('si la sección 56 < s <= 110 '):
with context('si la linea es Aerea circuito doble'):
with it('must be TI-10AUY'):
for t in self.tensiones:
self.l.tension = t
for s in range(57, 110):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10UY'))
with context('si la sección 110 < s'):
with context('si la linea es Aerea circuito doble'):
with it('must be TI-10AUZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 111
expect(self.l.tipoinstalacion).to(equal('TI-10UZ'))
with context('si la 24Kv < tensión <= 36Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 3
self.l.num_conductores = 1
self.tensiones = range(25, 36)
with context('si la sección 0 < s <= 56 '):
with context('si la linea es Aerea circuito triple'):
with it('must be TI-10AUX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 56):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10AUX'))
with context('si la sección 56 < s <= 110 '):
with context('si la linea es Aerea circuito triple'):
with it('must be TI-10AUY'):
for t in self.tensiones:
self.l.tension = t
for s in range(57, 110):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10AUY'))
with context('si la sección 110 < s'):
with context('si la linea es Aerea circuito triple'):
with it('must be TI-10AUZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 111
expect(self.l.tipoinstalacion).to(equal('TI-10AUZ'))
with context('si la 24Kv < tensión <= 36Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 4
self.l.num_conductores = 1
self.tensiones = range(25, 36)
with context('si la sección 0 < s <= 56 '):
with context('si la linea es Aerea circuito cuatruple'):
with it('must be TI-10AUX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 56):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10AUX'))
with context('si la sección 56 < s <= 110 '):
with context('si la linea es Aerea circuito cuatruple'):
with it('must be TI-10AUY'):
for t in self.tensiones:
self.l.tension = t
for s in range(57, 110):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10AUY'))
with context('si la sección 110 < s'):
with context('si la linea es Aerea circuito cuatruple'):
with it('must be TI-10AUZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 111
expect(self.l.tipoinstalacion).to(equal('TI-10AUZ'))
with context('si la 17,5Kv < tensión <= 24Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 1
self.l.num_conductores = 1
self.tensiones = range(18, 24)
with context('si la sección 0 < s <= 56 '):
with context('si la linea es Aerea circuito triple-Simplex'):
with it('must be TI-9VX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 56):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-9VX'))
with context('si la sección 56 < s <= 110 '):
with context('si la linea es Aerea circuito triple-Simplex'):
with it('must be TI-9VY'):
for t in self.tensiones:
self.l.tension = t
for s in range(57, 110):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-9VY'))
with context('si la sección 110 < s'):
with context('si la linea es Aerea circuito triple-Simplex'):
with it('must be TI-9VZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 111
expect(self.l.tipoinstalacion).to(equal('TI-9VZ'))
with context('si la 17,5Kv < tensión <= 24Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 2
self.l.num_conductores = 1
self.tensiones = range(18, 24)
with context('si la sección 0 < s <= 56 '):
with context('si la linea es Aerea circuito doble-Simplex'):
with it('must be TI-10VX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 56):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10VX'))
with context('si la sección 56 < s <= 110 '):
with context('si la linea es Aerea circuito doble-Simplex'):
with it('must be TI-10VY'):
for t in self.tensiones:
self.l.tension = t
for s in range(57, 110):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10VY'))
with context('si la sección 110 < s'):
with context('si la linea es Aerea circuito doble-Simplex'):
with it('must be TI-10VZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 111
expect(self.l.tipoinstalacion).to(equal('TI-10VZ'))
with context('si la 17,5Kv < tensión <= 24Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 3
self.l.num_conductores = 1
self.tensiones = range(18, 24)
with context('si la sección 0 < s <= 56 '):
with context('si la linea es Aerea circuito triple-Simplex'):
with it('must be TI-10AVX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 56):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10AVX'))
with context('si la sección 56 < s <= 110 '):
with context('si la linea es Aerea circuito triple-Simplex'):
with it('must be TI-10AVY'):
for t in self.tensiones:
self.l.tension = t
for s in range(57, 110):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10AVY'))
with context('si la sección 110 < s'):
with context('si la linea es Aerea circuito triple-Simplex'):
with it('must be TI-10AVZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 111
expect(self.l.tipoinstalacion).to(equal('TI-10AVZ'))
with context('si la 17,5Kv < tensión <= 24Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 4
self.l.num_conductores = 1
self.tensiones = range(18, 24)
with context('si la sección 0 < s <= 56 '):
with context('si la linea es Aerea cuatruple circuito-Simplex'):
with it('must be TI-10AVX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 56):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10AVX'))
with context('si la sección 56 < s <= 110 '):
with context('si la linea es Aerea cuatruple circuito-Simplex'):
with it('must be TI-10AVY'):
for t in self.tensiones:
self.l.tension = t
for s in range(57, 110):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10AVY'))
with context('si la sección 110 < s'):
with context('si la linea es Aerea cuatruple circuito-Simplex'):
with it('must be TI-10AVZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 111
expect(self.l.tipoinstalacion).to(equal('TI-10AVZ'))
with context('si la 12Kv < tensión <= 17,5Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 1
self.l.num_conductores = 1
self.tensiones = range(13, 17)+[17.5]
with context('si la sección 0 < s <= 56 '):
with context('si la linea es Aerea circuito simple'):
with it('must be TI-9WX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 56):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-9WX'))
with context('si la sección 56 < s <= 110 '):
with context('si la linea es Aerea circuito simple'):
with it('must be TI-9WY'):
for t in self.tensiones:
self.l.tension = t
for s in range(57, 110):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-9WY'))
with context('si la sección 110 < s'):
with context('si la linea es Aerea circuito simple'):
with it('must be TI-9WZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 111
expect(self.l.tipoinstalacion).to(equal('TI-9WZ'))
with context('si la 12Kv < tensión <= 17,5Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 2
self.l.num_conductores = 1
self.tensiones = range(13, 17)+[17.5]
with context('si la sección 0 < s <= 56 '):
with context('si la linea es Aerea circuito doble'):
with it('must be TI-10WX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 56):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10WX'))
with context('si la sección 56 < s <= 110 '):
with context('si la linea es Aerea circuito doble'):
with it('must be TI-10WY'):
for t in self.tensiones:
self.l.tension = t
for s in range(57, 110):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10WY'))
with context('si la sección 110 < s'):
with context('si la linea es Aerea circuito doble'):
with it('must be TI-10WZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 111
expect(self.l.tipoinstalacion).to(equal('TI-10WZ'))
with context('si la 12Kv < tensión <= 17,5Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 3
self.l.num_conductores = 1
self.tensiones = range(13, 17) + [17.5]
with context('si la sección 0 < s <= 56 '):
with context('si la linea es Aerea circuito triple'):
with it('must be TI-10AWX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 56):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10AWX'))
with context('si la sección 56 < s <= 110 '):
with context('si la linea es Aerea circuito triple'):
with it('must be TI-10AWY'):
for t in self.tensiones:
self.l.tension = t
for s in range(57, 110):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10AWY'))
with context('si la sección 110 < s'):
with context('si la linea es Aerea circuito triple'):
with it('must be TI-10AWZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 111
expect(self.l.tipoinstalacion).to(equal('TI-10AWZ'))
with context('si la 12Kv < tensión <= 17,5Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 4
self.l.num_conductores = 1
self.tensiones = range(13, 17) + [17.5]
with context('si la sección 0 < s <= 56 '):
with context('si la linea es Aerea circuito cuatruple'):
with it('must be TI-10AWX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 56):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10AWX'))
with context('si la sección 56 < s <= 110 '):
with context('si la linea es Aerea circuito cuatruple'):
with it('must be TI-10AWY'):
for t in self.tensiones:
self.l.tension = t
for s in range(57, 110):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10AWY'))
with context('si la sección 110 < s'):
with context('si la linea es Aerea circuito cuatruple'):
with it('must be TI-10AWZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 111
expect(self.l.tipoinstalacion).to(equal('TI-10AWZ'))
with context('si la 1Kv < tensión <= 12Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 1
self.l.num_conductores = 1
self.tensiones = range(2, 12)
with context('si la sección 0 < s <= 56 '):
with context('si la linea es Aerea circuito simple'):
with it('must be TI-9BX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 56):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-9BX'))
with context('si la sección 56 < s <= 110 '):
with context('si la linea es Aerea circuito simple'):
with it('must be TI-9BY'):
for t in self.tensiones:
self.l.tension = t
for s in range(57, 110):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-9BY'))
with context('si la sección 110 < s'):
with context('si la linea es Aerea circuito simple'):
with it('must be TI-9BZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 111
expect(self.l.tipoinstalacion).to(equal('TI-9BZ'))
with context('si la 1Kv < tensión <= 12Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 2
self.l.num_conductores = 1
self.tensiones = range(2, 12)
with context('si la sección 0 < s <= 56 '):
with context('si la linea es Aerea circuito doble'):
with it('must be TI-10BX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 56):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10BX'))
with context('si la sección 56 < s <= 110 '):
with context('si la linea es Aerea circuito doble'):
with it('must be TI-10BY'):
for t in self.tensiones:
self.l.tension = t
for s in range(57, 110):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10BY'))
with context('si la sección 110 < s '):
with context('si la linea es Aerea circuito doble'):
with it('must be TI-10BZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 111
expect(self.l.tipoinstalacion).to(equal('TI-10BZ'))
with context('si la 1Kv < tensión <= 12Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 3
self.l.num_conductores = 1
self.tensiones = range(2, 12)
with context('si la sección 0 < s <= 56 '):
with context('si la linea es Aerea circuito triple'):
with it('must be TI-10ABX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 56):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10ABX'))
with context('si la sección 56 < s <= 110 '):
with context('si la linea es Aerea circuito triple'):
with it('must be TI-10ABY'):
for t in self.tensiones:
self.l.tension = t
for s in range(57, 110):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10ABY'))
with context('si la sección 110 < s'):
with context('si la linea es Aerea circuito triple'):
with it('must be TI-10ABZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 111
expect(self.l.tipoinstalacion).to(equal('TI-10ABZ'))
with context('si la 1Kv < tensión <= 12Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 4
self.l.num_conductores = 1
self.tensiones = range(2, 12)
with context('si la sección 0 < s <= 56 '):
with context('si la linea es Aerea circuito cuatruple'):
with it('must be TI-10ABX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 56):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10ABX'))
with context('si la sección 56 < s <= 110 '):
with context('si la linea es Aerea circuito cuatruple'):
with it('must be TI-10ABY'):
for t in self.tensiones:
self.l.tension = t
for s in range(57, 110):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-10ABY'))
with context('si la sección 110 < s'):
with context('si la linea es Aerea circuito cuatruple'):
with it('must be TI-10ABZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 111
expect(self.l.tipoinstalacion).to(equal('TI-10ABZ'))
with context('si la tensión < 1Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 1
self.l.num_conductores = 1
self.l.tension = 0
with context('si la sección s < 75 '):
with context('si la linea es Aerea circuito simple'):
with it('must be TI-11X'):
for s in range(0, 75):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-11X'))
with context('si la sección s >= 75'):
with context('si la linea es Aerea circuito simple'):
with it('must be TI-11Y'):
self.l.seccion = 76
expect(self.l.tipoinstalacion).to(equal('TI-11Y'))
with context('si la tensión < 1Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AP'
self.l.num_circuitos = 2
self.l.num_conductores = 1
self.l.tension = 0
with context('si la sección s < 75 '):
with context('si la linea es Aerea circuito simple'):
with it('must be TI-13X'):
for s in range(0, 75):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-13X'))
with context('si la sección s >= 75'):
with context('si la linea es Aerea circuito simple'):
with it('must be TI-13Y'):
self.l.seccion = 76
expect(self.l.tipoinstalacion).to(equal('TI-13Y'))
with context('si la tensión < 1Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'AF'
self.l.num_circuitos = 1
self.l.num_conductores = 1
self.l.tension = 0
with context('si la sección s < 75 '):
with context('si la linea es Aerea circuito simple'):
with it('must be TI-12X'):
for s in range(0, 75):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-12X'))
with context('si la sección s >= 75'):
with context('si la linea es Aerea circuito simple'):
with it('must be TI-12Y'):
self.l.seccion = 76
expect(self.l.tipoinstalacion).to(equal('TI-12Y'))
with context('si la 123Kv < tensión '):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 1
self.l.num_conductores = 1
self.tensiones = [124]
with context('si la sección 0 < s <= 630 '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-14UX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 630):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-14UX'))
with context('si la sección 630 < s <= 1200 '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-14UY'):
for t in self.tensiones:
self.l.tension = t
for s in range(631, 1200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-14UY'))
with context('si la sección 1200 < s '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-14UZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 1201
expect(self.l.tipoinstalacion).to(equal('TI-14UZ'))
with context('si la 123Kv < tensión '):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 2
self.l.num_conductores = 1
self.tensiones = [124]
with context('si la sección 0 < s <= 630 '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-15UX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 630):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-15UX'))
with context('si la sección 630 < s <= 1200 '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-15UY'):
for t in self.tensiones:
self.l.tension = t
for s in range(631, 1200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-15UY'))
with context('si la sección 1200 < s '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-15UZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 1201
expect(self.l.tipoinstalacion).to(equal('TI-15UZ'))
with context('si la 123Kv < tensión '):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 3
self.l.num_conductores = 1
self.tensiones = [124]
with context('si la sección 0 < s <= 630 '):
with context('si la linea es Subterranea circuito triple'):
with it('must be TI-15UX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 630):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-15AUX'))
with context('si la sección 630 < s <= 1200 '):
with context('si la linea es Subterranea circuito triple'):
with it('must be TI-15UY'):
for t in self.tensiones:
self.l.tension = t
for s in range(631, 1200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-15AUY'))
with context('si la sección 1200 < s '):
with context('si la linea es Subterranea circuito triple'):
with it('must be TI-15UZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 1201
expect(self.l.tipoinstalacion).to(equal('TI-15AUZ'))
with context('si la 123Kv < tensión '):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 4
self.l.num_conductores = 1
self.tensiones = [124]
with context('si la sección 0 < s <= 630 '):
with context('si la linea es Subterranea circuito cuatruple'):
with it('must be TI-15UX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 630):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-15AUX'))
with context('si la sección 630 < s <= 1200 '):
with context('si la linea es Subterranea circuito cuatruple'):
with it('must be TI-15UY'):
for t in self.tensiones:
self.l.tension = t
for s in range(631, 1200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-15AUY'))
with context('si la sección 1200 < s '):
with context('si la linea es Subterranea circuito cuatruple'):
with it('must be TI-15UZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 1201
expect(self.l.tipoinstalacion).to(equal('TI-15AUZ'))
with context('si la 72,5Kv < tensión =<123Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 1
self.l.num_conductores = 1
self.tensiones = range(73, 123)
with context('si la sección 0 < s <= 630 '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-14VX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 630):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-14VX'))
with context('si la sección 630 < s <= 1200 '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-14VY'):
for t in self.tensiones:
self.l.tension = t
for s in range(631, 1200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-14VY'))
with context('si la sección 1200 < s '):
with context('si la linea es Subterranea circuito simpe'):
with it('must be TI-14VZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 1201
expect(self.l.tipoinstalacion).to(equal('TI-14VZ'))
with context('si la 72,5Kv < tensión =<123Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 2
self.l.num_conductores = 1
self.tensiones = range(73, 123)
with context('si la sección 0 < s <= 630 '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-15VX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 630):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-15VX'))
with context('si la sección 630 < s <= 1200 '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-15VY'):
for t in self.tensiones:
self.l.tension = t
for s in range(631, 1200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-15VY'))
with context('si la sección 1200 < s '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-15VZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 1201
expect(self.l.tipoinstalacion).to(equal('TI-15VZ'))
with context('si la 72,5Kv < tensión =<123Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 3
self.l.num_conductores = 1
self.tensiones = range(73, 123)
with context('si la sección 0 < s <= 630 '):
with context('si la linea es Subterranea circuito triple'):
with it('must be TI-15AVX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 630):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-15AVX'))
with context('si la sección 0 < s <= 630 '):
with context('si la linea es Subterranea circuito triple'):
with it('must be TI-15AVY'):
for t in self.tensiones:
self.l.tension = t
for s in range(631, 1200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-15AVY'))
with context('si la sección s <= 630 '):
with context('si la linea es Subterranea circuito triple'):
with it('must be TI-15AVZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 1201
expect(self.l.tipoinstalacion).to(equal('TI-15AVZ'))
with context('si la 72,5Kv < tensión =<123Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 4
self.l.num_conductores = 1
self.tensiones = range(73, 123)
with context('si la sección 0 < s <= 630 '):
with context('si la linea es Subterranea circuito cuatruple'):
with it('must be TI-15AVX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 630):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-15AVX'))
with context('si la sección 0 < s <= 630 '):
with context('si la linea es Subterranea circuito cuatruple'):
with it('must be TI-15AVY'):
for t in self.tensiones:
self.l.tension = t
for s in range(631, 1200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-15AVY'))
with context('si la sección s <= 630 '):
with context('si la linea es Subterranea circuito cuatruple'):
with it('must be TI-15AVZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 1201
expect(self.l.tipoinstalacion).to(equal('TI-15AVZ'))
with context('si la 52Kv < tensión =<72,5Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 1
self.l.num_conductores = 1
self.tensiones = range(53, 72) + [72.5]
with context('si la sección 0 < s <= 300 '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-16UX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-16UX'))
with context('si la sección 300 < s <= 500 '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-16UY'):
for t in self.tensiones:
self.l.tension = t
for s in range(301, 500):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-16UY'))
with context('si la sección 500 < s '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-16UZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 501
expect(self.l.tipoinstalacion).to(equal('TI-16UZ'))
with context('si la 52Kv < tensión =<72,5Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 2
self.l.num_conductores = 1
self.tensiones = range(53, 72) + [72.5]
with context('si la sección 0 < s <= 300 '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-17UY'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-17UY'))
with context('si la sección 300 < s <= 500 '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-17UX'):
for t in self.tensiones:
self.l.tension = t
for s in range(301, 500):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-17UX'))
with context('si la sección 500 < s '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-17UZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 1201
expect(self.l.tipoinstalacion).to(equal('TI-17UZ'))
with context('si la 52Kv < tensión =<72,5Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 3
self.l.num_conductores = 1
self.tensiones = range(53, 72) + [72.5]
with context('si la sección 0 < s <= 300 '):
with context('si la linea es Subterranea circuito tripe'):
with it('must be TI-17AUX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-17AUX'))
with context('si la sección 300 < s <= 500 '):
with context('si la linea es Subterranea circuito triple'):
with it('must be TI-17AUY'):
for t in self.tensiones:
self.l.tension = t
for s in range(301, 500):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-17AUY'))
with context('si la sección 500 < s '):
with context('si la linea es Subterranea circuito triple'):
with it('must be TI-17AUZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 1201
expect(self.l.tipoinstalacion).to(equal('TI-17AUZ'))
with context('si la 52Kv < tensión =<72,5Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 4
self.l.num_conductores = 1
self.tensiones = range(53, 72) + [72.5]
with context('si la sección 0 < s <= 300 '):
with context('si la linea es Subterranea circuito cuatruple'):
with it('must be TI-17AUX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-17AUX'))
with context('si la sección 300 < s <= 500 '):
with context('si la linea es Subterranea circuito cuatruple'):
with it('must be TI-17AUY'):
for t in self.tensiones:
self.l.tension = t
for s in range(301, 500):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-17AUY'))
with context('si la sección 500 < s '):
with context('si la linea es Subterranea circuito cuatruple'):
with it('must be TI-17AUZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 1201
expect(self.l.tipoinstalacion).to(equal('TI-17AUZ'))
with context('si la 36Kv < tensión =<52Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 1
self.l.num_conductores = 1
self.tensiones = range(37, 52)
with context('si la sección 0 < s <= 300 '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-16VX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-16VX'))
with context('si la sección 300 < s <= 500 '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-16VY'):
for t in self.tensiones:
self.l.tension = t
for s in range(301, 500):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-16VY'))
with context('si la sección 500 < s '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-16VZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 501
expect(self.l.tipoinstalacion).to(equal('TI-16VZ'))
with context('si la 36Kv < tensión =<52Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 2
self.l.num_conductores = 1
self.tensiones = range(37, 52)
with context('si la sección 0 < s <= 300 '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-17VY'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-17VY'))
with context('si la sección 300 < s <= 500 '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-17VX'):
for t in self.tensiones:
self.l.tension = t
for s in range(301, 500):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-17VX'))
with context('si la sección 500 < s '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-17VZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 501
expect(self.l.tipoinstalacion).to(equal('TI-17VZ'))
with context('si la 36Kv < tensión =<52Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 3
self.l.num_conductores = 1
self.tensiones = range(37, 52)
with context('si la sección 0 < s <= 300 '):
with context('si la linea es Subterranea circuito triple'):
with it('must be TI-17AVX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-17AVX'))
with context('si la sección 300 < s <= 500 '):
with context('si la linea es Subterranea circuito triple'):
with it('must be TI-17AVY'):
for t in self.tensiones:
self.l.tension = t
for s in range(301, 500):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-17AVY'))
with context('si la sección 500 < s '):
with context('si la linea es Subterranea circuito triple'):
with it('must be TI-17AVZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 501
expect(self.l.tipoinstalacion).to(equal('TI-17AVZ'))
with context('si la 36Kv < tensión =<52Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 4
self.l.num_conductores = 1
self.tensiones = range(37, 52)
with context('si la sección 0 < s <= 300 '):
with context('si la linea es Subterranea circuito cuatruple'):
with it('must be TI-17AVX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-17AVX'))
with context('si la sección 300 < s <= 500 '):
with context('si la linea es Subterranea circuito cuatruple'):
with it('must be TI-17AVY'):
for t in self.tensiones:
self.l.tension = t
for s in range(301, 500):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-17AVY'))
with context('si la sección 500 < s '):
with context('si la linea es Subterranea circuito cuatruple'):
with it('must be TI-17AVZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 501
expect(self.l.tipoinstalacion).to(equal('TI-17AVZ'))
with context('si la 24Kv < tensión =<36Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 1
self.l.num_conductores = 1
self.tensiones = range(25, 36)
with context('si la sección 0 < s <= 200 '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-18UX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-18UX'))
with context('si la sección 200 < s <= 300 '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-18UY'):
for t in self.tensiones:
self.l.tension = t
for s in range(201, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-18UY'))
with context('si la sección 300 < s '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-18UZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-18UZ'))
with context('si la 24Kv < tensión =<36Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 2
self.l.num_conductores = 1
self.tensiones = range(25, 36)
with context('si la sección 0 < s <= 200 '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-19UX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19UX'))
with context('si la sección 200 < s <= 300 '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-19UY'):
for t in self.tensiones:
self.l.tension = t
for s in range(201, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19UY'))
with context('si la sección 300 < s '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-19UZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-19UZ'))
with context('si la 24Kv < tensión =<36Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 3
self.l.num_conductores = 1
self.tensiones = range(25, 36)
with context('si la sección 0 < s <= 200 '):
with context('si la linea es Subterranea circuito triple'):
with it('must be TI-19AUX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19AUX'))
with context('si la sección 200 < s <= 300 '):
with context('si la linea es Subterranea circuito triple'):
with it('must be TI-19AUY'):
for t in self.tensiones:
self.l.tension = t
for s in range(201, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19AUY'))
with context('si la sección 300 < s '):
with context('si la linea es Subterranea circuito triple'):
with it('must be TI-19AUZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-19AUZ'))
with context('si la 24Kv < tensión =<36Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 4
self.l.num_conductores = 1
self.tensiones = range(25, 36)
with context('si la sección 0 < s <= 200 '):
with context('si la linea es Subterranea circuito cuatruple'):
with it('must be TI-19AUX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19AUX'))
with context('si la sección 200 < s <= 300 '):
with context('si la linea es Subterranea circuito cuatruple'):
with it('must be TI-19AUY'):
for t in self.tensiones:
self.l.tension = t
for s in range(201, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19AUY'))
with context('si la sección 300 < s '):
with context('si la linea es Subterranea circuito cuatruple'):
with it('must be TI-19AUZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-19AUZ'))
with context('si la 17,5Kv < tensión =<24Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 1
self.l.num_conductores = 1
self.tensiones = range(18, 24)
with context('si la sección 0 < s <= 200 '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-18VX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-18VX'))
with context('si la sección 200 < s <= 300 '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-18VY'):
for t in self.tensiones:
self.l.tension = t
for s in range(201, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-18VY'))
with context('si la sección 300 < s '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-18VZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-18VZ'))
with context('si la 17,5Kv < tensión =<24Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 2
self.l.num_conductores = 1
self.tensiones = range(18, 24)
with context('si la sección 0 < s <= 200 '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-19VX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19VX'))
with context('si la sección 200 < s <= 300 '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-19VY'):
for t in self.tensiones:
self.l.tension = t
for s in range(201, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19VY'))
with context('si la sección 300 < s '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-19VZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-19VZ'))
with context('si la 17,5Kv < tensión =<24Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 3
self.l.num_conductores = 1
self.tensiones = range(18, 24)
with context('si la sección 0 < s <= 200 '):
with context('si la linea es Subterranea circuito triple'):
with it('must be TI-19AVX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19AVX'))
with context('si la sección 200 < s <= 300 '):
with context('si la linea es Subterranea circuito triple'):
with it('must be TI-19AVY'):
for t in self.tensiones:
self.l.tension = t
for s in range(201, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19AVY'))
with context('si la sección 300 < s '):
with context('si la linea es Subterranea circuito triple'):
with it('must be TI-19AVZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-19AVZ'))
with context('si la 17,5Kv < tensión =<24Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 4
self.l.num_conductores = 1
self.tensiones = range(18, 24)
with context('si la sección 0 < s <= 200 '):
with context('si la linea es Subterranea circuito cuatruple'):
with it('must be TI-19AVX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19AVX'))
with context('si la sección 200 < s <= 300 '):
with context('si la linea es Subterranea circuito cuatruple'):
with it('must be TI-19AVY'):
for t in self.tensiones:
self.l.tension = t
for s in range(201, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19AVY'))
with context('si la sección 300 < s '):
with context('si la linea es Subterranea circuito cuatruple'):
with it('must be TI-19AVZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-19AVZ'))
with context('si la 12Kv < tensión =<17,5Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 1
self.l.num_conductores = 1
self.tensiones = range(13, 17) + [17.5]
with context('si la sección 0 < s <= 200 '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-18WX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-18WX'))
with context('si la sección 200 < s <= 300 '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-18WY'):
for t in self.tensiones:
self.l.tension = t
for s in range(201, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-18WY'))
with context('si la sección 300 < s '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-18WZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-18WZ'))
with context('si la 12Kv < tensión =<17,5Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 2
self.l.num_conductores = 1
self.tensiones = range(13, 17) + [17.5]
with context('si la sección 0 < s <= 200 '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-19WX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19WX'))
with context('si la sección 200 < s <= 300 '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-19WY'):
for t in self.tensiones:
self.l.tension = t
for s in range(201, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19WY'))
with context('si la sección 300 < s '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-19WZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-19WZ'))
with context('si la 12Kv < tensión =<17,5Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 3
self.l.num_conductores = 1
self.tensiones = range(13, 17) + [17.5]
with context('si la sección 0 < s <= 200 '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-19AWX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19AWX'))
with context('si la sección 200 < s <= 300 '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-19AWY'):
for t in self.tensiones:
self.l.tension = t
for s in range(201, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19AWY'))
with context('si la sección 300 < s '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-19AWZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-19AWZ'))
with context('si la 12Kv < tensión =<17,5Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 4
self.l.num_conductores = 1
self.tensiones = range(13, 17) + [17.5]
with context('si la sección 0 < s <= 200 '):
with context('si la linea es Subterranea cuatruple circuito simple'):
with it('must be TI-19AWX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19AWX'))
with context('si la sección 200 < s <= 300 '):
with context('si la linea es Subterranea cuatruple circuito simple'):
with it('must be TI-19AWY'):
for t in self.tensiones:
self.l.tension = t
for s in range(201, 300):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19AWY'))
with context('si la sección 300 < s '):
with context('si la linea es Subterranea cuatruple circuito simple'):
with it('must be TI-19AWZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 301
expect(self.l.tipoinstalacion).to(equal('TI-19AWZ'))
with context('si la 1Kv =< tensión =<12Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 1
self.l.num_conductores = 1
self.tensiones = range(1, 12)
with context('si la sección 0 < s <= 100 '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-18BX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 100):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-18BX'))
with context('si la sección 100 < s <= 200 '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-18BY'):
for t in self.tensiones:
self.l.tension = t
for s in range(101, 200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-18BY'))
with context('si la sección 200 < s '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-18BZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 201
expect(self.l.tipoinstalacion).to(equal('TI-18BZ'))
with context('si la 1Kv =< tensión =<12Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 2
self.l.num_conductores = 1
self.tensiones = range(1, 12)
with context('si la sección 0 < s <= 100 '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-19BX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 100):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19BX'))
with context('si la sección 100 < s <= 200 '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-19BY'):
for t in self.tensiones:
self.l.tension = t
for s in range(101, 200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19BY'))
with context('si la sección 200 < s '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-19BZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 201
expect(self.l.tipoinstalacion).to(equal('TI-19BZ'))
with context('si la 1Kv =< tensión =<12Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 3
self.l.num_conductores = 1
self.tensiones = range(1, 12)
with context('si la sección 0 < s <= 100 '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-19ABX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 100):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19ABX'))
with context('si la sección 100 < s <= 200 '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-19ABY'):
for t in self.tensiones:
self.l.tension = t
for s in range(101, 200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19ABY'))
with context('si la sección 200 < s '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-19ABZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 201
expect(self.l.tipoinstalacion).to(equal('TI-19ABZ'))
with context('si la 1Kv =< tensión =<12Kv'):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 4
self.l.num_conductores = 1
self.tensiones = range(1, 12)
with context('si la sección 0 < s <= 100 '):
with context('si la linea es Subterranea circuito cuatruple'):
with it('must be TI-19ABX'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 100):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19ABX'))
with context('si la sección 100 < s <= 200 '):
with context('si la linea es Subterranea circuito cuatruple'):
with it('must be TI-19ABY'):
for t in self.tensiones:
self.l.tension = t
for s in range(101, 200):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-19ABY'))
with context('si la sección 200 < s '):
with context('si la linea es Subterranea circuito cuatruple'):
with it('must be TI-19ABZ'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 201
expect(self.l.tipoinstalacion).to(equal('TI-19ABZ'))
with context('si la tensión =<1Kv '):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 1
self.l.num_conductores = 1
self.tensiones = [0]
with context('si la sección 0 < s <= 150 '):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-20X'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 150):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-20X'))
with context('si la sección s > 150'):
with context('si la linea es Subterranea circuito simple'):
with it('must be TI-20Y'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 151
expect(self.l.tipoinstalacion).to(equal('TI-20Y'))
with context('si la tensión =<1Kv '):
with before.each:
self.l = Linea()
self.l.despliegue = 'S'
self.l.num_circuitos = 2
self.l.num_conductores = 1
self.tensiones = [0]
with context('si la sección 0 < s <= 150 '):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-21X'):
for t in self.tensiones:
self.l.tension = t
for s in range(1, 150):
self.l.seccion = s
expect(self.l.tipoinstalacion).to(equal('TI-21X'))
with context('si la sección s > 150'):
with context('si la linea es Subterranea circuito doble'):
with it('must be TI-21Y'):
for t in self.tensiones:
self.l.tension = t
self.l.seccion = 151
expect(self.l.tipoinstalacion).to(equal('TI-21Y'))
| 43.95696 | 81 | 0.464994 | 13,385 | 113,365 | 3.926634 | 0.023609 | 0.093896 | 0.131588 | 0.149834 | 0.975551 | 0.974181 | 0.972659 | 0.972659 | 0.972107 | 0.971974 | 0 | 0.053637 | 0.430477 | 113,365 | 2,578 | 82 | 43.974011 | 0.760408 | 0.000291 | 0 | 0.877587 | 0 | 0 | 0.201481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00044 | false | 0 | 0.001321 | 0 | 0.001761 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
65be90545d3dcc8202858b2216dfd1cb58dc98ac | 231,497 | py | Python | tests/python-opcua/opcua/server/standard_address_space/standard_address_space_part9.py | iit-danieli-joint-lab/opcua-modeling-tool | f8c3d940a61334b0e6deda9099844a6b429d7c08 | [
"MIT"
] | 32 | 2018-03-27T12:25:24.000Z | 2022-01-11T21:20:06.000Z | tests/python-opcua/opcua/server/standard_address_space/standard_address_space_part9.py | iit-danieli-joint-lab/opcua-modeling-tool | f8c3d940a61334b0e6deda9099844a6b429d7c08 | [
"MIT"
] | 5 | 2018-04-09T07:35:54.000Z | 2020-03-10T11:04:45.000Z | tests/python-opcua/opcua/server/standard_address_space/standard_address_space_part9.py | iit-danieli-joint-lab/opcua-modeling-tool | f8c3d940a61334b0e6deda9099844a6b429d7c08 | [
"MIT"
] | 12 | 2018-06-04T20:06:06.000Z | 2021-07-02T22:09:53.000Z |
"""
DO NOT EDIT THIS FILE!
It is automatically generated from opcfoundation.org schemas.
"""
from opcua import ua
def create_standard_address_space_Part9(server):
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=8995")
node.BrowseName = ua.QualifiedName.from_string("TwoStateVariableType")
node.NodeClass = ua.NodeClass.VariableType
node.ParentNodeId = ua.NodeId.from_string("i=2755")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.VariableTypeAttributes()
attrs.DisplayName = ua.LocalizedText("TwoStateVariableType")
attrs.DisplayName = ua.LocalizedText("TwoStateVariableType")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=8995")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=8996")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=8995")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9000")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=8995")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9001")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=8995")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11110")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=8995")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11111")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=8996")
node.BrowseName = ua.QualifiedName.from_string("Id")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=8995")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Id")
attrs.DataType = ua.NodeId(ua.ObjectIds.Boolean)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=8996")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9000")
node.BrowseName = ua.QualifiedName.from_string("TransitionTime")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=8995")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TransitionTime")
attrs.DataType = ua.NodeId.from_string("i=294")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9000")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9001")
node.BrowseName = ua.QualifiedName.from_string("EffectiveTransitionTime")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=8995")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("EffectiveTransitionTime")
attrs.DataType = ua.NodeId.from_string("i=294")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9001")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11110")
node.BrowseName = ua.QualifiedName.from_string("TrueState")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=8995")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TrueState")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11110")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11111")
node.BrowseName = ua.QualifiedName.from_string("FalseState")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=8995")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("FalseState")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11111")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9002")
node.BrowseName = ua.QualifiedName.from_string("ConditionVariableType")
node.NodeClass = ua.NodeClass.VariableType
node.ParentNodeId = ua.NodeId.from_string("i=63")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.VariableTypeAttributes()
attrs.DisplayName = ua.LocalizedText("ConditionVariableType")
attrs.DisplayName = ua.LocalizedText("ConditionVariableType")
attrs.DataType = ua.NodeId(ua.ObjectIds.String)
attrs.ValueRank = -2
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9002")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9003")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9003")
node.BrowseName = ua.QualifiedName.from_string("SourceTimestamp")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9002")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("SourceTimestamp")
attrs.DataType = ua.NodeId.from_string("i=294")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9003")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9004")
node.BrowseName = ua.QualifiedName.from_string("HasTrueSubState")
node.NodeClass = ua.NodeClass.ReferenceType
node.ParentNodeId = ua.NodeId.from_string("i=32")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ReferenceTypeAttributes()
attrs.DisplayName = ua.LocalizedText("HasTrueSubState")
attrs.InverseName = ua.LocalizedText("IsTrueSubStateOf")
node.NodeAttributes = attrs
server.add_nodes([node])
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9005")
node.BrowseName = ua.QualifiedName.from_string("HasFalseSubState")
node.NodeClass = ua.NodeClass.ReferenceType
node.ParentNodeId = ua.NodeId.from_string("i=32")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ReferenceTypeAttributes()
attrs.DisplayName = ua.LocalizedText("HasFalseSubState")
attrs.InverseName = ua.LocalizedText("IsFalseSubStateOf")
node.NodeAttributes = attrs
server.add_nodes([node])
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2782")
node.BrowseName = ua.QualifiedName.from_string("ConditionType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=2041")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("ConditionType")
attrs.IsAbstract = True
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2782")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11112")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2782")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11113")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2782")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9009")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2782")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9010")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2782")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=3874")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2782")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9011")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2782")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9020")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2782")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9022")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2782")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9024")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2782")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9026")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2782")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9028")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2782")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9027")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2782")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9029")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2782")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=3875")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2782")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=12912")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11112")
node.BrowseName = ua.QualifiedName.from_string("ConditionClassId")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2782")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("ConditionClassId")
attrs.DataType = ua.NodeId(ua.ObjectIds.NodeId)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11112")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11113")
node.BrowseName = ua.QualifiedName.from_string("ConditionClassName")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2782")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("ConditionClassName")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11113")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9009")
node.BrowseName = ua.QualifiedName.from_string("ConditionName")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2782")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("ConditionName")
attrs.DataType = ua.NodeId(ua.ObjectIds.String)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9009")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9010")
node.BrowseName = ua.QualifiedName.from_string("BranchId")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2782")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("BranchId")
attrs.DataType = ua.NodeId(ua.ObjectIds.NodeId)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9010")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=3874")
node.BrowseName = ua.QualifiedName.from_string("Retain")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2782")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Retain")
attrs.DataType = ua.NodeId(ua.ObjectIds.Boolean)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=3874")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9011")
node.BrowseName = ua.QualifiedName.from_string("EnabledState")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2782")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=8995")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("EnabledState")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9011")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9012")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9011")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9015")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9011")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9016")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9011")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9017")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9011")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9012")
node.BrowseName = ua.QualifiedName.from_string("Id")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9011")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Id")
attrs.DataType = ua.NodeId(ua.ObjectIds.Boolean)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9012")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9015")
node.BrowseName = ua.QualifiedName.from_string("EffectiveDisplayName")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9011")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("EffectiveDisplayName")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9015")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9016")
node.BrowseName = ua.QualifiedName.from_string("TransitionTime")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9011")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TransitionTime")
attrs.DataType = ua.NodeId.from_string("i=294")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9016")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9017")
node.BrowseName = ua.QualifiedName.from_string("EffectiveTransitionTime")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9011")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("EffectiveTransitionTime")
attrs.DataType = ua.NodeId.from_string("i=294")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9017")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9020")
node.BrowseName = ua.QualifiedName.from_string("Quality")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2782")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=9002")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Quality")
attrs.DataType = ua.NodeId(ua.ObjectIds.StatusCode)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9020")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9021")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9020")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9021")
node.BrowseName = ua.QualifiedName.from_string("SourceTimestamp")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9020")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("SourceTimestamp")
attrs.DataType = ua.NodeId.from_string("i=294")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9021")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9022")
node.BrowseName = ua.QualifiedName.from_string("LastSeverity")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2782")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=9002")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("LastSeverity")
attrs.DataType = ua.NodeId(ua.ObjectIds.UInt16)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9022")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9023")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9022")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9023")
node.BrowseName = ua.QualifiedName.from_string("SourceTimestamp")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9022")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("SourceTimestamp")
attrs.DataType = ua.NodeId.from_string("i=294")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9023")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9024")
node.BrowseName = ua.QualifiedName.from_string("Comment")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2782")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=9002")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Comment")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9024")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9025")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9024")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9025")
node.BrowseName = ua.QualifiedName.from_string("SourceTimestamp")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9024")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("SourceTimestamp")
attrs.DataType = ua.NodeId.from_string("i=294")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9025")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9026")
node.BrowseName = ua.QualifiedName.from_string("ClientUserId")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2782")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("ClientUserId")
attrs.DataType = ua.NodeId(ua.ObjectIds.String)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9026")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9028")
node.BrowseName = ua.QualifiedName.from_string("Disable")
node.NodeClass = ua.NodeClass.Method
node.ParentNodeId = ua.NodeId.from_string("i=2782")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
attrs = ua.MethodAttributes()
attrs.DisplayName = ua.LocalizedText("Disable")
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=3065")
ref.SourceNodeId = ua.NodeId.from_string("i=9028")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2803")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9028")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9027")
node.BrowseName = ua.QualifiedName.from_string("Enable")
node.NodeClass = ua.NodeClass.Method
node.ParentNodeId = ua.NodeId.from_string("i=2782")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
attrs = ua.MethodAttributes()
attrs.DisplayName = ua.LocalizedText("Enable")
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=3065")
ref.SourceNodeId = ua.NodeId.from_string("i=9027")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2803")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9027")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9029")
node.BrowseName = ua.QualifiedName.from_string("AddComment")
node.NodeClass = ua.NodeClass.Method
node.ParentNodeId = ua.NodeId.from_string("i=2782")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
attrs = ua.MethodAttributes()
attrs.DisplayName = ua.LocalizedText("AddComment")
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9029")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9030")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=3065")
ref.SourceNodeId = ua.NodeId.from_string("i=9029")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2829")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9029")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9030")
node.BrowseName = ua.QualifiedName.from_string("InputArguments")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9029")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("InputArguments")
attrs.DataType = ua.NodeId.from_string("i=296")
value = []
extobj = ua.Argument()
extobj.Name = 'EventId'
extobj.DataType = ua.NodeId.from_string("i=15")
extobj.ValueRank = -1
extobj.Description.Text = b'The identifier for the event to comment.'
value.append(extobj)
extobj = ua.Argument()
extobj.Name = 'Comment'
extobj.DataType = ua.NodeId.from_string("i=21")
extobj.ValueRank = -1
extobj.Description.Text = b'The comment to add to the condition.'
value.append(extobj)
attrs.Value = ua.Variant(value, ua.VariantType.ExtensionObject)
attrs.ValueRank = 1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9030")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=3875")
node.BrowseName = ua.QualifiedName.from_string("ConditionRefresh")
node.NodeClass = ua.NodeClass.Method
node.ParentNodeId = ua.NodeId.from_string("i=2782")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
attrs = ua.MethodAttributes()
attrs.DisplayName = ua.LocalizedText("ConditionRefresh")
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=3875")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=3876")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=3065")
ref.SourceNodeId = ua.NodeId.from_string("i=3875")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2787")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=3065")
ref.SourceNodeId = ua.NodeId.from_string("i=3875")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2788")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=3876")
node.BrowseName = ua.QualifiedName.from_string("InputArguments")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=3875")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("InputArguments")
attrs.DataType = ua.NodeId.from_string("i=296")
value = []
extobj = ua.Argument()
extobj.Name = 'SubscriptionId'
extobj.DataType = ua.NodeId.from_string("i=288")
extobj.ValueRank = -1
extobj.Description.Text = b'The identifier for the suscription to refresh.'
value.append(extobj)
attrs.Value = ua.Variant(value, ua.VariantType.ExtensionObject)
attrs.ValueRank = 1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=3876")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=12912")
node.BrowseName = ua.QualifiedName.from_string("ConditionRefresh2")
node.NodeClass = ua.NodeClass.Method
node.ParentNodeId = ua.NodeId.from_string("i=2782")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
attrs = ua.MethodAttributes()
attrs.DisplayName = ua.LocalizedText("ConditionRefresh2")
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=12912")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=12913")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=3065")
ref.SourceNodeId = ua.NodeId.from_string("i=12912")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2787")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=3065")
ref.SourceNodeId = ua.NodeId.from_string("i=12912")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2788")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=12913")
node.BrowseName = ua.QualifiedName.from_string("InputArguments")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=12912")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("InputArguments")
attrs.DataType = ua.NodeId.from_string("i=296")
value = []
extobj = ua.Argument()
extobj.Name = 'SubscriptionId'
extobj.DataType = ua.NodeId.from_string("i=288")
extobj.ValueRank = -1
extobj.Description.Text = b'The identifier for the suscription to refresh.'
value.append(extobj)
extobj = ua.Argument()
extobj.Name = 'MonitoredItemId'
extobj.DataType = ua.NodeId.from_string("i=288")
extobj.ValueRank = -1
extobj.Description.Text = b'The identifier for the monitored item to refresh.'
value.append(extobj)
attrs.Value = ua.Variant(value, ua.VariantType.ExtensionObject)
attrs.ValueRank = 1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=12913")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2830")
node.BrowseName = ua.QualifiedName.from_string("DialogConditionType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=2782")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("DialogConditionType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2830")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9035")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2830")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9055")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2830")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2831")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2830")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9064")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2830")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9065")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2830")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9066")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2830")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9067")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2830")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9068")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2830")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9069")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9035")
node.BrowseName = ua.QualifiedName.from_string("EnabledState")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2830")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=8995")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("EnabledState")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9035")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9036")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=9004")
ref.SourceNodeId = ua.NodeId.from_string("i=9035")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9055")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9035")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9036")
node.BrowseName = ua.QualifiedName.from_string("Id")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9035")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Id")
attrs.DataType = ua.NodeId(ua.ObjectIds.Boolean)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9036")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9055")
node.BrowseName = ua.QualifiedName.from_string("DialogState")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2830")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=8995")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("DialogState")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9055")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9056")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9055")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9060")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9055")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9056")
node.BrowseName = ua.QualifiedName.from_string("Id")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9055")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Id")
attrs.DataType = ua.NodeId(ua.ObjectIds.Boolean)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9056")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9060")
node.BrowseName = ua.QualifiedName.from_string("TransitionTime")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9055")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TransitionTime")
attrs.DataType = ua.NodeId.from_string("i=294")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9060")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2831")
node.BrowseName = ua.QualifiedName.from_string("Prompt")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2830")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Prompt")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=2831")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9064")
node.BrowseName = ua.QualifiedName.from_string("ResponseOptionSet")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2830")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("ResponseOptionSet")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = 1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9064")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9065")
node.BrowseName = ua.QualifiedName.from_string("DefaultResponse")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2830")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("DefaultResponse")
attrs.DataType = ua.NodeId(ua.ObjectIds.Int32)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9065")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9066")
node.BrowseName = ua.QualifiedName.from_string("OkResponse")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2830")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("OkResponse")
attrs.DataType = ua.NodeId(ua.ObjectIds.Int32)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9066")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9067")
node.BrowseName = ua.QualifiedName.from_string("CancelResponse")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2830")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("CancelResponse")
attrs.DataType = ua.NodeId(ua.ObjectIds.Int32)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9067")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9068")
node.BrowseName = ua.QualifiedName.from_string("LastResponse")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2830")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("LastResponse")
attrs.DataType = ua.NodeId(ua.ObjectIds.Int32)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9068")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9069")
node.BrowseName = ua.QualifiedName.from_string("Respond")
node.NodeClass = ua.NodeClass.Method
node.ParentNodeId = ua.NodeId.from_string("i=2830")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
attrs = ua.MethodAttributes()
attrs.DisplayName = ua.LocalizedText("Respond")
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9069")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9070")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=3065")
ref.SourceNodeId = ua.NodeId.from_string("i=9069")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=8927")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9069")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9070")
node.BrowseName = ua.QualifiedName.from_string("InputArguments")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9069")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("InputArguments")
attrs.DataType = ua.NodeId.from_string("i=296")
value = []
extobj = ua.Argument()
extobj.Name = 'SelectedResponse'
extobj.DataType = ua.NodeId.from_string("i=6")
extobj.ValueRank = -1
extobj.Description.Text = b'The response to the dialog condition.'
value.append(extobj)
attrs.Value = ua.Variant(value, ua.VariantType.ExtensionObject)
attrs.ValueRank = 1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9070")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2881")
node.BrowseName = ua.QualifiedName.from_string("AcknowledgeableConditionType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=2782")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("AcknowledgeableConditionType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2881")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9073")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2881")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9093")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2881")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9102")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2881")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9111")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2881")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9113")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9073")
node.BrowseName = ua.QualifiedName.from_string("EnabledState")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2881")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=8995")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("EnabledState")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9073")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9074")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=9004")
ref.SourceNodeId = ua.NodeId.from_string("i=9073")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9093")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=9004")
ref.SourceNodeId = ua.NodeId.from_string("i=9073")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9102")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9073")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9074")
node.BrowseName = ua.QualifiedName.from_string("Id")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9073")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Id")
attrs.DataType = ua.NodeId(ua.ObjectIds.Boolean)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9074")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9093")
node.BrowseName = ua.QualifiedName.from_string("AckedState")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2881")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=8995")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("AckedState")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9093")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9094")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9093")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9098")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9093")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9094")
node.BrowseName = ua.QualifiedName.from_string("Id")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9093")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Id")
attrs.DataType = ua.NodeId(ua.ObjectIds.Boolean)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9094")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9098")
node.BrowseName = ua.QualifiedName.from_string("TransitionTime")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9093")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TransitionTime")
attrs.DataType = ua.NodeId.from_string("i=294")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9098")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9102")
node.BrowseName = ua.QualifiedName.from_string("ConfirmedState")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2881")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=8995")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("ConfirmedState")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9102")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9103")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9102")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9107")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9102")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9103")
node.BrowseName = ua.QualifiedName.from_string("Id")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9102")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Id")
attrs.DataType = ua.NodeId(ua.ObjectIds.Boolean)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9103")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9107")
node.BrowseName = ua.QualifiedName.from_string("TransitionTime")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9102")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TransitionTime")
attrs.DataType = ua.NodeId.from_string("i=294")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9107")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9111")
node.BrowseName = ua.QualifiedName.from_string("Acknowledge")
node.NodeClass = ua.NodeClass.Method
node.ParentNodeId = ua.NodeId.from_string("i=2881")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
attrs = ua.MethodAttributes()
attrs.DisplayName = ua.LocalizedText("Acknowledge")
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9111")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9112")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=3065")
ref.SourceNodeId = ua.NodeId.from_string("i=9111")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=8944")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9111")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9112")
node.BrowseName = ua.QualifiedName.from_string("InputArguments")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9111")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("InputArguments")
attrs.DataType = ua.NodeId.from_string("i=296")
value = []
extobj = ua.Argument()
extobj.Name = 'EventId'
extobj.DataType = ua.NodeId.from_string("i=15")
extobj.ValueRank = -1
extobj.Description.Text = b'The identifier for the event to comment.'
value.append(extobj)
extobj = ua.Argument()
extobj.Name = 'Comment'
extobj.DataType = ua.NodeId.from_string("i=21")
extobj.ValueRank = -1
extobj.Description.Text = b'The comment to add to the condition.'
value.append(extobj)
attrs.Value = ua.Variant(value, ua.VariantType.ExtensionObject)
attrs.ValueRank = 1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9112")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9113")
node.BrowseName = ua.QualifiedName.from_string("Confirm")
node.NodeClass = ua.NodeClass.Method
node.ParentNodeId = ua.NodeId.from_string("i=2881")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
attrs = ua.MethodAttributes()
attrs.DisplayName = ua.LocalizedText("Confirm")
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9113")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9114")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=3065")
ref.SourceNodeId = ua.NodeId.from_string("i=9113")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=8961")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9113")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9114")
node.BrowseName = ua.QualifiedName.from_string("InputArguments")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9113")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("InputArguments")
attrs.DataType = ua.NodeId.from_string("i=296")
value = []
extobj = ua.Argument()
extobj.Name = 'EventId'
extobj.DataType = ua.NodeId.from_string("i=15")
extobj.ValueRank = -1
extobj.Description.Text = b'The identifier for the event to comment.'
value.append(extobj)
extobj = ua.Argument()
extobj.Name = 'Comment'
extobj.DataType = ua.NodeId.from_string("i=21")
extobj.ValueRank = -1
extobj.Description.Text = b'The comment to add to the condition.'
value.append(extobj)
attrs.Value = ua.Variant(value, ua.VariantType.ExtensionObject)
attrs.ValueRank = 1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9114")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2915")
node.BrowseName = ua.QualifiedName.from_string("AlarmConditionType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=2881")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("AlarmConditionType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2915")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9118")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2915")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9160")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2915")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11120")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2915")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9169")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2915")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9178")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2915")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9215")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2915")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9216")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9118")
node.BrowseName = ua.QualifiedName.from_string("EnabledState")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2915")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=8995")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("EnabledState")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9118")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9119")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=9004")
ref.SourceNodeId = ua.NodeId.from_string("i=9118")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9160")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=9004")
ref.SourceNodeId = ua.NodeId.from_string("i=9118")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9169")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=9004")
ref.SourceNodeId = ua.NodeId.from_string("i=9118")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9178")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9118")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9119")
node.BrowseName = ua.QualifiedName.from_string("Id")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9118")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Id")
attrs.DataType = ua.NodeId(ua.ObjectIds.Boolean)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9119")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9160")
node.BrowseName = ua.QualifiedName.from_string("ActiveState")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2915")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=8995")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("ActiveState")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9160")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9161")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9160")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9164")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9160")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9165")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9160")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9166")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9160")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9161")
node.BrowseName = ua.QualifiedName.from_string("Id")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9160")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Id")
attrs.DataType = ua.NodeId(ua.ObjectIds.Boolean)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9161")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9164")
node.BrowseName = ua.QualifiedName.from_string("EffectiveDisplayName")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9160")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("EffectiveDisplayName")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9164")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9165")
node.BrowseName = ua.QualifiedName.from_string("TransitionTime")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9160")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TransitionTime")
attrs.DataType = ua.NodeId.from_string("i=294")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9165")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9166")
node.BrowseName = ua.QualifiedName.from_string("EffectiveTransitionTime")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9160")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("EffectiveTransitionTime")
attrs.DataType = ua.NodeId.from_string("i=294")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9166")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11120")
node.BrowseName = ua.QualifiedName.from_string("InputNode")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2915")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("InputNode")
attrs.DataType = ua.NodeId(ua.ObjectIds.NodeId)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11120")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9169")
node.BrowseName = ua.QualifiedName.from_string("SuppressedState")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2915")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=8995")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("SuppressedState")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9169")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9170")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9169")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9174")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9169")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9170")
node.BrowseName = ua.QualifiedName.from_string("Id")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9169")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Id")
attrs.DataType = ua.NodeId(ua.ObjectIds.Boolean)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9170")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9174")
node.BrowseName = ua.QualifiedName.from_string("TransitionTime")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9169")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TransitionTime")
attrs.DataType = ua.NodeId.from_string("i=294")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9174")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9178")
node.BrowseName = ua.QualifiedName.from_string("ShelvingState")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=2915")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=2929")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("ShelvingState")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=9178")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9179")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=9178")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9184")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9178")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9189")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=9178")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9211")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=9178")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9212")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=9178")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9213")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9178")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9179")
node.BrowseName = ua.QualifiedName.from_string("CurrentState")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9178")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=2760")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("CurrentState")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9179")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9180")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9179")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9180")
node.BrowseName = ua.QualifiedName.from_string("Id")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9179")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Id")
attrs.DataType = ua.NodeId(ua.ObjectIds.NodeId)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9180")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9184")
node.BrowseName = ua.QualifiedName.from_string("LastTransition")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9178")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=2767")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("LastTransition")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9184")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9185")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9184")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9188")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9184")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9185")
node.BrowseName = ua.QualifiedName.from_string("Id")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9184")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Id")
attrs.DataType = ua.NodeId(ua.ObjectIds.NodeId)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9185")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9188")
node.BrowseName = ua.QualifiedName.from_string("TransitionTime")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9184")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TransitionTime")
attrs.DataType = ua.NodeId.from_string("i=294")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9188")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9189")
node.BrowseName = ua.QualifiedName.from_string("UnshelveTime")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9178")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("UnshelveTime")
attrs.DataType = ua.NodeId.from_string("i=290")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9189")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9211")
node.BrowseName = ua.QualifiedName.from_string("Unshelve")
node.NodeClass = ua.NodeClass.Method
node.ParentNodeId = ua.NodeId.from_string("i=9178")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
attrs = ua.MethodAttributes()
attrs.DisplayName = ua.LocalizedText("Unshelve")
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=3065")
ref.SourceNodeId = ua.NodeId.from_string("i=9211")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11093")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9211")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9212")
node.BrowseName = ua.QualifiedName.from_string("OneShotShelve")
node.NodeClass = ua.NodeClass.Method
node.ParentNodeId = ua.NodeId.from_string("i=9178")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
attrs = ua.MethodAttributes()
attrs.DisplayName = ua.LocalizedText("OneShotShelve")
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=3065")
ref.SourceNodeId = ua.NodeId.from_string("i=9212")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11093")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9212")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9213")
node.BrowseName = ua.QualifiedName.from_string("TimedShelve")
node.NodeClass = ua.NodeClass.Method
node.ParentNodeId = ua.NodeId.from_string("i=9178")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
attrs = ua.MethodAttributes()
attrs.DisplayName = ua.LocalizedText("TimedShelve")
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9213")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9214")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=3065")
ref.SourceNodeId = ua.NodeId.from_string("i=9213")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11093")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9213")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9214")
node.BrowseName = ua.QualifiedName.from_string("InputArguments")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9213")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("InputArguments")
attrs.DataType = ua.NodeId.from_string("i=296")
value = []
extobj = ua.Argument()
extobj.Name = 'ShelvingTime'
extobj.DataType = ua.NodeId.from_string("i=290")
extobj.ValueRank = -1
extobj.Description.Text = b'If not 0, this parameter specifies a fixed time for which the Alarm is to be shelved.'
value.append(extobj)
attrs.Value = ua.Variant(value, ua.VariantType.ExtensionObject)
attrs.ValueRank = 1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9214")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9215")
node.BrowseName = ua.QualifiedName.from_string("SuppressedOrShelved")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2915")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("SuppressedOrShelved")
attrs.DataType = ua.NodeId(ua.ObjectIds.Boolean)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9215")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9216")
node.BrowseName = ua.QualifiedName.from_string("MaxTimeShelved")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2915")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("MaxTimeShelved")
attrs.DataType = ua.NodeId.from_string("i=290")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9216")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2929")
node.BrowseName = ua.QualifiedName.from_string("ShelvedStateMachineType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=2771")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("ShelvedStateMachineType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2929")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9115")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2929")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2930")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2929")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2932")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2929")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2933")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2929")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2935")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2929")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2936")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2929")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2940")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2929")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2942")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2929")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2943")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2929")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2945")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2929")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2947")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2929")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2948")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=2929")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2949")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9115")
node.BrowseName = ua.QualifiedName.from_string("UnshelveTime")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2929")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("UnshelveTime")
attrs.DataType = ua.NodeId.from_string("i=290")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9115")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2930")
node.BrowseName = ua.QualifiedName.from_string("Unshelved")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=2929")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=2307")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("Unshelved")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2930")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=6098")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=6098")
node.BrowseName = ua.QualifiedName.from_string("StateNumber")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2930")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("StateNumber")
attrs.DataType = ua.NodeId(ua.ObjectIds.UInt32)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=6098")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2932")
node.BrowseName = ua.QualifiedName.from_string("TimedShelved")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=2929")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=2307")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("TimedShelved")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2932")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=6100")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=6100")
node.BrowseName = ua.QualifiedName.from_string("StateNumber")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2932")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("StateNumber")
attrs.DataType = ua.NodeId(ua.ObjectIds.UInt32)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=6100")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2933")
node.BrowseName = ua.QualifiedName.from_string("OneShotShelved")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=2929")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=2307")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("OneShotShelved")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2933")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=6101")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=6101")
node.BrowseName = ua.QualifiedName.from_string("StateNumber")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2933")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("StateNumber")
attrs.DataType = ua.NodeId(ua.ObjectIds.UInt32)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=6101")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2935")
node.BrowseName = ua.QualifiedName.from_string("UnshelvedToTimedShelved")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=2929")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=2310")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("UnshelvedToTimedShelved")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2935")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11322")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=51")
ref.SourceNodeId = ua.NodeId.from_string("i=2935")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2930")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=52")
ref.SourceNodeId = ua.NodeId.from_string("i=2935")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2932")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=54")
ref.SourceNodeId = ua.NodeId.from_string("i=2935")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2915")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=53")
ref.SourceNodeId = ua.NodeId.from_string("i=2935")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2949")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11322")
node.BrowseName = ua.QualifiedName.from_string("TransitionNumber")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2935")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TransitionNumber")
attrs.DataType = ua.NodeId(ua.ObjectIds.UInt32)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11322")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2936")
node.BrowseName = ua.QualifiedName.from_string("UnshelvedToOneShotShelved")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=2929")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=2310")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("UnshelvedToOneShotShelved")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2936")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11323")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=51")
ref.SourceNodeId = ua.NodeId.from_string("i=2936")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2930")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=52")
ref.SourceNodeId = ua.NodeId.from_string("i=2936")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2933")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=54")
ref.SourceNodeId = ua.NodeId.from_string("i=2936")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2915")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=53")
ref.SourceNodeId = ua.NodeId.from_string("i=2936")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2948")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11323")
node.BrowseName = ua.QualifiedName.from_string("TransitionNumber")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2936")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TransitionNumber")
attrs.DataType = ua.NodeId(ua.ObjectIds.UInt32)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11323")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2940")
node.BrowseName = ua.QualifiedName.from_string("TimedShelvedToUnshelved")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=2929")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=2310")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("TimedShelvedToUnshelved")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2940")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11324")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=51")
ref.SourceNodeId = ua.NodeId.from_string("i=2940")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2932")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=52")
ref.SourceNodeId = ua.NodeId.from_string("i=2940")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2930")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=54")
ref.SourceNodeId = ua.NodeId.from_string("i=2940")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2915")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=53")
ref.SourceNodeId = ua.NodeId.from_string("i=2940")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2947")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11324")
node.BrowseName = ua.QualifiedName.from_string("TransitionNumber")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2940")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TransitionNumber")
attrs.DataType = ua.NodeId(ua.ObjectIds.UInt32)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11324")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2942")
node.BrowseName = ua.QualifiedName.from_string("TimedShelvedToOneShotShelved")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=2929")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=2310")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("TimedShelvedToOneShotShelved")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2942")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11325")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=51")
ref.SourceNodeId = ua.NodeId.from_string("i=2942")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2932")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=52")
ref.SourceNodeId = ua.NodeId.from_string("i=2942")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2933")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=54")
ref.SourceNodeId = ua.NodeId.from_string("i=2942")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2915")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=53")
ref.SourceNodeId = ua.NodeId.from_string("i=2942")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2948")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11325")
node.BrowseName = ua.QualifiedName.from_string("TransitionNumber")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2942")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TransitionNumber")
attrs.DataType = ua.NodeId(ua.ObjectIds.UInt32)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11325")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2943")
node.BrowseName = ua.QualifiedName.from_string("OneShotShelvedToUnshelved")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=2929")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=2310")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("OneShotShelvedToUnshelved")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2943")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11326")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=51")
ref.SourceNodeId = ua.NodeId.from_string("i=2943")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2933")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=52")
ref.SourceNodeId = ua.NodeId.from_string("i=2943")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2930")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=54")
ref.SourceNodeId = ua.NodeId.from_string("i=2943")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2915")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=53")
ref.SourceNodeId = ua.NodeId.from_string("i=2943")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2947")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11326")
node.BrowseName = ua.QualifiedName.from_string("TransitionNumber")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2943")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TransitionNumber")
attrs.DataType = ua.NodeId(ua.ObjectIds.UInt32)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11326")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2945")
node.BrowseName = ua.QualifiedName.from_string("OneShotShelvedToTimedShelved")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=2929")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=2310")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("OneShotShelvedToTimedShelved")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2945")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11327")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=51")
ref.SourceNodeId = ua.NodeId.from_string("i=2945")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2933")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=52")
ref.SourceNodeId = ua.NodeId.from_string("i=2945")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2932")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=54")
ref.SourceNodeId = ua.NodeId.from_string("i=2945")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2915")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=53")
ref.SourceNodeId = ua.NodeId.from_string("i=2945")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2949")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11327")
node.BrowseName = ua.QualifiedName.from_string("TransitionNumber")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2945")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TransitionNumber")
attrs.DataType = ua.NodeId(ua.ObjectIds.UInt32)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11327")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2947")
node.BrowseName = ua.QualifiedName.from_string("Unshelve")
node.NodeClass = ua.NodeClass.Method
node.ParentNodeId = ua.NodeId.from_string("i=2929")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
attrs = ua.MethodAttributes()
attrs.DisplayName = ua.LocalizedText("Unshelve")
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=3065")
ref.SourceNodeId = ua.NodeId.from_string("i=2947")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11093")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=2947")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2948")
node.BrowseName = ua.QualifiedName.from_string("OneShotShelve")
node.NodeClass = ua.NodeClass.Method
node.ParentNodeId = ua.NodeId.from_string("i=2929")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
attrs = ua.MethodAttributes()
attrs.DisplayName = ua.LocalizedText("OneShotShelve")
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=3065")
ref.SourceNodeId = ua.NodeId.from_string("i=2948")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11093")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=2948")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2949")
node.BrowseName = ua.QualifiedName.from_string("TimedShelve")
node.NodeClass = ua.NodeClass.Method
node.ParentNodeId = ua.NodeId.from_string("i=2929")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
attrs = ua.MethodAttributes()
attrs.DisplayName = ua.LocalizedText("TimedShelve")
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2949")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=2991")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=3065")
ref.SourceNodeId = ua.NodeId.from_string("i=2949")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11093")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=2949")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2991")
node.BrowseName = ua.QualifiedName.from_string("InputArguments")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2949")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("InputArguments")
attrs.DataType = ua.NodeId.from_string("i=296")
value = []
extobj = ua.Argument()
extobj.Name = 'ShelvingTime'
extobj.DataType = ua.NodeId.from_string("i=290")
extobj.ValueRank = -1
extobj.Description.Text = b'If not 0, this parameter specifies a fixed time for which the Alarm is to be shelved.'
value.append(extobj)
attrs.Value = ua.Variant(value, ua.VariantType.ExtensionObject)
attrs.ValueRank = 1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=2991")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2955")
node.BrowseName = ua.QualifiedName.from_string("LimitAlarmType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=2915")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("LimitAlarmType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2955")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11124")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2955")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11125")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2955")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11126")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2955")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11127")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11124")
node.BrowseName = ua.QualifiedName.from_string("HighHighLimit")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2955")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("HighHighLimit")
attrs.DataType = ua.NodeId(ua.ObjectIds.Double)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11124")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11125")
node.BrowseName = ua.QualifiedName.from_string("HighLimit")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2955")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("HighLimit")
attrs.DataType = ua.NodeId(ua.ObjectIds.Double)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11125")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11126")
node.BrowseName = ua.QualifiedName.from_string("LowLimit")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2955")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("LowLimit")
attrs.DataType = ua.NodeId(ua.ObjectIds.Double)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11126")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11127")
node.BrowseName = ua.QualifiedName.from_string("LowLowLimit")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2955")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("LowLowLimit")
attrs.DataType = ua.NodeId(ua.ObjectIds.Double)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11127")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9318")
node.BrowseName = ua.QualifiedName.from_string("ExclusiveLimitStateMachineType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=2771")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("ExclusiveLimitStateMachineType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=9318")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9329")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=9318")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9331")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=9318")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9333")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=9318")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9335")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=9318")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9337")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=9318")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9338")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=9318")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9339")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=9318")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9340")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9329")
node.BrowseName = ua.QualifiedName.from_string("HighHigh")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=9318")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=2307")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("HighHigh")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9329")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9330")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9330")
node.BrowseName = ua.QualifiedName.from_string("StateNumber")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9329")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("StateNumber")
attrs.DataType = ua.NodeId(ua.ObjectIds.UInt32)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9330")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9331")
node.BrowseName = ua.QualifiedName.from_string("High")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=9318")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=2307")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("High")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9331")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9332")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9332")
node.BrowseName = ua.QualifiedName.from_string("StateNumber")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9331")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("StateNumber")
attrs.DataType = ua.NodeId(ua.ObjectIds.UInt32)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9332")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9333")
node.BrowseName = ua.QualifiedName.from_string("Low")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=9318")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=2307")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("Low")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9333")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9334")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9334")
node.BrowseName = ua.QualifiedName.from_string("StateNumber")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9333")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("StateNumber")
attrs.DataType = ua.NodeId(ua.ObjectIds.UInt32)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9334")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9335")
node.BrowseName = ua.QualifiedName.from_string("LowLow")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=9318")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=2307")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("LowLow")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9335")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9336")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9336")
node.BrowseName = ua.QualifiedName.from_string("StateNumber")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9335")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("StateNumber")
attrs.DataType = ua.NodeId(ua.ObjectIds.UInt32)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9336")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9337")
node.BrowseName = ua.QualifiedName.from_string("LowLowToLow")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=9318")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=2310")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("LowLowToLow")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9337")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11340")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=51")
ref.SourceNodeId = ua.NodeId.from_string("i=9337")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9335")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=52")
ref.SourceNodeId = ua.NodeId.from_string("i=9337")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9333")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11340")
node.BrowseName = ua.QualifiedName.from_string("TransitionNumber")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9337")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TransitionNumber")
attrs.DataType = ua.NodeId(ua.ObjectIds.UInt32)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11340")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9338")
node.BrowseName = ua.QualifiedName.from_string("LowToLowLow")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=9318")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=2310")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("LowToLowLow")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9338")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11341")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=51")
ref.SourceNodeId = ua.NodeId.from_string("i=9338")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9333")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=52")
ref.SourceNodeId = ua.NodeId.from_string("i=9338")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9335")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11341")
node.BrowseName = ua.QualifiedName.from_string("TransitionNumber")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9338")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TransitionNumber")
attrs.DataType = ua.NodeId(ua.ObjectIds.UInt32)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11341")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9339")
node.BrowseName = ua.QualifiedName.from_string("HighHighToHigh")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=9318")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=2310")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("HighHighToHigh")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9339")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11342")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=51")
ref.SourceNodeId = ua.NodeId.from_string("i=9339")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9329")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=52")
ref.SourceNodeId = ua.NodeId.from_string("i=9339")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9331")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11342")
node.BrowseName = ua.QualifiedName.from_string("TransitionNumber")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9339")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TransitionNumber")
attrs.DataType = ua.NodeId(ua.ObjectIds.UInt32)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11342")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9340")
node.BrowseName = ua.QualifiedName.from_string("HighToHighHigh")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=9318")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=2310")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("HighToHighHigh")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9340")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11343")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=51")
ref.SourceNodeId = ua.NodeId.from_string("i=9340")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9331")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=52")
ref.SourceNodeId = ua.NodeId.from_string("i=9340")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9329")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11343")
node.BrowseName = ua.QualifiedName.from_string("TransitionNumber")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9340")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TransitionNumber")
attrs.DataType = ua.NodeId(ua.ObjectIds.UInt32)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11343")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9341")
node.BrowseName = ua.QualifiedName.from_string("ExclusiveLimitAlarmType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=2955")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("ExclusiveLimitAlarmType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=9341")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9398")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=9341")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9455")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9398")
node.BrowseName = ua.QualifiedName.from_string("ActiveState")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9341")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=8995")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("ActiveState")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9398")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9399")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=9004")
ref.SourceNodeId = ua.NodeId.from_string("i=9398")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9455")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9398")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9399")
node.BrowseName = ua.QualifiedName.from_string("Id")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9398")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Id")
attrs.DataType = ua.NodeId(ua.ObjectIds.Boolean)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9399")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9455")
node.BrowseName = ua.QualifiedName.from_string("LimitState")
node.NodeClass = ua.NodeClass.Object
node.ParentNodeId = ua.NodeId.from_string("i=9341")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=9318")
attrs = ua.ObjectAttributes()
attrs.DisplayName = ua.LocalizedText("LimitState")
attrs.EventNotifier = 0
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=9455")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9456")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=9455")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9461")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9455")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9456")
node.BrowseName = ua.QualifiedName.from_string("CurrentState")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9455")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=2760")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("CurrentState")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9456")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9457")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9456")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9457")
node.BrowseName = ua.QualifiedName.from_string("Id")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9456")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Id")
attrs.DataType = ua.NodeId(ua.ObjectIds.NodeId)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9457")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9461")
node.BrowseName = ua.QualifiedName.from_string("LastTransition")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9455")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=2767")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("LastTransition")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9461")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9462")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9461")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9465")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9461")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9462")
node.BrowseName = ua.QualifiedName.from_string("Id")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9461")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Id")
attrs.DataType = ua.NodeId(ua.ObjectIds.NodeId)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9462")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9465")
node.BrowseName = ua.QualifiedName.from_string("TransitionTime")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9461")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TransitionTime")
attrs.DataType = ua.NodeId.from_string("i=294")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9465")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9906")
node.BrowseName = ua.QualifiedName.from_string("NonExclusiveLimitAlarmType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=2955")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("NonExclusiveLimitAlarmType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=9906")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9963")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=9906")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=10020")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=9906")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=10029")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=9906")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=10038")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=47")
ref.SourceNodeId = ua.NodeId.from_string("i=9906")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=10047")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9963")
node.BrowseName = ua.QualifiedName.from_string("ActiveState")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9906")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=8995")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("ActiveState")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9963")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9964")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=9004")
ref.SourceNodeId = ua.NodeId.from_string("i=9963")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=10020")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=9004")
ref.SourceNodeId = ua.NodeId.from_string("i=9963")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=10029")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=9004")
ref.SourceNodeId = ua.NodeId.from_string("i=9963")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=10038")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=9004")
ref.SourceNodeId = ua.NodeId.from_string("i=9963")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=10047")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9963")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9964")
node.BrowseName = ua.QualifiedName.from_string("Id")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9963")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Id")
attrs.DataType = ua.NodeId(ua.ObjectIds.Boolean)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9964")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=10020")
node.BrowseName = ua.QualifiedName.from_string("HighHighState")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9906")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=8995")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("HighHighState")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=10020")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=10021")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=10020")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=10025")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=10020")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=10021")
node.BrowseName = ua.QualifiedName.from_string("Id")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=10020")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Id")
attrs.DataType = ua.NodeId(ua.ObjectIds.Boolean)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=10021")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=10025")
node.BrowseName = ua.QualifiedName.from_string("TransitionTime")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=10020")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TransitionTime")
attrs.DataType = ua.NodeId.from_string("i=294")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=10025")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=10029")
node.BrowseName = ua.QualifiedName.from_string("HighState")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9906")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=8995")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("HighState")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=10029")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=10030")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=10029")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=10034")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=10029")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=10030")
node.BrowseName = ua.QualifiedName.from_string("Id")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=10029")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Id")
attrs.DataType = ua.NodeId(ua.ObjectIds.Boolean)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=10030")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=10034")
node.BrowseName = ua.QualifiedName.from_string("TransitionTime")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=10029")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TransitionTime")
attrs.DataType = ua.NodeId.from_string("i=294")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=10034")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=10038")
node.BrowseName = ua.QualifiedName.from_string("LowState")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9906")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=8995")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("LowState")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=10038")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=10039")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=10038")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=10043")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=10038")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=10039")
node.BrowseName = ua.QualifiedName.from_string("Id")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=10038")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Id")
attrs.DataType = ua.NodeId(ua.ObjectIds.Boolean)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=10039")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=10043")
node.BrowseName = ua.QualifiedName.from_string("TransitionTime")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=10038")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TransitionTime")
attrs.DataType = ua.NodeId.from_string("i=294")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=10043")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=10047")
node.BrowseName = ua.QualifiedName.from_string("LowLowState")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9906")
node.ReferenceTypeId = ua.NodeId.from_string("i=47")
node.TypeDefinition = ua.NodeId.from_string("i=8995")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("LowLowState")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=10047")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=10048")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=10047")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=10052")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=10047")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=10048")
node.BrowseName = ua.QualifiedName.from_string("Id")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=10047")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Id")
attrs.DataType = ua.NodeId(ua.ObjectIds.Boolean)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=10048")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=10052")
node.BrowseName = ua.QualifiedName.from_string("TransitionTime")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=10047")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("TransitionTime")
attrs.DataType = ua.NodeId.from_string("i=294")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=10052")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=80")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=10060")
node.BrowseName = ua.QualifiedName.from_string("NonExclusiveLevelAlarmType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=9906")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("NonExclusiveLevelAlarmType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9482")
node.BrowseName = ua.QualifiedName.from_string("ExclusiveLevelAlarmType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=9341")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("ExclusiveLevelAlarmType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=10368")
node.BrowseName = ua.QualifiedName.from_string("NonExclusiveDeviationAlarmType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=9906")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("NonExclusiveDeviationAlarmType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=10368")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=10522")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=10522")
node.BrowseName = ua.QualifiedName.from_string("SetpointNode")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=10368")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("SetpointNode")
attrs.DataType = ua.NodeId(ua.ObjectIds.NodeId)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=10522")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9764")
node.BrowseName = ua.QualifiedName.from_string("ExclusiveDeviationAlarmType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=9341")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("ExclusiveDeviationAlarmType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=9764")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=9905")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9905")
node.BrowseName = ua.QualifiedName.from_string("SetpointNode")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=9764")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("SetpointNode")
attrs.DataType = ua.NodeId(ua.ObjectIds.NodeId)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=9905")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=10214")
node.BrowseName = ua.QualifiedName.from_string("NonExclusiveRateOfChangeAlarmType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=9906")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("NonExclusiveRateOfChangeAlarmType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9623")
node.BrowseName = ua.QualifiedName.from_string("ExclusiveRateOfChangeAlarmType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=9341")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("ExclusiveRateOfChangeAlarmType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=10523")
node.BrowseName = ua.QualifiedName.from_string("DiscreteAlarmType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=2915")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("DiscreteAlarmType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=10637")
node.BrowseName = ua.QualifiedName.from_string("OffNormalAlarmType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=10523")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("OffNormalAlarmType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=10637")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11158")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11158")
node.BrowseName = ua.QualifiedName.from_string("NormalState")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=10637")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("NormalState")
attrs.DataType = ua.NodeId(ua.ObjectIds.NodeId)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11158")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11753")
node.BrowseName = ua.QualifiedName.from_string("SystemOffNormalAlarmType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=10637")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("SystemOffNormalAlarmType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=13225")
node.BrowseName = ua.QualifiedName.from_string("CertificateExpirationAlarmType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=11753")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("CertificateExpirationAlarmType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=13225")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=13325")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=13225")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=13326")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=13225")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=13327")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=13325")
node.BrowseName = ua.QualifiedName.from_string("ExpirationDate")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=13225")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("ExpirationDate")
attrs.DataType = ua.NodeId(ua.ObjectIds.DateTime)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=13325")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=13326")
node.BrowseName = ua.QualifiedName.from_string("CertificateType")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=13225")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("CertificateType")
attrs.DataType = ua.NodeId(ua.ObjectIds.NodeId)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=13326")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=13327")
node.BrowseName = ua.QualifiedName.from_string("Certificate")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=13225")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Certificate")
attrs.DataType = ua.NodeId(ua.ObjectIds.ByteString)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=13327")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=10751")
node.BrowseName = ua.QualifiedName.from_string("TripAlarmType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=10637")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("TripAlarmType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11163")
node.BrowseName = ua.QualifiedName.from_string("BaseConditionClassType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=58")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("BaseConditionClassType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11164")
node.BrowseName = ua.QualifiedName.from_string("ProcessConditionClassType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=11163")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("ProcessConditionClassType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11165")
node.BrowseName = ua.QualifiedName.from_string("MaintenanceConditionClassType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=11163")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("MaintenanceConditionClassType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11166")
node.BrowseName = ua.QualifiedName.from_string("SystemConditionClassType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=11163")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("SystemConditionClassType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2790")
node.BrowseName = ua.QualifiedName.from_string("AuditConditionEventType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=2127")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("AuditConditionEventType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2803")
node.BrowseName = ua.QualifiedName.from_string("AuditConditionEnableEventType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=2790")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("AuditConditionEnableEventType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2829")
node.BrowseName = ua.QualifiedName.from_string("AuditConditionCommentEventType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=2790")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("AuditConditionCommentEventType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2829")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=4170")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=2829")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11851")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=4170")
node.BrowseName = ua.QualifiedName.from_string("EventId")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2829")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.Description = ua.LocalizedText("A globally unique identifier for the event.")
attrs.DisplayName = ua.LocalizedText("EventId")
attrs.DataType = ua.NodeId(ua.ObjectIds.ByteString)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=4170")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11851")
node.BrowseName = ua.QualifiedName.from_string("Comment")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=2829")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Comment")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11851")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=8927")
node.BrowseName = ua.QualifiedName.from_string("AuditConditionRespondEventType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=2790")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("AuditConditionRespondEventType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=8927")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11852")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11852")
node.BrowseName = ua.QualifiedName.from_string("SelectedResponse")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=8927")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("SelectedResponse")
attrs.DataType = ua.NodeId(ua.ObjectIds.Int32)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11852")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=8944")
node.BrowseName = ua.QualifiedName.from_string("AuditConditionAcknowledgeEventType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=2790")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("AuditConditionAcknowledgeEventType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=8944")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=8945")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=8944")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11853")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=8945")
node.BrowseName = ua.QualifiedName.from_string("EventId")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=8944")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.Description = ua.LocalizedText("A globally unique identifier for the event.")
attrs.DisplayName = ua.LocalizedText("EventId")
attrs.DataType = ua.NodeId(ua.ObjectIds.ByteString)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=8945")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11853")
node.BrowseName = ua.QualifiedName.from_string("Comment")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=8944")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Comment")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11853")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=8961")
node.BrowseName = ua.QualifiedName.from_string("AuditConditionConfirmEventType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=2790")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("AuditConditionConfirmEventType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=8961")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=8962")
refs.append(ref)
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=8961")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11854")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=8962")
node.BrowseName = ua.QualifiedName.from_string("EventId")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=8961")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.Description = ua.LocalizedText("A globally unique identifier for the event.")
attrs.DisplayName = ua.LocalizedText("EventId")
attrs.DataType = ua.NodeId(ua.ObjectIds.ByteString)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=8962")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11854")
node.BrowseName = ua.QualifiedName.from_string("Comment")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=8961")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("Comment")
attrs.DataType = ua.NodeId(ua.ObjectIds.LocalizedText)
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11854")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11093")
node.BrowseName = ua.QualifiedName.from_string("AuditConditionShelvingEventType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=2790")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("AuditConditionShelvingEventType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=46")
ref.SourceNodeId = ua.NodeId.from_string("i=11093")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=11855")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=11855")
node.BrowseName = ua.QualifiedName.from_string("ShelvingTime")
node.NodeClass = ua.NodeClass.Variable
node.ParentNodeId = ua.NodeId.from_string("i=11093")
node.ReferenceTypeId = ua.NodeId.from_string("i=46")
node.TypeDefinition = ua.NodeId.from_string("i=68")
attrs = ua.VariableAttributes()
attrs.DisplayName = ua.LocalizedText("ShelvingTime")
attrs.DataType = ua.NodeId.from_string("i=290")
attrs.ValueRank = -1
node.NodeAttributes = attrs
server.add_nodes([node])
refs = []
ref = ua.AddReferencesItem()
ref.IsForward = True
ref.ReferenceTypeId = ua.NodeId.from_string("i=37")
ref.SourceNodeId = ua.NodeId.from_string("i=11855")
ref.TargetNodeClass = ua.NodeClass.DataType
ref.TargetNodeId = ua.NodeId.from_string("i=78")
refs.append(ref)
server.add_references(refs)
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2787")
node.BrowseName = ua.QualifiedName.from_string("RefreshStartEventType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=2130")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("RefreshStartEventType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2788")
node.BrowseName = ua.QualifiedName.from_string("RefreshEndEventType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=2130")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("RefreshEndEventType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=2789")
node.BrowseName = ua.QualifiedName.from_string("RefreshRequiredEventType")
node.NodeClass = ua.NodeClass.ObjectType
node.ParentNodeId = ua.NodeId.from_string("i=2130")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ObjectTypeAttributes()
attrs.DisplayName = ua.LocalizedText("RefreshRequiredEventType")
attrs.IsAbstract = False
node.NodeAttributes = attrs
server.add_nodes([node])
node = ua.AddNodesItem()
node.RequestedNewNodeId = ua.NodeId.from_string("i=9006")
node.BrowseName = ua.QualifiedName.from_string("HasCondition")
node.NodeClass = ua.NodeClass.ReferenceType
node.ParentNodeId = ua.NodeId.from_string("i=32")
node.ReferenceTypeId = ua.NodeId.from_string("i=45")
attrs = ua.ReferenceTypeAttributes()
attrs.DisplayName = ua.LocalizedText("HasCondition")
attrs.InverseName = ua.LocalizedText("IsConditionOf")
node.NodeAttributes = attrs
server.add_nodes([node])
| 41.309243 | 118 | 0.706571 | 28,368 | 231,497 | 5.680097 | 0.016603 | 0.127534 | 0.138296 | 0.207444 | 0.976175 | 0.976175 | 0.941179 | 0.935625 | 0.935209 | 0.934886 | 0 | 0.032013 | 0.160698 | 231,497 | 5,603 | 119 | 41.316616 | 0.797304 | 0.000363 | 0 | 0.865641 | 1 | 0 | 0.069787 | 0.008276 | 0 | 0 | 0 | 0 | 0 | 1 | 0.000185 | false | 0 | 0.000185 | 0 | 0.000371 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
65d8138a8e589825390f6216d6ab4f56ecc6b399 | 17,280 | py | Python | src/client/nector_client.py | joinnector/joinnector-merchant-python-server-example | 8c4d47b7f3e85e71caf7cbb38a7748dbbe266271 | [
"MIT"
] | null | null | null | src/client/nector_client.py | joinnector/joinnector-merchant-python-server-example | 8c4d47b7f3e85e71caf7cbb38a7748dbbe266271 | [
"MIT"
] | 1 | 2021-06-29T11:14:52.000Z | 2021-06-29T11:14:52.000Z | src/client/nector_client.py | joinnector/joinnector-merchant-python-server-example | 8c4d47b7f3e85e71caf7cbb38a7748dbbe266271 | [
"MIT"
] | null | null | null | from flask import request
from joinnector import SDK
from src.constant.index import not_allowed_controller_method_names
class NectorClient(object):
def __init__(self, key, secret, mode="prod"):
if mode != "prod" and mode != "dev":
mode = "prod"
self.nector_sdk_instance = SDK(key, secret, mode)
'''
Delegate to correct method, designed to be called directly from route or controoler handler function
Client request body structure must follow the below pattern
req.body = {
method: string<"name_of_method_where_to_delegate_the_call">,
params: object<{params_of_that_method}>,
query: object<{query_of_that_method}>
body: object<{body_of_that_method}>
}
'''
def delegate_method(self):
json_data = request.get_json()
if json_data is None:
raise Exception("Something went wrong, body is required")
method = json_data.get("method", None)
params = json_data.get("params", {})
query = json_data.get("query", {})
body = json_data.get("body", {})
if method is None or method == "delegate_method" or method in not_allowed_controller_method_names or getattr(self, method, None) is None:
raise Exception("Something went wrong, please try after sometime")
return getattr(self, method)(params, query, body)
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1systeminfos/get for request signature and other information
def get_systeminfos(self, params, query, body):
return self.nector_sdk_instance.get_coupon_service().get_infos("/systeminfos")
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1coupons/post for request signature and other information
def create_coupons(self, params, query, body):
return self.nector_sdk_instance.get_coupon_service().create(body)
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1coupons~1%7Bid%7D/get for request signature and other information
def get_coupons(self, params, query, body):
return self.nector_sdk_instance.get_coupon_service().get(params.get("id"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1coupons/get for request signature and other information
def fetch_coupons(self, params, query, body):
return self.nector_sdk_instance.get_coupon_service().fetch(query or {})
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1currencies~1%7Bid%7D/get for request signature and other information
def get_currencies(self, params, query, body):
return self.nector_sdk_instance.get_currency_service().get(params.get("id"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1currencies~1%7Bid%7D/get for request signature and other information
def get_currencies_by_currency_code(self, params, query, body):
return self.nector_sdk_instance.get_currency_service().get_by_currency_code(query.get("currency_code"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1currencies/get for request signature and other information
def fetch_currencies(self, params, query, body):
return self.nector_sdk_instance.get_currency_service().fetch(query or {})
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1dealrewards/post for request signature and other information
def reward_deals(self, params, query, body):
return self.nector_sdk_instance.get_deal_service().reward(body)
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1deals~1%7Bid%7D/get for request signature and other information
def get_deals(self, params, query, body):
return self.nector_sdk_instance.get_deal_service().get(params.get("id"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1deals~1%7Bid%7D/get for request signature and other information
def get_deals_by_sku(self, params, query, body):
return self.nector_sdk_instance.get_deal_service().get_by_sku(query.get("sku"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1deals/get for request signature and other information
def fetch_deals(self, params, query, body):
return self.nector_sdk_instance.get_deal_service().fetch(query or {})
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1offerredeems/post for request signature and other information
def redeem_offers(self, params, query, body):
return self.nector_sdk_instance.get_offer_service().redeem(body)
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1offers~1%7Bid%7D/get for request signature and other information
def get_offers(self, params, query, body):
return self.nector_sdk_instance.get_offer_service().get(params.get("id"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1offers~1%7Bid%7D/get for request signature and other information
def get_offers_by_sku(self, params, query, body):
return self.nector_sdk_instance.get_offer_service().get_by_sku(query.get("sku"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1offers/get for request signature and other information
def fetch_offers(self, params, query, body):
return self.nector_sdk_instance.get_offer_service().fetch(query or {})
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1stores~1%7Bid%7D/get for request signature and other information
def get_stores(self, params, query, body):
return self.nector_sdk_instance.get_store_service().get(params.get("id"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1stores~1%7Bid%7D/get for request signature and other information
def get_stores_by_sku(self, params, query, body):
return self.nector_sdk_instance.get_store_service().get_by_sku(query.get("sku"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1stores/get for request signature and other information
def fetch_stores(self, params, query, body):
return self.nector_sdk_instance.get_store_service().fetch(query or {})
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1leads/post for request signature and other information
def create_leads(self, params, query, body):
return self.nector_sdk_instance.get_lead_service().create(body)
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1leads~1%7Bid%7D/get for request signature and other information
def get_leads(self, params, query, body):
return self.nector_sdk_instance.get_lead_service().get(params.get("id"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1leads~1%7Bid%7D/get for request signature and other information
def get_leads_by_email(self, params, query, body):
return self.nector_sdk_instance.get_lead_service().get_by_email(query.get("email"), query.get("swap_id"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1leads~1%7Bid%7D/get for request signature and other information
def get_leads_by_mobile(self, params, query, body):
return self.nector_sdk_instance.get_lead_service().get_by_mobile(query.get("mobile"), query.get("swap_id"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1leads~1%7Bid%7D/get for request signature and other information
def get_leads_by_customer_id(self, params, query, body):
return self.nector_sdk_instance.get_lead_service().get_by_customer_id(query.get("customer_id"), query.get("swap_id"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1leads~1%7Bid%7D/put for request signature and other information
def save_leads(self, params, query, body):
return self.nector_sdk_instance.get_lead_service().save(params.get("id"), body)
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1notifications~1%7Bid%7D/get for request signature and other information
def get_notifications(self, params, query, body):
return self.nector_sdk_instance.get_notification_service().get(params.get("id"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1notifications/get for request signature and other information
def fetch_notifications(self, params, query, body):
return self.nector_sdk_instance.get_notification_service().fetch(query or {})
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1reviews/post for request signature and other information
def create_reviews(self, params, query, body):
return self.nector_sdk_instance.get_review_service().create(body)
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1reviews~1%7Bid%7D/get for request signature and other information
def get_reviews(self, params, query, body):
return self.nector_sdk_instance.get_review_service().get(params.get("id"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1reviews~1%7Bid%7D/delete for request signature and other information
def delete_reviews(self, params, query, body):
return self.nector_sdk_instance.get_review_service().delete(params.get("id"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1reviews~1%7Bid%7D/put for request signature and other information
def save_reviews(self, params, query, body):
return self.nector_sdk_instance.get_review_service().save(params.get("id"), body)
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1reviews/get for request signature and other information
def fetch_reviews(self, params, query, body):
return self.nector_sdk_instance.get_review_service().fetch(query or {})
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1settings~1%7Bid%7D/get for request signature and other information
def get_subscriptions(self, params, query, body):
return self.nector_sdk_instance.get_subscription_service().get(params.get("id"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1swaps/post for request signature and other information
def create_swaps(self, params, query, body):
return self.nector_sdk_instance.get_swap_service().create(body)
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1swaps~1%7Bid%7D/get for request signature and other information
def get_swaps(self, params, query, body):
return self.nector_sdk_instance.get_swap_service().get(params.get("id"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1swaps~1%7Bid%7D/get for request signature and other information
def get_swaps_by_sku(self, params, query, body):
return self.nector_sdk_instance.get_swap_service().get_by_sku(query.get("sku"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1swaps/get for request signature and other information
def fetch_swaps(self, params, query, body):
return self.nector_sdk_instance.get_swap_service().fetch(query or {})
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1tasks~1%7Bid%7D/get for request signature and other information
def get_tasks(self, params, query, body):
return self.nector_sdk_instance.get_task_service().get(params.get("id"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1tasks~1%7Bid%7D/get for request signature and other information
def get_tasks_by_sku(self, params, query, body):
return self.nector_sdk_instance.get_task_service().get_by_sku(query.get("sku"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1tasks/get for request signature and other information
def fetch_tasks(self, params, query, body):
return self.nector_sdk_instance.get_task_service().fetch(query or {})
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1taskactivities/post for request signature and other information
def create_taskactivities(self, params, query, body):
return self.nector_sdk_instance.get_taskactivity_service().create(body)
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1taskactivities~1%7Bid%7D/get for request signature and other information
def get_taskactivities(self, params, query, body):
return self.nector_sdk_instance.get_taskactivity_service().get(params.get("id"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1taskactivities/get for request signature and other information
def fetch_taskactivities(self, params, query, body):
return self.nector_sdk_instance.get_taskactivity_service().fetch(query or {})
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1surprises~1%7Bid%7D/get for request signature and other information
def get_surprises(self, params, query, body):
return self.nector_sdk_instance.get_surprise_service().get(params.get("id"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1surprises~1%7Bid%7D/get for request signature and other information
def get_surprises_by_sku(self, params, query, body):
return self.nector_sdk_instance.get_surprise_service().get_by_sku(query.get("sku"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1surprises/get for request signature and other information
def fetch_surprises(self, params, query, body):
return self.nector_sdk_instance.get_surprise_service().fetch(query or {})
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1surpriseactivities/post for request signature and other information
def create_surpriseactivities(self, params, query, body):
return self.nector_sdk_instance.get_surpriseactivity_service().create(body)
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1surpriseactivities~1%7Bid%7D/get for request signature and other information
def get_surpriseactivities(self, params, query, body):
return self.nector_sdk_instance.get_surpriseactivity_service().get(params.get("id"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1surpriseactivities/get for request signature and other information
def fetch_surpriseactivities(self, params, query, body):
return self.nector_sdk_instance.get_surpriseactivity_service().fetch(query or {})
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1wallets/post for request signature and other information
def create_wallets(self, params, query, body):
return self.nector_sdk_instance.get_wallet_service().create(body)
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1wallets~1%7Bid%7D/get for request signature and other information
def get_wallets(self, params, query, body):
return self.nector_sdk_instance.get_wallet_service().get(params.get("id"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1wallets/get for request signature and other information
def fetch_wallets(self, params, query, body):
return self.nector_sdk_instance.get_wallet_service().fetch(query or {})
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1wallettransactions/post for request signature and other information
def create_wallettransactions(self, params, query, body):
return self.nector_sdk_instance.get_wallettransaction_service().create(body)
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1wallettransactions~1%7Bid%7D/get for request signature and other information
def get_wallettransactions(self, params, query, body):
return self.nector_sdk_instance.get_wallettransaction_service().get(params.get("id"))
# Please refer https://apidocs.nector.io/docs/api-docs/api_reference_oas3.yaml/paths/~1wallettransactions/get for request signature and other information
def fetch_wallettransactions(self, params, query, body):
return self.nector_sdk_instance.get_wallettransaction_service().fetch(query or {})
| 59.381443 | 167 | 0.757986 | 2,506 | 17,280 | 5.040303 | 0.064645 | 0.059853 | 0.056607 | 0.091442 | 0.918534 | 0.913625 | 0.913625 | 0.904362 | 0.897237 | 0.806904 | 0 | 0.012978 | 0.13044 | 17,280 | 290 | 168 | 59.586207 | 0.827632 | 0.46331 | 0 | 0 | 0 | 0 | 0.029599 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.440945 | false | 0 | 0.023622 | 0.425197 | 0.905512 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 9 |
65de5a49cf131cfb733446348459517430254a25 | 116 | py | Python | nbconvert_config.py | therealhaseeb/Pandas-Tutorial | 20d0653d80c2ed755afe0d03672e610a06ad7e6b | [
"BSD-2-Clause"
] | 183 | 2016-08-24T12:32:07.000Z | 2022-03-26T14:05:04.000Z | nbconvert_config.py | sugurushivakumar10/pandas-tutorial | 8308a6eb7d144fff95a6853930e3be4e8ddb2e0f | [
"BSD-2-Clause"
] | 100 | 2016-12-15T03:44:06.000Z | 2022-03-07T08:14:07.000Z | nbconvert_config.py | sugurushivakumar10/pandas-tutorial | 8308a6eb7d144fff95a6853930e3be4e8ddb2e0f | [
"BSD-2-Clause"
] | 204 | 2016-08-24T14:22:58.000Z | 2022-03-29T15:09:03.000Z | c.Exporter.preprocessors = ['nbtutor.ClearExercisePreprocessor', 'nbconvert.preprocessors.ClearOutputPreprocessor']
| 58 | 115 | 0.853448 | 8 | 116 | 12.375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 116 | 1 | 116 | 116 | 0.883929 | 0 | 0 | 0 | 0 | 0 | 0.689655 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
65ea5fb462856d7408378e65f8c85f606a6b94f1 | 34,572 | py | Python | tests/graphql_test.py | tallstreet/graphql-python | 4d2bcca624bbcb46a9725fef34783e52d15d08a0 | [
"BSD-2-Clause"
] | 6 | 2015-09-03T07:39:06.000Z | 2018-09-17T06:15:21.000Z | tests/graphql_test.py | tallstreet/graphql-parser-python | 4d2bcca624bbcb46a9725fef34783e52d15d08a0 | [
"BSD-2-Clause"
] | null | null | null | tests/graphql_test.py | tallstreet/graphql-parser-python | 4d2bcca624bbcb46a9725fef34783e52d15d08a0 | [
"BSD-2-Clause"
] | null | null | null | import unittest
from graphqlparser import Parser, Operation, Fragment, GraphQLException
class TestGraphQL(unittest.TestCase):
def test_basic(self):
parser = Parser()
doc = parser.parse_query("""query RootQuery{
viewer{
id
}
}
""")
self.assertEqual(doc.definitions_size, 1)
self.assertEqual(doc.definitions[0].operation, "query")
self.assertEqual(doc.definitions[0].name, "RootQuery")
self.assertEqual(doc.definitions[0].variables_size, 0)
self.assertEqual(doc.definitions[0].directives_size, 0)
self.assertEqual(doc.definitions[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments_size, 0)
self.assertEqual(doc.definitions[0].selection_set.fields[0].name, "viewer")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].arguments_size, 0)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].name, "id")
def test_multi_field(self):
parser = Parser()
doc = parser.parse_query("""query RootQuery {
user {
id,
name,
isViewerFriend
}
}
""")
self.assertEqual(doc.definitions_size, 1)
self.assertEqual(doc.definitions[0].operation, "query")
self.assertEqual(doc.definitions[0].name, "RootQuery")
self.assertEqual(doc.definitions[0].variables_size, 0)
self.assertEqual(doc.definitions[0].directives_size, 0)
self.assertEqual(doc.definitions[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments_size, 0)
self.assertEqual(doc.definitions[0].selection_set.fields[0].name, "user")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.selection_set_size, 3)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].arguments_size, 0)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].name, "id")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[1].name, "name")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[2].name, "isViewerFriend")
def test_with_args(self):
parser = Parser()
doc = parser.parse_query("""query RootQuery {
user(id: 12356) {
id,
name,
isViewerFriend
}
}
""")
self.assertEqual(doc.definitions_size, 1)
self.assertEqual(doc.definitions[0].operation, "query")
self.assertEqual(doc.definitions[0].name, "RootQuery")
self.assertEqual(doc.definitions[0].variables_size, 0)
self.assertEqual(doc.definitions[0].directives_size, 0)
self.assertEqual(doc.definitions[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments, {"id": 12356})
self.assertEqual(doc.definitions[0].selection_set.fields[0].name, "user")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.selection_set_size, 3)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].arguments_size, 0)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].name, "id")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[1].name, "name")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[2].name, "isViewerFriend")
def test_with_web_example(self):
parser = Parser()
doc = parser.parse_query("""query RootQuery {
user(id: 3500401) {
id,
name,
isViewerFriend,
profilePicture(size: 50) {
uri,
width,
height
}
}
}
""")
self.assertEqual(doc.definitions_size, 1)
self.assertEqual(doc.definitions[0].operation, "query")
self.assertEqual(doc.definitions[0].name, "RootQuery")
self.assertEqual(doc.definitions[0].variables_size, 0)
self.assertEqual(doc.definitions[0].directives_size, 0)
self.assertEqual(doc.definitions[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments, {"id": 3500401})
self.assertEqual(doc.definitions[0].selection_set.fields[0].name, "user")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.selection_set_size, 4)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].arguments_size, 0)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].name, "id")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[1].name, "name")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[2].name, "isViewerFriend")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[3].name, "profilePicture")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[3].arguments_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[3].arguments, {"size": 50})
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[3].selection_set.selection_set_size, 3)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[3].selection_set.fields[0].name, "uri")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[3].selection_set.fields[1].name, "width")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[3].selection_set.fields[2].name, "height")
def test_with_bool_arg(self):
parser = Parser()
doc = parser.parse_query("""query RootQuery {
user(active: true) {
id
}
}
""")
self.assertEqual(doc.definitions_size, 1)
self.assertEqual(doc.definitions[0].operation, "query")
self.assertEqual(doc.definitions[0].name, "RootQuery")
self.assertEqual(doc.definitions[0].variables_size, 0)
self.assertEqual(doc.definitions[0].directives_size, 0)
self.assertEqual(doc.definitions[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments, {"active": True})
self.assertEqual(doc.definitions[0].selection_set.fields[0].name, "user")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].arguments_size, 0)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].name, "id")
def test_with_float_arg(self):
parser = Parser()
doc = parser.parse_query("""query RootQuery {
user(age: 21.2) {
id
}
}
""")
self.assertEqual(doc.definitions_size, 1)
self.assertEqual(doc.definitions[0].operation, "query")
self.assertEqual(doc.definitions[0].name, "RootQuery")
self.assertEqual(doc.definitions[0].variables_size, 0)
self.assertEqual(doc.definitions[0].directives_size, 0)
self.assertEqual(doc.definitions[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments, {"age": 21.2})
self.assertEqual(doc.definitions[0].selection_set.fields[0].name, "user")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].arguments_size, 0)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].name, "id")
def test_with_string_arg(self):
parser = Parser()
doc = parser.parse_query("""query RootQuery {
user(status: "active") {
id
}
}
""")
self.assertEqual(doc.definitions_size, 1)
self.assertEqual(doc.definitions[0].operation, "query")
self.assertEqual(doc.definitions[0].name, "RootQuery")
self.assertEqual(doc.definitions[0].variables_size, 0)
self.assertEqual(doc.definitions[0].directives_size, 0)
self.assertEqual(doc.definitions[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments, {"status": "active"})
self.assertEqual(doc.definitions[0].selection_set.fields[0].name, "user")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].arguments_size, 0)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].name, "id")
def test_with_enum_arg(self):
parser = Parser()
doc = parser.parse_query("""query RootQuery {
user(status: ACTIVE) {
id
}
}
""")
self.assertEqual(doc.definitions_size, 1)
self.assertEqual(doc.definitions[0].operation, "query")
self.assertEqual(doc.definitions[0].name, "RootQuery")
self.assertEqual(doc.definitions[0].variables_size, 0)
self.assertEqual(doc.definitions[0].directives_size, 0)
self.assertEqual(doc.definitions[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments, {"status": "ACTIVE"})
self.assertEqual(doc.definitions[0].selection_set.fields[0].name, "user")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].arguments_size, 0)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].name, "id")
def test_with_array_arg(self):
parser = Parser()
doc = parser.parse_query("""query RootQuery {
user(status: [1, 2]) {
id
}
}
""")
self.assertEqual(doc.definitions_size, 1)
self.assertEqual(doc.definitions[0].operation, "query")
self.assertEqual(doc.definitions[0].name, "RootQuery")
self.assertEqual(doc.definitions[0].variables_size, 0)
self.assertEqual(doc.definitions[0].directives_size, 0)
self.assertEqual(doc.definitions[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments, {"status": [1, 2]})
self.assertEqual(doc.definitions[0].selection_set.fields[0].name, "user")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].arguments_size, 0)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].name, "id")
def test_with_object_arg(self):
parser = Parser()
doc = parser.parse_query("""query RootQuery {
user(details: { name: "Hello world", score: 1.0 }) {
id
}
}
""")
self.assertEqual(doc.definitions_size, 1)
self.assertEqual(doc.definitions[0].operation, "query")
self.assertEqual(doc.definitions[0].name, "RootQuery")
self.assertEqual(doc.definitions[0].variables_size, 0)
self.assertEqual(doc.definitions[0].directives_size, 0)
self.assertEqual(doc.definitions[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments['details']['name'], "Hello world")
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments['details']['score'], 1.0)
self.assertEqual(doc.definitions[0].selection_set.fields[0].name, "user")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].arguments_size, 0)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].name, "id")
def test_with_variables(self):
parser = Parser()
doc = parser.parse_query("""query getZuckProfile($devicePicSize: Int) {
user(id: 4) {
id
name
profilePic(size: $devicePicSize)
}
}
""")
self.assertEqual(doc.definitions_size, 1)
self.assertEqual(doc.definitions[0].operation, "query")
self.assertEqual(doc.definitions[0].name, "getZuckProfile")
self.assertEqual(doc.definitions[0].variables_size, 1)
self.assertEqual(doc.definitions[0].definitions[0].variable.value, "devicePicSize")
self.assertEqual(doc.definitions[0].definitions[0].type, "Int")
self.assertEqual(doc.definitions[0].directives_size, 0)
self.assertEqual(doc.definitions[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments["id"], 4)
self.assertEqual(doc.definitions[0].selection_set.fields[0].name, "user")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.selection_set_size, 3)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].arguments_size, 0)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].name, "id")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[1].arguments_size, 0)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[1].name, "name")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[2].arguments_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[2].name, "profilePic")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[2].arguments["size"].value, "devicePicSize")
def test_with_variables(self):
parser = Parser()
doc = parser.parse_query("""query getZuckProfile($devicePicSize: Int) {
user(id: 4) {
id
name
profilePic(size: $devicePicSize)
}
}
""")
self.assertEqual(doc.definitions_size, 1)
self.assertEqual(doc.definitions[0].operation, "query")
self.assertEqual(doc.definitions[0].name, "getZuckProfile")
self.assertEqual(doc.definitions[0].variables_size, 1)
self.assertEqual(doc.definitions[0].definitions[0].variable.value, "devicePicSize")
self.assertEqual(doc.definitions[0].definitions[0].type, "Int")
self.assertEqual(doc.definitions[0].directives_size, 0)
self.assertEqual(doc.definitions[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments["id"], 4)
self.assertEqual(doc.definitions[0].selection_set.fields[0].name, "user")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.selection_set_size, 3)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].arguments_size, 0)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].name, "id")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[1].arguments_size, 0)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[1].name, "name")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[2].arguments_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[2].name, "profilePic")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[2].arguments["size"], "devicePicSize")
def test_with_fragments(self):
parser = Parser()
doc = parser.parse_query("""query withFragments {
user(id: 4) {
friends(first: 10) {
...friendFields
}
mutualFriends(first: 10) {
...friendFields
}
}
}
fragment friendFields on User {
id
name
profilePic(size: 50)
}
""")
self.assertEqual(doc.definitions_size, 2)
self.assertIsInstance(doc.definitions[0], Operation)
self.assertEqual(doc.definitions[0].operation, "query")
self.assertEqual(doc.definitions[0].name, "withFragments")
self.assertEqual(doc.definitions[0].variables_size, 0)
self.assertEqual(doc.definitions[0].directives_size, 0)
self.assertEqual(doc.definitions[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments["id"], 4)
self.assertEqual(doc.definitions[0].selection_set.fields[0].name, "user")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.selection_set_size, 2)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].arguments_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].arguments, {"first": 10})
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].name, "friends")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].selection_set.frags[0], "friendFields")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[1].arguments_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].arguments, {"first": 10})
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[1].name, "mutualFriends")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[1].selection_set.frags[0], "friendFields")
self.assertIsInstance(doc.definitions[1], Fragment)
self.assertEqual(doc.definitions[1].name, "friendFields")
self.assertEqual(doc.definitions[1].selection_set.selection_set_size, 3)
self.assertEqual(doc.definitions[1].selection_set.fields[0].name, "id")
self.assertEqual(doc.definitions[1].selection_set.fields[1].name, "name")
self.assertEqual(doc.definitions[1].selection_set.fields[2].name, "profilePic")
self.assertEqual(doc.definitions[1].selection_set.fields[2].arguments_size, 1)
self.assertEqual(doc.definitions[1].selection_set.fields[2].arguments, {"size": 50})
def test_with_nested_fragments(self):
parser = Parser()
doc = parser.parse_query("""query withNestedFragments {
user(id: 4) {
friends(first: 10) {
...friendFields
}
mutualFriends(first: 10) {
...friendFields
}
}
}
fragment friendFields on User {
id
name
...standardProfilePic
}
fragment standardProfilePic on User {
profilePic(size: 50)
}
""")
self.assertEqual(doc.definitions_size, 3)
self.assertIsInstance(doc.definitions[0], Operation)
self.assertEqual(doc.definitions[0].operation, "query")
self.assertEqual(doc.definitions[0].name, "withNestedFragments")
self.assertEqual(doc.definitions[0].variables_size, 0)
self.assertEqual(doc.definitions[0].directives_size, 0)
self.assertEqual(doc.definitions[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments["id"], 4)
self.assertEqual(doc.definitions[0].selection_set.fields[0].name, "user")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.selection_set_size, 2)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].arguments_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].arguments, {"first": 10})
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].name, "friends")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].selection_set.frags[0], "friendFields")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[1].arguments_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].arguments, {"first": 10})
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[1].name, "mutualFriends")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[1].selection_set.frags[0], "friendFields")
self.assertIsInstance(doc.definitions[1], Fragment)
self.assertEqual(doc.definitions[1].name, "friendFields")
self.assertEqual(doc.definitions[1].selection_set.selection_set_size, 3)
self.assertEqual(doc.definitions[1].selection_set.fields[0].name, "id")
self.assertEqual(doc.definitions[1].selection_set.fields[1].name, "name")
self.assertEqual(doc.definitions[1].selection_set.frags[0], "standardProfilePic")
self.assertIsInstance(doc.definitions[2], Fragment)
self.assertEqual(doc.definitions[2].name, "standardProfilePic")
self.assertEqual(doc.definitions[2].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[2].selection_set.fields[0].name, "profilePic")
def test_with_type_conditions(self):
parser = Parser()
doc = parser.parse_query("""query FragmentTyping {
profiles(handles: ["zuck", "cocacola"]) {
handle
...userFragment
...pageFragment
}
}
fragment userFragment on User {
friends {
count
}
}
fragment pageFragment on Page {
likers {
count
}
}
""")
self.assertEqual(doc.definitions_size, 3)
self.assertIsInstance(doc.definitions[0], Operation)
self.assertEqual(doc.definitions[0].operation, "query")
self.assertEqual(doc.definitions[0].name, "FragmentTyping")
self.assertEqual(doc.definitions[0].variables_size, 0)
self.assertEqual(doc.definitions[0].directives_size, 0)
self.assertEqual(doc.definitions[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments["handles"], ["zuck", "cocacola"])
self.assertEqual(doc.definitions[0].selection_set.fields[0].name, "profiles")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.selection_set_size, 3)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].arguments_size, 0)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].name, "handle")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.frags[0], "userFragment")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.frags[1], "pageFragment")
self.assertIsInstance(doc.definitions[1], Fragment)
self.assertEqual(doc.definitions[1].name, "userFragment")
self.assertEqual(doc.definitions[1].condition, "User")
self.assertEqual(doc.definitions[1].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[1].selection_set.fields[0].name, "friends")
self.assertIsInstance(doc.definitions[2], Fragment)
self.assertEqual(doc.definitions[2].name, "pageFragment")
self.assertEqual(doc.definitions[2].condition, "Page")
self.assertEqual(doc.definitions[2].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[2].selection_set.fields[0].name, "likers")
def test_with_inline_fragments(self):
parser = Parser()
doc = parser.parse_query("""query inlineFragmentTyping {
profiles(handles: ["zuck", "cocacola"]) {
handle
... on User {
friends {
count
}
}
... on Page {
likers {
count
}
}
}
}
""")
self.assertEqual(doc.definitions_size, 1)
self.assertIsInstance(doc.definitions[0], Operation)
self.assertEqual(doc.definitions[0].operation, "query")
self.assertEqual(doc.definitions[0].name, "inlineFragmentTyping")
self.assertEqual(doc.definitions[0].variables_size, 0)
self.assertEqual(doc.definitions[0].directives_size, 0)
self.assertEqual(doc.definitions[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments["handles"], ["zuck", "cocacola"])
self.assertEqual(doc.definitions[0].selection_set.fields[0].name, "profiles")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.selection_set_size, 3)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].arguments_size, 0)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].name, "handle")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[1].condition, "User")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[1].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[1].selection_set.fields[0].name, "friends")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[1].selection_set.fields[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[1].selection_set.fields[0].selection_set.fields[0].name, "count")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[2].condition, "Page")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[2].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[2].selection_set.fields[0].name, "likers")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[2].selection_set.fields[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[2].selection_set.fields[0].selection_set.fields[0].name, "count")
def test_with_directives(self):
parser = Parser()
doc = parser.parse_query("""query myQuery($someTest: Boolean) {
experimentalField @skip(if: $someTest)
}
""")
self.assertEqual(doc.definitions_size, 1)
self.assertIsInstance(doc.definitions[0], Operation)
self.assertEqual(doc.definitions[0].operation, "query")
self.assertEqual(doc.definitions[0].name, "myQuery")
self.assertEqual(doc.definitions[0].variables_size, 1)
self.assertEqual(doc.definitions[0].definitions[0].variable.value, "someTest")
self.assertEqual(doc.definitions[0].definitions[0].type, "Boolean")
self.assertEqual(doc.definitions[0].directives_size, 0)
self.assertEqual(doc.definitions[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments_size, 0)
self.assertEqual(doc.definitions[0].selection_set.fields[0].name, "experimentalField")
self.assertEqual(doc.definitions[0].selection_set.fields[0].directives_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].directives[0].name, "skip")
self.assertEqual(doc.definitions[0].selection_set.fields[0].directives[0].arguments["if"], "someTest")
def test_with_args_default(self):
parser = Parser()
doc = parser.parse_query("""query myQuery($someTest: Boolean = 1) {
experimentalField @skip(if: $someTest)
}
""")
self.assertEqual(doc.definitions_size, 1)
self.assertIsInstance(doc.definitions[0], Operation)
self.assertEqual(doc.definitions[0].operation, "query")
self.assertEqual(doc.definitions[0].name, "myQuery")
self.assertEqual(doc.definitions[0].variables_size, 1)
self.assertEqual(doc.definitions[0].definitions[0].variable.value, "someTest")
self.assertEqual(doc.definitions[0].definitions[0].type, "Boolean")
self.assertEqual(doc.definitions[0].definitions[0].default_value, True)
self.assertEqual(doc.definitions[0].directives_size, 0)
self.assertEqual(doc.definitions[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments_size, 0)
self.assertEqual(doc.definitions[0].selection_set.fields[0].name, "experimentalField")
self.assertEqual(doc.definitions[0].selection_set.fields[0].directives_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].directives[0].name, "skip")
self.assertEqual(doc.definitions[0].selection_set.fields[0].directives[0].arguments["if"], "someTest")
def test_kitchen_sink(self):
parser = Parser()
doc = parser.parse_query("""
query queryName($foo: ComplexType, $site: Site) {
whoever123is: node(id: [123, 456]) {
id ,
... on User @defer {
field2 {
id ,
alias: field1(first:10, after:$foo,) @include(if: $foo) {
id,
...frag
}
}
}
}
}
""")
self.assertEqual(doc.definitions_size, 1)
self.assertEqual(doc.definitions[0].operation, "query")
self.assertEqual(doc.definitions[0].name, "queryName")
self.assertEqual(doc.definitions[0].variables_size, 2)
self.assertEqual(doc.definitions[0].definitions[0].variable.value, "foo")
self.assertEqual(doc.definitions[0].definitions[0].type, "ComplexType")
self.assertEqual(doc.definitions[0].directives_size, 0)
self.assertEqual(doc.definitions[0].selection_set.selection_set_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments_size, 1)
self.assertEqual(doc.definitions[0].selection_set.fields[0].arguments["id"], [123, 456])
self.assertEqual(doc.definitions[0].selection_set.fields[0].name, "node")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.selection_set_size, 2)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].arguments_size, 0)
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[0].name, "id")
self.assertEqual(doc.definitions[0].selection_set.fields[0].selection_set.fields[1].condition, "User")
def test_mutation(self):
parser = Parser()
doc = parser.parse_query("""
mutation likeStory {
like(story: 123) @defer {
story {
id
}
}
}
""")
self.assertEqual(doc.definitions_size, 1)
self.assertEqual(doc.definitions[0].operation, "mutation")
def test_raises_exceptions(self):
parser = Parser()
with self.assertRaises(GraphQLException):
doc = parser.parse_query("""
abcdef
""")
if __name__ == '__main__':
unittest.main()
| 57.812709 | 154 | 0.671324 | 4,148 | 34,572 | 5.450579 | 0.032546 | 0.19479 | 0.247601 | 0.398912 | 0.945287 | 0.937812 | 0.93737 | 0.930824 | 0.922066 | 0.909417 | 0 | 0.029833 | 0.190414 | 34,572 | 597 | 155 | 57.909548 | 0.777948 | 0 | 0 | 0.681495 | 0 | 0.001779 | 0.160101 | 0.002343 | 0 | 0 | 0 | 0 | 0.574733 | 1 | 0.037367 | false | 0 | 0.003559 | 0 | 0.042705 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 9 |
b859f8fbd1edaff90539ca5faaf40077a268d932 | 18,409 | py | Python | art2.py | MikeBeradino/HANG_Glitch_Gallery | ca32b27dcada799e2f00819fd630351fb8702c6d | [
"MIT"
] | null | null | null | art2.py | MikeBeradino/HANG_Glitch_Gallery | ca32b27dcada799e2f00819fd630351fb8702c6d | [
"MIT"
] | null | null | null | art2.py | MikeBeradino/HANG_Glitch_Gallery | ca32b27dcada799e2f00819fd630351fb8702c6d | [
"MIT"
] | null | null | null | class ArtObj23:
def __init__(self):
print ' ___ ___'
print ' / ____/ '
print ' / / __ '
print ' / | .. | '
print ' ___/| | ___/ '
print ' | |_| |_| '
print ' | |/|__| | '
print ' | |__| | '
print ' | |__| |_/ / '
print ' | @ | | @ || @ | '
print ' | |~~| || | -Hamilton Furtado-'
print ' ooo ooo ooo '
class ArtObj24:
def __init__(self):
print ' :::::::::::`` ``::` `:::::: `:::::::::::::`.:::::::::::::::'
print ' :::::::::, :. : : :::::: :::::::::::.:::,:::::::::::::::'
print ' :::::::::: : :::. :::::::::::::..::::, :::: : :::::::'
print ' :::::::: :,: "::, ,"::::::::::::: :, ,, ,:::::::'
print ' :, : , : :: .::::::::, , .:'
print ' : : .:: .::. ::::, :::'
print ' :. .,. ::: ,:::::::::::.: , .:...::::'
print ' :::::::. , .::::::: ,,, :: :::::.'
print ' :::::::: ,::::::::: ,,, , , .:::::::::'
print ' ::::::::. :::::::::::: ,,:,: , : ,,, :::::::::'
print ' :::::::::: ::::::::::::, :::::::::::::'
print ' : .::::::::. .:,,:::::::: , :: : ,::.::::::::::::'
print ' :::::::::::::::. , ,::::::. , , :::::.:.:.:.:.:::::::::::::'
print ' :::::::::::::::: : ,::::::::: , ,:::::::::: : :.:,::::::::::'
print ' ::::::::::::::::: , ::::::::: . :,::::::::::::::, ,:::::::::'
print ' ::::::::::::::::::,, :::::::::: :, : ,:::::::::::, ,:::::::'
print ' :::::::::::::::::, .:::::::::::: :::::::::::::::: :::::::'
print ' :::::::::::::::::. .::::::::::::::::::::::::::::::::::::.,::::::::'
print ' :::::::::::::::::, :::::::::::::::::::::::::::::::::::::::::::::::'
print ' ::::::::::::::::::.:::::::::::::::::::::::::::::::::::::::::::::::'
class ArtObj25:
def __init__(self):
print ' * * . * // * . *'
print ' * . .. * //. * * * .'
print '.. * ___o |==// . * *'
print ' / / //| * . .. * *'
print 'ejm96 / / | '
print ' ` ` ` `'
class ArtObj26:
def __init__(self):
print ' ,--._______,-.'
print ' , `, ` , . ,_`-.'
print ' / / , ` , _` ``. | ) `-..'
print ' (, `; `""`/ `"`-._ ` / ______ '
print ' : ,o.-`- ,o. ) ` - ` `---.))'
print ' : , d8b ^-. `| `. ` `.'
print ' |/ __:_ `. | , ` ` '
print ' | ( ,-.`-. ; ` ; ` : ;'
print ' | | , `. / ; : '
print ' ;- ``:::._,`.__), ` : ;'
print ' / , `- `-- ; |'
print ' / ` , |'
print ' ( ` : : , |'
print ' `. : : : , ` :'
print ' `|-- ` , ` ,- ` :-.- `;'
print ' : |`--.______; | : :'
print ' : / | | | '
print ' | ; ; ; / ;'
print ' _/-- ` | -hrr- :`-- / _:_:_|'
print ' , `, `, ` | |___ '
print ' `^._,-- ` / , , .)'
print ' `-._,- `'
class ArtObj27:
def __init__(self):
print ' ,s$$$Ss ,'
print ' ,8, $$$ , _ , , , ,sS$$$$$" , , ,, ,;'
print ' o , ,@ , , 88 = ,$"$ ` ` , ,sS$$$$$$$$$$$$s , _;" `'
print ' @@@ ,@@@ , ,88 , ` ` ""l , ,sS$$ , ,_ ,sS$$$$$$$$$$$$S `" `'
print ' ,@@@q@@ ,8888o , ,s$$$$$$$$$$$$$$$$$$$$$ `'
print ' ,:`@@@@33333 , ,>$$$$$$$$$$$$$$$$$$$$ `'
print ' ,: `@@@@333 ` , ,>$$$$$$$$$$$$$$$$$$$ `'
print ' : `@@333 , ` ,, s$$$$$$$$$$$$$$$$$ `'
print ' : `@33 $$ S ,s$$$$$$$$$$$$$$$$$ `'
print ' ,S `Y , ,` ,"$ ` `$$$$$$$$$$$$$$'
print ' $s , , ,S$s, , ,`$$$$$$$$$$$$ ,'
print ' $s ,, ,s ,$$$$,,sS$s ,$$$$$$$$$$$$$ ,'
print ' /` ,`$$$$$dN ,ssS$$ ``$$$$$$$$$$$$$$$$$$$$$$$ ,'
print ' ///| `S$$S$ ` `$$$$$$$$$$$$$$$$$$$$$$ ,'
print ' / / $$$$$$$$$$$$$$$$$$$$$ ,'
print ' `$$$$$$$$$$$$$$$$$$$$$s ,'
print ' $$$" ` ,?T$$$$$$$'
print ' ,$ ` , , , ?$$#'
print ' ! -=S$$$$$s'
print ' ,! -=s$$ ` `$=-_ :'
print ' , ,$$$ ` `$, ,|'
print ' , ,$$$ ` , ,'
print ' , , ,$$$ `'
print ' ,s$$$ ` `s ,'
print ' , ,s$$$$ ` $s , , ,$s'
print ' , ,s$$$$ ` `$s=s$$$'
print ' ,$$$$ ` , $$s'
print ' ` " ,$$ ` $$$'
print ' , s$$ ` , $$$s'
print ' ` ,s , ,s$ ` ,s ,$$'
print ' ,s$$$ ` "s$$$,'
print ' - $$$ ` ,$$$$ ,'
print ' ," ,s$$s ,$ `, `,$ ,'
print ' $s ,s$$$$S , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , $$ , , , ,s$s , , , , , ,'
print ' `"" ` ` ```""""""""""""""" `"" ``'
print ' [banksy]dp'
class ArtObj28:
def __init__(self):
print ' ,_-=(!7(7/zs_.'
print ' .= ` ` .`/,/!(=)Zm.'
print ' .._,,._.. ,-`- `, ` -` -` 7//WW.'
print ' ,v=~/.-,- - -!|V-s.)iT-|s| -. ` `///mK$.'
print ' v!`i!-.e]-g`bT/i(/[=.Z/m)K(YNYi.. /-]i44M.'
print ' v`/,`|v]-DvLcfZ/eV/iDLN D/ZK@$8W[Z.. `/d!Z8m'
print ' //,c (2(X/NYNY8]ZZ/bZd ()/ 7WY$WKKW) - `|(][$4.'
print ' , i c(e)WX@WKKZKDKWMZ8(b5/ZK8]Z7$ffVM, -.Y!bNMi'
print ' /-iit5N)KWG$$8$$$$W8$ZWM(8YZvD)XN(@. [ ]!/GXW['
print ' / ))G8 NMN$W$$$$$$$$$$8KK@WZKYK*ZG5KMi,- vi[NZGM['
print ' i !(44Y8K$8$$$**~YZYZ@$$$$$4KWZ/PKN)ZDZ7 c=//WZK$!'
print ', v YtMZW8W$$f`,`.t/bNZZK$$W$$ZXb*K(K5DZ -c /KM48'
print '-|c5PbM4DDW$f v./c [tMY8W$PMW$D@KW)Gbf -/(=ZZKM8['
print '2(N8YXWK85@K - `c|K4/KKK$@ V$@@WD8e~ .//ct)8ZK$8`'
print '=)b$]Nd)@KM[ ! ` cG!iWYK$$| !M@KZf -c ))ZDKW$`'
print 'YYKWZGNM4/Pb `-VscP4]b@W$ `Mf` -L ///KM($W!'
print '!KKW4ZK/W7)Z. `/cttbY)DKW$ -` . `, v)K(5KW$$f'
print ' `W)KWKZZg)Z2/,!/L(-DYYb54$ ,,`, - -/v(((KK5WW$f'
print ' M4NDDKZZ(e!/ 7vNTtZd)8 Mi! -,-/i-v((tKNGN$W$$'
print ' `M8M88(Zd))///((|D tDY KK-`/-i(=)KtNNN@W$$$@$['
print ' !8$@KW5KKN4///s( Pd!ROBY8/=2(/4ZdzKD$K$$$M8@$$'
print ' `$$$W$dGNtPK(c /2 [Z(ttNYZ2NZW8W8K$$$$YKM$M$$.'
print ' *$$W$GW5@/$!e]_tZdY()v)ZXMZW$W$$$*5Y]K$ZK$8['
print ' `*$$$$8$8WK )[/ZmZ/Zi]!/M$$$$@f Y/NNMK$$!'
print ' `VM$$$$W$WN5Z/Gt5/b)((cV@f` - |cZbMKW$$|'
print ' `V*M$$$WZ/ZG t5((+)L `-,,/ -)X(NWW$$'
print ' `~`MZ/DZGNZG5((( , ,t Z)KW$@'
print ' `M8K$8GN8 5(5///]i!v K)85W$$f'
print ' YWWKKKKWZ8G54X/GGMeK@WM8$@'
print ' !M8$8$48WG@KWYbW$WWW$$$@'
print ' VM$WKWK$8K$$8WWWW$$$@`'
print ' ~*$$$$$$W$$$$$$$@~'
print ' ~*MM$$$$$$@f`'
print ' ` ` ` ` `'
class ArtObj29:
def __init__(self):
print ' , ,'
print ' $, $, ,'
print ' "ss.$ss. .s`'
print ' , .ss$$$$$$$$$$s,'
print ' $. s$$$$$$$$$$$$$$`$$Ss'
print ' "$$$$$$$$$$$$$$$$$$o$$$ '
print ' s$$$$$$$$$$$$$$$$$$$$$$$$s, ,s'
print ' s$$$$$$$$$"$$$$$$""""$$$$$$"$$$$$,'
print ' s$$$$$$$$$$s""$$$$ssssss"$$$$$$$$"'
print ' s$$$$$$$$$$` `"""ss"$"$s""'
print ' s$$$$$$$$$$, `"""""$ .s$$s'
print ' s$$$$$$$$$$$$s,... `s$$` `'
print ' `ssss$$$$$$$$$$$$$$$$$$$$####s. .$$"$. , s-'
print ' `""""$$$$$$$$$$$$$$$$$$$$#####$$$$$$" $.$`'
print ' "$$$$$$$$$$$$$$$$$$$$$####s"" .$$$|'
print ' "$$$$$$$$$$$$$$$$$$$$$$$$##s .$$" $'
print ' $$""$$$$$$$$$$$$$$$$$$$$$$$$$$$$$" `'
print ' $$" "$"$$$$$$$$$$$$$$$$$$$$S""""`'
print ' , ," ` $$$$$$$$$$$$$$$$####s'
print ' $. .s$$$$$$$$$$$$$$$$$####"'
print ' , "$s. ..ssS$$$$$$$$$$$$$$$$$$$####"'
print ' $ .$$$S$$$$$$$$$$$$$$$$$$$$$$$$#####"'
print ' Ss ..sS$$$$$$$$$$$$$$$$$$$$$$$$$$$######""'
print ' "$$sS$$$$$$$$$$$$$$$$$$$$$$$$$$$########"'
print ' , s$$$$$$$$$$$$$$$$$$$$$$$$#########""`'
print ' $ s$$$$$$$$$$$$$$$$$$$$$#######""` s` ,'
print ' $$..$$$$$$$$$$$$$$$$$$######"` ....,$$.... ,$'
print ' "$$$$$$$$$$$$$$$######"` , .sS$$$$$$$$$$$$$$$$s$$'
print ' $$$$$$$$$$$$#####" $, .s$$$$$$$$$$$$$$$$$$$$$$$$s.'
print ' ) $$$$$$$$$$$#####` `$$$$$$$$$###########$$$$$$$$$$$.'
print ' (( $$$$$$$$$$$##### $$$$$$$$###" "####$$$$$$$$$$'
print ' ) $$$$$$$$$$$$####. $$$$$$###" "###$$$$$$$$$ s`'
print ' ( ) $$$$$$$$$$$$$####. $$$$$###" ####$$$$$$$$s$$`'
print ' ) ( ( $$"$$$$$$$$$$$#####.$$$$$###` -Tua Xiong .###$$$$$$$$$$"'
print ' ( ) ) _,$" $$$$$$$$$$$$######.$$##` .###$$$$$$$$$$'
print ' ) ( ( . "$$$$$$$$$$$$$#######,,,. ..####$$$$$$$$$$$"'
print '( )$ ) ) ,$$$$$$$$$$$$$$$$$$####################$$$$$$$$$$$"'
print '( ($$ ( _sS" `"$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$S$$,'
print ' ) )$$$s ) ) . . `$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$"` `$$'
print ' ( $$$Ss/ .$, .$,,s$$$$$$##S$$$$$$$$$$$$$$$$$$$$$$$$S"" `'
print ' )_$$$$$$$$$$$$$$$$$$$$$$$##" $$ `$$. `$$.'
print ' `"S$$$$$$$$$$$$$$$$$#" $ `$ `$'
print ' `"""""""""""""` ` ` `'
class ArtObj30:
def __init__(self):
print ', , , , , , , , , + ,'
print ' , , : , ,, :, ,___---------___,'
print ' , , , , :,:, _",^ ,^ ^, `,, :"-_, ,'
print ' , : , , ,:,,/: , ,^ :,: ,'
print ' , , :: +, :,:/: , , , , , ,: '
print ' , : , , _ :::/: , ^ , , ,: '
print ' ,, , , , - : :,:,/, , ,: '
print ' , , , :,,|: , , ^, ,:|'
print ' , , : : ,,|| , , , !:|'
print ' , , , , ::, :: ( , :)/'
print ' , , : , : ,:,|, ###### ,#######::|'
print ' :,, , :- : ,: ::|,####### ,,########:|'
print ' , , , ,, , ,, : ######## :######## :/'
print ' , ,+ :: : -,: ######## , ########,:/'
print ' , ,+ , , , , :,: , ####### #######,,:/'
print ' :: , , , , ::,:,,:, , , ,,:/'
print ' , , , ,, : -::::, , | | , ,:/'
print ' , : , , ,-:,":,::, ,,:/'
print ' , -, , , , ,: ,:::,:, , ,:/'
print ', , , : : ,,,,::_:,,: ___, :/'
print ' , , , ,:, ,, , ,: :,:,: :/'
print ' + , , : , ::, :,:, ,:,| ,:/|'
print ' , + , , ,,,:: ,,| --,:|'
print ', , , , , , , ,,, :,,:,,"( ,,)"'
print ' , , , : , ,: ::/ , ,:: '
class ArtObj31:
def __init__(self):
print ' .ed"""" """$$$$be.'
print ' -" ^""**$$$e.'
print ' ." `$$$c'
print ' / "4$$b'
print ' d 3 $$$$'
print ' $ * .$$$$$$'
print ' .$ ^c $$$$$e$$$$$$$$.'
print ' d$L 4. 4$$$$$$$$$$$$$$b'
print ' $$$$b ^ceeeee. 4$$ECL.F*$$$$$$$'
print ' e$""=. $$$$P d$$$$F $ $$$$$$$$$- $$$$$$'
print ' z$$b. ^c 3$$$F "$$$$b $"$$$$$$$ $$$$*" .=""$c'
print '4$$$$L $$P" "$$b .$ $$$$$...e$$ .= e$$$.'
print '^*$$$$$c $.. *c .. $$ 3$$$$$$$$$$eF zP d$$$$$'
print ' "**$$$ec " $ce"" $$$ $$$$$$$$$$* .r" =$$$$P""'
print ' "*$b. "c *$e. *** d$$$$$"L$$ .d" e$$***"'
print ' ^*$$c ^$c $$$ 4J$$$$$$ $$$ .e*".eeP"'
print ' "$$$$$$"`$=e....$*$$**$cz$$" "..d$*"'
print ' "*$$$ *=$4.$ L L$ P3$$$F $$$P"'
print ' "$ "$*ebJLzb$e$$$$$b $P"'
print ' $.. 4$$$$$$$$$$ "'
print ' $$$e z$$$$$$$$$$$'
print ' "*$c "$$$$$$$P"'
print ' ."""*$$$$$$$$bc'
print ' .-" .$***$$$"""*e.'
print ' .-" .e$" "*$c ^*b.'
print ' .=*"""" .e$*" "*bc "*$e..'
print ' .$" .z*" ^*$e. "*****e.'
print ' $$ee$c .d" "*$. 3.'
print ' ^*$E")$..$" * .ee==d$'
print ' $.d$$$* * J$$$e*'
print ' """"" "$$$" Gilo95`'
class ArtObj32:
def __init__(self):
print ' ______'
print ' .-" "-.'
print ' / '
print ' | |'
print ' |, .-. .-. ,|'
print ' | )(__/ __)( |'
print ' |/ / |'
print ' (@_ (_ ^^ _)'
print ' _ ) _______ __|IIIIII|__/__________________________'
print '(_)@8@8(}<________|- IIIIII/-|___________________________>'
print ' )_/ /'
print ' (@ `--------` jgs'
class ArtObj33:
def __init__(self):
print ' ___ ,`'
print ' _~"| ~~ ~, ,~`'
print ' / : / / _`'
print ' ?"" ; ` ,` )``'
print ' / ~-_ / dp , , |'
print ' ,$"": ,? |: , , , |'
print ' $ `, , |:, , ,, , , /'
print ' / `, `,: : :| : ,, , , _/'
print ' / ~~~::, ,:: ::, , ,::,:, ,,`~'
print ' ::,,, ``,, : : : " , :, , ~~| _____'
print ' (:::, ,, `,: ,:,::, : , : "/__-"" --'
print ' )"",> --~~~__, ::::*## :,:,:) : ,:` ~ '
print ' |,,::` >> ####### `,: ,` , ,` ?'
print ' _,___ :``> ######### ::,", ~ ,,~`" |,'
print ' _">~____~~::, #* )#### : ,,~ , )'
print ' /:,:``;,:::_- _-#####*:;: ::>,, }'
print ' o__o___q~_-" _-"###### ,:,`` ,,~~ ~ |'
print ' ( o() &@&__--" *::####::" ";,, ~~,,,::,)'
print ' (o& O& O?S),` ,:`:::*: : ~~~,,, "/'
print ' oS $@&>/ ,:` ::::: :, ,~ "`, {'
print ' ~*~~"" __:/ "::::,,L ~ ``/'
print ' |::` /##) :`::::: , $'
print ' :; , |#/ : :::::::-___ -"'
print ' ::::: | : ::::::::::: ----"'
print ' ::::::|:, : :::::::::::|'
print ' ::::::|` , : ::::::::::::|'
print ' -::::/ :,`::::::::::::/'
print ' ~__/ , ;:,::::::::::_/ Eric Berger'
print ' ::,::::::::::::/'
print ' --_;::::::_-~/'
print ' """"""'
| 57.34891 | 124 | 0.15764 | 822 | 18,409 | 3.201946 | 0.262774 | 0.478723 | 0.558511 | 0.6231 | 0.391717 | 0.37804 | 0.300912 | 0.257979 | 0.230623 | 0.222644 | 0 | 0.017676 | 0.508284 | 18,409 | 320 | 125 | 57.528125 | 0.273089 | 0 | 0 | 0.044218 | 0 | 0.037415 | 0.753247 | 0.108732 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.92517 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 8 |
b2821dc422c1f991d0e59852bb4e6efdd8787c78 | 62 | py | Python | keyboards/__init__.py | kovalev-vxx/A-Q_teleBot | 2184237cc7811aa44caa31281d932a78f682aa9e | [
"MIT"
] | null | null | null | keyboards/__init__.py | kovalev-vxx/A-Q_teleBot | 2184237cc7811aa44caa31281d932a78f682aa9e | [
"MIT"
] | null | null | null | keyboards/__init__.py | kovalev-vxx/A-Q_teleBot | 2184237cc7811aa44caa31281d932a78f682aa9e | [
"MIT"
] | null | null | null | from keyboards import admin_kb
from keyboards import client_kb | 31 | 31 | 0.887097 | 10 | 62 | 5.3 | 0.6 | 0.490566 | 0.716981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112903 | 62 | 2 | 31 | 31 | 0.963636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
b283b5cab8143b30698b7f8c23d64346a6327b13 | 122 | py | Python | ngocbienml/visualization/__init__.py | ngocbien/ngocbienml | dcaa4707f5b513153e7be20538923e741894b2a2 | [
"MIT"
] | 1 | 2021-06-04T06:50:38.000Z | 2021-06-04T06:50:38.000Z | ngocbienml/visualization/__init__.py | ngocbien/ngocbienml | dcaa4707f5b513153e7be20538923e741894b2a2 | [
"MIT"
] | null | null | null | ngocbienml/visualization/__init__.py | ngocbien/ngocbienml | dcaa4707f5b513153e7be20538923e741894b2a2 | [
"MIT"
] | null | null | null | from .plot import Plot, plot_importance_Kfold, plot_aucKfold
__all__ = ["Plot", "plot_importance_Kfold", "plot_aucKfold"] | 61 | 61 | 0.795082 | 16 | 122 | 5.4375 | 0.4375 | 0.183908 | 0.413793 | 0.528736 | 0.804598 | 0.804598 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090164 | 122 | 2 | 62 | 61 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0.311475 | 0.172131 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 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 | 8 |
b2894d475ace6037062550f2fd6d9af359901958 | 19,674 | py | Python | smt/examples/run_examples.py | meliani09/smt | af729143be09b012257bf81dcd3e2c8c40f65c96 | [
"BSD-3-Clause"
] | 1 | 2020-07-01T09:54:46.000Z | 2020-07-01T09:54:46.000Z | smt/examples/run_examples.py | yuhaibo2017/smt | ab3bda1e38ca3a785dfc0ed692f1437bf7e78bd3 | [
"BSD-3-Clause"
] | null | null | null | smt/examples/run_examples.py | yuhaibo2017/smt | ab3bda1e38ca3a785dfc0ed692f1437bf7e78bd3 | [
"BSD-3-Clause"
] | 1 | 2018-11-20T09:01:59.000Z | 2018-11-20T09:01:59.000Z | '''
Author: Dr. Mohamed A. Bouhlel <mbouhlel@umich>
Dr. John T. Hwang <hwangjt@umich.edu>
This package is distributed under New BSD license.
'''
from __future__ import print_function, division
import numpy as np
from scipy import linalg
from smt.utils import compute_rms_error
from smt.problems import Sphere, NdimRobotArm
from smt.sampling_methods import LHS
from smt.surrogate_models import LS, QP, KPLS, KRG, KPLSK, GEKPLS
try:
from smt.surrogate_models import IDW, RBF, RMTC, RMTB
compiled_available = True
except:
compiled_available = False
try:
import matplotlib.pyplot as plt
plot_status = True
except:
plot_status = False
########### Initialization of the problem, construction of the training and validation points
ndim = 10
ndoe = int(10*ndim)
# Define the function
fun = Sphere(ndim = ndim)
# Construction of the DOE
sampling = LHS(xlimits=fun.xlimits,criterion = 'm')
xt = sampling(ndoe)
# Compute the output
yt = fun(xt)
# Compute the gradient
for i in range(ndim):
yd = fun(xt,kx=i)
yt = np.concatenate((yt,yd),axis=1)
# Construction of the validation points
ntest = 500
sampling = LHS(xlimits=fun.xlimits)
xtest = sampling(ntest)
ytest = fun(xtest)
ydtest = np.zeros((ntest,ndim))
for i in range(ndim):
ydtest[:,i] = fun(xtest,kx=i).T
########### The LS model
# Initialization of the model
t = LS(print_prediction = False)
# Add the DOE
t.set_training_values(xt,yt[:,0])
# Train the model
t.train()
# Prediction of the validation points
y = t.predict_values(xtest)
print('LS, err: '+str(compute_rms_error(t,xtest,ytest)))
if plot_status:
k,l = 0,0
f, axarr = plt.subplots(4, 3)
axarr[k, l].plot(ytest,ytest,'-.')
axarr[k, l].plot(ytest,y,'.')
l +=1
axarr[3, 2].arrow(0.3,0.3,0.2,0)
axarr[3, 2].arrow(0.3,0.3,0.0,0.4)
axarr[3, 2].text(0.25,0.4,r'$\hat{y}$')
axarr[3, 2].text(0.35,0.15,r'$y_{true}$')
axarr[3, 2].axis('off')
# Fine-tune figure; hide x ticks for top plots and y ticks for right plots
plt.setp(axarr[3, 2].get_xticklabels(), visible=False)
plt.setp(axarr[3, 2].get_yticklabels(), visible=False)
plt.suptitle('Validation of the LS model (from left to right then from top to bottom): validation of the prediction model and the i-th prediction of the derivative---i=1:10')
# Prediction of the derivatives with regards to each direction space
yd_prediction = np.zeros((ntest,ndim))
for i in range(ndim):
yd_prediction[:,i] = t.predict_derivatives(xtest,kx=i).T
print('LS, err of the '+str(i)+'-th derivative: '+ str(compute_rms_error(t,xtest,ydtest[:,i],kx=i)))
if plot_status:
axarr[k, l].plot(ydtest[:,i],ydtest[:,i],'-.')
axarr[k, l].plot(ydtest[:,i],yd_prediction[:,i],'.')
if l==2:
l=0
k+=1
else:
l+=1
if plot_status:
plt.show()
########### The QP model
t = QP(print_prediction = False)
t.set_training_values(xt,yt[:,0])
t.train()
# Prediction of the validation points
y = t.predict_values(xtest)
print('QP, err: '+str(compute_rms_error(t,xtest,ytest)))
if plot_status:
k,l = 0,0
f, axarr = plt.subplots(4, 3)
axarr[k, l].plot(ytest,ytest,'-.')
axarr[k, l].plot(ytest,y,'.')
l +=1
axarr[3, 2].arrow(0.3,0.3,0.2,0)
axarr[3, 2].arrow(0.3,0.3,0.0,0.4)
axarr[3, 2].text(0.25,0.4,r'$\hat{y}$')
axarr[3, 2].text(0.35,0.15,r'$y_{true}$')
axarr[3, 2].axis('off')
# Fine-tune figure; hide x ticks for top plots and y ticks for right plots
plt.setp(axarr[3, 2].get_xticklabels(), visible=False)
plt.setp(axarr[3, 2].get_yticklabels(), visible=False)
plt.suptitle('Validation of the QP model (from left to right then from top to bottom): validation of the prediction model and the i-th prediction of the derivative---i=1:10')
# Prediction of the derivatives with regards to each direction space
yd_prediction = np.zeros((ntest,ndim))
for i in range(ndim):
yd_prediction[:,i] = t.predict_derivatives(xtest,kx=i).T
print('QP, err of the '+str(i)+'-th derivative: '+ str(compute_rms_error(t,xtest,ydtest[:,i],kx=i)))
if plot_status:
axarr[k, l].plot(ydtest[:,i],ydtest[:,i],'-.')
axarr[k, l].plot(ydtest[:,i],yd_prediction[:,i],'.')
if l==2:
l=0
k+=1
else:
l+=1
if plot_status:
plt.show()
########### The Kriging model
# The variable 'theta0' is a list of length ndim.
t = KRG(theta0=[1e-2]*ndim,print_prediction = False)
t.set_training_values(xt,yt[:,0])
t.train()
# Prediction of the validation points
y = t.predict_values(xtest)
print('Kriging, err: '+str(compute_rms_error(t,xtest,ytest)))
if plot_status:
k,l = 0,0
f, axarr = plt.subplots(4, 3)
axarr[k, l].plot(ytest,ytest,'-.')
axarr[k, l].plot(ytest,y,'.')
l +=1
axarr[3, 2].arrow(0.3,0.3,0.2,0)
axarr[3, 2].arrow(0.3,0.3,0.0,0.4)
axarr[3, 2].text(0.25,0.4,r'$\hat{y}$')
axarr[3, 2].text(0.35,0.15,r'$y_{true}$')
axarr[3, 2].axis('off')
# Fine-tune figure; hide x ticks for top plots and y ticks for right plots
plt.setp(axarr[3, 2].get_xticklabels(), visible=False)
plt.setp(axarr[3, 2].get_yticklabels(), visible=False)
plt.suptitle('Validation of the Kriging model (from left to right then from top to bottom): validation of the prediction model and the i-th prediction of the derivative---i=1:10')
# Prediction of the derivatives with regards to each direction space
yd_prediction = np.zeros((ntest,ndim))
for i in range(ndim):
yd_prediction[:,i] = t.predict_derivatives(xtest,kx=i).T
print('Kriging, err of the '+str(i)+'-th derivative: '+ str(compute_rms_error(t,xtest,ydtest[:,i],kx=i)))
if plot_status:
axarr[k, l].plot(ydtest[:,i],ydtest[:,i],'-.')
axarr[k, l].plot(ydtest[:,i],yd_prediction[:,i],'.')
if l==2:
l=0
k+=1
else:
l+=1
if plot_status:
plt.show()
########### The KPLS model
# The variables 'name' must be equal to 'KPLS'. 'n_comp' and 'theta0' must be
# an integer in [1,ndim[ and a list of length n_comp, respectively. Here is an
# an example using 2 principal components.
t = KPLS(n_comp=2, theta0=[1e-2,1e-2],print_prediction = False)
t.set_training_values(xt,yt[:,0])
t.train()
# Prediction of the validation points
y = t.predict_values(xtest)
print('KPLS, err: '+str(compute_rms_error(t,xtest,ytest)))
if plot_status:
k,l = 0,0
f, axarr = plt.subplots(4, 3)
axarr[k, l].plot(ytest,ytest,'-.')
axarr[k, l].plot(ytest,y,'.')
l +=1
axarr[3, 2].arrow(0.3,0.3,0.2,0)
axarr[3, 2].arrow(0.3,0.3,0.0,0.4)
axarr[3, 2].text(0.25,0.4,r'$\hat{y}$')
axarr[3, 2].text(0.35,0.15,r'$y_{true}$')
axarr[3, 2].axis('off')
# Fine-tune figure; hide x ticks for top plots and y ticks for right plots
plt.setp(axarr[3, 2].get_xticklabels(), visible=False)
plt.setp(axarr[3, 2].get_yticklabels(), visible=False)
plt.suptitle('Validation of the KPLS model (from left to right then from top to bottom): validation of the prediction model and the i-th prediction of the derivative---i=1:10')
# Prediction of the derivatives with regards to each direction space
yd_prediction = np.zeros((ntest,ndim))
for i in range(ndim):
yd_prediction[:,i] = t.predict_derivatives(xtest,kx=i).T
print('KPLS, err of the '+str(i)+'-th derivative: '+ str(compute_rms_error(t,xtest,ydtest[:,i],kx=i)))
if plot_status:
axarr[k, l].plot(ydtest[:,i],ydtest[:,i],'-.')
axarr[k, l].plot(ydtest[:,i],yd_prediction[:,i],'.')
if l==2:
l=0
k+=1
else:
l+=1
if plot_status:
plt.show()
########### The KPLSK model
# 'n_comp' and 'theta0' must be an integer in [1,ndim[ and a list of length n_comp, respectively.
t = KPLSK(n_comp=2, theta0=[1e-2,1e-2],print_prediction = False)
t.set_training_values(xt,yt[:,0])
t.train()
# Prediction of the validation points
y = t.predict_values(xtest)
print('KPLSK, err: '+str(compute_rms_error(t,xtest,ytest)))
if plot_status:
k,l = 0,0
f, axarr = plt.subplots(4, 3)
axarr[k, l].plot(ytest,ytest,'-.')
axarr[k, l].plot(ytest,y,'.')
l +=1
axarr[3, 2].arrow(0.3,0.3,0.2,0)
axarr[3, 2].arrow(0.3,0.3,0.0,0.4)
axarr[3, 2].text(0.25,0.4,r'$\hat{y}$')
axarr[3, 2].text(0.35,0.15,r'$y_{true}$')
axarr[3, 2].axis('off')
# Fine-tune figure; hide x ticks for top plots and y ticks for right plots
plt.setp(axarr[3, 2].get_xticklabels(), visible=False)
plt.setp(axarr[3, 2].get_yticklabels(), visible=False)
plt.suptitle('Validation of the KPLSK model (from left to right then from top to bottom): validation of the prediction model and the i-th prediction of the derivative---i=1:10')
# Prediction of the derivatives with regards to each direction space
yd_prediction = np.zeros((ntest,ndim))
for i in range(ndim):
yd_prediction[:,i] = t.predict_derivatives(xtest,kx=i).T
print('KPLSK, err of the '+str(i)+'-th derivative: '+ str(compute_rms_error(t,xtest,ydtest[:,i],kx=i)))
if plot_status:
axarr[k, l].plot(ydtest[:,i],ydtest[:,i],'-.')
axarr[k, l].plot(ydtest[:,i],yd_prediction[:,i],'.')
if l==2:
l=0
k+=1
else:
l+=1
if plot_status:
plt.show()
########### The GEKPLS model using 1 approximating points
# 'n_comp' and 'theta0' must be an integer in [1,ndim[ and a list of length n_comp, respectively.
t = GEKPLS(n_comp=1, theta0=[1e-2], xlimits=fun.xlimits,delta_x=1e-2,extra_points= 1,print_prediction = False)
t.set_training_values(xt,yt[:,0])
# Add the gradient information
for i in range(ndim):
t.set_training_derivatives(xt,yt[:, 1+i].reshape((yt.shape[0],1)),i)
t.train()
# Prediction of the validation points
y = t.predict_values(xtest)
print('GEKPLS1, err: '+str(compute_rms_error(t,xtest,ytest)))
if plot_status:
k,l = 0,0
f, axarr = plt.subplots(4, 3)
axarr[k, l].plot(ytest,ytest,'-.')
axarr[k, l].plot(ytest,y,'.')
l +=1
axarr[3, 2].arrow(0.3,0.3,0.2,0)
axarr[3, 2].arrow(0.3,0.3,0.0,0.4)
axarr[3, 2].text(0.25,0.4,r'$\hat{y}$')
axarr[3, 2].text(0.35,0.15,r'$y_{true}$')
axarr[3, 2].axis('off')
# Fine-tune figure; hide x ticks for top plots and y ticks for right plots
plt.setp(axarr[3, 2].get_xticklabels(), visible=False)
plt.setp(axarr[3, 2].get_yticklabels(), visible=False)
plt.suptitle('Validation of the GEKPLS1 model (from left to right then from top to bottom): validation of the prediction model and the i-th prediction of the derivative---i=1:10')
# Prediction of the derivatives with regards to each direction space
yd_prediction = np.zeros((ntest,ndim))
for i in range(ndim):
yd_prediction[:,i] = t.predict_derivatives(xtest,kx=i).T
print('GEKPLS1, err of the '+str(i)+'-th derivative: '+ str(compute_rms_error(t,xtest,ydtest[:,i],kx=i)))
if plot_status:
axarr[k, l].plot(ydtest[:,i],ydtest[:,i],'-.')
axarr[k, l].plot(ydtest[:,i],yd_prediction[:,i],'.')
if l==2:
l=0
k+=1
else:
l+=1
if plot_status:
plt.show()
########### The GEKPLS model using 2 approximating points
# 'n_comp' and 'theta0' must be an integer in [1,ndim[ and a list of length n_comp, respectively.
t = GEKPLS(n_comp=1, theta0=[1e-2], xlimits=fun.xlimits,delta_x=1e-4,
extra_points= 2,print_prediction = False)
t.set_training_values(xt,yt[:,0])
# Add the gradient information
for i in range(ndim):
t.set_training_derivatives(xt,yt[:, 1+i].reshape((yt.shape[0],1)),i)
t.train()
# Prediction of the validation points
y = t.predict_values(xtest)
print('GEKPLS2, err: '+str(compute_rms_error(t,xtest,ytest)))
if plot_status:
k,l = 0,0
f, axarr = plt.subplots(4, 3)
axarr[k, l].plot(ytest,ytest,'-.')
axarr[k, l].plot(ytest,y,'.')
l +=1
axarr[3, 2].arrow(0.3,0.3,0.2,0)
axarr[3, 2].arrow(0.3,0.3,0.0,0.4)
axarr[3, 2].text(0.25,0.4,r'$\hat{y}$')
axarr[3, 2].text(0.35,0.15,r'$y_{true}$')
axarr[3, 2].axis('off')
# Fine-tune figure; hide x ticks for top plots and y ticks for right plots
plt.setp(axarr[3, 2].get_xticklabels(), visible=False)
plt.setp(axarr[3, 2].get_yticklabels(), visible=False)
plt.suptitle('Validation of the GEKPLS2 model (from left to right then from top to bottom): validation of the prediction model and the i-th prediction of the derivative---i=1:10')
# Prediction of the derivatives with regards to each direction space
yd_prediction = np.zeros((ntest,ndim))
for i in range(ndim):
yd_prediction[:,i] = t.predict_derivatives(xtest,kx=i).T
print('GEKPLS2, err of the '+str(i)+'-th derivative: '+ str(compute_rms_error(t,xtest,ydtest[:,i],kx=i)))
if plot_status:
axarr[k, l].plot(ydtest[:,i],ydtest[:,i],'-.')
axarr[k, l].plot(ydtest[:,i],yd_prediction[:,i],'.')
if l==2:
l=0
k+=1
else:
l+=1
if plot_status:
plt.show()
if compiled_available:
########### The IDW model
t = IDW(print_prediction = False)
t.set_training_values(xt,yt[:,0])
t.train()
# Prediction of the validation points
y = t.predict_values(xtest)
print('IDW, err: '+str(compute_rms_error(t,xtest,ytest)))
if plot_status:
plt.figure()
plt.plot(ytest,ytest,'-.')
plt.plot(ytest,y,'.')
plt.xlabel(r'$y_{true}$')
plt.ylabel(r'$\hat{y}$')
plt.title('Validation of the IDW model')
plt.show()
########### The RBF model
t = RBF(print_prediction = False,poly_degree = 0)
t.set_training_values(xt,yt[:,0])
t.train()
# Prediction of the validation points
y = t.predict_values(xtest)
print('RBF, err: '+str(compute_rms_error(t,xtest,ytest)))
if plot_status:
k,l = 0,0
f, axarr = plt.subplots(4, 3)
axarr[k, l].plot(ytest,ytest,'-.')
axarr[k, l].plot(ytest,y,'.')
l +=1
axarr[3, 2].arrow(0.3,0.3,0.2,0)
axarr[3, 2].arrow(0.3,0.3,0.0,0.4)
axarr[3, 2].text(0.25,0.4,r'$\hat{y}$')
axarr[3, 2].text(0.35,0.15,r'$y_{true}$')
axarr[3, 2].axis('off')
# Fine-tune figure; hide x ticks for top plots and y ticks for right plots
plt.setp(axarr[3, 2].get_xticklabels(), visible=False)
plt.setp(axarr[3, 2].get_yticklabels(), visible=False)
plt.suptitle('Validation of the RBF model (from left to right then from top to bottom): validation of the prediction model and the i-th prediction of the derivative---i=1:10')
# Prediction of the derivatives with regards to each direction space
yd_prediction = np.zeros((ntest,ndim))
for i in range(ndim):
yd_prediction[:,i] = t.predict_derivatives(xtest,kx=i).T
print('RBF, err of the '+str(i)+'-th derivative: '+ str(compute_rms_error(t,xtest,ydtest[:,i],kx=i)))
if plot_status:
axarr[k, l].plot(ydtest[:,i],ydtest[:,i],'-.')
axarr[k, l].plot(ydtest[:,i],yd_prediction[:,i],'.')
if l==2:
l=0
k+=1
else:
l+=1
if plot_status:
plt.show()
########### The RMTB and RMTC models are suitable for low-dimensional problems
# Initialization of the problem
ndim = 3
ndoe = int(250*ndim)
# Define the function
fun = NdimRobotArm(ndim=ndim)
# Construction of the DOE
sampling = LHS(xlimits=fun.xlimits)
xt = sampling(ndoe)
# Compute the output
yt = fun(xt)
# Compute the gradient
for i in range(ndim):
yd = fun(xt,kx=i)
yt = np.concatenate((yt,yd),axis=1)
# Construction of the validation points
ntest = 500
sampling = LHS(xlimits=fun.xlimits)
xtest = sampling(ntest)
ytest = fun(xtest)
########### The RMTB model
t = RMTB(xlimits=fun.xlimits, min_energy=True, nonlinear_maxiter=20,print_prediction = False)
t.set_training_values(xt,yt[:,0])
# Add the gradient information
for i in range(ndim):
t.set_training_derivatives(xt,yt[:, 1+i].reshape((yt.shape[0],1)),i)
t.train()
# Prediction of the validation points
y = t.predict_values(xtest)
print('RMTB, err: '+str(compute_rms_error(t,xtest,ytest)))
if plot_status:
k,l = 0,0
f, axarr = plt.subplots(3,2)
axarr[k, l].plot(ytest,ytest,'-.')
axarr[k, l].plot(ytest,y,'.')
l +=1
axarr[2, 0].arrow(0.3,0.3,0.2,0)
axarr[2, 0].arrow(0.3,0.3,0.0,0.4)
axarr[2, 0].text(0.25,0.4,r'$\hat{y}$')
axarr[2, 0].text(0.35,0.15,r'$y_{true}$')
axarr[2, 0].axis('off')
axarr[2, 1].set_visible(False)
axarr[2, 1].axis('off')
# Fine-tune figure; hide x ticks for top plots and y ticks for right plots
plt.setp(axarr[2, 0].get_xticklabels(), visible=False)
plt.setp(axarr[2, 0].get_yticklabels(), visible=False)
plt.suptitle('Validation of the RMTB model (from left to right then from top to bottom): validation of the prediction model and the i-th prediction of the derivative---i=1:3')
# Prediction of the derivatives with regards to each direction space
yd_prediction = np.zeros((ntest,ndim))
for i in range(ndim):
yd_prediction[:,i] = t.predict_derivatives(xtest,kx=i).T
print('RMTB, err of the '+str(i)+'-th derivative: '+ str(compute_rms_error(t,xtest,ydtest[:,i],kx=i)))
if plot_status:
axarr[k, l].plot(ydtest[:,i],ydtest[:,i],'-.')
axarr[k, l].plot(ydtest[:,i],yd_prediction[:,i],'.')
if l==1:
l=0
k+=1
else:
l+=1
if plot_status:
plt.show()
########### The RMTC model
t = RMTC(xlimits=fun.xlimits, min_energy=True, nonlinear_maxiter=20,print_prediction = False)
t.set_training_values(xt,yt[:,0])
# Add the gradient information
for i in range(ndim):
t.set_training_derivatives(xt,yt[:, 1+i].reshape((yt.shape[0],1)),i)
t.train()
# Prediction of the validation points
y = t.predict_values(xtest)
print('RMTC, err: '+str(compute_rms_error(t,xtest,ytest)))
if plot_status:
k,l = 0,0
f, axarr = plt.subplots(3,2)
axarr[k, l].plot(ytest,ytest,'-.')
axarr[k, l].plot(ytest,y,'.')
l +=1
axarr[2, 0].arrow(0.3,0.3,0.2,0)
axarr[2, 0].arrow(0.3,0.3,0.0,0.4)
axarr[2, 0].text(0.25,0.4,r'$\hat{y}$')
axarr[2, 0].text(0.35,0.15,r'$y_{true}$')
axarr[2, 0].axis('off')
axarr[2, 1].set_visible(False)
axarr[2, 1].axis('off')
# Fine-tune figure; hide x ticks for top plots and y ticks for right plots
plt.setp(axarr[2, 0].get_xticklabels(), visible=False)
plt.setp(axarr[2, 0].get_yticklabels(), visible=False)
plt.suptitle('Validation of the RMTC model (from left to right then from top to bottom): validation of the prediction model and the i-th prediction of the derivative---i=1:3')
# Prediction of the derivatives with regards to each direction space
yd_prediction = np.zeros((ntest,ndim))
for i in range(ndim):
yd_prediction[:,i] = t.predict_derivatives(xtest,kx=i).T
print('RMTC, err of the '+str(i)+'-th derivative: '+ str(compute_rms_error(t,xtest,ydtest[:,i],kx=i)))
if plot_status:
axarr[k, l].plot(ydtest[:,i],ydtest[:,i],'-.')
axarr[k, l].plot(ydtest[:,i],yd_prediction[:,i],'.')
if l==1:
l=0
k+=1
else:
l+=1
if plot_status:
plt.show()
| 34.038062 | 183 | 0.617871 | 3,298 | 19,674 | 3.614918 | 0.061856 | 0.029357 | 0.03288 | 0.036907 | 0.890455 | 0.881731 | 0.881731 | 0.879802 | 0.879802 | 0.877202 | 0 | 0.039694 | 0.209922 | 19,674 | 577 | 184 | 34.097054 | 0.72729 | 0.167327 | 0 | 0.82134 | 0 | 0.024814 | 0.148986 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022333 | 0 | 0.022333 | 0.081886 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a25f3052d93a4c1f7882e377c0bf4bc5acc24f81 | 3,499 | py | Python | business_register/migrations/0130_auto_20210629_1241.py | OlexandrTopuzov/Data_converter | 0ac2319ccaae790af35ab2202724c65d83d32ecc | [
"MIT"
] | null | null | null | business_register/migrations/0130_auto_20210629_1241.py | OlexandrTopuzov/Data_converter | 0ac2319ccaae790af35ab2202724c65d83d32ecc | [
"MIT"
] | null | null | null | business_register/migrations/0130_auto_20210629_1241.py | OlexandrTopuzov/Data_converter | 0ac2319ccaae790af35ab2202724c65d83d32ecc | [
"MIT"
] | null | null | null | # Generated by Django 3.1.12 on 2021-06-29 12:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('business_register', '0129_personsanction_year_of_birth'),
]
operations = [
migrations.RemoveField(
model_name='luxuryitemright',
name='country_of_citizenship',
),
migrations.RemoveField(
model_name='propertyright',
name='country_of_citizenship',
),
migrations.RemoveField(
model_name='securitiesright',
name='country_of_citizenship',
),
migrations.RemoveField(
model_name='vehicleright',
name='country_of_citizenship',
),
migrations.AddField(
model_name='luxuryitemright',
name='company_name',
field=models.CharField(blank=True, help_text='name of the company that owns the right', max_length=200, verbose_name='company name'),
),
migrations.AddField(
model_name='luxuryitemright',
name='owner_type',
field=models.PositiveSmallIntegerField(blank=True, choices=[(1, 'Declarant'), (2, 'Family member'), (3, 'Ukraine citizen'), (4, 'Foreign citizen'), (5, 'Legal entity registered in Ukraine'), (6, 'Legal entity registered abroad')], help_text='type of the owner', null=True, verbose_name='owner type'),
),
migrations.AddField(
model_name='propertyright',
name='company_name',
field=models.CharField(blank=True, help_text='name of the company that owns the right', max_length=200, verbose_name='company name'),
),
migrations.AddField(
model_name='propertyright',
name='owner_type',
field=models.PositiveSmallIntegerField(blank=True, choices=[(1, 'Declarant'), (2, 'Family member'), (3, 'Ukraine citizen'), (4, 'Foreign citizen'), (5, 'Legal entity registered in Ukraine'), (6, 'Legal entity registered abroad')], help_text='type of the owner', null=True, verbose_name='owner type'),
),
migrations.AddField(
model_name='securitiesright',
name='company_name',
field=models.CharField(blank=True, help_text='name of the company that owns the right', max_length=200, verbose_name='company name'),
),
migrations.AddField(
model_name='securitiesright',
name='owner_type',
field=models.PositiveSmallIntegerField(blank=True, choices=[(1, 'Declarant'), (2, 'Family member'), (3, 'Ukraine citizen'), (4, 'Foreign citizen'), (5, 'Legal entity registered in Ukraine'), (6, 'Legal entity registered abroad')], help_text='type of the owner', null=True, verbose_name='owner type'),
),
migrations.AddField(
model_name='vehicleright',
name='company_name',
field=models.CharField(blank=True, help_text='name of the company that owns the right', max_length=200, verbose_name='company name'),
),
migrations.AddField(
model_name='vehicleright',
name='owner_type',
field=models.PositiveSmallIntegerField(blank=True, choices=[(1, 'Declarant'), (2, 'Family member'), (3, 'Ukraine citizen'), (4, 'Foreign citizen'), (5, 'Legal entity registered in Ukraine'), (6, 'Legal entity registered abroad')], help_text='type of the owner', null=True, verbose_name='owner type'),
),
]
| 49.985714 | 312 | 0.628465 | 379 | 3,499 | 5.662269 | 0.189974 | 0.050326 | 0.085741 | 0.100652 | 0.88164 | 0.870457 | 0.806617 | 0.806617 | 0.731128 | 0.731128 | 0 | 0.021108 | 0.241783 | 3,499 | 69 | 313 | 50.710145 | 0.787787 | 0.013147 | 0 | 0.888889 | 1 | 0 | 0.338163 | 0.035062 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.015873 | 0 | 0.063492 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
a2a3f75155012fda353a4a60b9cfca5950212b66 | 60 | py | Python | app/models/__init__.py | arkwrn/malinkundang | c51be02fc7bddf1f901611817db990b09df684c6 | [
"MIT"
] | null | null | null | app/models/__init__.py | arkwrn/malinkundang | c51be02fc7bddf1f901611817db990b09df684c6 | [
"MIT"
] | null | null | null | app/models/__init__.py | arkwrn/malinkundang | c51be02fc7bddf1f901611817db990b09df684c6 | [
"MIT"
] | 5 | 2021-01-27T18:08:52.000Z | 2021-02-10T17:28:07.000Z | from app.models.admin import *
from app.models.scan import * | 30 | 30 | 0.783333 | 10 | 60 | 4.7 | 0.6 | 0.297872 | 0.553191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116667 | 60 | 2 | 31 | 30 | 0.886792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
a2b5c7436ff8ec3fe5c64f63e126b61ac33d3c12 | 33,772 | py | Python | test/testnet/scripts/gen_constants.py | wilsonfonseca/iota.lib.cpp | c49791b8e4f1499dc652fb84dedb016e5f42cdf4 | [
"MIT"
] | null | null | null | test/testnet/scripts/gen_constants.py | wilsonfonseca/iota.lib.cpp | c49791b8e4f1499dc652fb84dedb016e5f42cdf4 | [
"MIT"
] | null | null | null | test/testnet/scripts/gen_constants.py | wilsonfonseca/iota.lib.cpp | c49791b8e4f1499dc652fb84dedb016e5f42cdf4 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from iota import Iota
from iota import Address, ProposedTransaction, ProposedBundle, Tag, Transaction
from iota import TryteString
from iota.crypto.signing import KeyGenerator
#
# Helper to fetch and generate account info
#
def gen_account_info(account_idx, seed, nb_addrs):
# api connection
api = Iota('http://localhost:14265', seed)
# account info
account_data = api.get_account_data(stop=nb_addrs)
fund = account_data['balance']
addrs = account_data['addresses']
addrs_fund = api.getBalances(addresses=addrs)['balances']
# generate
account_info = \
"""
//!
//! Account %d
//!
static const std::string ACCOUNT_%d_SEED = "%s";
static const int64_t ACCOUNT_%d_FUND = %d;
""" % (account_idx, account_idx, seed, account_idx, fund)
for i in range(0, len(addrs)):
addr_idx = i + 1
account_info += \
"""
static const std::string ACCOUNT_%d_ADDRESS_%d_HASH = "%s";
static const std::string ACCOUNT_%d_ADDRESS_%d_HASH_WITHOUT_CHECKSUM = "%s";
static const int64_t ACCOUNT_%d_ADDRESS_%d_FUND = %d;
""" % (account_idx, addr_idx, addrs[i].with_valid_checksum(), account_idx, addr_idx, addrs[i], account_idx, addr_idx, addrs_fund[i])
return account_info + '\n'
#
# Helper function to fetch and generate bundle information
#
def gen_bundle_info_for_transfer(bundle_idx, label, seed, dst_addr, value):
# api
api = Iota('http://localhost:14265', seed)
# find all transactions for address
trxs = api.find_transactions(addresses=[dst_addr])['hashes']
bundle = None
# try to find the right bundle
for trx in trxs:
try:
trx_bundles = api.get_bundles(trx)['bundles']
for trx_bundle in trx_bundles:
try:
if trx_bundle.transactions[0].value == value and trx_bundle.transactions[0].address == dst_addr:
bundle = trx_bundle
break
except:
pass
if bundle:
break
except:
pass
# If trx could not be found, raise and stop now
if not bundle:
raise BaseException("Could not find bundle for trx %s (%di)" % (dst_addr, value))
bundle_info = \
"""
//!
//! Bundle %d
//! %s
//!
static const std::string BUNDLE_%d_HASH = "%s";
""" % (bundle_idx, label, bundle_idx, bundle.hash)
for i in range(0, len(bundle.transactions)):
trx_idx = i + 1
trx = bundle.transactions[i]
bundle_info += \
"""
static const std::string BUNDLE_%d_TRX_%d_HASH = "%s";
static const std::string BUNDLE_%s_TRX_%s_ADDRESS = "%s";
static const std::string BUNDLE_%d_TRX_%d_ADDRESS_WITHOUT_CHECKSUM = "%s";
static const std::string BUNDLE_%d_TRX_%d_TRYTES = "%s";
static const std::string BUNDLE_%d_TRX_%d_SIGNATURE_FRAGMENT = "%s";
static const int64_t BUNDLE_%d_TRX_%d_CURRENT_INDEX = %d;
static const int64_t BUNDLE_%d_TRX_%d_LAST_INDEX = %d;
static const std::string BUNDLE_%d_TRX_%d_NONCE = "%s";
static const std::string BUNDLE_%d_TRX_%d_TAG = "%s";
static const int64_t BUNDLE_%d_TRX_%d_TS = %d;
static const std::string BUNDLE_%d_TRX_%d_TRUNK = "%s";
static const std::string BUNDLE_%d_TRX_%d_BRANCH = "%s";
static const int64_t BUNDLE_%d_TRX_%d_VALUE = %d;
""" % (
bundle_idx, trx_idx, trx.hash,
bundle_idx, trx_idx, trx.address.with_valid_checksum(),
bundle_idx, trx_idx, trx.address,
bundle_idx, trx_idx, trx.as_tryte_string(),
bundle_idx, trx_idx, trx.signature_message_fragment,
bundle_idx, trx_idx, trx.current_index,
bundle_idx, trx_idx, trx.last_index,
bundle_idx, trx_idx, trx.nonce,
bundle_idx, trx_idx, trx.tag,
bundle_idx, trx_idx, trx.timestamp,
bundle_idx, trx_idx, trx.trunk_transaction_hash,
bundle_idx, trx_idx, trx.branch_transaction_hash,
bundle_idx, trx_idx, trx.value
)
return bundle_info
#
# Helper function to generate list of all transactions for all bundles for a given account
#
def gen_account_bundles_list(account_idx, seed):
# api
api = Iota('http://localhost:14265', seed)
# account info
account_data = api.get_account_data()
bundles = account_data['bundles']
account_bundles_list = \
"""
//!
//! Account 1 Detailed transactions
//!
"""
for i in range(0, len(bundles)):
bundle_idx = i + 1
bundle = bundles[i]
for j in range(0, len(bundle.transactions)):
trx_idx = j + 1
trx = bundle.transactions[j]
account_bundles_list += \
"""
static const std::string ACCOUNT_%s_BUNDLE_%s_TRX_%s_TRYTES = "%s";
""" % (account_idx, bundle_idx, trx_idx, trx.as_tryte_string())
return account_bundles_list
#
# Header
#
constants_hpp_content = \
"""//
// MIT License
//
// Copyright (c) 2017-2018 Thibault Martinez and Simon Ninon
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
//
#pragma once
#include <string>
"""
# precompute data
account_3_addr_1 = "E9LVPMKJIAGCIPVKMUOYTQMSYAUQDUMEYUUCLXRQUWJJ9JXRDXQNGIOUPQVIMIWHFIRXD9QSYOP9KG9BW"
account_4_addr_1 = "EHMKBYQAFTPVBKQYDKTWWDKHXKHUALIDEBBIXABI9PJWHFBXY9MPRSJCWKJTDPGHBKAL9MYEFM9TXVCE9"
account_1_seed = "SXDHBTSTV9YHWKFFAZBHQXJTQHTO9HJMDBZHOJDKV9MMAODELRICQAQMEOCZXZKO9USMBUAKJCAYTF9TM"
account_2_seed = "S9YOBZWUIHQFGHQCUOFCKHFR99IJMSZNNHUDXRAGDZKLGEBGPNDWROALSUODRJNMFFQHDVNISRMVMPVNE"
account_3_seed = "UYMUEUOCKNROIJPNFFDLBP9GCQUJFRLIBQ9SMICMHSHSOXUZLOWHFJDPEEPUESUXJEAJFTICCEGPMMHKO"
account_4_seed = "NG9VUE9RBOLTPNAHFVWBPF9QELYLBNX9ZNIKYJZKWASZWJCMXZ9QIXNMAYDO9DJAZ9EBUBKDEFCUVQFXG"
account_5_seed = "UYXMZDTITKOAPKPFCAZYB9DTPJ9VARFKCWVSYIOZROLBSUJECBLBZA99TTBFJTPUXEYN9PETLVENOHRKJ"
# Account info
constants_hpp_content += gen_account_info(1, account_1_seed, 7)
constants_hpp_content += gen_account_info(2, account_2_seed, 6)
constants_hpp_content += gen_account_info(3, account_3_seed, 9)
constants_hpp_content += gen_account_info(4, account_4_seed, 1)
constants_hpp_content += gen_account_info(5, account_5_seed, 5)
# Bundle info
constants_hpp_content += gen_bundle_info_for_transfer(1, "Trx from account 2 to account 3", account_2_seed, account_3_addr_1, 42)
constants_hpp_content += gen_bundle_info_for_transfer(2, "Initial funding of account_3:address_1", account_2_seed, account_3_addr_1, 0)
constants_hpp_content += gen_bundle_info_for_transfer(5, "Trx from account 5 to account 3", account_5_seed, account_4_addr_1, 0)
# account bundles
constants_hpp_content += gen_account_bundles_list(2, account_2_seed)
# Misc
constants_hpp_content += \
"""
//!
//! Misc
//!
static const std::string EMPTY_SIGNATURE_FRAGMENT =
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999";
//!
//! Unused trytes to test PoW
//!
static const std::string UNUSED_TRYTES_1 =
"JFCEIMOACCCHYUROHNCRCHGJMQEMQLSSQPCJUNXRHEHGXJTXMNIU9AODX9UYLYNJQCEYJKJNBNAOYYJNXDUCVEZOANEOJA"
"COFQVLWIAQCWPK9SSSLHFDLUA9LBVUYGSHNHQYNLGMGXCZGUSHEQQDPFYEHKMIFZEZJLQELLT9TXTTR9YGXWOAHOMRJUSI"
"LGRTUVBYBHHOFOWVJDOXAJHJZDHGIIFONXMKAKPHYJZXKNYBZVCMQVAXLH9SVUYOBZKIHNNP9DKSFQRPFVQFGVKRDZJSY9"
"SGKYIYORZGMFQUK9UNKTCIDIPHPUNPSTJDRRADVKFHGUJGPKQWFOQRDUOUYN9FLDSLNSIQBNAPAJMXHMNRU9VMTJCPWCSW"
"JZTSDXQDPEYXSAIUVXAJPKIQAFMPIHJKVIVDXQRHGDZZP9LHIHMZCXLVHZGIHBQAJBIPFYXCXFNIHLSRJDCCNZM9MZQFX9"
"W9TWAYAH9SBCEGGJIMLYHCKLKHMRHKBDTXGGVHVHRQWBUWOLKEGLDHIT99AAGBMQBLMFLBBTBVJIJEHWY9YJO9LAHHKRWK"
"QBXFDXIEICQEFGIF9ED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KMOGFDOYMXHWSZWCUEXLOTSEX9XOFJIIUXKAKDCMOHPWFCDQSZQHEUSYMZIOPLNZODYULGMMFLGQEAYOADFAPMOWLOZMB"
"SCSZJJGVTNUVNJIXIHKTUZMVWYKGYZKETCEYUZMBRBSRUJMCQOYOSGWZBYYPCKPQPQGPFFMVOJAQTGKZGFTTGWJOLJEUWJ"
"HRU9ZGAOEGIYOEMYJEMAWZGBQPTTTPIZMBQFLMICSXZVXNW9JTXPOGRPIMSXRURKXTQDNYEQLBQXCQJEYIZVVZ9SRIW9YM"
"TZ9MGCIJSTC9UIEIKPVUAMZIKKU9RFPSQRMSNGTCGEZAX9NVWTRMOVRKGHCHBF9RZXUSJDBWSSLHJEBF99ZQGUBAU9JMUW"
"VKYIVERJHSKLDEKVDBLTGWRQJAZITRAUANSG99UEAVSDCGGRDLHRPK99QPHWAGIHSKORFFJOIANYWDF9DIBBZRSOUBHRPK"
"LGOJBRYMHM9QVYMUIRZFJHMBF9CFTBMJMVOMNDSMQKVURIQVDAGZH9LKFQSIWG9PYCUXQPPRFRASJ9ZNYQO9LZYXFWIFMY"
"PA9SMHSWQAEL9BDRGNGTXOGPPKPWCHICGJZXKE9GSUDXZYUAPLHAKAHYHDXNPHENTERYMMBQOPSQIDENXKLKCEYCPVTZQL"
"EEJVYJZV9BWU999999999999999999999999999LCBRA9999999999999999999999THGZXYD99999999999A99999999B"
"YALWSAXHIKX9ZUW9HQZXRWOVHDZCZMGB9XXIBOJLKWUXSRYDYDLEQIJXDD9QUZMOJORDETAOGCMKQEPCUZIYBOXFNOMTVA"
"AZFAWEHLGGEUTURRJEZVNLFBR9REOUBTWCZNHUYVF9TYLLTTATWRVIIKOGAKOP99999AZUP9QADOZ9VXTIJHHPODQAXWN9"
"DMBOWQUKOELIACJJZUYPCNQBFE9BQTHHCQHIPGNSBLRSQHQCO999999999999999999999999999999999999999999999"
"99999999999999KCZBYJAOM9WHXOPBZLXEB9SGUSQ";
static const std::string UNUSED_TRYTES_2 =
"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ODRSSRCWQZLNL"
"NNSJNNJCZRQEAAEPNQBPMKZMTIIVWZFOLGJFMZ9JJYEICWNVW9ESPVU9MDWUSNXMFBIXGOSKA9XPEK9FSHQUFLESUMSRKT"
"CHRZJEZBGFCYKOWYXDATINGSDAYWEBCNTQWZYGHTOXBE9RDEGUVXX9AQXHLEWMKKLEZRUTESJRQHMVZNFOGDUNWUMGMXJA"
"VWRFIAMJBWASMRGOBCQXM9FWBMTMYWDG9JZDCECIJOSNMQAESYJMTLYOQJPRLVNYJKUGFZKTCDOHAXDJFXZRNSO9XYAIQK"
"RPKPYBSRMUWLYMQBZTSPPZOFSJSFBVHGKFSWRJAKSMH9RGMWCCM9WFZDUT9OBCLKQKXXG9HVQVMYEPLUIWFOUGHPTFLOUR"
"DTFOYNPOZMHDFLKVFJKZAZRTA9CFFAFZTKTKBWNCAG99JX9TOMGGWCJHDXFCZHCHADMIUSETWYOGQEFIUBRXF9LJYAURER"
"WTPGJYDDAXIMIVQBJSF9AIDHIVAOMUUOAXQVGYZASTEBAQNXJJROCYRTDPYFUIQJVDHAKEG9YACV9HCPJUEUKOYFNWDXCC"
"JBIFQKYOXGRDHVTHEQUMHO999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"999999999999999999999999999999999999999999999999999999999999999999DRIZXYD99A99999999A99999999M"
"EROUPDZPBWBCGWILVWEQPKZVLTLFZGHE9WUFOWZXCIDXHHREPUXFOXSSKGUMICXLWEUSIG9YDFFDGOCBYBMTIPMNVUEJKT"
"VBTBMZKEJBJXQKCFPWFNCHPGXWBAKMKXGISUMDBKIEELDV9DODK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RGFLCVAGJNXKDHSNFIENFSRTGNBPASUDYPELWMTFQKQY9AMTNH9EMGNAXHOOAFUESYMEQQJZQQNHVXGOKX"
"ZXBKMPMIMIMZRZMRFIWVTKIIGBRRLNOWBGTGFY9VXRVVBDVOFFVWXRNZUKZUXCBXJTECCBJP9UZNOUNZGODRSSRCWQZLNL"
"NNSJNNJCZRQEAAEPNQBPMKZMTIIVWZFOLGJFMZ9JJYEICWNVW9ESPVU9MDWUSNXMFBIXGOSKA9XPEK9FSHQUFLESUMSRKT"
"CHRZJEZBGFCYKOWYXDATINGSDAYWEBCNTQWZYGHTOXBE9RDEGUVXX9AQXHLEWMKKLEZRUTESJRQHMVZNFOGDUNWUMGMXJA"
"VWRFIAMJBWASMRGOBCQXM9FWBMTMYWDG9JZDCECIJOSNMQAESYJMTLYOQJPRLVNYJKUGFZKTCDOHAXDJFXZRNSO9XYAIQK"
"RPKPYBSRMUWLYMQBZTSPPZOFSJSFBVHGKFSWRJAKSMH9RGMWCCM9WFZDUT9OBCLKQKXXG9HVQVMYEPLUIWFOUGHPTFLOUR"
"DTFOYNPOZMHDFLKVFJKZAZRTA9CFFAFZTKTKBWNCAG99JX9TOMGGWCJHDXFCZHCHADMIUSETWYOGQEFIUBRXF9LJYAURER"
"WTPGJYDDAXIMIVQBJSF9AIDHIVAOMUUOAXQVGYZASTEBAQNXJJROCYRTDPYFUIQJVDHAKEG9YACV9HCPJUEUKOYFNWDXCC"
"JBIFQKYOXGRDHVTHEQUMHO999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"999999999999999999999999999999999999999999999999999999999999999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VQYBFJFXJR9UHDOTVFBRWVSECFMHRWZXVOJOPCCDDPCFEJNNHBFXMWIQHYINJANU"
"JWRPMOYKCTFVPAXCZUQFEIMWVIIWOZIEKOKPZQDHEMNMIVBHXVVECRUPUGAQGLLUNMOWDOGWLTKGSPMIS9CMODKZEWTZIE"
"IAYHYMBRK9LGRGFLCVAGJNXKDHSNFIENFSRTGNBPASUDYPELWMTFQKQY9AMTNH9EMGNAXHOOAFUESYMEQQJZQQNHVXGOKX"
"ZXBKMPMIMIMZRZMRFIWVTKIIGBRRLNOWBGTGFY9VXRVVBDVOFFVWXRNZUKZUXCBXJTECCBJP9UZNOUNZGODRSSRCWQZLNL"
"NNSJNNJCZRQEAAEPNQBPMKZMTIIVWZFOLGJFMZ9JJYEICWNVW9ESPVU9MDWUSNXMFBIXGOSKA9XPEK9FSHQUFLESUMSRKT"
"CHRZJEZBGFCYKOWYXDATINGSDAYWEBCNTQWZYGHTOXBE9RDEGUVXX9AQXHLEWMKKLEZRUTESJRQHMVZNFOGDUNWUMGMXJA"
"VWRFIAMJBWASMRGOBCQXM9FWBMTMYWDG9JZDCECIJOSNMQAESYJMTLYOQJPRLVNYJKUGFZKTCDOHAXDJFXZRNSO9XYAIQK"
"RPKPYBSRMUWLYMQBZTSPPZOFSJSFBVHGKFSWRJAKSMH9RGMWCCM9WFZDUT9OBCLKQKXXG9HVQVMYEPLUIWFOUGHPTFLOUR"
"DTFOYNPOZMHDFLKVFJKZAZRTA9CFFAFZTKTKBWNCAG99JX9TOMGGWCJHDXFCZHCHADMIUSETWYOGQEFIUBRXF9LJYAURER"
"WTPGJYDDAXIMIVQBJSF9AIDHIVAOMUUOAXQVGYZASTEBAQNXJJROCYRTDPYFUIQJVDHAKEG9YACV9HCPJUEUKOYFNWDXCC"
"JBIFQKYOXGRDHVTHEQUMHO999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999OLZXYD99A99999999A99999999J"
"UCKTNSZHOFIELCIORJTGPLYGL9JBLAR9RHOIYGZJGYBBGOTSWSGVMZULCHARJRREIIJTUMFJXZRMIHXXB9ODBDSV9NCDDC"
"JSXYYSTWSALTCFRGWNJXTLFXHPVCZCEIRIWZJWQTITRPAQNPKEUQDREAFPBYKE99999JVXMFB9BVYHHHJCYDN9UXOMAL99"
"SBNMSLNIWETGSTK9SQWQOTASNKYQNUVMFWKRNSNLQS9BIAAJX999999999999999999999999999999999999999999999"
"99999999999999LI9KDUSFAGJDEECGHSQHMFGWRKL";
static const std::string UNUSED_TRYTES_5 =
"YKRPGYLM9UMEDFOMUNVXBYFURZHWUMHIFODIMNFGHQHNCKFGNH9JLUAHCNATCJLSMTYGUTDBYXGWAQQCBCSQPLEXKIRLAW"
"SEX9K9YVLKKWDMRRWDEWJJWFGRLBFOJMDGSXQMRGTUYNKKZAVPQSPVOKXLLHVS9XMUPPWX9HYPJE9SGGYOWPKKCVGTVYDN"
"KNZBJQMHVFEBJD9PUSKSKEITYYEBBHFXEDEBKYFTNL9IK9SBTPABESXLXBMKSJJPIPCRSAFQXNOPXHTCMMCCWNEQ9VZLMZ"
"SCKWGI9ENNJIBBWCPMJY9CORGYQVNKGXUSSTCPTRJLVFIILQLGFGHVAMLBBMJHPAHUSXEYGPJTALZSLWMWTYDNBZBDEYRX"
"9UPEKWYWBEVDIUSKJWULKPUNIWOPDONORBKRZFEVEUMOKSMSLGJBSKNRVXAZULYGJCEJASLYTEKGZZTPWHVQKYDSKYD9ET"
"LZHJKQL9WCPJHIUUSR9QKCRGWGEZXAAR9QWTFOKQXTUBFQRUMZVAZVCVAL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UKPNCSFTOLDVICMFSFJ9PAVXOUZCTZPWOFGCZEWNJYQSLBLKCNUSCAAWA"
"XCC9JI9PKWRSOLPPEXMXRKKYN9KYJBBKBVEXBKBWJTRXUZPINIC9AREUGXJURBRJAUTBLDMLSMCSLZYRTTHOPC9CNCIHZS"
"UKXLECNYGHIQAQI9YECKQS9UCAACRLGVULVTSJCKERAUVHKTYDGQVTPIEBN9G9HZOKCZTZOCI9NXYBFLFKJXVHGISKFJPD"
"OTTNZNAPXDMKFUTZBCBEVLEXLOSFMLSKFRPDPVTFLSGJFMRVJRLEQU9WENVJMIAGVIWIMFCLJOUURVGHILHPTVEOHRIZHD"
"BCEDBB9IKWTJTLOBKVIABGTKXOOCNAWSUIMLLN9QWPAEKJTJLAXGMHTTKDO9NEVOOTYHGADDSCDHUMICGMKLKRDENW9ENJ"
"CRHGKZQSFJJONKYGDXUSHMXPPTN9LVBTPUAYSQROYAAJPPGHBDDYRXLGYOREFWZTBMZNKEHFWAEJPLPGSCSKBZLOKHVTTV"
"PUICXKOYHWOGBDYACPFUHQKMZDLVWPCBOYPPDDCKCB9NVTXZLEQYFBFSG9JUCXFORVPZFFYH9ZOFFEKEFTTOWBPYQXZULY"
"XZGHOFGNYDIY9IAHYWEYEZDXDKPWCHICGJZXKE9GSUDXZYUAPLHAKAHYHDXNPHENTERYMMBQOPSQIDENXKLKCEYCPVTZQL"
"EEJVYJZV9BWU999999999999999999999999999JDBRA99999999999999999999999OLZXYD99999999999A99999999J"
"UCKTNSZHOFIELCIORJTGPLYGL9JBLAR9RHOIYGZJGYBBGOTSWSGVMZULCHARJRREIIJTUMFJXZRMIHXXFW9NMKOSHOUXRP"
"FPNFFCFCH9ASQKVHFNSBEXNWGOKIBTUNQPTDQDSNBIVMJINBQLJWKLTJVYORLKZ9999B9ODBDSV9NCDDCJSXYYSTWSALTC"
"FRGWNJXTLFXHPVCZCEIRIWZJWQTITRPAQNPKEUQDREAFPBYKE999999999999999999999999999999999999999999999"
"99999999999999OFH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LNOWBGTGFY9VXRVVBDVOFFVWXRNZUKZUXCBXJTECCBJP9UZNOUNZGODRSSRCWQZLNL"
"NNSJNNJCZRQEAAEPNQBPMKZMTIIVWZFOLGJFMZ9JJYEICWNVW9ESPVU9MDWUSNXMFBIXGOSKA9XPEK9FSHQUFLESUMSRKT"
"CHRZJEZBGFCYKOWYXDATINGSDAYWEBCNTQWZYGHTOXBE9RDEGUVXX9AQXHLEWMKKLEZRUTESJRQHMVZNFOGDUNWUMGMXJA"
"VWRFIAMJBWASMRGOBCQXM9FWBMTMYWDG9JZDCECIJOSNMQAESYJMTLYOQJPRLVNYJKUGFZKTCDOHAXDJFXZRNSO9XYAIQK"
"RPKPYBSRMUWLYMQBZTSPPZOFSJSFBVHGKFSWRJAKSMH9RGMWCCM9WFZDUT9OBCLKQKXXG9HVQVMYEPLUIWFOUGHPTFLOUR"
"DTFOYNPOZMHDFLKVFJKZAZRTA9CFFAFZTKTKBWNCAG99JX9TOMGGWCJHDXFCZHCHADMIUSETWYOGQEFIUBRXF9LJYAURER"
"WTPGJYDDAXIMIVQBJSF9AIDHIVAOMUUOAXQVGYZASTEBAQNXJJROCYRTDPYFUIQJVDHAKEG9YACV9HCPJUEUKOYFNWDXCC"
"JBIFQKYOXGRDHVTHEQUMHO999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999"
"999999999999999999999999999999999999999999999999999999999999999999UTLZXYD99A99999999A99999999G"
"BPLJZDATFPTUFBC9OMHAIIUPFULDGZAJQQHN9RFGGGW99HUAHYWIXUVGVIADFFCDBLDOECSEDGSKJEBALODHRAOPHIBOES"
"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FTCOEORHCIVHBIUSIHRZFLWJHGYAN9PWVTQIMPA99EXEHFPEWBURXGDEGMG"
"LTU99IKEWQULIVKUIDPPLYXOACJCNWPUMA9RUDJRGTLXUKFPGUOSKRPMRBBEMUUDPYLMYKVRFCEBZI9HSDLXRIPNW9PHBK"
"UWNSCGWGUDANYXNNKMKFIQGPRKOXN9XSZGMPQUKEIBLHQNBSHKWN9HVQZVMFJFDYMUWQTHHVHNUMMZCVGIXGQXHIZQKMBK"
"SIZATYKUVBBOTWUKKLHEZGEQLHMOGKVULANFUQZMCVDLKTOKCECPYTAPND9YTWRAFCZDFFUBMIRQANFQAOXM9QUHYGSAQZ"
"OOUQBCXZRARLBAVJOHAXIUXZYKPWCHICGJZXKE9GSUDXZYUAPLHAKAHYHDXNPHENTERYMMBQOPSQIDENXKLKCEYCPVTZQL"
"EEJVYJZV9BWU999999999999999999999999999KDBRA9999999999999999999999UTLZXYD99999999999A99999999G"
"BPLJZDATFPTUFBC9OMHAIIUPFULDGZAJQQHN9RFGGGW99HUAHYWIXUVGVIADFFCDBLDOECSEDGSKJEBAFRAXQASQINJTLJ"
"WVQLXFYAXTMMTKFURGJZECJBCHYB9QKISKDAJWBPKJWPFJCHYTIXML9RDPTTXQZ9999LODHRAOPHIBOESOEZRWTSHUEKXP"
"XUXEBTPOLNEGIWFJLAWTEUKRMNVBDAMLLFMKBKMFSIQJQGSMCZ99999999999999999999999999999999999999999999"
"99999999999999MAZBIXAPE9HCUMNFZ9QGRZSDIPC";
static const std::string UNUSED_TRYTES_8 =
"KMNADGATKTIPQKG9HKBRTHNKMJAVVHCLMKE9KTOLADXDILKYWDUCGQMGFPFOFFIRLTRFHLHFAPQCXQGTSWAZZLWHKCOTSC"
"WXLZDQEQIELI9SSVOSJMVROYQLHXFVINMMLEHRA9ZYLQKPBVS9XAZZNXXR9UMHGTZDXQGXFRSJCGBSUHUEDGSQFYVREPQY"
"AVUGTMAMPFAMTY9EAXTTV9LVFVGIKPCXKDYWJYTJKOPV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BRA9999999999999999999999DRIZXYD99999999999A99999999M"
"EROUPDZPBWBCGWILVWEQPKZVLTLFZGHE9WUFOWZXCIDXHHREPUXFOXSSKGUMICXLWEUSIG9YDFFDGOCBYD9GKMONCGOJGG"
"NQXNQRQFCDTGICZZPGFSXLFP9WUYXFCBTPRBRCGZKFBLHEXVGOTUBVDBSQJQQMA9999YBMTIPMNVUEJKTVBTBMZKEJBJXQ"
"KCFPWFNCHPGXWBAKMKXGISUMDBKIEELDV9DODKXRIGSGJSYVQZ99999999999999999999999999999999999999999999"
"99999999999999DJGSV9BUUDTZXMKZ9ZDRAABMWJX";
static const int POW_LEVEL = 1;
"""
print constants_hpp_content
| 67.007937 | 135 | 0.871669 | 1,367 | 33,772 | 21.307242 | 0.290417 | 0.271089 | 0.358224 | 0.413088 | 0.425825 | 0.414701 | 0.3929 | 0.384077 | 0.37309 | 0.359666 | 0 | 0.214026 | 0.089246 | 33,772 | 503 | 136 | 67.141153 | 0.732948 | 0.013029 | 0 | 0.119565 | 0 | 0 | 0.174909 | 0.121387 | 0 | 1 | 0 | 0.007952 | 0 | 0 | null | null | 0.021739 | 0.043478 | null | null | 0.01087 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a2bc720c5a7d9d5600dc5f876ceb0382f5c1efe5 | 31,464 | py | Python | swagger_client/api/items_api.py | blarz/heiko | c99da90709a7a21498257a2922f7663a8d5547a9 | [
"MIT"
] | 3 | 2018-05-19T13:10:07.000Z | 2019-01-08T17:50:53.000Z | swagger_client/api/items_api.py | blarz/heiko | c99da90709a7a21498257a2922f7663a8d5547a9 | [
"MIT"
] | 44 | 2019-01-07T09:06:41.000Z | 2019-11-07T22:04:30.000Z | swagger_client/api/items_api.py | blarz/heiko | c99da90709a7a21498257a2922f7663a8d5547a9 | [
"MIT"
] | 3 | 2019-06-13T19:23:06.000Z | 2019-08-08T18:55:13.000Z | # coding: utf-8
"""
MaaS
MaaS (Matomat as a Service) API definition # noqa: E501
OpenAPI spec version: 0.5.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from swagger_client.api_client import ApiClient
class ItemsApi(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
def items_get(self, **kwargs): # noqa: E501
"""List all available items # noqa: E501
Returns a map of item objects, with the item ID as key and the object as value # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.items_get(async=True)
>>> result = thread.get()
:param async bool
:return: list[Item]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.items_get_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.items_get_with_http_info(**kwargs) # noqa: E501
return data
def items_get_with_http_info(self, **kwargs): # noqa: E501
"""List all available items # noqa: E501
Returns a map of item objects, with the item ID as key and the object as value # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.items_get_with_http_info(async=True)
>>> result = thread.get()
:param async bool
:return: list[Item]
If the method is called asynchronously,
returns the request thread.
"""
all_params = [] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method items_get" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['jwtTokenAuth'] # noqa: E501
return self.api_client.call_api(
'/items', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[Item]', # noqa: E501
auth_settings=auth_settings,
is_async=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def items_item_id_consume_patch(self, item_id, **kwargs): # noqa: E501
"""Consumes a Item # noqa: E501
Consumes a Item and subtracts the cost of the Item from the credit of the user. If not enough credit exists the operation will be rejected # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.items_item_id_consume_patch(item_id, async=True)
>>> result = thread.get()
:param async bool
:param int item_id: The ID of the Item that needs to be consumed (required)
:return: ItemStats
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.items_item_id_consume_patch_with_http_info(item_id, **kwargs) # noqa: E501
else:
(data) = self.items_item_id_consume_patch_with_http_info(item_id, **kwargs) # noqa: E501
return data
def items_item_id_consume_patch_with_http_info(self, item_id, **kwargs): # noqa: E501
"""Consumes a Item # noqa: E501
Consumes a Item and subtracts the cost of the Item from the credit of the user. If not enough credit exists the operation will be rejected # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.items_item_id_consume_patch_with_http_info(item_id, async=True)
>>> result = thread.get()
:param async bool
:param int item_id: The ID of the Item that needs to be consumed (required)
:return: ItemStats
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['item_id'] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method items_item_id_consume_patch" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'item_id' is set
if ('item_id' not in params or
params['item_id'] is None):
raise ValueError("Missing the required parameter `item_id` when calling `items_item_id_consume_patch`") # noqa: E501
collection_formats = {}
path_params = {}
if 'item_id' in params:
path_params['itemId'] = params['item_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['jwtTokenAuth'] # noqa: E501
return self.api_client.call_api(
'/items/{itemId}/consume', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ItemStats', # noqa: E501
auth_settings=auth_settings,
is_async=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def items_item_id_delete(self, item_id, **kwargs): # noqa: E501
"""Delete Item # noqa: E501
Delete the Item. This can only be done by admins. (Should only mark a Item as deleted to not loose reference for stats) # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.items_item_id_delete(item_id, async=True)
>>> result = thread.get()
:param async bool
:param int item_id: The ID of the Item to perform an operation on (required)
:return: Item
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.items_item_id_delete_with_http_info(item_id, **kwargs) # noqa: E501
else:
(data) = self.items_item_id_delete_with_http_info(item_id, **kwargs) # noqa: E501
return data
def items_item_id_delete_with_http_info(self, item_id, **kwargs): # noqa: E501
"""Delete Item # noqa: E501
Delete the Item. This can only be done by admins. (Should only mark a Item as deleted to not loose reference for stats) # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.items_item_id_delete_with_http_info(item_id, async=True)
>>> result = thread.get()
:param async bool
:param int item_id: The ID of the Item to perform an operation on (required)
:return: Item
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['item_id'] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method items_item_id_delete" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'item_id' is set
if ('item_id' not in params or
params['item_id'] is None):
raise ValueError("Missing the required parameter `item_id` when calling `items_item_id_delete`") # noqa: E501
collection_formats = {}
path_params = {}
if 'item_id' in params:
path_params['itemId'] = params['item_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['jwtTokenAuth'] # noqa: E501
return self.api_client.call_api(
'/items/{itemId}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Item', # noqa: E501
auth_settings=auth_settings,
is_async=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def items_item_id_get(self, item_id, **kwargs): # noqa: E501
"""Get a certain Item # noqa: E501
Get a certain Item # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.items_item_id_get(item_id, async=True)
>>> result = thread.get()
:param async bool
:param int item_id: The ID of the Item to perform an operation on (required)
:return: Item
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.items_item_id_get_with_http_info(item_id, **kwargs) # noqa: E501
else:
(data) = self.items_item_id_get_with_http_info(item_id, **kwargs) # noqa: E501
return data
def items_item_id_get_with_http_info(self, item_id, **kwargs): # noqa: E501
"""Get a certain Item # noqa: E501
Get a certain Item # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.items_item_id_get_with_http_info(item_id, async=True)
>>> result = thread.get()
:param async bool
:param int item_id: The ID of the Item to perform an operation on (required)
:return: Item
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['item_id'] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method items_item_id_get" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'item_id' is set
if ('item_id' not in params or
params['item_id'] is None):
raise ValueError("Missing the required parameter `item_id` when calling `items_item_id_get`") # noqa: E501
collection_formats = {}
path_params = {}
if 'item_id' in params:
path_params['itemId'] = params['item_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['jwtTokenAuth'] # noqa: E501
return self.api_client.call_api(
'/items/{itemId}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Item', # noqa: E501
auth_settings=auth_settings,
is_async=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def items_item_id_patch(self, item_id, name, cost, **kwargs): # noqa: E501
"""Update Item # noqa: E501
Update Item. This can only be done by admins # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.items_item_id_patch(item_id, name, cost, async=True)
>>> result = thread.get()
:param async bool
:param int item_id: The ID of the Item to perform an operation on (required)
:param str name: (required)
:param int cost: (required)
:return: Item
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.items_item_id_patch_with_http_info(item_id, name, cost, **kwargs) # noqa: E501
else:
(data) = self.items_item_id_patch_with_http_info(item_id, name, cost, **kwargs) # noqa: E501
return data
def items_item_id_patch_with_http_info(self, item_id, name, cost, **kwargs): # noqa: E501
"""Update Item # noqa: E501
Update Item. This can only be done by admins # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.items_item_id_patch_with_http_info(item_id, name, cost, async=True)
>>> result = thread.get()
:param async bool
:param int item_id: The ID of the Item to perform an operation on (required)
:param str name: (required)
:param int cost: (required)
:return: Item
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['item_id', 'name', 'cost'] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method items_item_id_patch" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'item_id' is set
if ('item_id' not in params or
params['item_id'] is None):
raise ValueError("Missing the required parameter `item_id` when calling `items_item_id_patch`") # noqa: E501
# verify the required parameter 'name' is set
if ('name' not in params or
params['name'] is None):
raise ValueError("Missing the required parameter `name` when calling `items_item_id_patch`") # noqa: E501
# verify the required parameter 'cost' is set
if ('cost' not in params or
params['cost'] is None):
raise ValueError("Missing the required parameter `cost` when calling `items_item_id_patch`") # noqa: E501
if 'cost' in params and params['cost'] < 0: # noqa: E501
raise ValueError("Invalid value for parameter `cost` when calling `items_item_id_patch`, must be a value greater than or equal to `0`") # noqa: E501
collection_formats = {}
path_params = {}
if 'item_id' in params:
path_params['itemId'] = params['item_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
if 'name' in params:
form_params.append(('name', params['name'])) # noqa: E501
if 'cost' in params:
form_params.append(('cost', params['cost'])) # noqa: E501
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/x-www-form-urlencoded']) # noqa: E501
# Authentication setting
auth_settings = ['jwtTokenAuth'] # noqa: E501
return self.api_client.call_api(
'/items/{itemId}', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Item', # noqa: E501
auth_settings=auth_settings,
is_async=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def items_item_id_stats_get(self, item_id, **kwargs): # noqa: E501
"""Get consumption stats # noqa: E501
Get the matomat stats for a certain Item # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.items_item_id_stats_get(item_id, async=True)
>>> result = thread.get()
:param async bool
:param int item_id: The ID of the Item for which to fetch the stats (required)
:return: ItemStats
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.items_item_id_stats_get_with_http_info(item_id, **kwargs) # noqa: E501
else:
(data) = self.items_item_id_stats_get_with_http_info(item_id, **kwargs) # noqa: E501
return data
def items_item_id_stats_get_with_http_info(self, item_id, **kwargs): # noqa: E501
"""Get consumption stats # noqa: E501
Get the matomat stats for a certain Item # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.items_item_id_stats_get_with_http_info(item_id, async=True)
>>> result = thread.get()
:param async bool
:param int item_id: The ID of the Item for which to fetch the stats (required)
:return: ItemStats
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['item_id'] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method items_item_id_stats_get" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'item_id' is set
if ('item_id' not in params or
params['item_id'] is None):
raise ValueError("Missing the required parameter `item_id` when calling `items_item_id_stats_get`") # noqa: E501
collection_formats = {}
path_params = {}
if 'item_id' in params:
path_params['itemId'] = params['item_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['jwtTokenAuth'] # noqa: E501
return self.api_client.call_api(
'/items/{itemId}/stats', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ItemStats', # noqa: E501
auth_settings=auth_settings,
is_async=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def items_post(self, name, cost, **kwargs): # noqa: E501
"""Add a new item # noqa: E501
Adds a new item to matomat. This can only be done by admins # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.items_post(name, cost, async=True)
>>> result = thread.get()
:param async bool
:param str name: (required)
:param int cost: (required)
:return: Item
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.items_post_with_http_info(name, cost, **kwargs) # noqa: E501
else:
(data) = self.items_post_with_http_info(name, cost, **kwargs) # noqa: E501
return data
def items_post_with_http_info(self, name, cost, **kwargs): # noqa: E501
"""Add a new item # noqa: E501
Adds a new item to matomat. This can only be done by admins # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.items_post_with_http_info(name, cost, async=True)
>>> result = thread.get()
:param async bool
:param str name: (required)
:param int cost: (required)
:return: Item
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['name', 'cost'] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method items_post" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'name' is set
if ('name' not in params or
params['name'] is None):
raise ValueError("Missing the required parameter `name` when calling `items_post`") # noqa: E501
# verify the required parameter 'cost' is set
if ('cost' not in params or
params['cost'] is None):
raise ValueError("Missing the required parameter `cost` when calling `items_post`") # noqa: E501
if 'cost' in params and params['cost'] < 0: # noqa: E501
raise ValueError("Invalid value for parameter `cost` when calling `items_post`, must be a value greater than or equal to `0`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
if 'name' in params:
form_params.append(('name', params['name'])) # noqa: E501
if 'cost' in params:
form_params.append(('cost', params['cost'])) # noqa: E501
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/x-www-form-urlencoded']) # noqa: E501
# Authentication setting
auth_settings = ['jwtTokenAuth'] # noqa: E501
return self.api_client.call_api(
'/items', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Item', # noqa: E501
auth_settings=auth_settings,
is_async=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def items_stats_get(self, **kwargs): # noqa: E501
"""Get consumption stats of all items # noqa: E501
Get the matomat stats for all items # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.items_stats_get(async=True)
>>> result = thread.get()
:param async bool
:return: list[ItemStats]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return self.items_stats_get_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.items_stats_get_with_http_info(**kwargs) # noqa: E501
return data
def items_stats_get_with_http_info(self, **kwargs): # noqa: E501
"""Get consumption stats of all items # noqa: E501
Get the matomat stats for all items # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.items_stats_get_with_http_info(async=True)
>>> result = thread.get()
:param async bool
:return: list[ItemStats]
If the method is called asynchronously,
returns the request thread.
"""
all_params = [] # noqa: E501
all_params.append('async')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in six.iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method items_stats_get" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['jwtTokenAuth'] # noqa: E501
return self.api_client.call_api(
'/items/stats', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[ItemStats]', # noqa: E501
auth_settings=auth_settings,
is_async=params.get('async'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
| 38.606135 | 161 | 0.599415 | 3,790 | 31,464 | 4.74248 | 0.053034 | 0.054746 | 0.026316 | 0.032046 | 0.974296 | 0.971125 | 0.969233 | 0.963058 | 0.958885 | 0.953767 | 0 | 0.017596 | 0.310037 | 31,464 | 814 | 162 | 38.653563 | 0.810355 | 0.328089 | 0 | 0.817352 | 1 | 0.004566 | 0.182528 | 0.043628 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038813 | false | 0 | 0.009132 | 0 | 0.105023 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
a2c80d6982606a613532fed5576527209d4266d2 | 66,071 | py | Python | stage/test_hbase_destination.py | anubandhan/datacollector-tests | 301c024c66d68353735256b262b681dd05ba16cc | [
"Apache-2.0"
] | null | null | null | stage/test_hbase_destination.py | anubandhan/datacollector-tests | 301c024c66d68353735256b262b681dd05ba16cc | [
"Apache-2.0"
] | 1 | 2019-04-24T11:06:38.000Z | 2019-04-24T11:06:38.000Z | stage/test_hbase_destination.py | anubandhan/datacollector-tests | 301c024c66d68353735256b262b681dd05ba16cc | [
"Apache-2.0"
] | 2 | 2019-05-24T06:34:37.000Z | 2020-03-30T11:48:18.000Z | # Copyright 2018 StreamSets Inc.
#
# 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 json
import logging
import os
import string
import time
import pytest
from streamsets.sdk.utils import Version
from streamsets.testframework.markers import cluster
from streamsets.testframework.utils import get_random_string
logger = logging.getLogger(__name__)
# Specify a port for SDC RPC stages to use.
SDC_RPC_PORT = 20000
@pytest.fixture(autouse=True)
def version_check(sdc_builder, cluster):
if cluster.version == 'cdh6.0.0' and Version('3.5.0') <= Version(sdc_builder.version) < Version('3.6.0'):
pytest.skip('HBase destination is not included in streamsets-datacollector-cdh_6_0-lib in SDC 3.5')
@cluster('cdh', 'hdp')
def test_hbase_destination_validate_no_config_issues(sdc_builder, sdc_executor, cluster):
"""Simple HBase destination pipeline validation test.
dev_raw_data_source >> hbase
"""
# Generate random records.
dumb_data = ['I see you driving', 'Round town with the girl I love', 'And I am like John.']
# Create random table name to avoid collisions.
random_table_name = get_random_string(string.ascii_letters, 10)
# Get pipeline builder.
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline.
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'TEXT'
dev_raw_data_source.raw_data = '\n'.join(dumb_data)
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/text'
hbase.fields = [dict(columnValue='/text', columnStorageType='TEXT', columnName='cf1:cq1')]
# Build pipeline.
dev_raw_data_source >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf1': {}})
# Validate pipeline by running preview.
preview = sdc_executor.run_pipeline_preview(pipeline).preview
assert preview is not None
logger.debug('preview is not None')
assert preview.issues.issues_count == 0
logger.debug('issues_count is = 0')
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
logger.info('removing pipeline')
@cluster('cdh', 'hdp')
def test_hbase_destination_invalid_configs(sdc_builder, sdc_executor, cluster):
"""HBase destination test checking invalid static and dynamic wrong configurations (Statics: zookeeper_quorum,
zookeeper_parent_znode. Dynamics: zookeeper_client_port)
dev_raw_data_source >> hbase
"""
# Generate random records.
dumb_data = ['I see you driving', 'Round town with the girl I love', 'And I am like John.']
# Create random table name to avoid collisions.
random_table_name = get_random_string(string.ascii_letters, 10)
# Get pipeline builder.
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline.
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'TEXT'
dev_raw_data_source.raw_data = '\n'.join(dumb_data)
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/text'
hbase.fields = [dict(columnValue='/text', columnStorageType='TEXT', columnName='cf1:cq1')]
hbase.zookeeper_quorum = None
hbase.zookeeper_client_port = 0
hbase.zookeeper_parent_znode = None
hbase.time_basis = '${time:now()}'
# Build pipeline.
dev_raw_data_source >> hbase
pipeline = pipeline_builder.build()
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf1': {}})
issues = sdc_executor.api_client.export_pipeline(pipeline.id)['pipelineConfig']['issues']
assert 0 < issues['issueCount']
stage_issues = issues['stageIssues']['HBase_01']
assert 2 == len(stage_issues)
zookeeper_quorum_issue = stage_issues[0]
assert 'hBaseConnectionConfig.zookeeperQuorum' in zookeeper_quorum_issue['configName']
assert 'VALIDATION_0007 - Configuration value is required' in zookeeper_quorum_issue['message']
zookeeper_parent_znode_issue = stage_issues[1]
assert 'hBaseConnectionConfig.zookeeperParentZNode' in zookeeper_parent_znode_issue['configName']
assert 'VALIDATION_0007 - Configuration value is required' in zookeeper_parent_znode_issue['message']
sdc_executor.remove_pipeline(pipeline)
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
with pytest.raises(Exception) as e:
sdc_executor.start_pipeline(pipeline)
sdc_executor.stop_pipeline(pipeline)
assert 'HBASE_13' in e.value.message
assert 'HBASE_13 - Zookeeper client port is invalid' in e.value.message
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
logger.info('removing pipeline')
@cluster('cdh', 'hdp')
def test_hbase_destination_single_record_text_storage(sdc_builder, sdc_executor, cluster):
"""Simple HBase destination test using JSON data.
dev_raw_data_source >> hbase
"""
# Generate dummy data.
data = {'key': 'key', 'cf:a': '20', 'cf:b': '20180702113435000', 'cf:c': '20180702113435000',
'cf:d': '20180702113435000'}
json_data = json.dumps(data)
# Expected output.
expected_key = b'key'
expected_data = {b'cf:a': b'20', b'cf:b': b'20180702113435000', b'cf:c': b'20180702113435000',
b'cf:d': b'20180702113435000'}
# Create random table name to avoid collisions.
random_table_name = get_random_string(string.ascii_letters, 10)
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline.
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'JSON'
dev_raw_data_source.raw_data = json_data
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/key'
hbase.fields = [dict(columnValue='/cf:a', columnStorageType='TEXT', columnName='cf:a'),
dict(columnValue='/cf:b', columnStorageType='TEXT', columnName='cf:b'),
dict(columnValue='/cf:c', columnStorageType='TEXT', columnName='cf:c'),
dict(columnValue='/cf:d', columnStorageType='TEXT', columnName='cf:d')]
hbase.set_attributes(implicit_field_mapping=False)
# Build pipeline.
dev_raw_data_source >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf:': {}})
sdc_executor.start_pipeline(pipeline)
sdc_executor.stop_pipeline(pipeline)
for element in cluster.hbase.client.table(random_table_name).scan():
assert element[0] == expected_key
assert element[1] == expected_data
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
@cluster('cdh', 'hdp')
def test_hbase_implicit_field_mapping_null(sdc_builder, sdc_executor, cluster):
"""HBase test input field as none, should return empty string
dev_raw_data_source >> hbase
"""
data = {'key': 'key', 'cf:a': None, 'cf:b': '20180702113435000', 'cf:c': '20180702113435000',
'cf:d': '20180702113435000'}
json_data = json.dumps(data)
expected_key = b'key'
expected_data = {b'cf:a': b'', b'cf:b': b'20180702113435000', b'cf:c': b'20180702113435000',
b'cf:d': b'20180702113435000'}
# Create random table name to avoid collisions.
random_table_name = get_random_string(string.ascii_letters, 10)
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline.
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'JSON'
dev_raw_data_source.raw_data = json_data
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/key'
hbase.fields = [dict(columnValue='/cf:a', columnStorageType='TEXT', columnName='cf:a'),
dict(columnValue='/cf:b', columnStorageType='TEXT', columnName='cf:b'),
dict(columnValue='/cf:c', columnStorageType='TEXT', columnName='cf:c'),
dict(columnValue='/cf:d', columnStorageType='TEXT', columnName='cf:d')]
hbase.set_attributes(on_record_error='DISCARD',
implicit_field_mapping=True,
ignore_invalid_column=False)
# Build pipeline.
dev_raw_data_source >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf:': {}})
sdc_executor.start_pipeline(pipeline)
sdc_executor.stop_pipeline(pipeline)
for element in cluster.hbase.client.table(random_table_name).scan():
assert expected_key == element[0]
assert expected_data == element[1]
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
@cluster('cdh', 'hdp')
def test_hbase_field_mapping(sdc_builder, sdc_executor, cluster):
"""HBase only field mapping
dev_raw_data_source >> hbase
"""
data = {'cf:a': 'data', 'data1': '20180702113435000', 'data2': '20180702113435000'}
json_data = json.dumps(data)
# Create random table name to avoid collisions.
random_table_name = get_random_string(string.ascii_letters, 10)
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline.
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'TEXT'
dev_raw_data_source.raw_data = json_data
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/text'
hbase.fields = [dict(columnValue='/cf:a', columnStorageType='TEXT', columnName='cf:a')]
hbase.set_attributes(implicit_field_mapping=True)
# Build pipeline.
dev_raw_data_source >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf:': {}})
sdc_executor.start_pipeline(pipeline)
sdc_executor.stop_pipeline(pipeline)
for element in cluster.hbase.client.table(random_table_name).scan():
assert json_data in str(element)
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
@cluster('cdh', 'hdp')
def test_hbase_field_mapping_ignore_invalid_column(sdc_builder, sdc_executor, cluster):
"""HBase field mapping ignore invalid column
dev_raw_data_source >> hbase
"""
data = {'key': 'key', 'Hello': '20180702113435000', 'cf:b': '20180702113435000'}
json_data = json.dumps(data)
expected_key = b'key'
expected_data = {b'cf:a': b'', b'cf:b': b'20180702113435000'}
# Create random table name to avoid collisions.
random_table_name = get_random_string(string.ascii_letters, 10)
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline.
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'JSON'
dev_raw_data_source.raw_data = json_data
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/key'
hbase.fields = [dict(columnValue='/cf:a', columnStorageType='TEXT', columnName='cf:a'),
dict(columnValue='/cf:b', columnStorageType='TEXT', columnName='cf:b')]
hbase.set_attributes(on_record_error='DISCARD',
implicit_field_mapping=True,
ignore_invalid_column=True)
# Build pipeline.
dev_raw_data_source >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf:': {}})
sdc_executor.start_pipeline(pipeline)
sdc_executor.stop_pipeline(pipeline)
for element in cluster.hbase.client.table(random_table_name).scan():
assert expected_key == element[0]
assert expected_data == element[1]
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
@cluster('cdh', 'hdp')
def test_hbase_field_mapping_not_ignore_invalid_column(sdc_builder, sdc_executor, cluster):
"""HBase field mapping not ignore invalid column
should discard the record
dev_raw_data_source >> hbase
"""
data = {'key': 'key', 'Hello': '20180702113435000', 'cf:b': '20180702113435000'}
json_data = json.dumps(data)
# Create random table name to avoid collisions.
random_table_name = get_random_string(string.ascii_letters, 10)
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline.
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'JSON'
dev_raw_data_source.raw_data = json_data
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/key'
hbase.fields = [dict(columnValue='/cf:a', columnStorageType='TEXT', columnName='cf:a'),
dict(columnValue='/cf:b', columnStorageType='TEXT', columnName='cf:b')]
hbase.set_attributes(on_record_error='TO_ERROR',
implicit_field_mapping=True,
ignore_invalid_column=False)
# Build pipeline.
dev_raw_data_source >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf:': {}})
snapshot = sdc_executor.capture_snapshot(pipeline, start_pipeline=True).snapshot
sdc_executor.stop_pipeline(pipeline)
scan = cluster.hbase.client.table(random_table_name).scan()
assert 0 == len(list(scan))
stage = snapshot[hbase.instance_name]
logger.info('Error record %s ...', stage.error_records)
assert 1 == len(stage.error_records)
assert 'HBASE_28' == stage.error_records[0].header['errorCode']
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
@cluster('cdh', 'hdp')
def test_hbase_write_wrong_column(sdc_builder, sdc_executor, cluster):
"""HBase write records into a wrong column
should send the record to error records
dev_raw_data_source >> hbase
"""
data = {'key': 'key', 'invalidcf:a': 'Hi', 'cf:b': 'Hello'}
json_data = json.dumps(data)
# Create random table name to avoid collisions.
random_table_name = get_random_string(string.ascii_letters, 10)
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline.
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'JSON'
dev_raw_data_source.raw_data = json_data
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/key'
hbase.fields = [dict(columnValue='/cf:a', columnStorageType='TEXT', columnName='cf:a'),
dict(columnValue='/cf:b', columnStorageType='TEXT', columnName='cf:b')]
hbase.set_attributes(storage_type='TEXT',
on_record_error='TO_ERROR',
implicit_field_mapping=True,
ignore_invalid_column=False)
# Build pipeline.
dev_raw_data_source >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf:': {}})
try:
snapshot = sdc_executor.capture_snapshot(pipeline, start_pipeline=True).snapshot
sdc_executor.stop_pipeline(pipeline)
assert 0 == len(list(cluster.hbase.client.table(random_table_name).scan()))
stage = snapshot[hbase.instance_name]
logger.info('Error record %s ...', stage.error_records)
assert 1 == len(stage.error_records)
logger.error('Errors: ' + stage.error_records[0].header['errorCode'])
assert 'HBASE_10' == stage.error_records[0].header['errorCode']
except Exception as e:
assert 'HBASE_02' in e.response['message']
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
@cluster('cdh', 'hdp')
def test_hbase_invalid_row_key(sdc_builder, sdc_executor, cluster):
"""HBase invalid row key
dev_raw_data_source >> hbase
"""
data = {'data1': '20180702113435000', 'data2': '20180702113435000'}
json_data = json.dumps(data)
# Create random table name to avoid collisions.
random_table_name = get_random_string(string.ascii_letters, 10)
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline.
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'TEXT'
dev_raw_data_source.raw_data = json_data
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/invalid'
hbase.fields = [dict(columnValue='[1]', columnStorageType='TEXT', columnName='cf:a')]
hbase.set_attributes(on_record_error='TO_ERROR',
implicit_field_mapping=True,
ignore_invalid_column=False)
# Build pipeline.
dev_raw_data_source >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf:': {}})
snapshot = sdc_executor.capture_snapshot(pipeline, start_pipeline=True).snapshot
sdc_executor.stop_pipeline(pipeline)
assert 0 == len(list(cluster.hbase.client.table(random_table_name).scan()))
stage = snapshot[hbase.instance_name]
logger.info('Error record %s ...', stage.error_records)
assert 1 == len(stage.error_records)
assert 'HBASE_27' == stage.error_records[0].header['errorCode']
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
@cluster('cdh', 'hdp')
def test_hbase_not_flat_map(sdc_builder, sdc_executor, cluster):
"""HBase not flat map record
dev_raw_data_source >> hbase
"""
inner_data = {'Martin': 'Head of Spain', 'Danilo': 'Customer Support'}
data = {'Tucu': 'Developer', 'Xavi': 'Developer', 'Alex': 'Developer', 'Others': inner_data}
json_data = json.dumps(data)
# Create random table name to avoid collisions.
random_table_name = get_random_string(string.ascii_letters, 10)
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline.
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'TEXT'
dev_raw_data_source.raw_data = json_data
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/text'
hbase.fields = [dict(columnValue='[1]', columnStorageType='TEXT', columnName='cf:a')]
hbase.set_attributes(implicit_field_mapping=True,
ignore_invalid_column=False)
# Build pipeline.
dev_raw_data_source >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf:': {}})
sdc_executor.start_pipeline(pipeline)
sdc_executor.stop_pipeline(pipeline)
for element in cluster.hbase.client.table(random_table_name).scan():
assert json_data in str(element)
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
@cluster('cdh', 'hdp')
def test_hbase_not_map_error(sdc_builder, sdc_executor, cluster):
"""HBase not map record (list)
dev_raw_data_source >> hbase
"""
data = ['key', 'Hi', 'Hello', 'Hola']
json_data = json.dumps(data)
# Create random table name to avoid collisions.
random_table_name = get_random_string(string.ascii_letters, 10)
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline.
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'JSON'
dev_raw_data_source.raw_data = json_data
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/key'
hbase.fields = [dict(columnValue='[1]', columnStorageType='TEXT', columnName='cf:a'),
dict(columnValue='[2]', columnStorageType='TEXT', columnName='cf:b'),
dict(columnValue='[3]', columnStorageType='TEXT', columnName='cf:c')]
hbase.set_attributes(on_record_error='TO_ERROR',
implicit_field_mapping=False,
ignore_invalid_column=True)
# Build pipeline.
dev_raw_data_source >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf:': {}})
snapshot = sdc_executor.capture_snapshot(pipeline, start_pipeline=True).snapshot
sdc_executor.stop_pipeline(pipeline)
scan = cluster.hbase.client.table(random_table_name).scan()
assert 0 == len(list(scan))
stage = snapshot[hbase.instance_name]
logger.info('Error record %s ...', stage.error_records)
assert 1 == len(stage.error_records)
assert 'HBASE_27' == stage.error_records[0].header['errorCode']
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
@cluster('cdh', 'hdp')
def test_hbase_destination_single_record_binary_storage(sdc_builder, sdc_executor, cluster):
"""Simple HBase destination test using JSON data and storing binary data in HBase.
dev_raw_data_source >> hbase
"""
data = {'row_key': 11, 'cf:a': 20, 'cf:b': 30, 'cf:c': 40, 'cf:d': 50}
json_data = json.dumps(data)
expected_key = b'\x00\x00\x00\x0b'
expected_value = {b'cf:a': b'\x00\x00\x00\x14', b'cf:b': b'\x00\x00\x00\x1e', b'cf:c': b'40', b'cf:d': b'50'}
# Create random table name to avoid collisions
random_table_name = get_random_string(string.ascii_letters, 10)
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'JSON'
dev_raw_data_source.raw_data = json_data
# Add HBase stage to pipeline
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/row_key'
hbase.fields = [dict(columnValue='/cf:a', columnStorageType='BINARY', columnName='cf:a'),
dict(columnValue='/cf:b', columnStorageType='BINARY', columnName='cf:b'),
dict(columnValue='/cf:c', columnStorageType='TEXT', columnName='cf:c'),
dict(columnValue='/cf:d', columnStorageType='TEXT', columnName='cf:d')]
hbase.set_attributes(storage_type='BINARY')
# Build pipeline.
dev_raw_data_source >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf:': {}})
sdc_executor.start_pipeline(pipeline)
sdc_executor.stop_pipeline(pipeline)
elements = list(cluster.hbase.client.table(random_table_name).scan())
assert 1 == len(elements)
for element in elements:
assert 2 == len(element)
assert element[0] == expected_key
assert element[1] == expected_value
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
@cluster('cdh', 'hdp')
def test_hbase_destination_single_record_binary_storage_date(sdc_builder, sdc_executor, cluster):
"""HBase destination test using JSON data checking field type conversion from DATE to Binary fails
dev_raw_data_source >> expression_evaluator >> field_type_converter >> hbase
"""
single_record_binary_storage_date_time_types(sdc_builder, sdc_executor, cluster, 'DATE')
@cluster('cdh', 'hdp')
def test_hbase_destination_single_record_binary_storage_time(sdc_builder, sdc_executor, cluster):
"""HBase destination test using JSON data checking field type conversion from TIME to Binary fails
dev_raw_data_source >> expression_evaluator >> field_type_converter >> hbase
"""
single_record_binary_storage_date_time_types(sdc_builder, sdc_executor, cluster, 'TIME')
@cluster('cdh', 'hdp')
def test_hbase_destination_single_record_binary_storage_date_time(sdc_builder, sdc_executor, cluster):
"""HBase destination test using JSON data checking field type conversion from DATETIME to Binary fails
dev_raw_data_source >> expression_evaluator >> field_type_converter >> hbase
"""
single_record_binary_storage_date_time_types(sdc_builder, sdc_executor, cluster, 'DATETIME')
@cluster('cdh', 'hdp')
def test_hbase_multiple_records(sdc_builder, sdc_executor, cluster):
"""HBase write multiple records
dev_raw_data_source >> hbase
"""
data = """{"key": "key", "cf:a": "10", "cf:b": "1992-12-02"}
{"key": "key", "cf:a": "30", "cf:b": "1992-12-03"}
{"key": "key", "cf:a": "20", "cf:b": "1992-12-01"}"""
expected_key = b'key'
expected_data = {b'cf:a': b'20', b'cf:b': b'1992-12-01'}
# Create random table name to avoid collisions.
random_table_name = get_random_string(string.ascii_letters, 10)
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline.
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'JSON'
dev_raw_data_source.raw_data = data
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/key'
hbase.fields = [dict(columnValue='/cf:a', columnStorageType='TEXT', columnName='cf:a'),
dict(columnValue='/cf:b', columnStorageType='TEXT', columnName='cf:b')]
hbase.set_attributes(storage_type='TEXT',
on_record_error='TO_ERROR',
implicit_field_mapping=False,
ignore_invalid_column=False)
# Build pipeline.
dev_raw_data_source >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf:': {}})
sdc_executor.start_pipeline(pipeline)
sdc_executor.stop_pipeline(pipeline)
scan = cluster.hbase.client.table(random_table_name).scan()
assert 0 != len(list(scan))
for element in scan:
assert element[0] == expected_key
assert element[1] == expected_data
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
@cluster('cdh', 'hdp')
def test_hbase_collection_types(sdc_builder, sdc_executor, cluster):
"""HBase different collection types
dev_raw_data_source >> hbase
"""
data_array = ['Hi', 'Hello', 'Hola']
data_map = {'English': 'Hello', 'Spanish': 'Hola'}
data = {'key': 'key', 'cf:a': 'Text_Sample', 'cf:b': data_map, 'cf:c': data_array}
json_data = json.dumps(data)
expected_key = b'key'
expected_data = {b'cf:a': b'Text_Sample', b'cf:b': b'{"English":"Hello","Spanish":"Hola"}',
b'cf:c': b'["Hi","Hello","Hola"]'}
# Create random table name to avoid collisions.
random_table_name = get_random_string(string.ascii_letters, 10)
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline.
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'JSON'
dev_raw_data_source.raw_data = json_data
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/key'
hbase.fields = [dict(columnValue='/cf:a', columnStorageType='TEXT', columnName='cf:a'),
dict(columnValue='/cf:b', columnStorageType='JSON_STRING', columnName='cf:b'),
dict(columnValue='/cf:c', columnStorageType='JSON_STRING', columnName='cf:c')]
hbase.set_attributes(storage_type='TEXT',
on_record_error='DISCARD',
implicit_field_mapping=False,
ignore_invalid_column=False)
# Build pipeline.
dev_raw_data_source >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf:': {}})
sdc_executor.start_pipeline(pipeline)
sdc_executor.stop_pipeline(pipeline)
for element in cluster.hbase.client.table(random_table_name).scan():
assert expected_key == element[0]
assert expected_data == element[1]
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
@cluster('cdh', 'hdp')
def test_hbase_write_records_on_error_discard(sdc_builder, sdc_executor, cluster):
"""HBase write records on error discard
dev_raw_data_source >> hbase
"""
data = {'key': 'key', 'cf:a': 20, 'cf:b': 'Hello', 'cf:c': 'Hello', 'cf:d': 21}
json_data = json.dumps(data)
# Create random table name to avoid collisions
random_table_name = get_random_string(string.ascii_letters, 10)
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline.
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'JSON'
dev_raw_data_source.raw_data = json_data
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/key'
hbase.fields = [dict(columnValue='/cf:a', columnStorageType='BINARY', columnName='cf:a'),
dict(columnValue='/cf:b', columnStorageType='BINARY', columnName='cf:b'),
dict(columnValue='/cf:c', columnStorageType='TEXT', columnName='cf:c'),
dict(columnValue='/cf:d', columnStorageType='TEXT', columnName='cf:d')]
hbase.set_attributes(storage_type='TEXT',
on_record_error='DISCARD',
implicit_field_mapping=False,
ignore_invalid_column=False)
# Build pipeline.
dev_raw_data_source >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf:': {}})
sdc_executor.start_pipeline(pipeline)
sdc_executor.stop_pipeline(pipeline)
assert 0 == len(list(cluster.hbase.client.table(random_table_name).scan()))
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
@cluster('cdh', 'hdp')
def test_hbase_write_records_on_error_send_to_error(sdc_builder, sdc_executor, cluster):
"""HBase write records on error send to error
dev_raw_data_source >> hbase
"""
data = {'key': 'key', 'cf:a': 20, 'cf:b': 'Hello', 'cf:c': 'Hello', 'cf:d': 21}
json_data = json.dumps(data)
# Create random table name to avoid collisions.
random_table_name = get_random_string(string.ascii_letters, 10)
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline.
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'JSON'
dev_raw_data_source.raw_data = json_data
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/key'
hbase.fields = [dict(columnValue='/cf:a', columnStorageType='BINARY', columnName='cf:a'),
dict(columnValue='/cf:b', columnStorageType='BINARY', columnName='cf:b'),
dict(columnValue='/cf:c', columnStorageType='TEXT', columnName='cf:c'),
dict(columnValue='/cf:d', columnStorageType='TEXT', columnName='cf:d')]
hbase.set_attributes(storage_type='TEXT',
on_record_error='TO_ERROR',
implicit_field_mapping=False,
ignore_invalid_column=False)
# Build pipeline
dev_raw_data_source >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf:': {}})
snapshot = sdc_executor.capture_snapshot(pipeline, start_pipeline=True).snapshot
sdc_executor.stop_pipeline(pipeline)
assert 0 == len(list(cluster.hbase.client.table(random_table_name).scan()))
stage = snapshot[hbase.instance_name]
logger.info('Error record %s ...', stage.error_records)
assert 1 == len(stage.error_records)
assert 'HBASE_12' == stage.error_records[0].header['errorCode']
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
@cluster('cdh', 'hdp')
def test_hbase_write_records_on_error_stop_pipeline(sdc_builder, sdc_executor, cluster):
"""HBase write records on error stop pipeline
dev_raw_data_source >> hbase
"""
data = {'key': 'key', 'cf:a': 20, 'cf:b': 'on_error_stop_pipeline', 'cf:c': 'Hello', 'cf:d': 21}
json_data = json.dumps(data)
# Create random table name to avoid collisions.
random_table_name = get_random_string(string.ascii_letters, 10)
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline.
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'JSON'
dev_raw_data_source.raw_data = json_data
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/key'
hbase.fields = [dict(columnValue='/non-existing', columnStorageType='BINARY', columnName='cf:a'),
dict(columnValue='/cf:b', columnStorageType='BINARY', columnName='cf:b'),
dict(columnValue='/cf:c', columnStorageType='TEXT', columnName='cf:c'),
dict(columnValue='/cf:d', columnStorageType='TEXT', columnName='cf:d')]
hbase.set_attributes(storage_type='BINARY',
on_record_error='STOP_PIPELINE',
implicit_field_mapping=False,
ignore_invalid_column=False)
# Build pipeline.
dev_raw_data_source >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf:': {}})
with pytest.raises(Exception):
sdc_executor.start_pipeline(pipeline)
sdc_executor.stop_pipeline(pipeline)
status = sdc_executor.get_pipeline_status(pipeline).response.json().get('status')
logger.info('Pipeline status %s ...', status)
assert 'RUN_ERROR' == status
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
@cluster('cdh', 'hdp')
def test_hbase_multiple_records_on_error(sdc_builder, sdc_executor, cluster):
"""HBase write multiple records
dev_raw_data_source >> hbase
"""
data = """{"key": "key", "cf:a": "10", "cf:b": "1992-12-02"}
{"key": "key", "cf:a": "30", "cf:b": "1992-12-03"}
{"key": "key", "cf:a": "20", "cf:b": "1992-12-01"}"""
# Create random table name to avoid collisions.
random_table_name = get_random_string(string.ascii_letters, 10)
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline.
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'JSON'
dev_raw_data_source.raw_data = data
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/key'
hbase.fields = [dict(columnValue='/cf:a', columnStorageType='TEXT', columnName='cf:a'),
dict(columnValue='/cf:b', columnStorageType='BINARY', columnName='cf:b')]
hbase.set_attributes(storage_type='TEXT',
on_record_error='TO_ERROR',
implicit_field_mapping=False,
ignore_invalid_column=False)
# Build pipeline.
dev_raw_data_source >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf:': {}})
snapshot = sdc_executor.capture_snapshot(pipeline, start_pipeline=True).snapshot
sdc_executor.stop_pipeline(pipeline)
scan = cluster.hbase.client.table(random_table_name).scan()
assert 0 == len(list(scan))
stage = snapshot[hbase.instance_name]
logger.info('Error record %s ...', stage.error_records)
assert 3 == len(stage.error_records)
assert 'HBASE_12' == stage.error_records[0].header['errorCode']
assert 'HBASE_12' == stage.error_records[1].header['errorCode']
assert 'HBASE_12' == stage.error_records[2].header['errorCode']
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
@cluster('cdh', 'hdp')
def test_hbase_custom_time_basis(sdc_builder, sdc_executor, cluster):
"""HBase write records with custom time basis
dev_raw_data_source >> hbase
"""
data = """{"key": "key", "cf:a": "10", "cf:b": "1992-12-02"}
{"key": "key", "cf:a": "30", "cf:b": "1992-12-03"}
{"key": "key", "cf:a": "20", "cf:b": "1992-12-01"}"""
expected_key = b'key'
expected_data = {b'cf:a': b'30', b'cf:b': b'Thu Dec 03 00:00:00 GMT 1992'}
# Create random table name to avoid collisions.
random_table_name = get_random_string(string.ascii_letters, 10)
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline.
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'JSON'
dev_raw_data_source.raw_data = data
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/key'
hbase.fields = [dict(columnValue='/cf:a', columnStorageType='TEXT', columnName='cf:a'),
dict(columnValue='/cf:b', columnStorageType='TEXT', columnName='cf:b')]
hbase.set_attributes(storage_type='TEXT',
on_record_error='TO_ERROR',
implicit_field_mapping=False,
ignore_invalid_column=False,
time_basis='${record:value(\'/cf:b\')}')
field_type_converter = pipeline_builder.add_stage('Field Type Converter')
field_type_converter_configs = [
{
'fields': ['/cf:b'],
'targetType': 'DATE',
'dateFormat': 'YYYY_MM_DD'
}
]
field_type_converter.set_attributes(conversion_method='BY_FIELD',
field_type_converter_configs=field_type_converter_configs)
# Build pipeline.
dev_raw_data_source >> field_type_converter >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf:': {}})
sdc_executor.start_pipeline(pipeline)
sdc_executor.stop_pipeline(pipeline)
scan = cluster.hbase.client.table(random_table_name).scan()
assert 0 != len(list(scan))
for element in scan:
assert element[0] == expected_key
assert element[1] == expected_data
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
@cluster('cdh', 'hdp')
def test_hbase_empty_time_basis(sdc_builder, sdc_executor, cluster):
"""HBase write records with empty time basis
dev_raw_data_source >> hbase
"""
data = """{"key": "key", "cf:a": "10", "cf:b": "1992-12-02"}
{"key": "key", "cf:a": "30", "cf:b": "1992-12-03"}
{"key": "key", "cf:a": "20", "cf:b": "1992-12-01"}"""
expected_key = b'key'
expected_data = {b'cf:a': b'20', b'cf:b': b'Tue Dec 01 00:00:00 GMT 1992'}
# Create random table name to avoid collisions.
random_table_name = get_random_string(string.ascii_letters, 10)
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline.
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'JSON'
dev_raw_data_source.raw_data = data
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/key'
hbase.fields = [dict(columnValue='/cf:a', columnStorageType='TEXT', columnName='cf:a'),
dict(columnValue='/cf:b', columnStorageType='TEXT', columnName='cf:b')]
hbase.set_attributes(storage_type='TEXT',
on_record_error='TO_ERROR',
implicit_field_mapping=False,
ignore_invalid_column=False,
time_basis='')
field_type_converter = pipeline_builder.add_stage('Field Type Converter')
field_type_converter_configs = [
{
'fields': ['/cf:b'],
'targetType': 'DATE',
'dateFormat': 'YYYY_MM_DD'
}
]
field_type_converter.set_attributes(conversion_method='BY_FIELD',
field_type_converter_configs=field_type_converter_configs)
# Build pipeline.
dev_raw_data_source >> field_type_converter >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf:': {}})
sdc_executor.start_pipeline(pipeline)
sdc_executor.stop_pipeline(pipeline)
scan = cluster.hbase.client.table(random_table_name).scan()
assert 0 != len(list(scan))
for element in scan:
assert element[0] == expected_key
assert element[1] == expected_data
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
@cluster('cdh', 'hdp')
def test_hbase_now_time_basis(sdc_builder, sdc_executor, cluster):
"""HBase write records with now time basis
dev_raw_data_source >> hbase
"""
data = """{"key": "key", "cf:a": "10", "cf:b": "1992-12-02"}
{"key": "key", "cf:a": "30", "cf:b": "1992-12-03"}
{"key": "key", "cf:a": "20", "cf:b": "1992-12-01"}"""
expected_key = b'key'
expected_data = {b'cf:a': b'20', b'cf:b': b'Tue Dec 01 00:00:00 GMT 1992'}
# Create random table name to avoid collisions.
random_table_name = get_random_string(string.ascii_letters, 10)
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline.
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'JSON'
dev_raw_data_source.raw_data = data
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/key'
hbase.fields = [dict(columnValue='/cf:a', columnStorageType='TEXT', columnName='cf:a'),
dict(columnValue='/cf:b', columnStorageType='TEXT', columnName='cf:b')]
hbase.set_attributes(storage_type='TEXT',
on_record_error='TO_ERROR',
implicit_field_mapping=False,
ignore_invalid_column=False,
time_basis='${time:now()}')
field_type_converter = pipeline_builder.add_stage('Field Type Converter')
field_type_converter_configs = [
{
'fields': ['/cf:b'],
'targetType': 'DATE',
'dateFormat': 'YYYY_MM_DD'
}
]
field_type_converter.set_attributes(conversion_method='BY_FIELD',
field_type_converter_configs=field_type_converter_configs)
# Build pipeline.
dev_raw_data_source >> field_type_converter >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf:': {}})
sdc_executor.start_pipeline(pipeline)
sdc_executor.stop_pipeline(pipeline)
scan = cluster.hbase.client.table(random_table_name).scan()
assert 0 != len(list(scan))
for element in scan:
assert element[0] == expected_key
assert element[1] == expected_data
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
@cluster('cdh', 'hdp')
def test_hbase_destination_invalid_column_family(sdc_builder, sdc_executor, cluster):
"""HBase destination test checking an invalid columnName in hbase destination fields raises an HBASE_32 error
dev_raw_data_source >> hbase
"""
# Generate random records.
dumb_data = ['key', 'invalid_cf_a_value', 'valid_cf_b_value']
# Create random table name to avoid collisions.
random_table_name = get_random_string(string.ascii_letters, 10)
# Get pipeline builder.
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline.
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'TEXT'
dev_raw_data_source.raw_data = '\n'.join(dumb_data)
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '[0]'
hbase.fields = [dict(columnValue='[1]', columnStorageType='BINARY', columnName='invalid_cf:a'),
dict(columnValue='[2]', columnStorageType='BINARY', columnName='cf:b')]
hbase.set_attributes(storage_type='TEXT', implicit_field_mapping=False, ignore_missing_field=False)
# Build pipeline.
dev_raw_data_source >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf': {}})
with pytest.raises(Exception) as e:
sdc_executor.start_pipeline(pipeline)
sdc_executor.stop_pipeline(pipeline)
assert 'HBASE_32' in e.value.message
assert 'HBASE_32 - Column family \'invalid_cf:a\' doesn\'t exist' in e.value.message
finally:
# Delete table
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
logger.info('removing pipeline')
@cluster('cdh', 'hdp')
def test_hbase_regular_user(sdc_builder, sdc_executor, cluster):
"""HBase destination with regular user
dev_raw_data_source >> hbase
"""
data = {'key': 'key', 'cf:a': '20', 'cf:b': '20180702113435000'}
json_data = json.dumps(data)
expected_key = b'key'
expected_data = {b'cf:a': b'20', b'cf:b': b'20180702113435000'}
# Create random table name to avoid collisions
random_table_name = get_random_string(string.ascii_letters, 10)
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'JSON'
dev_raw_data_source.raw_data = json_data
# Add HBase stage to pipeline
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/key'
hbase.fields = [dict(columnValue='/cf:a', columnStorageType='TEXT', columnName='cf:a'),
dict(columnValue='/cf:b', columnStorageType='TEXT', columnName='cf:b')]
hbase.set_attributes(storage_type='TEXT',
on_record_error='DISCARD',
hbase_user='',
implicit_field_mapping=False,
ignore_invalid_column=False)
# Build pipeline.
dev_raw_data_source >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf:': {}})
sdc_executor.start_pipeline(pipeline)
sdc_executor.stop_pipeline(pipeline)
for element in cluster.hbase.client.table(random_table_name).scan():
assert element[0] == expected_key
assert element[1] == expected_data
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
@cluster('cdh', 'hdp')
def test_hbase_proxy_user(sdc_builder, sdc_executor, cluster):
"""HBase destination with proxy user
dev_raw_data_source >> hbase
"""
# TEST-551: Permissions missing for stage.test_hbase_destination.test_hbase_proxy_user in Kerberised cluster
if cluster.hbase.is_kerberized:
pytest.skip('HBase Proxy User requires additional configuration on the cluster.')
data = {'key': 'key', 'cf:a': '20', 'cf:b': '20180702113435000'}
json_data = json.dumps(data)
expected_key = b'key'
expected_data = {b'cf:a': b'20', b'cf:b': b'20180702113435000'}
# Create random table name to avoid collisions.
random_table_name = get_random_string(string.ascii_letters, 10)
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline.
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'JSON'
dev_raw_data_source.raw_data = json_data
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/key'
hbase.fields = [dict(columnValue='/cf:a', columnStorageType='TEXT', columnName='cf:a'),
dict(columnValue='/cf:b', columnStorageType='TEXT', columnName='cf:b')]
hbase.set_attributes(storage_type='TEXT',
on_record_error='DISCARD',
hbase_user='foo',
implicit_field_mapping=False,
ignore_invalid_column=False)
# Build pipeline.
dev_raw_data_source >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf:': {}})
sdc_executor.start_pipeline(pipeline)
sdc_executor.stop_pipeline(pipeline)
for element in cluster.hbase.client.table(random_table_name).scan():
assert element[0] == expected_key
assert element[1] == expected_data
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
def single_record_binary_storage_date_time_types(sdc_builder, sdc_executor, cluster, data_type):
"""HBase destination test using JSON data checking fields type conversion
dev_raw_data_source >> expression_evaluator >> field_type_converter >> hbase
"""
data = {'key': 11}
logger.debug('data_type = %s', data_type)
data['origin_date'] = time.time()
json_data = json.dumps(data)
# Create random table name to avoid collisions.
random_table_name = get_random_string(string.ascii_letters, 10)
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Dev Raw Data Source stage to pipeline.
dev_raw_data_source = pipeline_builder.add_stage('Dev Raw Data Source')
dev_raw_data_source.data_format = 'JSON'
dev_raw_data_source.raw_data = json_data
expression_evaluator = pipeline_builder.add_stage('Expression Evaluator')
logger.debug(dir(expression_evaluator.field_expressions))
expression_evaluator.field_expressions = [
dict(fieldToSet='/converted_date',
expression="${time:millisecondsToDateTime(record:value('/origin_date'))}")]
field_type_converter = pipeline_builder.add_stage('Field Type Converter')
field_type_converter_configs = [
{
'fields': ['/converted_date'],
'targetType': str(data_type),
'dateFormat': 'YYYY_MM_DD_HH_MM_SS'
}
]
field_type_converter.set_attributes(conversion_method='BY_FIELD',
field_type_converter_configs=field_type_converter_configs)
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/key'
hbase.fields = [dict(columnValue='/converted_date', columnStorageType='BINARY', columnName='cf:a')]
hbase.set_attributes(storage_type='BINARY', implicit_field_mapping=False, ignore_missing_field=False)
# Build pipeline.
dev_raw_data_source >> expression_evaluator >> field_type_converter >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf:': {}})
snapshot = sdc_executor.capture_snapshot(pipeline, start_pipeline=True).snapshot
sdc_executor.stop_pipeline(pipeline)
stage = snapshot[hbase.instance_name]
assert 1 == len(stage.error_records)
assert 'HBASE_12' == stage.error_records[0].header['errorCode']
assert 'HBASE_12 - Cannot convert type: ' + str(data_type) + ' to BINARY' == \
stage.error_records[0].header['errorMessage']
elements = list(cluster.hbase.client.table(random_table_name).scan())
assert 0 == len(elements)
finally:
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
@cluster('cdh', 'hdp')
def test_hbase_destination_cluster_mode_hbase_config_dir_abs_path(sdc_builder, sdc_executor, cluster):
"""HBase destination test checking validation fails when specifying absolute hbase configuration directory path
in cluster mode
haddop_fs >> hbase
"""
# Get random table name.
random_table_name = get_random_string(string.ascii_letters, 10)
# Get pipeline builder.
pipeline_builder = sdc_builder.get_pipeline_builder()
# Add Hadoop FS origin stage to pipeline.
haddop_fs = pipeline_builder.add_stage('Hadoop FS', type='origin')
haddop_fs.set_attributes(input_paths=['/usr/local/tmp'], data_format='TEXT')
# Create temporary file needed by the test.
file_name = get_random_string(string.ascii_letters, 10)
directories = '/usr/local/tmp/'
if not os.path.exists(directories):
os.makedirs(directories)
full_file_path = f'{directories}{file_name}.txt'
with open(f'/usr/local/tmp/{file_name}.txt', 'w+') as file:
file.write('placeholder line\n')
# Add HBase stage to pipeline.
hbase = pipeline_builder.add_stage('HBase', type='destination')
hbase.table_name = random_table_name
hbase.row_key = '/text'
hbase.fields = [dict(columnValue='/text', columnStorageType='TEXT', columnName='cf:a')]
hbase.hbase_configuration_directory = full_file_path
haddop_fs >> hbase
pipeline = pipeline_builder.build().configure_for_environment(cluster)
pipeline.configuration['shouldRetry'] = False
pipeline.configuration['executionMode'] = 'CLUSTER_BATCH'
sdc_executor.add_pipeline(pipeline)
try:
# Create table.
logger.info('Creating HBase table %s ...', random_table_name)
cluster.hbase.client.create_table(name=random_table_name, families={'cf': {}})
with pytest.raises(Exception) as e:
sdc_executor.start_pipeline(pipeline)
sdc_executor.stop_pipeline(pipeline)
exception_message = e.value.response['attributes']['issues']['stageIssues']['HBase_01'][0]['message']
assert "HBASE_24" in exception_message
assert "HBASE_24 - HBase Configuration Directory '" + full_file_path + \
"' must be relative to SDC resources directory in cluster mode" in exception_message
finally:
# Delete created file
logger.debug("File " + full_file_path + " removed")
os.remove(full_file_path)
# Delete table.
logger.info('Deleting HBase table %s ...', random_table_name)
cluster.hbase.client.delete_table(name=random_table_name, disable=True)
logger.info('removing pipeline')
| 39.445373 | 115 | 0.680253 | 8,303 | 66,071 | 5.14838 | 0.046851 | 0.059162 | 0.071233 | 0.066625 | 0.896063 | 0.891712 | 0.875547 | 0.868505 | 0.85875 | 0.849767 | 0 | 0.017089 | 0.202903 | 66,071 | 1,674 | 116 | 39.468937 | 0.794588 | 0.119387 | 0 | 0.814741 | 0 | 0.01494 | 0.141215 | 0.005419 | 0 | 0 | 0 | 0 | 0.070717 | 1 | 0.02988 | false | 0 | 0.008964 | 0 | 0.038845 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a2ecebbf9abe66e1e824370afcb59945b72f9192 | 2,656 | py | Python | build/lib.macosx-10.9-x86_64-3.9/gators/scalers/tests/test_minmax_scaler.py | Aditya-Kapadiya/gators | d7c9967e3a8e304a601b6a92ad834d03d3e36338 | [
"Apache-2.0"
] | 4 | 2021-10-29T18:20:52.000Z | 2022-03-31T22:53:03.000Z | build/lib.macosx-10.9-x86_64-3.9/gators/scalers/tests/test_minmax_scaler.py | Aditya-Kapadiya/gators | d7c9967e3a8e304a601b6a92ad834d03d3e36338 | [
"Apache-2.0"
] | 1 | 2022-02-21T20:02:16.000Z | 2022-02-21T20:02:16.000Z | build/lib.macosx-10.9-x86_64-3.9/gators/scalers/tests/test_minmax_scaler.py | Aditya-Kapadiya/gators | d7c9967e3a8e304a601b6a92ad834d03d3e36338 | [
"Apache-2.0"
] | 5 | 2021-11-17T20:16:54.000Z | 2022-02-21T18:21:02.000Z | # License: Apache-2.0
from gators.scalers.minmax_scaler import MinMaxScaler
import pytest
import numpy as np
import pandas as pd
import databricks.koalas as ks
ks.set_option('compute.default_index_type', 'distributed-sequence')
@pytest.fixture
def data():
X = pd.DataFrame(
np.arange(25).reshape((5, 5)),
columns=list('ABCDF')
)
return MinMaxScaler().fit(X), X
@pytest.fixture
def data_ks():
X = ks.DataFrame(
np.arange(25).reshape((5, 5)),
columns=list('ABCDF')
)
return MinMaxScaler().fit(X), X
@pytest.fixture
def data_float32():
X = pd.DataFrame(
np.random.randn(5, 5),
columns=list('ABCDF'),
)
return MinMaxScaler(dtype=np.float32).fit(X), X
@pytest.fixture
def data_float32_ks():
X = pd.DataFrame(
np.random.randn(5, 5),
columns=list('ABCDF'),
)
return MinMaxScaler(dtype=np.float32).fit(X), X
def test_pd(data):
obj, X = data
X_new = obj.transform(X)
assert np.allclose(X_new.min().mean(), 0)
assert np.allclose(X_new.max().mean(), 1)
@pytest.mark.koalas
def test_ks(data_ks):
obj, X = data_ks
X_new = obj.transform(X)
assert np.allclose(X_new.min().mean(), 0)
assert np.allclose(X_new.max().mean(), 1)
def test_pd_np(data):
obj, X = data
X_numpy_new = obj.transform_numpy(X.to_numpy())
X_new = pd.DataFrame(X_numpy_new)
assert np.allclose(X_new.min().mean(), 0)
assert np.allclose(X_new.max().mean(), 1)
@pytest.mark.koalas
def test_ks_np(data_ks):
obj, X = data_ks
X_numpy_new = obj.transform_numpy(X.to_numpy())
X_new = pd.DataFrame(X_numpy_new)
assert np.allclose(X_new.min().mean(), 0)
assert np.allclose(X_new.max().mean(), 1)
def test_float32_pd(data_float32):
obj, X = data_float32
X_new = obj.transform(X)
assert np.allclose(X_new.min().mean(), 0)
assert np.allclose(X_new.max().mean(), 1)
@pytest.mark.koalas
def test_float32_ks(data_float32_ks):
obj, X = data_float32_ks
X_new = obj.transform(X)
assert np.allclose(X_new.min().mean(), 0)
assert np.allclose(X_new.max().mean(), 1)
def test_float32_pd_np(data_float32):
obj, X = data_float32
X_numpy_new = obj.transform_numpy(X.to_numpy())
X_new = pd.DataFrame(X_numpy_new)
assert np.allclose(X_new.min().mean(), 0)
assert np.allclose(X_new.max().mean(), 1)
@pytest.mark.koalas
def test_float32_ks_np(data_float32_ks):
obj, X = data_float32_ks
X_numpy_new = obj.transform_numpy(X.to_numpy())
X_new = pd.DataFrame(X_numpy_new)
assert np.allclose(X_new.min().mean(), 0)
assert np.allclose(X_new.max().mean(), 1)
| 24.592593 | 67 | 0.661898 | 431 | 2,656 | 3.87471 | 0.134571 | 0.057485 | 0.153293 | 0.162874 | 0.860479 | 0.846108 | 0.846108 | 0.798204 | 0.777844 | 0.744311 | 0 | 0.028637 | 0.184864 | 2,656 | 107 | 68 | 24.82243 | 0.742725 | 0.007154 | 0 | 0.719512 | 0 | 0 | 0.025047 | 0.009867 | 0 | 0 | 0 | 0 | 0.195122 | 1 | 0.146341 | false | 0 | 0.060976 | 0 | 0.256098 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
0c4b8a61412a55bc7fa2a68a5449c8d6ca1900c5 | 63,929 | gyp | Python | hookflash-core/webRTC/webRTC_ios/tools/gyp/test/win/long-command-line/long-command-line.gyp | ilin-in/OP | bf3e87d90008e2a4106ee70360fbe15b0d694e77 | [
"Unlicense"
] | 1 | 2020-02-19T09:55:55.000Z | 2020-02-19T09:55:55.000Z | hookflash-core/webRTC/webRTC_ios/tools/gyp/test/win/long-command-line/long-command-line.gyp | ilin-in/OP | bf3e87d90008e2a4106ee70360fbe15b0d694e77 | [
"Unlicense"
] | null | null | null | hookflash-core/webRTC/webRTC_ios/tools/gyp/test/win/long-command-line/long-command-line.gyp | ilin-in/OP | bf3e87d90008e2a4106ee70360fbe15b0d694e77 | [
"Unlicense"
] | null | null | null | # Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'longcmd',
'product_name': 'longcmd',
'type': 'executable',
'msvs_settings': {
# Use this as a simple way to get a long command.
'VCCLCompilerTool': {
'AdditionalOptions': '/nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo',
},
'VCLinkerTool': {
'AdditionalOptions': '/nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo /nologo',
},
},
'sources': [
'hello.cc'
]
},
]
}
| 2,458.807692 | 31,713 | 0.748017 | 7,977 | 63,929 | 5.994359 | 0.006268 | 1.987076 | 2.979861 | 3.972144 | 0.9945 | 0.9945 | 0.9945 | 0.9945 | 0.9945 | 0.9945 | 0 | 0.000072 | 0.126891 | 63,929 | 25 | 31,714 | 2,557.16 | 0.856603 | 0.003082 | 0 | 0.1 | 0 | 0.1 | 0.996532 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 13 |
ac1a910290f700ba66ba98f91516b07e71c1f0bb | 19,095 | py | Python | sahara/db/migration/alembic_migrations/versions/001_icehouse.py | esikachev/scenario | 40a59114c7bac44fea510767a3c07d73649f4caf | [
"Apache-2.0"
] | 1 | 2022-02-25T19:14:33.000Z | 2022-02-25T19:14:33.000Z | sahara/db/migration/alembic_migrations/versions/001_icehouse.py | esikachev/scenario | 40a59114c7bac44fea510767a3c07d73649f4caf | [
"Apache-2.0"
] | null | null | null | sahara/db/migration/alembic_migrations/versions/001_icehouse.py | esikachev/scenario | 40a59114c7bac44fea510767a3c07d73649f4caf | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 OpenStack Foundation.
#
# 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.
"""Icehouse release
Revision ID: 001
Revises: None
Create Date: 2014-04-01 20:46:25.783444
"""
# revision identifiers, used by Alembic.
revision = '001'
down_revision = None
from alembic import op
import sqlalchemy as sa
from sahara.db.sqlalchemy import types as st
MYSQL_ENGINE = 'InnoDB'
MYSQL_CHARSET = 'utf8'
def upgrade():
op.create_table('jobs',
sa.Column('created_at', sa.DateTime(), nullable=True),
sa.Column('updated_at', sa.DateTime(), nullable=True),
sa.Column('id', sa.String(length=36), nullable=False),
sa.Column('tenant_id', sa.String(length=36),
nullable=True),
sa.Column('name', sa.String(length=80), nullable=False),
sa.Column('description', sa.Text(), nullable=True),
sa.Column('type', sa.String(length=80), nullable=False),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('name', 'tenant_id'),
mysql_engine=MYSQL_ENGINE,
mysql_charset=MYSQL_CHARSET)
op.create_table('node_group_templates',
sa.Column('created_at', sa.DateTime(), nullable=True),
sa.Column('updated_at', sa.DateTime(), nullable=True),
sa.Column('id', sa.String(length=36), nullable=False),
sa.Column('name', sa.String(length=80), nullable=False),
sa.Column('description', sa.Text(), nullable=True),
sa.Column('tenant_id', sa.String(length=36),
nullable=True),
sa.Column('flavor_id', sa.String(length=36),
nullable=False),
sa.Column('image_id', sa.String(length=36), nullable=True),
sa.Column('plugin_name', sa.String(length=80),
nullable=False),
sa.Column('hadoop_version', sa.String(length=80),
nullable=False),
sa.Column('node_processes', st.JsonEncoded(),
nullable=True),
sa.Column('node_configs', st.JsonEncoded(), nullable=True),
sa.Column('volumes_per_node', sa.Integer(),
nullable=False),
sa.Column('volumes_size', sa.Integer(), nullable=True),
sa.Column('volume_mount_prefix', sa.String(length=80),
nullable=True),
sa.Column('floating_ip_pool', sa.String(length=36),
nullable=True),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('name', 'tenant_id'),
mysql_engine=MYSQL_ENGINE,
mysql_charset=MYSQL_CHARSET)
op.create_table('cluster_templates',
sa.Column('created_at', sa.DateTime(), nullable=True),
sa.Column('updated_at', sa.DateTime(), nullable=True),
sa.Column('id', sa.String(length=36), nullable=False),
sa.Column('name', sa.String(length=80), nullable=False),
sa.Column('description', sa.Text(), nullable=True),
sa.Column('cluster_configs', st.JsonEncoded(),
nullable=True),
sa.Column('default_image_id', sa.String(length=36),
nullable=True),
sa.Column('anti_affinity', st.JsonEncoded(),
nullable=True),
sa.Column('tenant_id', sa.String(length=36),
nullable=True),
sa.Column('neutron_management_network',
sa.String(length=36), nullable=True),
sa.Column('plugin_name', sa.String(length=80),
nullable=False),
sa.Column('hadoop_version', sa.String(length=80),
nullable=False),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('name', 'tenant_id'),
mysql_engine=MYSQL_ENGINE,
mysql_charset=MYSQL_CHARSET)
op.create_table('job_binary_internal',
sa.Column('created_at', sa.DateTime(), nullable=True),
sa.Column('updated_at', sa.DateTime(), nullable=True),
sa.Column('id', sa.String(length=36), nullable=False),
sa.Column('tenant_id', sa.String(length=36),
nullable=True),
sa.Column('name', sa.String(length=80), nullable=False),
sa.Column('data', st.LargeBinary(), nullable=True),
sa.Column('datasize', sa.BIGINT(), nullable=True),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('name', 'tenant_id'),
mysql_engine=MYSQL_ENGINE,
mysql_charset=MYSQL_CHARSET)
op.create_table('job_binaries',
sa.Column('created_at', sa.DateTime(), nullable=True),
sa.Column('updated_at', sa.DateTime(), nullable=True),
sa.Column('id', sa.String(length=36), nullable=False),
sa.Column('tenant_id', sa.String(length=36),
nullable=True),
sa.Column('name', sa.String(length=80), nullable=False),
sa.Column('description', sa.Text(), nullable=True),
sa.Column('url', sa.String(length=256), nullable=False),
sa.Column('extra', st.JsonEncoded(), nullable=True),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('name', 'tenant_id'),
mysql_engine=MYSQL_ENGINE,
mysql_charset=MYSQL_CHARSET)
op.create_table('data_sources',
sa.Column('created_at', sa.DateTime(), nullable=True),
sa.Column('updated_at', sa.DateTime(), nullable=True),
sa.Column('id', sa.String(length=36), nullable=False),
sa.Column('tenant_id', sa.String(length=36),
nullable=True),
sa.Column('name', sa.String(length=80), nullable=False),
sa.Column('description', sa.Text(), nullable=True),
sa.Column('type', sa.String(length=80), nullable=False),
sa.Column('url', sa.String(length=256), nullable=False),
sa.Column('credentials', st.JsonEncoded(), nullable=True),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('name', 'tenant_id'),
mysql_engine=MYSQL_ENGINE,
mysql_charset=MYSQL_CHARSET)
op.create_table('libs_association',
sa.Column('Job_id', sa.String(length=36), nullable=True),
sa.Column('JobBinary_id', sa.String(length=36),
nullable=True),
sa.ForeignKeyConstraint(['JobBinary_id'],
['job_binaries.id'], ),
sa.ForeignKeyConstraint(['Job_id'], ['jobs.id'], ),
mysql_engine=MYSQL_ENGINE,
mysql_charset=MYSQL_CHARSET)
op.create_table('clusters',
sa.Column('created_at', sa.DateTime(), nullable=True),
sa.Column('updated_at', sa.DateTime(), nullable=True),
sa.Column('id', sa.String(length=36), nullable=False),
sa.Column('name', sa.String(length=80), nullable=False),
sa.Column('description', sa.Text(), nullable=True),
sa.Column('tenant_id', sa.String(length=36),
nullable=True),
sa.Column('trust_id', sa.String(length=36), nullable=True),
sa.Column('is_transient', sa.Boolean(), nullable=True),
sa.Column('plugin_name', sa.String(length=80),
nullable=False),
sa.Column('hadoop_version', sa.String(length=80),
nullable=False),
sa.Column('cluster_configs', st.JsonEncoded(),
nullable=True),
sa.Column('default_image_id', sa.String(length=36),
nullable=True),
sa.Column('neutron_management_network',
sa.String(length=36), nullable=True),
sa.Column('anti_affinity', st.JsonEncoded(),
nullable=True),
sa.Column('management_private_key', sa.Text(),
nullable=False),
sa.Column('management_public_key', sa.Text(),
nullable=False),
sa.Column('user_keypair_id', sa.String(length=80),
nullable=True),
sa.Column('status', sa.String(length=80), nullable=True),
sa.Column('status_description', sa.String(length=200),
nullable=True),
sa.Column('info', st.JsonEncoded(), nullable=True),
sa.Column('extra', st.JsonEncoded(), nullable=True),
sa.Column('cluster_template_id', sa.String(length=36),
nullable=True),
sa.ForeignKeyConstraint(['cluster_template_id'],
['cluster_templates.id'], ),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('name', 'tenant_id'),
mysql_engine=MYSQL_ENGINE,
mysql_charset=MYSQL_CHARSET)
op.create_table('templates_relations',
sa.Column('created_at', sa.DateTime(), nullable=True),
sa.Column('updated_at', sa.DateTime(), nullable=True),
sa.Column('id', sa.String(length=36), nullable=False),
sa.Column('tenant_id', sa.String(length=36),
nullable=True),
sa.Column('name', sa.String(length=80), nullable=False),
sa.Column('flavor_id', sa.String(length=36),
nullable=False),
sa.Column('image_id', sa.String(length=36), nullable=True),
sa.Column('node_processes', st.JsonEncoded(),
nullable=True),
sa.Column('node_configs', st.JsonEncoded(), nullable=True),
sa.Column('volumes_per_node', sa.Integer(), nullable=True),
sa.Column('volumes_size', sa.Integer(), nullable=True),
sa.Column('volume_mount_prefix', sa.String(length=80),
nullable=True),
sa.Column('count', sa.Integer(), nullable=False),
sa.Column('cluster_template_id', sa.String(length=36),
nullable=True),
sa.Column('node_group_template_id', sa.String(length=36),
nullable=True),
sa.Column('floating_ip_pool', sa.String(length=36),
nullable=True),
sa.ForeignKeyConstraint(['cluster_template_id'],
['cluster_templates.id'], ),
sa.ForeignKeyConstraint(['node_group_template_id'],
['node_group_templates.id'], ),
sa.PrimaryKeyConstraint('id'),
mysql_engine=MYSQL_ENGINE,
mysql_charset=MYSQL_CHARSET)
op.create_table('mains_association',
sa.Column('Job_id', sa.String(length=36), nullable=True),
sa.Column('JobBinary_id', sa.String(length=36),
nullable=True),
sa.ForeignKeyConstraint(['JobBinary_id'],
['job_binaries.id'], ),
sa.ForeignKeyConstraint(['Job_id'], ['jobs.id'], ),
mysql_engine=MYSQL_ENGINE,
mysql_charset=MYSQL_CHARSET)
op.create_table('job_executions',
sa.Column('created_at', sa.DateTime(), nullable=True),
sa.Column('updated_at', sa.DateTime(), nullable=True),
sa.Column('id', sa.String(length=36), nullable=False),
sa.Column('tenant_id', sa.String(length=36),
nullable=True),
sa.Column('job_id', sa.String(length=36), nullable=True),
sa.Column('input_id', sa.String(length=36), nullable=True),
sa.Column('output_id', sa.String(length=36),
nullable=True),
sa.Column('start_time', sa.DateTime(), nullable=True),
sa.Column('end_time', sa.DateTime(), nullable=True),
sa.Column('cluster_id', sa.String(length=36),
nullable=True),
sa.Column('info', st.JsonEncoded(), nullable=True),
sa.Column('progress', sa.Float(), nullable=True),
sa.Column('oozie_job_id', sa.String(length=100),
nullable=True),
sa.Column('return_code', sa.String(length=80),
nullable=True),
sa.Column('job_configs', st.JsonEncoded(), nullable=True),
sa.Column('extra', st.JsonEncoded(), nullable=True),
sa.ForeignKeyConstraint(['cluster_id'], ['clusters.id'], ),
sa.ForeignKeyConstraint(['input_id'],
['data_sources.id'], ),
sa.ForeignKeyConstraint(['job_id'], ['jobs.id'], ),
sa.ForeignKeyConstraint(['output_id'],
['data_sources.id'], ),
sa.PrimaryKeyConstraint('id'),
mysql_engine=MYSQL_ENGINE,
mysql_charset=MYSQL_CHARSET)
op.create_table('node_groups',
sa.Column('created_at', sa.DateTime(), nullable=True),
sa.Column('updated_at', sa.DateTime(), nullable=True),
sa.Column('id', sa.String(length=36), nullable=False),
sa.Column('name', sa.String(length=80), nullable=False),
sa.Column('tenant_id', sa.String(length=36),
nullable=True),
sa.Column('flavor_id', sa.String(length=36),
nullable=False),
sa.Column('image_id', sa.String(length=36), nullable=True),
sa.Column('image_username', sa.String(length=36),
nullable=True),
sa.Column('node_processes', st.JsonEncoded(),
nullable=True),
sa.Column('node_configs', st.JsonEncoded(), nullable=True),
sa.Column('volumes_per_node', sa.Integer(), nullable=True),
sa.Column('volumes_size', sa.Integer(), nullable=True),
sa.Column('volume_mount_prefix', sa.String(length=80),
nullable=True),
sa.Column('count', sa.Integer(), nullable=False),
sa.Column('cluster_id', sa.String(length=36),
nullable=True),
sa.Column('node_group_template_id', sa.String(length=36),
nullable=True),
sa.Column('floating_ip_pool', sa.String(length=36),
nullable=True),
sa.ForeignKeyConstraint(['cluster_id'], ['clusters.id'], ),
sa.ForeignKeyConstraint(['node_group_template_id'],
['node_group_templates.id'], ),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('name', 'cluster_id'),
mysql_engine=MYSQL_ENGINE,
mysql_charset=MYSQL_CHARSET)
op.create_table('instances',
sa.Column('created_at', sa.DateTime(), nullable=True),
sa.Column('updated_at', sa.DateTime(), nullable=True),
sa.Column('id', sa.String(length=36), nullable=False),
sa.Column('tenant_id', sa.String(length=36),
nullable=True),
sa.Column('node_group_id', sa.String(length=36),
nullable=True),
sa.Column('instance_id', sa.String(length=36),
nullable=True),
sa.Column('instance_name', sa.String(length=80),
nullable=False),
sa.Column('internal_ip', sa.String(length=15),
nullable=True),
sa.Column('management_ip', sa.String(length=15),
nullable=True),
sa.Column('volumes', st.JsonEncoded(), nullable=True),
sa.ForeignKeyConstraint(['node_group_id'],
['node_groups.id'], ),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('instance_id', 'node_group_id'),
mysql_engine=MYSQL_ENGINE,
mysql_charset=MYSQL_CHARSET)
def downgrade():
op.drop_table('instances')
op.drop_table('node_groups')
op.drop_table('job_executions')
op.drop_table('mains_association')
op.drop_table('templates_relations')
op.drop_table('clusters')
op.drop_table('libs_association')
op.drop_table('data_sources')
op.drop_table('job_binaries')
op.drop_table('job_binary_internal')
op.drop_table('cluster_templates')
op.drop_table('node_group_templates')
op.drop_table('jobs')
| 54.401709 | 79 | 0.502592 | 1,853 | 19,095 | 5.03184 | 0.106314 | 0.123552 | 0.157658 | 0.20163 | 0.840841 | 0.832797 | 0.822501 | 0.805127 | 0.79837 | 0.759438 | 0 | 0.016889 | 0.370516 | 19,095 | 350 | 80 | 54.557143 | 0.758819 | 0.035926 | 0 | 0.775244 | 0 | 0 | 0.127699 | 0.012454 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006515 | false | 0 | 0.009772 | 0 | 0.016287 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
ac1aced393a4c38a56b2fbebfa95289619785600 | 98 | py | Python | Bonfida/constants.py | MHHukiewitz/bonfida-api-wrapper-python3 | c4db0c5ea1e294e0bb43bafa63c96c4d474b168a | [
"MIT"
] | 5 | 2021-03-08T07:21:02.000Z | 2021-12-12T01:09:39.000Z | Bonfida/constants.py | MHHukiewitz/bonfida-api-wrapper-python3 | c4db0c5ea1e294e0bb43bafa63c96c4d474b168a | [
"MIT"
] | 2 | 2021-04-22T12:55:39.000Z | 2021-04-30T09:56:49.000Z | Bonfida/constants.py | MHHukiewitz/bonfida-api-wrapper-python3 | c4db0c5ea1e294e0bb43bafa63c96c4d474b168a | [
"MIT"
] | 2 | 2021-04-27T15:39:17.000Z | 2021-04-30T22:24:08.000Z | PUBLIC_API_URL = 'https://serum-api.bonfida.com'
PRIVATE_API_URL = 'https://serum-api.bonfida.com' | 49 | 49 | 0.765306 | 16 | 98 | 4.4375 | 0.5 | 0.169014 | 0.309859 | 0.450704 | 0.816901 | 0.816901 | 0.816901 | 0 | 0 | 0 | 0 | 0 | 0.05102 | 98 | 2 | 49 | 49 | 0.763441 | 0 | 0 | 0 | 0 | 0 | 0.585859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 7 |
ac7a36a3e60ffb8e7bbc3423efa90e9994750eeb | 497 | py | Python | Ago-Dic-2019/ERIK EDUARDO MONTOYA MARTINEZ/PRACTICA 1/CAPITULO 3/Greetings.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 41 | 2017-09-26T09:36:32.000Z | 2022-03-19T18:05:25.000Z | Ago-Dic-2019/ERIK EDUARDO MONTOYA MARTINEZ/PRACTICA 1/CAPITULO 3/Greetings.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 67 | 2017-09-11T05:06:12.000Z | 2022-02-14T04:44:04.000Z | Ago-Dic-2019/ERIK EDUARDO MONTOYA MARTINEZ/PRACTICA 1/CAPITULO 3/Greetings.py | Arbupa/DAS_Sistemas | 52263ab91436b2e5a24ce6f8493aaa2e2fe92fb1 | [
"MIT"
] | 210 | 2017-09-01T00:10:08.000Z | 2022-03-19T18:05:12.000Z | Nombres=['Daniel', 'Fernando', 'Elena', 'Ruben', 'Omar']
print(Nombres)
mensaje="Mi mejor amigo de la infancia es " + Nombres[0].title()+ "."
print(mensaje)
mensaje="Mi mejor amigo de la infancia es " + Nombres[1].title()+ "."
print(mensaje)
mensaje="Mi mejor amigo de la infancia es " + Nombres[2].title()+ "."
print(mensaje)
mensaje="Mi mejor amigo de la infancia es " + Nombres[3].title()+ "."
print(mensaje)
mensaje="Mi mejor amigo de la infancia es " + Nombres[4].title()+ "."
print(mensaje) | 38.230769 | 69 | 0.678068 | 73 | 497 | 4.616438 | 0.287671 | 0.133531 | 0.207715 | 0.281899 | 0.795252 | 0.795252 | 0.795252 | 0.795252 | 0.795252 | 0.676558 | 0 | 0.011601 | 0.132797 | 497 | 13 | 70 | 38.230769 | 0.770302 | 0 | 0 | 0.416667 | 0 | 0 | 0.39759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 8 |
ac83ff905ab4d54a6bff7e1a91df26a5b2fba4d5 | 12,258 | py | Python | lomap/algorithms/dijkstra.py | xli4217/tltl_reward | b24653f26f588858b42abd4b225a9766ea8771db | [
"MIT"
] | null | null | null | lomap/algorithms/dijkstra.py | xli4217/tltl_reward | b24653f26f588858b42abd4b225a9766ea8771db | [
"MIT"
] | null | null | null | lomap/algorithms/dijkstra.py | xli4217/tltl_reward | b24653f26f588858b42abd4b225a9766ea8771db | [
"MIT"
] | null | null | null | # Copyright (C) 2012-2015, Alphan Ulusoy (alphan@bu.edu)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
__all__ = ['subset_to_subset_dijkstra_path_value', 'source_to_target_dijkstra', 'dijkstra_to_all']
def subset_to_subset_dijkstra_path_value(source_set, G, target_set, combine_fn = 'sum', degen_paths = False, weight_key = 'weight'):
"""
Compute the shortest path lengths between two sets of nodes in a weighted graph.
Adapted from 'single_source_dijkstra_path_length' in NetworkX, available at
http://networkx.github.io.
Parameters
----------
G: NetworkX graph
source_set: Set of node labels
Starting nodes for paths
target_set: Set of node labels
Ending nodes for paths
combine_fn: Function, optional (default: (lambda a,b: a+b))
Function used to combine two path values
degen_paths: Boolean, optional (default: False)
Controls whether degenerate paths (paths that do not traverse any edges)
are acceptable.
weight_key: String, optional (default: 'weight')
Edge data key corresponding to the edge weight.
Returns
-------
length : dictionary
Dictionary of dictionaries of shortest lengths keyed by source and target labels.
Notes
-----
Edge weight attributes must be numerical.
This algorithm is not guaranteed to work if edge weights
are negative or are floating point numbers
(overflows and roundoff errors can cause problems).
Input is assumed to be a MultiDiGraph with singleton edges.
"""
import heapq
all_dist = {} # dictionary of final distances from source_set to target_set
if combine_fn == 'sum':
# Classical dijkstra
for source in source_set:
dist = {} # dictionary of final distances from source
fringe=[] # use heapq with (distance,label) tuples
if degen_paths:
# Allow degenerate paths
# Add zero length path from source to source
seen = {source:0}
heapq.heappush(fringe,(0,source))
else:
# Don't allow degenerate paths
# Add all neighbors of source to start the algorithm
seen = dict()
for _, w, edgedata in G.edges_iter([source], data=True):
vw_dist = edgedata[weight_key]
seen[w] = vw_dist
heapq.heappush(fringe,(vw_dist,w))
while fringe:
(d,v)=heapq.heappop(fringe)
if v in dist:
continue # Already searched this node.
dist[v] = d # Update distance to this node
for _, w, edgedata in G.edges_iter([v], data=True):
vw_dist = dist[v] + edgedata[weight_key]
if w in dist:
if vw_dist < dist[w]:
raise ValueError('Contradictory paths found:','negative weights?')
elif w not in seen or vw_dist < seen[w]:
seen[w] = vw_dist
heapq.heappush(fringe,(vw_dist,w))
# Remove the entries that we are not interested in
for key in list(dist.keys()):
if key not in target_set:
dist.pop(key)
# Add inf cost to target nodes not in dist
for t in target_set:
if t not in list(dist.keys()):
dist[t] = float('inf')
# Save the distance info for this source
all_dist[source] = dist
elif combine_fn == 'max':
# Path length is (max edge length, total edge length)
for source in source_set:
dist = {} # dictionary of final distances from source
fringe=[] # use heapq with (bot_dist,dist,label) tuples
if degen_paths:
# Allow degenerate paths
# Add zero length path from source to source
seen = {source:(0,0)}
heapq.heappush(fringe,(0,0,source))
else:
# Don't allow degenerate paths
# Add all neighbors of source to start the algorithm
seen = dict()
for _, w, edgedata in G.edges_iter([source], data=True):
vw_dist = edgedata[weight_key]
seen[w] = (vw_dist,vw_dist)
heapq.heappush(fringe,(vw_dist,vw_dist,w))
while fringe:
(d_bot,d_sum,v)=heapq.heappop(fringe)
if v in dist:
continue # Already searched this node.
dist[v] = (d_bot,d_sum) # Update distance to this node
for _, w, edgedata in G.edges_iter([v], data=True):
vw_dist_bot = max(dist[v][0],edgedata[weight_key])
vw_dist_sum = dist[v][1] + edgedata[weight_key]
if w in dist:
if vw_dist_bot < dist[w][0]:
raise ValueError('Contradictory paths found:','negative weights?')
elif w not in seen or vw_dist_bot < seen[w][0] or (vw_dist_bot == seen[w][0] and vw_dist_sum < seen[w][1]):
seen[w] = (vw_dist_bot, vw_dist_sum)
heapq.heappush(fringe,(vw_dist_bot,vw_dist_sum,w))
# Remove the entries that we are not interested in
for key in list(dist.keys()):
if key not in target_set:
dist.pop(key)
# Add inf cost to target nodes not in dist
for t in target_set:
if t not in list(dist.keys()):
dist[t] = (float('inf'),float('inf'))
# Save the distance info for this source
all_dist[source] = dist
else:
assert(False)
return all_dist
def dijkstra_to_all(G, source, degen_paths = False, weight_key='weight'):
"""
Compute shortest paths and lengths in a weighted graph G.
Adapted from 'single_source_dijkstra_path' in NetworkX, available at
http://networkx.github.io.
Parameters
----------
G : NetworkX graph
source : Node label
Starting node for the path
weight_key: String, optional (default: 'weight')
Edge data key corresponding to the edge weight.
Returns
-------
distance,path : Tuple
Returns a tuple distance and path from source to target.
Notes
---------
Edge weight attributes must be numerical.
Based on the Python cookbook recipe (119466) at
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/119466
This algorithm is not guaranteed to work if edge weights
are negative or are floating point numbers
(overflows and roundoff errors can cause problems).
"""
import heapq
dist = {} # dictionary of final distances
fringe=[] # use heapq with (distance,label) tuples
if degen_paths:
# Allow degenerate paths
# Add zero length path from source to source
seen = {source:0}
heapq.heappush(fringe,(0,source))
paths = {source:[source]}
else:
# Don't allow degenerate paths
# Add all neighbors of source to start the algorithm
paths = dict()
seen = dict()
for _, w, edgedata in G.edges_iter([source], data=True):
vw_dist = edgedata[weight_key]
paths[w] = [source, w]
seen[w] = vw_dist
heapq.heappush(fringe,(vw_dist,w))
while fringe:
(d,v)=heapq.heappop(fringe)
if v in dist:
continue # already searched this node.
dist[v] = d # Update distance to this node
for w, edgedata in G.edges_iter([v], data=True):
vw_dist = dist[v] + edgedata[weight_key]
if w in dist:
if vw_dist < dist[w]:
raise ValueError('Contradictory paths found:', 'negative weights?')
elif w not in seen or vw_dist < seen[w]:
seen[w] = vw_dist
paths[w] = paths[v]+[w]
heapq.heappush(fringe,(vw_dist,w))
return (dist, paths)
def source_to_target_dijkstra(G, source, target, combine_fn = 'sum', degen_paths = False, cutoff=None, weight_key='weight'):
"""
Compute shortest paths and lengths in a weighted graph G.
Adapted from 'single_source_dijkstra_path' in NetworkX, available at
http://networkx.github.io.
Parameters
----------
G : NetworkX graph
source : Node label
Starting node for the path
target : Node label
Ending node for the path
degen_paths: Boolean, optional (default: False)
Controls whether degenerate paths (paths that do not traverse any edges)
are acceptable.
cutoff : integer or float, optional (default: None)
Depth to stop the search. Only paths of length <= cutoff are returned.
weight_key: String, optional (default: 'weight')
Edge data key corresponding to the edge weight.
Returns
-------
distance,path : Tuple
Returns a tuple distance and path from source to target.
Examples
--------
>>> G=networkx.path_graph(5)
>>> length,path=source_to_target_dijkstra(G,0,4)
>>> print(length)
4
>>> path
[0, 1, 2, 3, 4]
Notes
---------
Edge weight attributes must be numerical.
Based on the Python cookbook recipe (119466) at
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/119466
This algorithm is not guaranteed to work if edge weights
are negative or are floating point numbers
(overflows and roundoff errors can cause problems).
"""
import heapq
dist = {} # dictionary of final distances
fringe=[] # use heapq with (distance,label) tuples
if combine_fn == 'sum':
if degen_paths:
# Allow degenerate paths
if source==target:
# Terminate immediately if source == target
return (0, [source])
else:
# Add zero length path from source to source
paths = {source:[source]} # dictionary of paths
seen = {source:0}
heapq.heappush(fringe,(0,source))
else:
# Don't allow degenerate paths
# Add all neighbors of source to start the algorithm
paths = dict()
seen = dict()
for _, w, edgedata in G.edges_iter([source], data=True):
vw_dist = edgedata[weight_key]
paths[w] = [source, w]
seen[w] = vw_dist
heapq.heappush(fringe,(vw_dist,w))
while fringe:
(d,v)=heapq.heappop(fringe)
if v in dist:
continue # already searched this node.
dist[v] = d # Update distance to this node
if v == target:
break # Discovered path to target node
for _, w, edgedata in G.edges_iter([v], data=True):
vw_dist = dist[v] + edgedata[weight_key]
if cutoff is not None:
if vw_dist>cutoff:
continue # Longer than cutoff, ignore this path
if w in dist:
if vw_dist < dist[w]:
raise ValueError('Contradictory paths found:', 'negative weights?')
elif w not in seen or vw_dist < seen[w]:
seen[w] = vw_dist
paths[w] = paths[v]+[w]
heapq.heappush(fringe,(vw_dist,w))
# Add inf cost to target if not in dist
if target not in list(dist.keys()):
dist[target] = float('inf')
paths[target] = ['']
return (dist[target],paths[target])
elif combine_fn == 'max':
if degen_paths:
# Allow degenerate paths
if source==target:
# Terminate immediately if source == target
return (0, [source])
else:
# Add zero length path from source to source
paths = {source:[source]} # dictionary of paths
seen = {source:(0,0)}
heapq.heappush(fringe,(0,0,source))
else:
# Don't allow degenerate paths
# Add all neighbors of source to start the algorithm
paths = dict()
seen = dict()
for _, w, edgedata in G.edges_iter([source], data=True):
vw_dist = edgedata[weight_key]
paths[w] = [source, w]
seen[w] = (vw_dist, vw_dist)
heapq.heappush(fringe,(vw_dist,vw_dist,w))
while fringe:
(d_bot,d_sum,v)=heapq.heappop(fringe)
if v in dist:
continue # already searched this node.
dist[v] = (d_bot,d_sum) # Update distance to this node
if v == target:
break # Discovered path to target node
for _, w, edgedata in G.edges_iter([v], data=True):
vw_dist_bot = max(dist[v][0], edgedata[weight_key])
vw_dist_sum = dist[v][1] + edgedata[weight_key]
if cutoff is not None:
if vw_dist_bot>cutoff:
continue # Longer than cutoff, ignore this path
if w in dist:
if vw_dist_bot < dist[w][0]:
raise ValueError('Contradictory paths found:', 'negative weights?')
elif w not in seen or vw_dist_bot < seen[w][0] or (vw_dist_bot == seen[w][0] and vw_dist_sum < seen[w][1]):
seen[w] = (vw_dist_bot, vw_dist_sum)
paths[w] = paths[v]+[w]
heapq.heappush(fringe,(vw_dist_bot,vw_dist_sum,w))
# Add inf cost to target if not in dist
if target not in list(dist.keys()):
dist[target] = (float('inf'),float('inf'))
paths[target] = ['']
return (dist[target][0],paths[target])
else:
assert(False)
| 29.97066 | 132 | 0.683961 | 1,871 | 12,258 | 4.377338 | 0.13736 | 0.041026 | 0.034799 | 0.017094 | 0.834432 | 0.821245 | 0.805372 | 0.77265 | 0.77265 | 0.77265 | 0 | 0.008465 | 0.209741 | 12,258 | 408 | 133 | 30.044118 | 0.836998 | 0.486458 | 0 | 0.915789 | 0 | 0 | 0.055368 | 0.00979 | 0 | 0 | 0 | 0 | 0.010526 | 1 | 0.015789 | false | 0 | 0.015789 | 0 | 0.063158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ac8576bd939666e1274a12e387deb223ea0976ea | 11,799 | py | Python | ucnesl_nontargeted/models.py | nesl/nips2017_adversarial | f6382d9cc82ff77e2b720931075446ffe919cff6 | [
"Apache-2.0"
] | 3 | 2019-11-19T10:14:13.000Z | 2021-04-10T11:49:30.000Z | ucnesl_nontargeted/models.py | malzantot/nips2017_adversarial | f6382d9cc82ff77e2b720931075446ffe919cff6 | [
"Apache-2.0"
] | null | null | null | ucnesl_nontargeted/models.py | malzantot/nips2017_adversarial | f6382d9cc82ff77e2b720931075446ffe919cff6 | [
"Apache-2.0"
] | 2 | 2017-10-04T23:37:15.000Z | 2020-02-19T18:10:41.000Z | import tensorflow as tf
from nets import inception, resnet_v1, resnet_v2, resnet_utils, vgg, mobilenet_v1
from preprocessing.vgg_preprocessing import preprocess_image as vgg_preprocess
from preprocessing.inception_preprocessing import preprocess_image as inception_preprocess
import numpy as np
slim = tf.contrib.slim
class InceptionV3Model(object):
"""Model class for CleverHans library."""
def __init__(self, num_classes):
self.num_classes = num_classes
self.built = False
self.logits = None
self.ckpt = 'inception_v3.ckpt'
def __call__(self, x_input, batch_size=None, is_training=False):
"""Constructs model and return probabilities for given input."""
reuse = True if self.built else None
with slim.arg_scope(inception.inception_v3_arg_scope()):
with tf.variable_scope(self.ckpt):
logits, end_points = inception.inception_v3(
x_input, num_classes=self.num_classes, is_training=is_training,
reuse=reuse)
preds = tf.argmax(logits, axis=1)
self.built = True
self.logits = logits
self.preds = preds
#output = end_points['logits']
# Strip off the extra reshape op at the output
#probs = output.op.inputs[0]
return logits
class AdvInceptionV3Model(object):
"""Model class for CleverHans library."""
def __init__(self, num_classes):
self.num_classes = num_classes
self.built = False
self.logits = None
self.ckpt = 'adv_inception_v3.ckpt'
def __call__(self, x_input, batch_size=None, is_training=False):
"""Constructs model and return probabilities for given input."""
reuse = True if self.built else None
with slim.arg_scope(inception.inception_v3_arg_scope()):
with tf.variable_scope(self.ckpt):
logits, end_points = inception.inception_v3(
x_input, num_classes=self.num_classes, is_training=is_training,
reuse=reuse)
preds = tf.argmax(logits, axis=1)
self.built = True
self.logits = logits
self.preds = preds
#output = end_points['logits']
# Strip off the extra reshape op at the output
#probs = output.op.inputs[0]
return logits
class InceptionV4Model(object):
"""Model class for CleverHans library."""
def __init__(self, num_classes):
self.num_classes = num_classes
self.built = False
self.logits = None
self.ckpt = 'inception_v4.ckpt'
def __call__(self, x_input, batch_size=None, is_training=False):
"""Constructs model and return probabilities for given input."""
reuse = True if self.built else None
with slim.arg_scope(inception.inception_v4_arg_scope()):
with tf.variable_scope(self.ckpt):
logits, end_points = inception.inception_v4(
x_input, num_classes=self.num_classes, is_training=is_training,
reuse=reuse)
preds = tf.argmax(logits, axis=1)
self.built = True
self.logits = logits
self.preds = preds
return logits
class InceptionResNetV2Model(object):
"""Model class for CleverHans library."""
def __init__(self, num_classes, batch_size=None):
self.num_classes = num_classes
self.built = False
self.logits = None
self.ckpt = 'inception_resnet_v2_2016_08_30.ckpt'
def __call__(self, x_input, batch_size=None, is_training=False):
"""Constructs model and return probabilities for given input."""
reuse = True if self.built else None
with slim.arg_scope(inception.inception_resnet_v2_arg_scope()):
with tf.variable_scope(self.ckpt):
logits, end_points = inception.inception_resnet_v2(
x_input, num_classes=self.num_classes, is_training=is_training,
reuse=reuse)
preds = tf.argmax(logits, axis=1)
self.built = True
self.logits = logits
self.preds = preds
return logits
class EnsAdvInceptionResNetV2Model(object):
"""Model class for CleverHans library."""
def __init__(self, num_classes, batch_size=None):
self.num_classes = num_classes
self.built = False
self.logits = None
self.ckpt = 'ens_adv_inception_resnet_v2.ckpt'
def __call__(self, x_input, batch_size=None, is_training=False):
"""Constructs model and return probabilities for given input."""
reuse = True if self.built else None
with slim.arg_scope(inception.inception_resnet_v2_arg_scope()):
with tf.variable_scope(self.ckpt):
logits, end_points = inception.inception_resnet_v2(
x_input, num_classes=self.num_classes, is_training=is_training,
reuse=reuse)
preds = tf.argmax(logits, axis=1)
self.built = True
self.logits = logits
self.preds = preds
return logits
class ResNetV1Model(object):
"""Model class for CleverHans library."""
def __init__(self, num_classes):
self.num_classes = num_classes
self.built = False
self.logits = None
self.ckpt = 'resnet_v1_50.ckpt'
def __call__(self, x_input, batch_size, is_training=False):
"""Constructs model and return probabilities for given input."""
reuse = True if self.built else None
# ResNet V1 and VGG have different preprocessing
preproc = tf.map_fn(
lambda img: vgg_preprocess(0.5 * 255.0 * (img + 1.0),
resnet_v1.resnet_v1.default_image_size,
resnet_v1.resnet_v1.default_image_size), x_input)
with slim.arg_scope(resnet_utils.resnet_arg_scope()):
with tf.variable_scope(self.ckpt):
logits, end_points = resnet_v1.resnet_v1_50(
preproc, num_classes=self.num_classes - 1, is_training=is_training,
reuse=reuse)
# VGG and ResNetV1 don't have a background class
background_class = tf.constant(-np.inf, dtype=tf.float32, shape=[batch_size, 1])
logits = tf.concat([background_class, logits], axis=1)
preds = tf.argmax(logits, axis=1)
self.built = True
self.logits = logits
self.preds = preds
return logits
class ResNetV1_152_Model(object):
"""Model class for CleverHans library."""
def __init__(self, num_classes):
self.num_classes = num_classes
self.built = False
self.logits = None
self.ckpt = 'resnet_v1_152.ckpt'
def __call__(self, x_input, batch_size, is_training=False):
"""Constructs model and return probabilities for given input."""
reuse = True if self.built else None
# ResNet V1 and VGG have different preprocessing
preproc = tf.map_fn(
lambda img: vgg_preprocess(0.5 * 255.0 * (img + 1.0),
resnet_v1.resnet_v1.default_image_size,
resnet_v1.resnet_v1.default_image_size), x_input)
with slim.arg_scope(resnet_utils.resnet_arg_scope()):
with tf.variable_scope(self.ckpt):
logits, end_points = resnet_v1.resnet_v1_152(
preproc, num_classes=self.num_classes - 1, is_training=is_training,
reuse=reuse)
# VGG and ResNetV1 don't have a background class
background_class = tf.constant(-np.inf, dtype=tf.float32, shape=[batch_size, 1])
logits = tf.concat([background_class, logits], axis=1)
preds = tf.argmax(logits, axis=1)
self.built = True
self.logits = logits
self.preds = preds
return logits
class ResNetV2Model(object):
"""Model class for CleverHans library."""
def __init__(self, num_classes):
self.num_classes = num_classes
self.built = False
self.logits = None
self.ckpt = 'resnet_v2_50.ckpt'
def __call__(self, x_input, batch_size=None, is_training=False):
"""Constructs model and return probabilities for given input."""
reuse = True if self.built else None
with slim.arg_scope(resnet_utils.resnet_arg_scope()):
with tf.variable_scope(self.ckpt):
logits, end_points = resnet_v2.resnet_v2_50(
x_input, num_classes=self.num_classes, is_training=is_training,
reuse=reuse)
preds = tf.argmax(logits, axis=1)
self.built = True
self.logits = logits
self.preds = preds
return logits
class ResNetV2_101_Model(object):
"""Model class for CleverHans library."""
def __init__(self, num_classes):
self.num_classes = num_classes
self.built = False
self.logits = None
self.ckpt = 'resnet_v2_101.ckpt'
def __call__(self, x_input, batch_size=None, is_training=False):
"""Constructs model and return probabilities for given input."""
reuse = True if self.built else None
with slim.arg_scope(resnet_utils.resnet_arg_scope()):
with tf.variable_scope(self.ckpt):
logits, end_points = resnet_v2.resnet_v2_101(
x_input, num_classes=self.num_classes, is_training=is_training,
reuse=reuse)
preds = tf.argmax(logits, axis=1)
self.built = True
self.logits = logits
self.preds = preds
return logits
class ResNetV2_152_Model(object):
"""Model class for CleverHans library."""
def __init__(self, num_classes):
self.num_classes = num_classes
self.built = False
self.logits = None
self.ckpt = 'resnet_v2_152.ckpt'
def __call__(self, x_input, batch_size=None, is_training=False):
"""Constructs model and return probabilities for given input."""
reuse = True if self.built else None
with slim.arg_scope(resnet_utils.resnet_arg_scope()):
with tf.variable_scope(self.ckpt):
logits, end_points = resnet_v2.resnet_v2_152(
x_input, num_classes=self.num_classes, is_training=is_training,
reuse=reuse)
preds = tf.argmax(logits, axis=1)
self.built = True
self.logits = logits
self.preds = preds
return logits
class VGG16(object):
"""Model class for CleverHans library."""
def __init__(self, num_classes):
self.num_classes = num_classes
self.built = False
self.logits = None
self.ckpt = 'vgg_16.ckpt'
def __call__(self, x_input, batch_size, is_training=False):
"""Constructs model and return probabilities for given input."""
reuse = True if self.built else None
# ResNet V1 and VGG have different preprocessing
preproc = tf.map_fn(
lambda img: vgg_preprocess(0.5 * 255.0 * (img + 1.0),
vgg.vgg_16.default_image_size,
vgg.vgg_16.default_image_size), x_input)
with tf.variable_scope(self.ckpt):
logits, end_points = vgg.vgg_16(
preproc, num_classes=self.num_classes - 1, is_training=is_training)
# VGG and ResNetV1 don't have a background class
background_class = tf.constant(-np.inf, dtype=tf.float32, shape=[batch_size, 1])
logits = tf.concat([background_class, logits], axis=1)
preds = tf.argmax(logits, axis=1)
self.built = True
self.logits = logits
self.preds = preds
return logits
class MobileNetModel(object):
"""Model class for CleverHans library."""
def __init__(self, num_classes):
self.num_classes = num_classes
self.built = False
self.logits = None
self.ckpt = 'mobilenet_v1_1.0_224.ckpt'
def __call__(self, x_input, batch_size=None, is_training=False):
"""Constructs model and return probabilities for given input."""
reuse = True if self.built else None
preproc = tf.map_fn(
lambda img: inception_preprocess(img,
mobilenet_v1.mobilenet_v1.default_image_size,
mobilenet_v1.mobilenet_v1.default_image_size), x_input)
with slim.arg_scope(mobilenet_v1.mobilenet_v1_arg_scope()):
logits, end_points = mobilenet_v1.mobilenet_v1(
preproc, num_classes=self.num_classes, is_training=is_training,
reuse=reuse)
preds = tf.argmax(logits, axis=1)
self.built = True
self.logits = logits
self.preds = preds
return logits
| 33.808023 | 94 | 0.681753 | 1,603 | 11,799 | 4.757954 | 0.072364 | 0.078668 | 0.066081 | 0.049036 | 0.929461 | 0.920021 | 0.909007 | 0.901403 | 0.901403 | 0.894585 | 0 | 0.019313 | 0.223239 | 11,799 | 348 | 95 | 33.905172 | 0.812875 | 0.137639 | 0 | 0.804979 | 0 | 0 | 0.024495 | 0.011252 | 0 | 0 | 0 | 0 | 0 | 1 | 0.099585 | false | 0 | 0.020747 | 0 | 0.219917 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ce3f7966cf99d1a1a13d98e4a5eaef4cba0bf6ca | 1,559 | py | Python | config.py | Trcx528/CDCC | 6700ae61e0f020c1ae8224bf6e5084def8733b79 | [
"MIT"
] | null | null | null | config.py | Trcx528/CDCC | 6700ae61e0f020c1ae8224bf6e5084def8733b79 | [
"MIT"
] | null | null | null | config.py | Trcx528/CDCC | 6700ae61e0f020c1ae8224bf6e5084def8733b79 | [
"MIT"
] | null | null | null | """ This file instant specific configuration information """
prod = {
'PEEWEE_DATABASE_URI': 'mysql://dev:dev@192.168.48.2:3306/dev',
'SECRET_KEY': 'fsdakh9809IOJKhfajkkn32480ojkh90p8&*^&^daf',
'DEBUG': None, # this will cause dev settings to be loaded, set to false to disable
'TEMPLATES_AUTO_RELOAD': True,
'DEBUG_TB_PANELS': [
'flask_debugtoolbar.panels.versions.VersionDebugPanel',
'flask_debugtoolbar.panels.timer.TimerDebugPanel',
'flask_debugtoolbar.panels.headers.HeaderDebugPanel',
'flask_debugtoolbar.panels.request_vars.RequestVarsDebugPanel',
'flask_debugtoolbar.panels.template.TemplateDebugPanel',
'flask_debugtoolbar.panels.logger.LoggingPanel',
'flask_debugtoolbar.panels.profiler.ProfilerDebugPanel',
'flask_pw.debugtoolbar.PeeweeDebugPanel'
],
'DEBUG_TB_INTERCEPT_REDIRECTS': False
}
# dev will inherit all settings from prod that it does not override
dev = {
'DEBUG_TB_PANELS': [
'flask_debugtoolbar.panels.versions.VersionDebugPanel',
'flask_debugtoolbar.panels.timer.TimerDebugPanel',
'flask_debugtoolbar.panels.headers.HeaderDebugPanel',
'flask_debugtoolbar.panels.request_vars.RequestVarsDebugPanel',
'flask_debugtoolbar.panels.template.TemplateDebugPanel',
'flask_debugtoolbar.panels.logger.LoggingPanel',
'flask_debugtoolbar.panels.profiler.ProfilerDebugPanel',
'flask_pw.debugtoolbar.PeeweeDebugPanel'
],
'DEBUG_TB_INTERCEPT_REDIRECTS': False
}
| 42.135135 | 87 | 0.727389 | 151 | 1,559 | 7.291391 | 0.443709 | 0.216167 | 0.292461 | 0.032698 | 0.742961 | 0.742961 | 0.742961 | 0.742961 | 0.742961 | 0.742961 | 0 | 0.01932 | 0.169981 | 1,559 | 36 | 88 | 43.305556 | 0.83153 | 0.119949 | 0 | 0.733333 | 0 | 0 | 0.744868 | 0.697947 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
cbeff75719f026be17b3fb8d55bc44bdc730f7e2 | 8,988 | py | Python | tests/test_graph.py | maarten1983/khmer | 417aaa57f0659685c01887a6910de1c08d0a73e5 | [
"BSD-3-Clause"
] | null | null | null | tests/test_graph.py | maarten1983/khmer | 417aaa57f0659685c01887a6910de1c08d0a73e5 | [
"BSD-3-Clause"
] | null | null | null | tests/test_graph.py | maarten1983/khmer | 417aaa57f0659685c01887a6910de1c08d0a73e5 | [
"BSD-3-Clause"
] | null | null | null | #
# This file is part of khmer, http://github.com/ged-lab/khmer/, and is
# Copyright (C) Michigan State University, 2009-2013. It is licensed under
# the three-clause BSD license; see doc/LICENSE.txt.
# Contact: khmer-project@idyll.org
#
import khmer
import screed
import khmer_tst_utils as utils
from nose.plugins.attrib import attr
def teardown():
utils.cleanup()
class Test_ExactGraphFu(object):
def setup(self):
self.ht = khmer.new_hashbits(12, 1e4)
@attr('highmem')
def test_counts(self):
ht = self.ht
ht.consume_fasta(utils.get_test_data('test-graph.fa'))
kmer = "TTAGGACTGCAC"
x = ht.calc_connected_graph_size(kmer)
assert x == 69, x
kmer = "TGCGTTTCAATC"
x = ht.calc_connected_graph_size(kmer)
assert x == 68, x
kmer = "ATACTGTAAATA"
x = ht.calc_connected_graph_size(kmer)
assert x == 36, x
def test_graph_links_next_a(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume(word[1:] + "A")
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_next_c(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume(word[1:] + "C")
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_next_g(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume(word[1:] + "G")
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_next_t(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume(word[1:] + "T")
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_prev_a(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume("A" + word[:-1])
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_prev_c(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume("C" + word[:-1])
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_prev_g(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume("G" + word[:-1])
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_prev_t(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume("T" + word[:-1])
x = ht.calc_connected_graph_size(word)
assert x == 2
class Test_InexactGraphFu(object):
def setup(self):
self.ht = khmer.new_hashbits(12, 4 ** 2 + 1)
def test_graph_links_next_a(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume(word[1:] + "A")
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_next_c(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume(word[1:] + "C")
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_next_g(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume(word[1:] + "G")
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_next_t(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume(word[1:] + "T")
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_prev_a(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume("A" + word[:-1])
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_prev_c(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume("C" + word[:-1])
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_prev_g(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume("G" + word[:-1])
x = ht.calc_connected_graph_size(word)
assert x == 2
def test_graph_links_prev_t(self):
ht = self.ht
word = "TGCGTTTCAATC"
ht.consume(word)
ht.consume("T" + word[:-1])
x = ht.calc_connected_graph_size(word)
assert x == 2
#
class Test_Partitioning(object):
@attr('highmem')
def test_output_unassigned(self):
import screed
filename = utils.get_test_data('random-20-a.fa')
ht = khmer.new_hashbits(21, 4, 4)
ht.consume_fasta_and_tag(filename)
output_file = utils.get_temp_filename('part0test')
ht.output_partitions(filename, output_file, True)
len1 = len(list(screed.open(filename)))
len2 = len(list(screed.open(output_file)))
assert len1 > 0
assert len1 == len2, (len1, len2)
@attr('highmem')
def test_not_output_unassigned(self):
import screed
filename = utils.get_test_data('random-20-a.fa')
ht = khmer.new_hashbits(21, 4, 4)
ht.consume_fasta_and_tag(filename)
output_file = utils.get_temp_filename('parttest')
ht.output_partitions(filename, output_file, False)
len1 = len(list(screed.open(filename)))
len2 = len(list(screed.open(output_file)))
assert len1 > 0
assert len2 == 0, len2
def test_output_fq(self):
filename = utils.get_test_data('random-20-a.fq')
ht = khmer.new_hashbits(20, 1e4, 4)
ht.consume_fasta_and_tag(filename)
subset = ht.do_subset_partition(0, 0)
ht.merge_subset(subset)
output_file = utils.get_temp_filename('parttest')
ht.output_partitions(filename, output_file, False)
print open(output_file).read()
x = set([r.accuracy for r in screed.open(output_file)])
assert x, x
@attr('highmem')
def test_disconnected_20_a(self):
filename = utils.get_test_data('random-20-a.fa')
ht = khmer.new_hashbits(21, 1e5, 4)
ht.consume_fasta_and_tag(filename)
subset = ht.do_subset_partition(0, 0)
x = ht.subset_count_partitions(subset)
assert x == (99, 0), x # disconnected @ 21
@attr('highmem')
def test_connected_20_a(self):
filename = utils.get_test_data('random-20-a.fa')
ht = khmer.new_hashbits(20, 1e4, 4)
ht.consume_fasta_and_tag(filename)
subset = ht.do_subset_partition(0, 0)
x = ht.subset_count_partitions(subset)
assert x == (1, 0) # connected @ 20
@attr('highmem')
def test_disconnected_20_b(self):
filename = utils.get_test_data('random-20-b.fa')
ht = khmer.new_hashbits(21, 1e4, 4)
ht.consume_fasta_and_tag(filename)
subset = ht.do_subset_partition(0, 0)
x = ht.subset_count_partitions(subset)
assert x == (99, 0), x # disconnected @ 21
@attr('highmem')
def test_connected_20_b(self):
filename = utils.get_test_data('random-20-b.fa')
ht = khmer.new_hashbits(20, 1e4, 4)
ht.consume_fasta_and_tag(filename)
subset = ht.do_subset_partition(0, 0)
x = ht.subset_count_partitions(subset)
assert x == (1, 0) # connected @ 20
@attr('highmem')
def test_disconnected_31_c(self):
filename = utils.get_test_data('random-31-c.fa')
ht = khmer.new_hashbits(32, 1e6, 4)
ht.consume_fasta_and_tag(filename)
subset = ht.do_subset_partition(0, 0)
x = ht.subset_count_partitions(subset)
assert x == (999, 0), x # disconnected @ K = 32
@attr('highmem')
def test_connected_31_c(self):
filename = utils.get_test_data('random-31-c.fa')
ht = khmer.new_hashbits(31, 1e5, 4)
ht.consume_fasta_and_tag(filename)
subset = ht.do_subset_partition(0, 0)
x = ht.subset_count_partitions(subset)
assert x == (1, 0) # connected @ K = 31
#
class Test_PythonAPI(object):
def test_ordered_connect(self):
ht = khmer.new_hashbits(20, 4 ** 4 + 1)
a = "ATTGGGACTCTGGGAGCACTTATCATGGAGAT"
b = "GAGCACTTTAACCCTGCAGAGTGGCCAAGGCT"
c = "GGAGCACTTATCATGGAGATATATCCCGTGCTTAAACATCGCACTTTAACCCTGCAGAGT"
print ht.consume(a)
ppi = ht.find_all_tags(a[:20])
pid = ht.assign_partition_id(ppi)
assert pid == 0, pid
print ht.consume(b)
ppi = ht.find_all_tags(b[:20])
pid = ht.assign_partition_id(ppi)
assert pid == 0, pid
print ht.consume(c)
ppi = ht.find_all_tags(c[:20])
pid = ht.assign_partition_id(ppi)
assert pid == 2, pid
#
| 26.280702 | 74 | 0.593569 | 1,219 | 8,988 | 4.152584 | 0.11895 | 0.080008 | 0.061636 | 0.060055 | 0.830699 | 0.806006 | 0.792572 | 0.792572 | 0.792572 | 0.756815 | 0 | 0.031333 | 0.289831 | 8,988 | 341 | 75 | 26.357771 | 0.761711 | 0.036938 | 0 | 0.774059 | 0 | 0 | 0.068866 | 0.014352 | 0 | 0 | 0 | 0 | 0.138075 | 0 | null | null | 0 | 0.025105 | null | null | 0.016736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
0212a568b891342d0fe05cab385961cd81af6c0e | 18,281 | py | Python | src/tests/unit/test_parsing_lambda_events.py | doitintl/elastic-event-store | ad00f1fbecf430432c306d5917984d9f9ff522f4 | [
"MIT"
] | 22 | 2021-02-02T17:11:55.000Z | 2021-12-19T15:00:26.000Z | src/tests/unit/test_parsing_lambda_events.py | vladikk/elastic-event-store | ad00f1fbecf430432c306d5917984d9f9ff522f4 | [
"MIT"
] | 8 | 2021-02-04T19:21:25.000Z | 2021-02-08T07:48:06.000Z | src/tests/unit/test_parsing_lambda_events.py | vladikk/elastic-event-store | ad00f1fbecf430432c306d5917984d9f9ff522f4 | [
"MIT"
] | 4 | 2021-02-02T16:58:26.000Z | 2021-07-17T04:17:43.000Z | import json
from unittest import TestCase
from .context import ees
from ees.infrastructure.aws_lambda import event_to_command, parse_dynamodb_new_records
from ees.commands import *
from ees.model import Response, CommitData
class TestParsingLambdaEvents(TestCase):
def __init__(self, x):
with open('src/tests/unit/events.json') as f:
self.sample_events = json.load(f)
TestCase.__init__(self, x)
def test_version(self):
event = self.load_event("Version")
cmd = event_to_command(event)
assert isinstance(cmd, Version)
def test_commit(self):
event = self.load_event("Commit")
cmd = event_to_command(event)
assert isinstance(cmd, Commit)
assert cmd.stream_id == "7ef3c378-8c97-49fe-97ba-f5afe719ea1c"
assert cmd.expected_last_changeset == 7
assert cmd.events == json.loads(event["body"])["events"]
assert cmd.metadata == json.loads(event["body"])["metadata"]
def test_commit_with_implicit_expected_changeset(self):
event = self.load_event("Commit")
del event["queryStringParameters"]["expected_last_changeset"]
cmd = event_to_command(event)
assert isinstance(cmd, Commit)
assert cmd.stream_id == "7ef3c378-8c97-49fe-97ba-f5afe719ea1c"
assert cmd.expected_last_changeset == 0
assert cmd.events == json.loads(event["body"])["events"]
assert cmd.metadata == json.loads(event["body"])["metadata"]
def test_commit_without_stream_id(self):
event = self.load_event("Commit")
del event["pathParameters"]["stream_id"]
err = event_to_command(event)
assert isinstance(err, Response)
assert err.http_status == 400
self.assertDictEqual(err.body, {
"error": "MISSING_STREAM_ID",
"message": 'stream_id is a required value'
})
def test_commit_with_invalid_expected_changeset(self):
event = self.load_event("Commit")
event["queryStringParameters"]["expected_last_changeset"] = "test"
err = event_to_command(event)
assert isinstance(err, Response)
assert err.http_status == 400
self.assertDictEqual(err.body, {
"stream_id": "7ef3c378-8c97-49fe-97ba-f5afe719ea1c",
"error": "INVALID_EXPECTED_CHANGESET_ID",
"message": f'The specified expected changeset id("test") is invalid. Expected a positive integer.'
})
def test_commit_with_negative_expected_changeset(self):
event = self.load_event("Commit")
event["queryStringParameters"]["expected_last_changeset"] = -1
err = event_to_command(event)
assert isinstance(err, Response)
assert err.http_status == 400
self.assertDictEqual(err.body, {
"stream_id": "7ef3c378-8c97-49fe-97ba-f5afe719ea1c",
"error": "INVALID_EXPECTED_CHANGESET_ID",
"message": f'The specified expected changeset id("-1") is invalid. Expected a positive integer.'
})
def test_commit_with_both_expected_event_and_changeset(self):
event = self.load_event("Commit")
event["queryStringParameters"]["expected_last_event"] = "0"
event["queryStringParameters"]["expected_last_changeset"] = "0"
err = event_to_command(event)
assert isinstance(err, Response)
assert err.http_status == 400
self.assertDictEqual(err.body, {
"stream_id": "7ef3c378-8c97-49fe-97ba-f5afe719ea1c",
"error": "BOTH_EXPECTED_CHANGESET_AND_EVENT_ARE_SET",
"message": 'Cannot use both "last_changeset_id" and "last_event_id" for concurrency management. Specify only one value.'
})
def test_commit_with_last_event_as_empty_string(self):
event = self.load_event("Commit")
event["queryStringParameters"]["expected_last_event"] = ""
event["queryStringParameters"]["expected_last_changeset"] = ""
cmd = event_to_command(event)
assert isinstance(cmd, Commit)
assert cmd.stream_id == "7ef3c378-8c97-49fe-97ba-f5afe719ea1c"
assert cmd.expected_last_event == None
assert cmd.expected_last_changeset == 0
def test_commit_with_last_event(self):
event = self.load_event("Commit")
del event["queryStringParameters"]["expected_last_changeset"]
event["queryStringParameters"]["expected_last_event"] = 7
cmd = event_to_command(event)
assert isinstance(cmd, Commit)
assert cmd.stream_id == "7ef3c378-8c97-49fe-97ba-f5afe719ea1c"
assert cmd.expected_last_event == 7
assert cmd.events == json.loads(event["body"])["events"]
assert cmd.metadata == json.loads(event["body"])["metadata"]
def test_commit_with_invalid_expected_event(self):
event = self.load_event("Commit")
del event["queryStringParameters"]["expected_last_changeset"]
event["queryStringParameters"]["expected_last_event"] = "test"
err = event_to_command(event)
assert isinstance(err, Response)
assert err.http_status == 400
self.assertDictEqual(err.body, {
"stream_id": "7ef3c378-8c97-49fe-97ba-f5afe719ea1c",
"error": "INVALID_EXPECTED_EVENT_ID",
"message": f'The specified expected event id("test") is invalid. Expected a positive integer.'
})
def test_commit_with_negative_expected_changeset(self):
event = self.load_event("Commit")
del event["queryStringParameters"]["expected_last_changeset"]
event["queryStringParameters"]["expected_last_event"] = -1
err = event_to_command(event)
assert isinstance(err, Response)
assert err.http_status == 400
self.assertDictEqual(err.body, {
"stream_id": "7ef3c378-8c97-49fe-97ba-f5afe719ea1c",
"error": "INVALID_EXPECTED_EVENT_ID",
"message": f'The specified expected event id("-1") is invalid. Expected a positive integer.'
})
def test_commit_without_metadata(self):
event = self.load_event("Commit")
body = json.loads(event["body"])
del body["metadata"]
event["body"] = json.dumps(body)
cmd = event_to_command(event)
assert isinstance(cmd, Commit)
assert cmd.stream_id == "7ef3c378-8c97-49fe-97ba-f5afe719ea1c"
assert cmd.expected_last_changeset == 7
assert cmd.events == json.loads(event["body"])["events"]
assert cmd.metadata == { }
def test_fetch_stream_changesets(self):
event = self.load_event("StreamChangesets")
cmd = event_to_command(event)
assert isinstance(cmd, FetchStreamChangesets)
assert cmd.stream_id == "fe80eaef-90c3-41be-9bc0-3f85458b9a8e"
assert cmd.from_changeset == 1
assert cmd.to_changeset == 5
def test_fetch_stream_changesets_without_stream_id(self):
event = self.load_event("StreamChangesets")
del event["pathParameters"]["stream_id"]
err = event_to_command(event)
assert isinstance(err, Response)
assert err.http_status == 400
self.assertDictEqual(err.body, {
"error": "MISSING_STREAM_ID",
"message": 'stream_id is a required value'
})
def test_fetch_stream_changesets_without_from(self):
event = self.load_event("StreamChangesets")
del event["queryStringParameters"]["from"]
cmd = event_to_command(event)
assert isinstance(cmd, FetchStreamChangesets)
assert cmd.stream_id == "fe80eaef-90c3-41be-9bc0-3f85458b9a8e"
assert cmd.from_changeset == None
assert cmd.to_changeset == 5
def test_fetch_stream_changesets_without_to(self):
event = self.load_event("StreamChangesets")
del event["queryStringParameters"]["to"]
cmd = event_to_command(event)
assert isinstance(cmd, FetchStreamChangesets)
assert cmd.stream_id == "fe80eaef-90c3-41be-9bc0-3f85458b9a8e"
assert cmd.from_changeset == 1
assert cmd.to_changeset == None
def test_fetch_stream_changesets_invalid_to(self):
event = self.load_event("StreamChangesets")
event["queryStringParameters"]["to"] = "test"
err = event_to_command(event)
assert isinstance(err, Response)
assert err.http_status == 400
self.assertDictEqual(err.body, {
"stream_id": "fe80eaef-90c3-41be-9bc0-3f85458b9a8e",
"error": "INVALID_CHANGESET_FILTERING_PARAMS",
"message": 'The filtering params(from, to) have to be positive integer values'
})
def test_fetch_stream_changesets_invalid_from(self):
event = self.load_event("StreamChangesets")
event["queryStringParameters"]["from"] = "test"
err = event_to_command(event)
assert isinstance(err, Response)
assert err.http_status == 400
self.assertDictEqual(err.body, {
"stream_id": "fe80eaef-90c3-41be-9bc0-3f85458b9a8e",
"error": "INVALID_CHANGESET_FILTERING_PARAMS",
"message": 'The filtering params(from, to) have to be positive integer values'
})
def test_fetch_stream_changesets_wrong_order_of_from_and_to(self):
event = self.load_event("StreamChangesets")
event["queryStringParameters"]["from"] = "7"
event["queryStringParameters"]["to"] = "1"
err = event_to_command(event)
assert isinstance(err, Response)
assert err.http_status == 400
self.assertDictEqual(err.body, {
"stream_id": "fe80eaef-90c3-41be-9bc0-3f85458b9a8e",
"error": "INVALID_CHANGESET_FILTERING_PARAMS",
"message": f'The higher boundary cannot be lower than the lower boundary: 7(from) > 1(to)'
})
def test_fetch_stream_events(self):
event = self.load_event("StreamEvents")
cmd = event_to_command(event)
assert isinstance(cmd, FetchStreamEvents)
assert cmd.stream_id == "d2333e6b-65a7-4a10-9886-2dd2fe873bed"
assert cmd.from_event == 1
assert cmd.to_event == 5
def test_fetch_stream_events_without_stream_id(self):
event = self.load_event("StreamEvents")
del event["pathParameters"]["stream_id"]
err = event_to_command(event)
assert isinstance(err, Response)
assert err.http_status == 400
self.assertDictEqual(err.body, {
"error": "MISSING_STREAM_ID",
"message": 'stream_id is a required value'
})
def test_fetch_stream_events_without_from(self):
event = self.load_event("StreamEvents")
del event["queryStringParameters"]["from"]
cmd = event_to_command(event)
assert isinstance(cmd, FetchStreamEvents)
assert cmd.stream_id == "d2333e6b-65a7-4a10-9886-2dd2fe873bed"
assert cmd.from_event == None
assert cmd.to_event == 5
def test_fetch_stream_events_without_to(self):
event = self.load_event("StreamEvents")
del event["queryStringParameters"]["to"]
cmd = event_to_command(event)
assert isinstance(cmd, FetchStreamEvents)
assert cmd.stream_id == "d2333e6b-65a7-4a10-9886-2dd2fe873bed"
assert cmd.from_event == 1
assert cmd.to_event == None
def test_fetch_stream_events_invalid_to(self):
event = self.load_event("StreamEvents")
event["queryStringParameters"]["to"] = "test"
err = event_to_command(event)
assert isinstance(err, Response)
assert err.http_status == 400
self.assertDictEqual(err.body, {
"stream_id": "d2333e6b-65a7-4a10-9886-2dd2fe873bed",
"error": "INVALID_EVENT_FILTERING_PARAMS",
"message": 'The filtering params(from, to) have to be positive integer values'
})
def test_fetch_stream_events_invalid_from(self):
event = self.load_event("StreamEvents")
event["queryStringParameters"]["from"] = "test"
err = event_to_command(event)
assert isinstance(err, Response)
assert err.http_status == 400
self.assertDictEqual(err.body, {
"stream_id": "d2333e6b-65a7-4a10-9886-2dd2fe873bed",
"error": "INVALID_EVENT_FILTERING_PARAMS",
"message": 'The filtering params(from, to) have to be positive integer values'
})
def test_fetch_stream_events_wrong_order_of_from_and_to(self):
event = self.load_event("StreamEvents")
event["queryStringParameters"]["from"] = "7"
event["queryStringParameters"]["to"] = "1"
err = event_to_command(event)
assert isinstance(err, Response)
assert err.http_status == 400
self.assertDictEqual(err.body, {
"stream_id": "d2333e6b-65a7-4a10-9886-2dd2fe873bed",
"error": "INVALID_EVENT_FILTERING_PARAMS",
"message": f'The higher boundary cannot be lower than the lower boundary: 7(from) > 1(to)'
})
def test_global_changesets(self):
event = self.load_event("GlobalChangesets")
cmd = event_to_command(event)
assert isinstance(cmd, FetchGlobalChangesets)
assert cmd.checkpoint == 44
assert cmd.limit == 120
def test_global_changesets_without_explicit_limit(self):
event = self.load_event("GlobalChangesets")
del event["queryStringParameters"]["limit"]
cmd = event_to_command(event)
assert isinstance(cmd, FetchGlobalChangesets)
assert cmd.checkpoint == 44
assert cmd.limit == None
def test_global_changesets_without_explicit_checkpoint(self):
event = self.load_event("GlobalChangesets")
del event["queryStringParameters"]["checkpoint"]
del event["queryStringParameters"]["limit"]
cmd = event_to_command(event)
assert isinstance(cmd, FetchGlobalChangesets)
assert cmd.checkpoint == 0
assert cmd.limit == None
def test_global_changesets_with_invalid_checkpoint(self):
event = self.load_event("GlobalChangesets")
event["queryStringParameters"]["checkpoint"] = "test"
err = event_to_command(event)
assert isinstance(err, Response)
assert err.http_status == 400
self.assertDictEqual(err.body, {
"error": "INVALID_CHECKPOINT",
"message": '"test" is an invalid checkpoint value. Expected a positive integer value.'
})
def test_global_changesets_with_invalid_checkpoint2(self):
event = self.load_event("GlobalChangesets")
event["queryStringParameters"]["checkpoint"] = "-2"
err = event_to_command(event)
assert isinstance(err, Response)
assert err.http_status == 400
self.assertDictEqual(err.body, {
"error": "INVALID_CHECKPOINT",
"message": '"-2" is an invalid checkpoint value. Expected a positive integer value.'
})
def test_global_changesets_with_invalid_limit(self):
event = self.load_event("GlobalChangesets")
event["queryStringParameters"]["limit"] = "test"
err = event_to_command(event)
assert isinstance(err, Response)
assert err.http_status == 400
self.assertDictEqual(err.body, {
"error": "INVALID_LIMIT",
"message": '"test" is an invalid limit value. Expected an integer value greater than 0.'
})
def test_global_changesets_with_invalid_limit2(self):
event = self.load_event("GlobalChangesets")
event["queryStringParameters"]["limit"] = "-2"
err = event_to_command(event)
assert isinstance(err, Response)
assert err.http_status == 400
self.assertDictEqual(err.body, {
"error": "INVALID_LIMIT",
"message": '"-2" is an invalid limit value. Expected an integer value greater than 0.'
})
def test_global_changesets_with_invalid_limit2(self):
event = self.load_event("GlobalChangesets")
event["queryStringParameters"]["limit"] = "0"
err = event_to_command(event)
assert isinstance(err, Response)
assert err.http_status == 400
self.assertDictEqual(err.body, {
"error": "INVALID_LIMIT",
"message": '"0" is an invalid limit value. Expected an integer value greater than 0.'
})
def test_assign_global_index(self):
event = self.load_event("AssignGlobalIndex")
cmd = event_to_command(event)
assert isinstance(cmd, AssignGlobalIndexes)
self.assertListEqual(cmd.changesets, [
{ "stream_id": "99038933-e620-444d-9033-4128254f0cbd", "changeset_id": 2 },
{ "stream_id": "206bc1ed-8e67-4a64-a596-8b32c0c20a97", "changeset_id": 1 }
])
def test_new_dynamodb_records(self):
self.maxDiff = None
event = self.load_event("AssignGlobalIndex")
changesets = parse_dynamodb_new_records(event, None)
self.assertListEqual(
changesets,
[
CommitData(stream_id='99038933-e620-444d-9033-4128254f0cbd', changeset_id=2, metadata={'timestamp': '123123', 'command_id': '456346234', 'issued_by': 'test@test.com'}, events=[{'type': 'init', 'foo': 'bar'}, {'type': 'update', 'foo': 'baz'}], first_event_id=3, last_event_id=4, page=None, page_item=None),
CommitData(stream_id='206bc1ed-8e67-4a64-a596-8b32c0c20a97', changeset_id=1, metadata={'timestamp': '123123', 'command_id': '456346234', 'issued_by': 'test@test.com'}, events=[{'type': 'init', 'foo': 'bar'}, {'type': 'update', 'foo': 'baz'}], first_event_id=1, last_event_id=2, page=None, page_item=None)
]
)
def load_event(self, name):
return self.sample_events[name] | 43.319905 | 321 | 0.63618 | 2,004 | 18,281 | 5.570359 | 0.086826 | 0.034668 | 0.045149 | 0.058049 | 0.91866 | 0.897071 | 0.85864 | 0.850399 | 0.825226 | 0.767715 | 0 | 0.046135 | 0.254198 | 18,281 | 422 | 322 | 43.319905 | 0.772627 | 0 | 0 | 0.72191 | 0 | 0 | 0.271415 | 0.119243 | 0 | 0 | 0 | 0 | 0.331461 | 1 | 0.106742 | false | 0 | 0.016854 | 0.002809 | 0.129213 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0230a64cdcb61ced5f627d239b3a2e89b4d59f0c | 3,633 | py | Python | combining_strings.py | hasanprep/lesson-1.1-combining-strings | 1cd8bb51a5984edc9e11876b019fde6cb4b74227 | [
"Unlicense"
] | null | null | null | combining_strings.py | hasanprep/lesson-1.1-combining-strings | 1cd8bb51a5984edc9e11876b019fde6cb4b74227 | [
"Unlicense"
] | null | null | null | combining_strings.py | hasanprep/lesson-1.1-combining-strings | 1cd8bb51a5984edc9e11876b019fde6cb4b74227 | [
"Unlicense"
] | null | null | null | # combining_strings.py (10 points)
# DO NOT DELETE THE COMMENTS. THEY ARE HERE TO GUIDE YOU.
# IF YOU DELETE THEM 1 point will be deducted.
# Create a variable called first_name and assign a value to it. (1 point)
# Create a variable called last_name and assign a value to it. (1 point)
# Create a variable called occupation and assign a value to it. (1 point)
# Create a variable called city and assign a value to it. (1 point)
# Create a variable called state and assign a value to it. (1 point)
# Print the strings. (5 points)
###############################################################################
# POSSIBLE OUTPUTS: #
# > Alice Smith is a(n) architect from Portland, Maine. #
# > Oscar Johnson is a(n) pilot from Huntsville, Alabama. #
###############################################################################
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#
# END OF LAB ----------------------------------------------> START OF BONUS 1 #
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#
# BONUS 1 (10 points)
# DO NOT DELETE THE COMMENTS. THEY ARE HERE TO GUIDE YOU.
# IF YOU DELETE THEM 1 point will be deducted.
# Create a variable called first_name and assign a value to it. (1 point)
# Create a variable called last_name and assign a value to it. (1 point)
# Create a variable called name that is a combunation of first_name and
# and last_name with a space between them. (2 points)
# Create a variable called occupation and assign a value to it. (1 point)
# Create a variable called city and assign a value to it. (1 point)
# Create a variable called state and assign a value to it. (1 point)
# Create a variable called place that is a combunation of city and
# and state with a comma and a space between them. (2 point)
# Print the strings. (1 points)
###############################################################################
# POSSIBLE OUTPUTS: #
# > Alice Smith is a(n) architect from Portland, Maine. #
# > Oscar Johnson is a(n) pilot from Huntsville, Alabama. #
###############################################################################
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#
# END OF BONUS 1 ------------------------------------------> START OF BONUS 2 #
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#
# BONUS 2 (10 points)
# DO NOT DELETE THE COMMENTS. THEY ARE HERE TO GUIDE YOU.
# IF YOU DELETE THEM 1 point will be deducted.
# Create a variable called first_name and assign a value to it. (1 point)
# Create a variable called last_name and assign a value to it. (1 point)
# Create a variable called occupation and assign a value to it. (1 point)
# Create a variable called city and assign a value to it. (1 point)
# Create a variable called state and assign a value to it. (1 point)
# Create a variable called person that can produce the following possible
# outputs. (4 points)
# Print person (1 point)
###############################################################################
# POSSIBLE OUTPUTS: #
# > Alice Smith is a(n) architect from Portland, Maine. #
# > Oscar Johnson is a(n) pilot from Huntsville, Alabama. #
###############################################################################
| 35.970297 | 79 | 0.484448 | 424 | 3,633 | 4.129717 | 0.169811 | 0.065106 | 0.154198 | 0.215877 | 0.861222 | 0.817818 | 0.817818 | 0.817818 | 0.817818 | 0.817818 | 0 | 0.012473 | 0.227636 | 3,633 | 100 | 80 | 36.33 | 0.611547 | 0.818607 | 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 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
5a639eb75a2a9a050dfcab6041f9c08093b65c55 | 4,027 | py | Python | Image/SegmentVGG16.py | walter114/TIPRDC | 50dd24e79062fd5742e925ad5769919bcf96ef0a | [
"Apache-2.0"
] | 13 | 2020-12-27T06:19:55.000Z | 2022-02-12T12:26:09.000Z | Image/SegmentVGG16.py | walter114/TIPRDC | 50dd24e79062fd5742e925ad5769919bcf96ef0a | [
"Apache-2.0"
] | null | null | null | Image/SegmentVGG16.py | walter114/TIPRDC | 50dd24e79062fd5742e925ad5769919bcf96ef0a | [
"Apache-2.0"
] | 4 | 2021-03-05T05:36:32.000Z | 2022-01-26T16:01:56.000Z | import torch.nn as nn
import math
class FeatureExtractor(nn.Module):
def __init__(self):
super(FeatureExtractor, self).__init__()
self.convnet = nn.Sequential(
nn.Conv2d(3, 64, kernel_size=3, padding=1),
nn.BatchNorm2d(64),
nn.ReLU(inplace=True),
nn.Conv2d(64, 64, kernel_size=3, padding=1),
nn.BatchNorm2d(64),
nn.ReLU(inplace=True),
nn.MaxPool2d(kernel_size=2, stride=2),
nn.Conv2d(64, 128, kernel_size=3, padding=1),
nn.BatchNorm2d(128),
nn.ReLU(inplace=True),
nn.Conv2d(128, 128, kernel_size=3, padding=1),
nn.BatchNorm2d(128),
nn.ReLU(inplace=True),
nn.MaxPool2d(kernel_size=2, stride=2),
)
# initialize weight
self._initialize_weights()
def forward(self, x):
out = self.convnet(x)
return out
def _initialize_weights(self):
for m in self.modules():
if isinstance(m, nn.Conv2d):
n = m.kernel_size[0] * m.kernel_size[1] * m.out_channels
m.weight.data.normal_(0, math.sqrt(2. / n))
if m.bias is not None:
m.bias.data.zero_()
elif isinstance(m, nn.BatchNorm2d):
m.weight.data.fill_(1)
m.bias.data.zero_()
elif isinstance(m, nn.Linear):
m.weight.data.normal_(0, 0.01)
m.bias.data.zero_()
class Classifier(nn.Module):
def __init__(self, num_classes=2):
super(Classifier, self).__init__()
self.convnet = nn.Sequential(
nn.Conv2d(128, 256, kernel_size=3, padding=1),
nn.BatchNorm2d(256),
nn.ReLU(inplace=True),
nn.Conv2d(256, 256, kernel_size=3, padding=1),
nn.BatchNorm2d(256),
nn.ReLU(inplace=True),
nn.Conv2d(256, 256, kernel_size=3, padding=1),
nn.BatchNorm2d(256),
nn.ReLU(inplace=True),
nn.MaxPool2d(kernel_size=2, stride=2),
nn.Conv2d(256, 512, kernel_size=3, padding=1),
nn.BatchNorm2d(512),
nn.ReLU(inplace=True),
nn.Conv2d(512, 512, kernel_size=3, padding=1),
nn.BatchNorm2d(512),
nn.ReLU(inplace=True),
nn.Conv2d(512, 512, kernel_size=3, padding=1),
nn.BatchNorm2d(512),
nn.ReLU(inplace=True),
nn.MaxPool2d(kernel_size=2, stride=2),
nn.Conv2d(512, 512, kernel_size=3, padding=1),
nn.BatchNorm2d(512),
nn.ReLU(inplace=True),
nn.Conv2d(512, 512, kernel_size=3, padding=1),
nn.BatchNorm2d(512),
nn.ReLU(inplace=True),
nn.Conv2d(512, 512, kernel_size=3, padding=1),
nn.BatchNorm2d(512),
nn.ReLU(inplace=True),
nn.MaxPool2d(kernel_size=2, stride=2),
)
self.fcnet = nn.Sequential(
nn.Linear(512 * 30, 4096),
nn.ReLU(inplace=True),
nn.Dropout(),
nn.Linear(4096, 4096),
nn.ReLU(inplace=True),
nn.Dropout(),
nn.Linear(4096, num_classes),
)
# initialize weight
self._initialize_weights()
def forward(self, x):
out = self.convnet(x)
out = out.view(out.size(0), -1)
out = self.fcnet(out)
return out
def _initialize_weights(self):
for m in self.modules():
if isinstance(m, nn.Conv2d):
n = m.kernel_size[0] * m.kernel_size[1] * m.out_channels
m.weight.data.normal_(0, math.sqrt(2. / n))
if m.bias is not None:
m.bias.data.zero_()
elif isinstance(m, nn.BatchNorm2d):
m.weight.data.fill_(1)
m.bias.data.zero_()
elif isinstance(m, nn.Linear):
m.weight.data.normal_(0, 0.01)
m.bias.data.zero_()
| 35.324561 | 72 | 0.526695 | 504 | 4,027 | 4.085317 | 0.132937 | 0.106848 | 0.094706 | 0.123847 | 0.901894 | 0.883439 | 0.87761 | 0.87761 | 0.839728 | 0.839728 | 0 | 0.083805 | 0.34219 | 4,027 | 113 | 73 | 35.637168 | 0.693469 | 0.008691 | 0 | 0.772277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059406 | false | 0 | 0.019802 | 0 | 0.118812 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ce961d952e62f7ab26fb8184d42e3b4d6a37a5d1 | 20,879 | py | Python | rlapy/tests/test_comps/test_qb.py | TeachRaccooon/rlapy | 83ba598c8f8463b1c701ee85577b7f736b5dc32b | [
"BSD-3-Clause"
] | null | null | null | rlapy/tests/test_comps/test_qb.py | TeachRaccooon/rlapy | 83ba598c8f8463b1c701ee85577b7f736b5dc32b | [
"BSD-3-Clause"
] | null | null | null | rlapy/tests/test_comps/test_qb.py | TeachRaccooon/rlapy | 83ba598c8f8463b1c701ee85577b7f736b5dc32b | [
"BSD-3-Clause"
] | null | null | null | import unittest
import math
import numpy as np
import scipy.linalg as la
import rlapy.utils.sketching as usk
import rlapy.utils.linalg_wrappers as ulaw
import rlapy.tests.matmakers as matmakers
import rlapy.comps.qb as rqb
import rlapy.comps.sketchers as rsks
def tall_low_exact_rank():
m, n, k = 200, 50, 15
rng = np.random.default_rng(89374539423)
A, U, s, Vt = matmakers.rand_low_rank(m, n, k, rng, factors=True)
ath = AlgTestHelper(A, U, s, Vt)
return ath
def wide_low_exact_rank():
m, n, k = 200, 50, 15 # n rows and m columns (in this function)
rng = np.random.default_rng(89374539423)
A, U, s, Vt = matmakers.rand_low_rank(n, m, k, rng, factors=True)
ath = AlgTestHelper(A, U, s, Vt)
return ath
def tall_full_exact_rank():
m, n, k = 200, 50, 50
rng = np.random.default_rng(89374539423)
A, U, s, Vt = matmakers.rand_low_rank(m, n, k, rng, factors=True)
ath = AlgTestHelper(A, U, s, Vt)
return ath
def wide_full_exact_rank():
m, n, k = 200, 50, 50
rng = np.random.default_rng(89374539423)
A, U, s, Vt = matmakers.rand_low_rank(n, m, k, rng, factors=True)
ath = AlgTestHelper(A, U, s, Vt)
return ath
"""
Below, "decay" refers to decay of singular values of an input matrix.
Decreasing the spectrum_param eventually results in an ill-conditioned matrix & tests failing
(wrong approximation accuracy and rank of B).
"""
def fast_decay_low_exact_rank():
m, n, k, spectrum_param = 200, 50, 15, 2
rng = np.random.default_rng(89374539423)
A, U, s, Vt = matmakers.exponent_spectrum(n, m, k, rng, spectrum_param, factors=True)
ath = AlgTestHelper(A, U, s, Vt)
return ath
def slow_decay_low_exact_rank():
m, n, k, spectrum_param = 200, 50, 15, 150
rng = np.random.default_rng(89374539423)
A, U, s, Vt = matmakers.exponent_spectrum(n, m, k, rng, spectrum_param, factors=True)
ath = AlgTestHelper(A, U, s, Vt)
return ath
def s_shaped_decay_low_exact_rank():
m, n, k = 200, 50, 45
rng = np.random.default_rng(89374539423)
A, U, s, Vt = matmakers.s_shaped_spectrum(n, m, k, rng, factors=True)
ath = AlgTestHelper(A, U, s, Vt)
return ath
class AlgTestHelper:
# WARNING: this class makes no attempt to check internal
# consistency between instance variables (e.g., it doesn't
# enforce the expectation that (U, s, Vt) define an SVD of A).
def __init__(self, A, U, s, Vt):
self.A = A
self.U = U
self.s = s # s should be sorted decreasing; rank == s.size.
self.Vt = Vt
self.QB = (None, None) # will be a pair of ndarrays
# ^ Store Q and B in one place, so they can be updated with one
# function call ath.QB = qb_alg(ath.A, k, tol, rng).
self.tester = unittest.TestCase()
def test_exact(self, fro_tol):
Q, B = self.QB
delta = self.A - Q @ B
nrm = la.norm(delta, ord='fro')
self.tester.assertLessEqual(nrm, fro_tol)
def test_valid_onb(self, fro_tol):
Q, B = self.QB
self.tester.assertEqual(Q.shape[0], self.A.shape[0])
self.tester.assertLessEqual(Q.shape[1], self.A.shape[1])
gram = Q.T @ Q
delta = gram - np.eye(Q.shape[1])
nrm = la.norm(delta, ord='fro')
self.tester.assertLessEqual(nrm, fro_tol)
def test_exact_B(self, fro_tol):
Q, B = self.QB
self.tester.assertEqual(Q.shape[0], self.A.shape[0])
self.tester.assertLessEqual(Q.shape[1], self.A.shape[1])
delta = B - Q.T @ self.A
nrm = la.norm(delta, ord='fro')
self.tester.assertLessEqual(nrm, fro_tol)
# Check if B is fullrank - rather rudimentary; catches the case when rank is overestimated.
def test_exact_rank_B(self):
Q, B = self.QB
self.tester.assertEqual(np.linalg.matrix_rank(B), min(B.shape))
# Check if the matrix A has been unchanged
def test_unchanged_A(self, A_copy):
self.tester.assertEqual(la.norm(self.A, ord='fro'), la.norm(A_copy, ord='fro'))
class TestQBFactorizer(unittest.TestCase):
SEEDS = [1, 4, 15, 31, 42]
@staticmethod
def run_batch_exact(ath: AlgTestHelper,
alg: rqb.QBFactorizer,
target_rank, target_tol,
test_tol, seeds):
for seed in seeds:
rng = np.random.default_rng(seed)
# Call the QB algorithm, store results in AlgTestHelper.
ath.QB = alg(ath.A, target_rank, target_tol, rng)
# Test the results of the QB algorithm
ath.test_valid_onb(test_tol)
ath.test_exact(test_tol)
ath.test_exact_B(test_tol)
ath.test_exact_rank_B()
# Same as above - rank(B) test.
@staticmethod
def run_batch_estimated(ath: AlgTestHelper,
alg: rqb.QBFactorizer,
target_rank, target_tol,
test_tol, seeds):
for seed in seeds:
rng = np.random.default_rng(seed)
# Call the QB algorithm, store results in AlgTestHelper.
ath.QB = alg(ath.A, target_rank, target_tol, rng)
# Test the results of the QB algorithm
ath.test_valid_onb(test_tol)
ath.test_exact(test_tol)
ath.test_exact_B(test_tol)
# Below tests are mainly "universal" among different types of QB =>
# still need to produce more algorithm-specific tests.
class TestQB1(TestQBFactorizer):
def test_exact(self):
alg = rqb.QB1(rqb.RF1(rsks.RS1(
sketch_op_gen=usk.gaussian_operator,
num_pass=1,
stabilizer=ulaw.orth,
passes_per_stab=1
)))
alg_tol = np.NaN
test_tol = 1e-8
# Run the above algorithm on tall matrices, wide matrices,
# and matrices with varying types of spectral decay.
#
# In all cases we set the target rank of the approximation matrix
# to the actual rank of the data matrix.
ath1 = tall_low_exact_rank()
alg_rank = ath1.s.size
self.run_batch_exact(ath1, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath2 = wide_low_exact_rank()
alg_rank = ath2.s.size
self.run_batch_exact(ath2, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath3 = fast_decay_low_exact_rank()
alg_rank = ath3.s.size
self.run_batch_exact(ath3, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath4 = slow_decay_low_exact_rank()
alg_rank = ath4.s.size
self.run_batch_exact(ath4, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath5 = s_shaped_decay_low_exact_rank()
alg_rank = ath5.s.size
self.run_batch_exact(ath5, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
# Cases with full-rank factorizations.
ath6 = tall_full_exact_rank()
alg_rank = ath6.s.size
self.run_batch_exact(ath6, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath7 = wide_full_exact_rank()
alg_rank = ath7.s.size
self.run_batch_exact(ath7, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
# Same as above, except uses SJLT sketching matrix.
def test_exact_sparse(self):
alg = rqb.QB1(rqb.RF1(rsks.RS1(
sketch_op_gen=usk.sjlt_operator,
num_pass=1,
stabilizer=ulaw.orth,
passes_per_stab=1
)))
alg_tol = np.NaN
test_tol = 1e-8
# Run the above algorithm on tall matrices, wide matrices,
# and matrices with varying types of spectral decay.
#
# In all cases we set the target rank of the approximation matrix
# to the actual rank of the data matrix.
ath1 = tall_low_exact_rank()
alg_rank = ath1.s.size
self.run_batch_exact(ath1, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath2 = wide_low_exact_rank()
alg_rank = ath2.s.size
self.run_batch_exact(ath2, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath3 = fast_decay_low_exact_rank()
alg_rank = ath3.s.size
self.run_batch_exact(ath3, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath4 = slow_decay_low_exact_rank()
alg_rank = ath4.s.size
self.run_batch_exact(ath4, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath5 = s_shaped_decay_low_exact_rank()
alg_rank = ath5.s.size
self.run_batch_exact(ath5, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
# Cases with full-rank factorizations.
ath6 = tall_full_exact_rank()
alg_rank = ath6.s.size
self.run_batch_exact(ath6, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath7 = wide_full_exact_rank()
alg_rank = ath7.s.size
self.run_batch_exact(ath7, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
def test_overestimate(self):
alg = rqb.QB1(rqb.RF1(rsks.RS1(
sketch_op_gen=usk.gaussian_operator,
num_pass=1,
stabilizer=ulaw.orth,
passes_per_stab=1
)))
alg_tol = np.NaN
test_tol = 1e-8
# Run the above algorithm on a tall matrices, then wide matrices.
#
# In both cases we set the target rank of the approximation matrix
# to a value higher than the exact rank of the data matrix (~20% overestimation).
ath1 = tall_low_exact_rank()
if ath1.s.size * 1.2 <= min(ath1.A.shape):
alg_rank_overestimated = math.floor(ath1.s.size * 1.2)
self.run_batch_estimated(ath1, alg, alg_rank_overestimated, alg_tol, test_tol, self.SEEDS)
ath2 = wide_low_exact_rank()
if ath2.s.size * 1.2 <= min(ath1.A.shape):
alg_rank_overestimated = math.floor(ath2.s.size * 1.2)
self.run_batch_estimated(ath2, alg, alg_rank_overestimated, alg_tol, test_tol, self.SEEDS)
class TestQB2(TestQBFactorizer):
def test_exact(self):
alg = rqb.QB2(
rf=rqb.RF1(rsks.RS1(
sketch_op_gen=usk.gaussian_operator,
num_pass=0, # oblivious sketching operator
stabilizer=ulaw.orth,
passes_per_stab=1)),
blk=4,
overwrite_a=False
)
alg_tol = np.NaN
test_tol = 1e-8
# Run the above algorithm on tall matrices, wide matrices,
# and matrices with varying types of spectral decay.
#
# In all cases we set the target rank of the approximation matrix
# to the actual rank of the data matrix.
ath1 = tall_low_exact_rank()
alg_rank = ath1.s.size
A_copy = ath1.A
self.run_batch_exact(ath1, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
# Algorithm-specific check for whether initial matirx A has been updated.
ath1.test_unchanged_A(A_copy)
ath2 = wide_low_exact_rank()
alg_rank = ath2.s.size
self.run_batch_exact(ath2, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath3 = fast_decay_low_exact_rank()
alg_rank = ath3.s.size
self.run_batch_exact(ath3, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath4 = slow_decay_low_exact_rank()
alg_rank = ath4.s.size
self.run_batch_exact(ath4, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath5 = s_shaped_decay_low_exact_rank()
alg_rank = ath5.s.size
self.run_batch_exact(ath5, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
# Cases with full-rank factorizations.
ath6 = tall_full_exact_rank()
alg_rank = ath6.s.size
self.run_batch_exact(ath6, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath7 = wide_full_exact_rank()
alg_rank = ath7.s.size
self.run_batch_exact(ath7, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
def test_estimated_tol(self):
alg = rqb.QB2(
rf=rqb.RF1(rsks.RS1(
sketch_op_gen=usk.gaussian_operator,
num_pass=0, # oblivious sketching operator
stabilizer=ulaw.orth,
passes_per_stab=1)),
blk=4,
overwrite_a=False
)
alg_tol = 1e-8
test_tol = alg_tol
# Here, we specify the algorithm tolerance (and test tolerance).
# Run the above algorithm on tall matrices, wide matrices,
# and matrices with varying types of spectral decay.
#
# In all cases we set the target rank of the approximation matrix
# to the smaller dimension of input matrix.
ath1 = tall_low_exact_rank()
alg_rank = min(ath1.A.shape)
self.run_batch_estimated(ath1, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath2 = wide_low_exact_rank()
alg_rank = min(ath2.A.shape)
self.run_batch_estimated(ath2, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath3 = fast_decay_low_exact_rank()
alg_rank = min(ath3.A.shape)
self.run_batch_estimated(ath3, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath4 = slow_decay_low_exact_rank()
alg_rank = min(ath4.A.shape)
self.run_batch_estimated(ath4, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath5 = s_shaped_decay_low_exact_rank()
alg_rank = min(ath5.A.shape)
self.run_batch_estimated(ath5, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
# Same as above, except uses SJLT sketching matrix.
def test_exact_sparse(self):
alg = rqb.QB2(
rf=rqb.RF1(rsks.RS1(
sketch_op_gen=usk.sjlt_operator,
num_pass=0, # oblivious sketching operator
stabilizer=ulaw.orth,
passes_per_stab=1)),
blk=4,
overwrite_a=False
)
alg_tol = np.NaN
test_tol = 1e-8
# Run the above algorithm on tall matrices, wide matrices,
# and matrices with varying types of spectral decay.
#
# In all cases we set the target rank of the approximation matrix
# to the actual rank of the data matrix.
ath1 = tall_low_exact_rank()
alg_rank = ath1.s.size
self.run_batch_exact(ath1, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath2 = wide_low_exact_rank()
alg_rank = ath2.s.size
self.run_batch_exact(ath2, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath3 = fast_decay_low_exact_rank()
alg_rank = ath3.s.size
self.run_batch_exact(ath3, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath4 = slow_decay_low_exact_rank()
alg_rank = ath4.s.size
self.run_batch_exact(ath4, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath5 = s_shaped_decay_low_exact_rank()
alg_rank = ath5.s.size
self.run_batch_exact(ath5, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
# Cases with full-rank factorizations.
ath6 = tall_full_exact_rank()
alg_rank = ath6.s.size
self.run_batch_exact(ath6, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath7 = wide_full_exact_rank()
alg_rank = ath7.s.size
self.run_batch_exact(ath7, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
def test_overestimate(self):
alg = rqb.QB2(
rf=rqb.RF1(rsks.RS1(
sketch_op_gen=usk.gaussian_operator,
num_pass=0, # oblivious sketching operator
stabilizer=ulaw.orth,
passes_per_stab=1)),
blk=4,
overwrite_a=False
)
alg_tol = np.NaN
test_tol = 1e-8
# Run the above algorithm on a tall matrices, then wide matrices.
#
# In both cases we set the target rank of the approximation matrix
# to a value higher than the exact rank of the data matrix (~20% overestimation).
ath1 = tall_low_exact_rank()
if ath1.s.size * 1.2 <= min(ath1.A.shape):
alg_rank_overestimated = math.floor(ath1.s.size * 1.2)
self.run_batch_estimated(ath1, alg, alg_rank_overestimated, alg_tol, test_tol, self.SEEDS)
ath2 = wide_low_exact_rank()
if ath2.s.size * 1.2 <= min(ath1.A.shape):
alg_rank_overestimated = math.floor(ath2.s.size * 1.2)
self.run_batch_estimated(ath2, alg, alg_rank_overestimated, alg_tol, test_tol, self.SEEDS)
class TestQB3(TestQBFactorizer):
def test_exact(self):
alg = rqb.QB3(
sk_op=rqb.RS1(
sketch_op_gen=usk.gaussian_operator,
num_pass=0, # oblivious sketching operator
stabilizer=ulaw.orth,
passes_per_stab=1),
blk=4
)
alg_tol = np.NaN
test_tol = 1e-8
# Run the above algorithm on tall matrices, wide matrices,
# and matrices with varying types of spectral decay.
#
# In all cases we set the target rank of the approximation matrix
# to the actual rank of the data matrix. Target rank has to be STRICTLY
# less than the minimal dimension of data matrix.
ath1 = tall_low_exact_rank()
alg_rank = ath1.s.size
self.run_batch_exact(ath1, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath2 = wide_low_exact_rank()
alg_rank = ath2.s.size
self.run_batch_exact(ath2, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath3 = fast_decay_low_exact_rank()
alg_rank = ath3.s.size
self.run_batch_exact(ath3, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath4 = slow_decay_low_exact_rank()
alg_rank = ath4.s.size
self.run_batch_exact(ath4, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath5 = s_shaped_decay_low_exact_rank()
alg_rank = ath5.s.size
self.run_batch_exact(ath5, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
"""
No sparse operator testing, since QB3 requires the sketching routine to return a dense matrix.
Should we autimatically change storage type of a sketch if it is not dense for QB3 (so that it can still use
sparse operators)?
"""
def test_estimated_tol(self):
alg = rqb.QB3(
sk_op=rqb.RS1(
sketch_op_gen=usk.gaussian_operator,
num_pass=0, # oblivious sketching operator
stabilizer=ulaw.orth,
passes_per_stab=1),
blk=4
)
alg_tol = 1e-4
test_tol = alg_tol
# Here, we specify the algorithm tolerance (and test tolerance).
# Run the above algorithm on tall matrices, wide matrices,
# and matrices with varying types of spectral decay.
#
# In all cases we set the target rank of the approximation matrix
# to the actual rank of the data matrix.
ath1 = tall_low_exact_rank()
alg_rank = ath1.s.size
self.run_batch_estimated(ath1, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath2 = wide_low_exact_rank()
alg_rank = ath2.s.size
self.run_batch_estimated(ath2, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath3 = fast_decay_low_exact_rank()
alg_rank = ath3.s.size
self.run_batch_estimated(ath3, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath4 = slow_decay_low_exact_rank()
alg_rank = ath4.s.size
self.run_batch_estimated(ath4, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
ath5 = s_shaped_decay_low_exact_rank()
alg_rank = ath5.s.size
self.run_batch_estimated(ath5, alg, alg_rank, alg_tol, test_tol, self.SEEDS)
# Tests fail by test_valid_onb accuracy - extra iteration of main loop in QB3 causes loss of orthogonality
# in columns of Q. Solution: early termination (via comparing with previous iteration's error).
"""
def test_overestimate(self):
alg = rqb.QB3(
sk_op=rqb.RS1(
sketch_op_gen=usk.gaussian_operator,
num_pass=0, # oblivious sketching operator
stabilizer=ulaw.orth,
passes_per_stab=1),
blk=4
)
alg_tol = np.NaN
test_tol = 1e-8
# Run the above algorithm on a tall matrices, then wide matrices.
#
# In both cases we set the target rank of the approximation matrix
# to a value higher than the exact rank of the data matrix (~20% overestimation).
ath1 = tall_low_exact_rank()
if ath1.s.size * 1.2 <= min(ath1.A.shape):
alg_rank_overestimated = math.floor(ath1.s.size * 1.2)
self.run_batch_estimated(ath1, alg, alg_rank_overestimated, alg_tol, test_tol, self.SEEDS)
ath2 = wide_low_exact_rank()
if ath2.s.size * 1.2 <= min(ath1.A.shape):
alg_rank_overestimated = math.floor(ath2.s.size * 1.2)
self.run_batch_estimated(ath2, alg, alg_rank_overestimated, alg_tol, test_tol, self.SEEDS)
""" | 40.8591 | 116 | 0.630203 | 3,087 | 20,879 | 4.035957 | 0.092323 | 0.055061 | 0.040934 | 0.051128 | 0.846456 | 0.844209 | 0.839233 | 0.825106 | 0.820852 | 0.817321 | 0 | 0.027781 | 0.279372 | 20,879 | 511 | 117 | 40.8591 | 0.800279 | 0.175439 | 0 | 0.825843 | 0 | 0 | 0.000965 | 0 | 0 | 0 | 0 | 0 | 0.025281 | 1 | 0.067416 | false | 0.050562 | 0.025281 | 0 | 0.129213 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
cea7dd7e6cb0bfddc3655c64884001aba44d590e | 23,889 | py | Python | dnacentercli/cli/v1_3_1/fabric_wired.py | AltusConsulting/dnacentercli | 26ea46fdbd40fc30649ea1d8803158655aa545aa | [
"MIT"
] | null | null | null | dnacentercli/cli/v1_3_1/fabric_wired.py | AltusConsulting/dnacentercli | 26ea46fdbd40fc30649ea1d8803158655aa545aa | [
"MIT"
] | null | null | null | dnacentercli/cli/v1_3_1/fabric_wired.py | AltusConsulting/dnacentercli | 26ea46fdbd40fc30649ea1d8803158655aa545aa | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import click
import json
from ..utils.spinner import (
init_spinner,
start_spinner,
stop_spinner,
)
from ..utils.print import (
tbprint,
eprint,
oprint,
opprint,
)
@click.group()
@click.pass_obj
@click.pass_context
def fabric_wired(ctx, obj):
"""DNA Center Fabric Wired API (version: 1.3.1).
Wraps the DNA Center Fabric Wired API and exposes the API as native Python commands.
"""
ctx.obj = obj.fabric_wired
@fabric_wired.command()
@click.option('--ip_pool_name', type=str,
help='''ipPoolName query parameter.''',
required=True,
show_default=True)
@click.option('--virtual_network_name', type=str,
help='''virtualNetworkName query parameter.''',
required=True,
show_default=True)
@click.option('--headers', type=str, help='''Dictionary of HTTP Headers to send with the Request.''',
default=None,
show_default=True)
@click.option('-pp', '--pretty_print', type=int, help='''Pretty print indent''',
default=None,
show_default=True)
@click.option('--beep', is_flag=True, help='''Spinner beep (on)''')
@click.pass_obj
def delete_ip_pool_from_sda_virtual_network(obj, pretty_print, beep,
ip_pool_name,
virtual_network_name,
headers):
"""Delete IP Pool from SDA Virtual Network.
"""
spinner = init_spinner(beep=beep)
start_spinner(spinner)
try:
if headers is not None:
headers = json.loads(headers)
result = obj.delete_ip_pool_from_sda_virtual_network(
ip_pool_name=ip_pool_name,
virtual_network_name=virtual_network_name,
headers=headers)
stop_spinner(spinner)
opprint(result, indent=pretty_print)
except Exception as e:
stop_spinner(spinner)
tbprint()
eprint('Error:', e)
click.Context.exit(-1)
@fabric_wired.command()
@click.option('--device_ipaddress', type=str,
help='''Device IP Address.''',
required=True,
show_default=True)
@click.option('--headers', type=str, help='''Dictionary of HTTP Headers to send with the Request.''',
default=None,
show_default=True)
@click.option('-pp', '--pretty_print', type=int, help='''Pretty print indent''',
default=None,
show_default=True)
@click.option('--beep', is_flag=True, help='''Spinner beep (on)''')
@click.pass_obj
def delete_edge_device(obj, pretty_print, beep,
device_ipaddress,
headers):
"""Delete edge device from SDA Fabric.
"""
spinner = init_spinner(beep=beep)
start_spinner(spinner)
try:
if headers is not None:
headers = json.loads(headers)
result = obj.delete_edge_device(
device_ipaddress=device_ipaddress,
headers=headers)
stop_spinner(spinner)
opprint(result, indent=pretty_print)
except Exception as e:
stop_spinner(spinner)
tbprint()
eprint('Error:', e)
click.Context.exit(-1)
@fabric_wired.command()
@click.option('--site_name_hierarchy', type=str,
help='''siteNameHierarchy query parameter.''',
required=True,
show_default=True)
@click.option('--headers', type=str, help='''Dictionary of HTTP Headers to send with the Request.''',
default=None,
show_default=True)
@click.option('-pp', '--pretty_print', type=int, help='''Pretty print indent''',
default=None,
show_default=True)
@click.option('--beep', is_flag=True, help='''Spinner beep (on)''')
@click.pass_obj
def delete_default_authentication_profile(obj, pretty_print, beep,
site_name_hierarchy,
headers):
"""Delete default authentication profile from SDA Fabric.
"""
spinner = init_spinner(beep=beep)
start_spinner(spinner)
try:
if headers is not None:
headers = json.loads(headers)
result = obj.delete_default_authentication_profile(
site_name_hierarchy=site_name_hierarchy,
headers=headers)
stop_spinner(spinner)
opprint(result, indent=pretty_print)
except Exception as e:
stop_spinner(spinner)
tbprint()
eprint('Error:', e)
click.Context.exit(-1)
@fabric_wired.command()
@click.option('--headers', type=str, help='''Dictionary of HTTP Headers to send with the Request.''',
default=None,
show_default=True)
@click.option('--payload', type=str, help='''A JSON serializable Python object to send in the body of the Request.''',
default=None,
show_default=True)
@click.option('--active_validation', type=bool, help='''Enable/Disable payload validation.''',
default=True,
show_default=True)
@click.option('-pp', '--pretty_print', type=int, help='''Pretty print indent''',
default=None,
show_default=True)
@click.option('--beep', is_flag=True, help='''Spinner beep (on)''')
@click.pass_obj
def update_default_authentication_profile(obj, pretty_print, beep,
headers,
payload,
active_validation):
"""Update default authentication profile template in SDA Fabric.
"""
spinner = init_spinner(beep=beep)
start_spinner(spinner)
try:
if headers is not None:
headers = json.loads(headers)
if payload is not None:
payload = json.loads(payload)
result = obj.update_default_authentication_profile(
headers=headers,
payload=payload,
active_validation=active_validation)
stop_spinner(spinner)
opprint(result, indent=pretty_print)
except Exception as e:
stop_spinner(spinner)
tbprint()
eprint('Error:', e)
click.Context.exit(-1)
@fabric_wired.command()
@click.option('--device_ipaddress', type=str,
help='''Device IP Address.''',
required=True,
show_default=True)
@click.option('--headers', type=str, help='''Dictionary of HTTP Headers to send with the Request.''',
default=None,
show_default=True)
@click.option('-pp', '--pretty_print', type=int, help='''Pretty print indent''',
default=None,
show_default=True)
@click.option('--beep', is_flag=True, help='''Spinner beep (on)''')
@click.pass_obj
def get_edge_device(obj, pretty_print, beep,
device_ipaddress,
headers):
"""Get edge device from SDA Fabric.
"""
spinner = init_spinner(beep=beep)
start_spinner(spinner)
try:
if headers is not None:
headers = json.loads(headers)
result = obj.get_edge_device(
device_ipaddress=device_ipaddress,
headers=headers)
stop_spinner(spinner)
opprint(result, indent=pretty_print)
except Exception as e:
stop_spinner(spinner)
tbprint()
eprint('Error:', e)
click.Context.exit(-1)
@fabric_wired.command()
@click.option('--headers', type=str, help='''Dictionary of HTTP Headers to send with the Request.''',
default=None,
show_default=True)
@click.option('--payload', type=str, help='''A JSON serializable Python object to send in the body of the Request.''',
default=None,
show_default=True)
@click.option('--active_validation', type=bool, help='''Enable/Disable payload validation.''',
default=True,
show_default=True)
@click.option('-pp', '--pretty_print', type=int, help='''Pretty print indent''',
default=None,
show_default=True)
@click.option('--beep', is_flag=True, help='''Spinner beep (on)''')
@click.pass_obj
def add_port_assignment_for_user_device(obj, pretty_print, beep,
headers,
payload,
active_validation):
"""Add Port assignment for user device in SDA Fabric.
"""
spinner = init_spinner(beep=beep)
start_spinner(spinner)
try:
if headers is not None:
headers = json.loads(headers)
if payload is not None:
payload = json.loads(payload)
result = obj.add_port_assignment_for_user_device(
headers=headers,
payload=payload,
active_validation=active_validation)
stop_spinner(spinner)
opprint(result, indent=pretty_print)
except Exception as e:
stop_spinner(spinner)
tbprint()
eprint('Error:', e)
click.Context.exit(-1)
@fabric_wired.command()
@click.option('--device_ipaddress', type=str,
help='''Device IP Address.''',
required=True,
show_default=True)
@click.option('--headers', type=str, help='''Dictionary of HTTP Headers to send with the Request.''',
default=None,
show_default=True)
@click.option('-pp', '--pretty_print', type=int, help='''Pretty print indent''',
default=None,
show_default=True)
@click.option('--beep', is_flag=True, help='''Spinner beep (on)''')
@click.pass_obj
def deletes_border_device(obj, pretty_print, beep,
device_ipaddress,
headers):
"""Deletes border device from SDA Fabric.
"""
spinner = init_spinner(beep=beep)
start_spinner(spinner)
try:
if headers is not None:
headers = json.loads(headers)
result = obj.deletes_border_device(
device_ipaddress=device_ipaddress,
headers=headers)
stop_spinner(spinner)
opprint(result, indent=pretty_print)
except Exception as e:
stop_spinner(spinner)
tbprint()
eprint('Error:', e)
click.Context.exit(-1)
@fabric_wired.command()
@click.option('--headers', type=str, help='''Dictionary of HTTP Headers to send with the Request.''',
default=None,
show_default=True)
@click.option('--payload', type=str, help='''A JSON serializable Python object to send in the body of the Request.''',
default=None,
show_default=True)
@click.option('--active_validation', type=bool, help='''Enable/Disable payload validation.''',
default=True,
show_default=True)
@click.option('-pp', '--pretty_print', type=int, help='''Pretty print indent''',
default=None,
show_default=True)
@click.option('--beep', is_flag=True, help='''Spinner beep (on)''')
@click.pass_obj
def add_edge_device(obj, pretty_print, beep,
headers,
payload,
active_validation):
"""Add edge device in SDA Fabric.
"""
spinner = init_spinner(beep=beep)
start_spinner(spinner)
try:
if headers is not None:
headers = json.loads(headers)
if payload is not None:
payload = json.loads(payload)
result = obj.add_edge_device(
headers=headers,
payload=payload,
active_validation=active_validation)
stop_spinner(spinner)
opprint(result, indent=pretty_print)
except Exception as e:
stop_spinner(spinner)
tbprint()
eprint('Error:', e)
click.Context.exit(-1)
@fabric_wired.command()
@click.option('--headers', type=str, help='''Dictionary of HTTP Headers to send with the Request.''',
default=None,
show_default=True)
@click.option('--payload', type=str, help='''A JSON serializable Python object to send in the body of the Request.''',
default=None,
show_default=True)
@click.option('--active_validation', type=bool, help='''Enable/Disable payload validation.''',
default=True,
show_default=True)
@click.option('-pp', '--pretty_print', type=int, help='''Pretty print indent''',
default=None,
show_default=True)
@click.option('--beep', is_flag=True, help='''Spinner beep (on)''')
@click.pass_obj
def add_default_authentication_profile(obj, pretty_print, beep,
headers,
payload,
active_validation):
"""Add default authentication profile in SDA Fabric.
"""
spinner = init_spinner(beep=beep)
start_spinner(spinner)
try:
if headers is not None:
headers = json.loads(headers)
if payload is not None:
payload = json.loads(payload)
result = obj.add_default_authentication_profile(
headers=headers,
payload=payload,
active_validation=active_validation)
stop_spinner(spinner)
opprint(result, indent=pretty_print)
except Exception as e:
stop_spinner(spinner)
tbprint()
eprint('Error:', e)
click.Context.exit(-1)
@fabric_wired.command()
@click.option('--device_ip', type=str,
help='''device-ip query parameter.''',
required=True,
show_default=True)
@click.option('--interface_name', type=str,
help='''interfaceName query parameter.''',
required=True,
show_default=True)
@click.option('--headers', type=str, help='''Dictionary of HTTP Headers to send with the Request.''',
default=None,
show_default=True)
@click.option('-pp', '--pretty_print', type=int, help='''Pretty print indent''',
default=None,
show_default=True)
@click.option('--beep', is_flag=True, help='''Spinner beep (on)''')
@click.pass_obj
def delete_port_assignment_for_user_device(obj, pretty_print, beep,
device_ip,
interface_name,
headers):
"""Delete Port assignment for user device in SDA Fabric.
"""
spinner = init_spinner(beep=beep)
start_spinner(spinner)
try:
if headers is not None:
headers = json.loads(headers)
result = obj.delete_port_assignment_for_user_device(
device_ip=device_ip,
interface_name=interface_name,
headers=headers)
stop_spinner(spinner)
opprint(result, indent=pretty_print)
except Exception as e:
stop_spinner(spinner)
tbprint()
eprint('Error:', e)
click.Context.exit(-1)
@fabric_wired.command()
@click.option('--headers', type=str, help='''Dictionary of HTTP Headers to send with the Request.''',
default=None,
show_default=True)
@click.option('--payload', type=str, help='''A JSON serializable Python object to send in the body of the Request.''',
default=None,
show_default=True)
@click.option('--active_validation', type=bool, help='''Enable/Disable payload validation.''',
default=True,
show_default=True)
@click.option('-pp', '--pretty_print', type=int, help='''Pretty print indent''',
default=None,
show_default=True)
@click.option('--beep', is_flag=True, help='''Spinner beep (on)''')
@click.pass_obj
def add_ip_pool_in_sda_virtual_network(obj, pretty_print, beep,
headers,
payload,
active_validation):
"""Add IP Pool in SDA Virtual Network.
"""
spinner = init_spinner(beep=beep)
start_spinner(spinner)
try:
if headers is not None:
headers = json.loads(headers)
if payload is not None:
payload = json.loads(payload)
result = obj.add_ip_pool_in_sda_virtual_network(
headers=headers,
payload=payload,
active_validation=active_validation)
stop_spinner(spinner)
opprint(result, indent=pretty_print)
except Exception as e:
stop_spinner(spinner)
tbprint()
eprint('Error:', e)
click.Context.exit(-1)
@fabric_wired.command()
@click.option('--device_ipaddress', type=str,
help='''Device IP Address.''',
required=True,
show_default=True)
@click.option('--headers', type=str, help='''Dictionary of HTTP Headers to send with the Request.''',
default=None,
show_default=True)
@click.option('-pp', '--pretty_print', type=int, help='''Pretty print indent''',
default=None,
show_default=True)
@click.option('--beep', is_flag=True, help='''Spinner beep (on)''')
@click.pass_obj
def gets_border_device_detail(obj, pretty_print, beep,
device_ipaddress,
headers):
"""Gets border device detail from SDA Fabric.
"""
spinner = init_spinner(beep=beep)
start_spinner(spinner)
try:
if headers is not None:
headers = json.loads(headers)
result = obj.gets_border_device_detail(
device_ipaddress=device_ipaddress,
headers=headers)
stop_spinner(spinner)
opprint(result, indent=pretty_print)
except Exception as e:
stop_spinner(spinner)
tbprint()
eprint('Error:', e)
click.Context.exit(-1)
@fabric_wired.command()
@click.option('--device_ip', type=str,
help='''device-ip query parameter.''',
required=True,
show_default=True)
@click.option('--interface_name', type=str,
help='''interfaceName query parameter.''',
required=True,
show_default=True)
@click.option('--headers', type=str, help='''Dictionary of HTTP Headers to send with the Request.''',
default=None,
show_default=True)
@click.option('-pp', '--pretty_print', type=int, help='''Pretty print indent''',
default=None,
show_default=True)
@click.option('--beep', is_flag=True, help='''Spinner beep (on)''')
@click.pass_obj
def get_port_assignment_for_user_device(obj, pretty_print, beep,
device_ip,
interface_name,
headers):
"""Get Port assignment for user device in SDA Fabric.
"""
spinner = init_spinner(beep=beep)
start_spinner(spinner)
try:
if headers is not None:
headers = json.loads(headers)
result = obj.get_port_assignment_for_user_device(
device_ip=device_ip,
interface_name=interface_name,
headers=headers)
stop_spinner(spinner)
opprint(result, indent=pretty_print)
except Exception as e:
stop_spinner(spinner)
tbprint()
eprint('Error:', e)
click.Context.exit(-1)
@fabric_wired.command()
@click.option('--site_name_hierarchy', type=str,
help='''siteNameHierarchy query parameter.''',
required=True,
show_default=True)
@click.option('--headers', type=str, help='''Dictionary of HTTP Headers to send with the Request.''',
default=None,
show_default=True)
@click.option('-pp', '--pretty_print', type=int, help='''Pretty print indent''',
default=None,
show_default=True)
@click.option('--beep', is_flag=True, help='''Spinner beep (on)''')
@click.pass_obj
def get_default_authentication_profile(obj, pretty_print, beep,
site_name_hierarchy,
headers):
"""Get default authentication profile from SDA Fabric.
"""
spinner = init_spinner(beep=beep)
start_spinner(spinner)
try:
if headers is not None:
headers = json.loads(headers)
result = obj.get_default_authentication_profile(
site_name_hierarchy=site_name_hierarchy,
headers=headers)
stop_spinner(spinner)
opprint(result, indent=pretty_print)
except Exception as e:
stop_spinner(spinner)
tbprint()
eprint('Error:', e)
click.Context.exit(-1)
@fabric_wired.command()
@click.option('--headers', type=str, help='''Dictionary of HTTP Headers to send with the Request.''',
default=None,
show_default=True)
@click.option('--payload', type=str, help='''A JSON serializable Python object to send in the body of the Request.''',
default=None,
show_default=True)
@click.option('--active_validation', type=bool, help='''Enable/Disable payload validation.''',
default=True,
show_default=True)
@click.option('-pp', '--pretty_print', type=int, help='''Pretty print indent''',
default=None,
show_default=True)
@click.option('--beep', is_flag=True, help='''Spinner beep (on)''')
@click.pass_obj
def adds_border_device(obj, pretty_print, beep,
headers,
payload,
active_validation):
"""Adds border device in SDA Fabric.
"""
spinner = init_spinner(beep=beep)
start_spinner(spinner)
try:
if headers is not None:
headers = json.loads(headers)
if payload is not None:
payload = json.loads(payload)
result = obj.adds_border_device(
headers=headers,
payload=payload,
active_validation=active_validation)
stop_spinner(spinner)
opprint(result, indent=pretty_print)
except Exception as e:
stop_spinner(spinner)
tbprint()
eprint('Error:', e)
click.Context.exit(-1)
@fabric_wired.command()
@click.option('--ip_pool_name', type=str,
help='''ipPoolName query parameter.''',
required=True,
show_default=True)
@click.option('--virtual_network_name', type=str,
help='''virtualNetworkName query parameter.''',
required=True,
show_default=True)
@click.option('--headers', type=str, help='''Dictionary of HTTP Headers to send with the Request.''',
default=None,
show_default=True)
@click.option('-pp', '--pretty_print', type=int, help='''Pretty print indent''',
default=None,
show_default=True)
@click.option('--beep', is_flag=True, help='''Spinner beep (on)''')
@click.pass_obj
def get_ip_pool_from_sda_virtual_network(obj, pretty_print, beep,
ip_pool_name,
virtual_network_name,
headers):
"""Get IP Pool from SDA Virtual Network.
"""
spinner = init_spinner(beep=beep)
start_spinner(spinner)
try:
if headers is not None:
headers = json.loads(headers)
result = obj.get_ip_pool_from_sda_virtual_network(
ip_pool_name=ip_pool_name,
virtual_network_name=virtual_network_name,
headers=headers)
stop_spinner(spinner)
opprint(result, indent=pretty_print)
except Exception as e:
stop_spinner(spinner)
tbprint()
eprint('Error:', e)
click.Context.exit(-1)
| 36.92272 | 118 | 0.584788 | 2,645 | 23,889 | 5.113422 | 0.045747 | 0.060185 | 0.064325 | 0.085767 | 0.963179 | 0.959778 | 0.956377 | 0.948466 | 0.945065 | 0.928133 | 0 | 0.001193 | 0.298003 | 23,889 | 646 | 119 | 36.979876 | 0.805307 | 0.039349 | 0 | 0.914634 | 0 | 0 | 0.149565 | 0.003763 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029617 | false | 0.031359 | 0.006969 | 0 | 0.036585 | 0.148084 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ced4760658fbef993e0b2f4523353a3e1caca2e2 | 2,598 | py | Python | tests/tests.py | qureshizawar/CUDA-quartic-solver | 97a24e5e1818b51c6bd3ac6fc9728f1dc2a3743b | [
"MIT"
] | 6 | 2020-04-27T15:34:08.000Z | 2022-02-23T06:34:18.000Z | tests/tests.py | qureshizawar/CUDA-quartic-solver | 97a24e5e1818b51c6bd3ac6fc9728f1dc2a3743b | [
"MIT"
] | null | null | null | tests/tests.py | qureshizawar/CUDA-quartic-solver | 97a24e5e1818b51c6bd3ac6fc9728f1dc2a3743b | [
"MIT"
] | 2 | 2020-05-05T11:45:48.000Z | 2021-07-21T06:33:51.000Z | import numpy as np
import QuarticSolver
def test1():
eps = 1e-5
correct_minimum = -2
N = 1<<9
A = np.ones(N)*2
B = np.ones(N)*-4
C = np.ones(N)*-22
D = np.ones(N)*24
E = np.ones(N)*2
minimum = QuarticSolver.QuarticMinimum(A,B,C,D,E,True)
res = np.sum(minimum)/N
assert abs(res-correct_minimum)<eps
N = 1<<13
A = np.ones(N)*2
B = np.ones(N)*-4
C = np.ones(N)*-22
D = np.ones(N)*24
E = np.ones(N)*2
minimum = QuarticSolver.QuarticMinimum(A,B,C,D,E,True)
res = np.sum(minimum)/N
assert abs(res-correct_minimum)<eps
N = 1<<20
A = np.ones(N)*2
B = np.ones(N)*-4
C = np.ones(N)*-22
D = np.ones(N)*24
E = np.ones(N)*2
minimum = QuarticSolver.QuarticMinimum(A,B,C,D,E,True)
res = np.sum(minimum)/N
assert abs(res-correct_minimum)<eps
def test2():
eps = 1e-5
correct_minimum = -0.5688
N = 1<<9
A = np.ones(N)*14
B = np.ones(N)*-11
C = np.ones(N)*51
D = np.ones(N)*79
E = np.ones(N)*1
minimum = QuarticSolver.QuarticMinimum(A,B,C,D,E,True)
res = np.sum(minimum)/N
assert abs(res-correct_minimum)<eps
N = 1<<13
A = np.ones(N)*14
B = np.ones(N)*-11
C = np.ones(N)*51
D = np.ones(N)*79
E = np.ones(N)*1
minimum = QuarticSolver.QuarticMinimum(A,B,C,D,E,True)
res = np.sum(minimum)/N
assert abs(res-correct_minimum)<eps
N = 1<<20
A = np.ones(N)*14
B = np.ones(N)*-11
C = np.ones(N)*51
D = np.ones(N)*79
E = np.ones(N)*1
minimum = QuarticSolver.QuarticMinimum(A,B,C,D,E,True)
res = np.sum(minimum)/N
assert abs(res-correct_minimum)<eps
def test3():
eps = 1e-5
correct_minimum = -21.75
N = 1<<9
A = np.ones(N)*3
B = np.ones(N)*87
C = np.ones(N)*0
D = np.ones(N)*0
E = np.ones(N)*0
minimum = QuarticSolver.QuarticMinimum(A,B,C,D,E,True)
res = np.sum(minimum)/N
assert abs(res-correct_minimum)<eps
N = 1<<13
A = np.ones(N)*3
B = np.ones(N)*87
C = np.ones(N)*0
D = np.ones(N)*0
E = np.ones(N)*0
minimum = QuarticSolver.QuarticMinimum(A,B,C,D,E,True)
res = np.sum(minimum)/N
assert abs(res-correct_minimum)<eps
N = 1<<20
A = np.ones(N)*3
B = np.ones(N)*87
C = np.ones(N)*0
D = np.ones(N)*0
E = np.ones(N)*0
minimum = QuarticSolver.QuarticMinimum(A,B,C,D,E,True)
res = np.sum(minimum)/N
assert abs(res-correct_minimum)<eps
if __name__=='__main__':
QuarticSolver.dry_run(1<<20)
test1()
test2()
test3()
print('all test passed!')
| 20.951613 | 58 | 0.563895 | 479 | 2,598 | 3.014614 | 0.112735 | 0.186981 | 0.218144 | 0.049862 | 0.91205 | 0.870499 | 0.870499 | 0.864266 | 0.864266 | 0.864266 | 0 | 0.059524 | 0.256351 | 2,598 | 123 | 59 | 21.121951 | 0.687888 | 0 | 0 | 0.857143 | 0 | 0 | 0.009238 | 0 | 0 | 0 | 0 | 0 | 0.091837 | 1 | 0.030612 | false | 0.010204 | 0.020408 | 0 | 0.05102 | 0.010204 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
0c82c5563cbcf240f4533c44c4ac2c53a96bf310 | 19,960 | py | Python | tests/test_getCategories.py | aayaffe/splitwise | 477e0477bea9fc74693669c68431fe5ea0b08ef3 | [
"MIT"
] | 105 | 2016-08-01T02:46:49.000Z | 2022-02-11T21:08:48.000Z | tests/test_getCategories.py | aayaffe/splitwise | 477e0477bea9fc74693669c68431fe5ea0b08ef3 | [
"MIT"
] | 47 | 2016-08-27T05:09:52.000Z | 2022-03-20T06:30:46.000Z | tests/test_getCategories.py | aayaffe/splitwise | 477e0477bea9fc74693669c68431fe5ea0b08ef3 | [
"MIT"
] | 43 | 2016-08-15T18:50:58.000Z | 2022-03-27T19:45:03.000Z | from splitwise import Splitwise
import unittest
try:
from unittest.mock import patch
except ImportError: # Python 2
from mock import patch
@patch('splitwise.Splitwise._Splitwise__makeRequest')
class GetCategoriesTestCase(unittest.TestCase):
def setUp(self):
self.sObj = Splitwise('consumerkey', 'consumersecret')
def test_getCategories_success(self, mockMakeRequest):
mockMakeRequest.return_value = '{"categories":[{"id":19,"name":"Entertainment","icon":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square/entertainment/other.png","icon_types":{"slim":{"small":"https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/other.png","large":"https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/other@2x.png"},"square":{"large":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/other@2x.png","xlarge":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/other@3x.png"}},"subcategories":[{"id":20,"name":"Games","icon":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square/entertainment/games.png","icon_types":{"slim":{"small":"https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/games.png","large":"https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/games@2x.png"},"square":{"large":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/games@2x.png","xlarge":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/games@3x.png"}}},{"id":21,"name":"Movies","icon":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square/entertainment/movies.png","icon_types":{"slim":{"small":"https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/movies.png","large":"https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/movies@2x.png"},"square":{"large":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/movies@2x.png","xlarge":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/movies@3x.png"}}},{"id":22,"name":"Music","icon":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square/entertainment/music.png","icon_types":{"slim":{"small":"https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/music.png","large":"https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/music@2x.png"},"square":{"large":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/music@2x.png","xlarge":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/music@3x.png"}}},{"id":23,"name":"Other","icon":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square/entertainment/other.png","icon_types":{"slim":{"small":"https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/other.png","large":"https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/other@2x.png"},"square":{"large":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/other@2x.png","xlarge":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/other@3x.png"}}},{"id":24,"name":"Sports","icon":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square/entertainment/sports.png","icon_types":{"slim":{"small":"https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/sports.png","large":"https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/sports@2x.png"},"square":{"large":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/sports@2x.png","xlarge":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/sports@3x.png"}}}]},{"id":25,"name":"Food and drink","icon":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square/food-and-drink/other.png","icon_types":{"slim":{"small":"https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/food-and-drink/other.png","large":"https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/food-and-drink/other@2x.png"},"square":{"large":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/food-and-drink/other@2x.png","xlarge":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/food-and-drink/other@3x.png"}},"subcategories":[{"id":13,"name":"Dining out","icon":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square/food-and-drink/dining-out.png","icon_types":{"slim":{"small":"https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/food-and-drink/dining-out.png","large":"https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/food-and-drink/dining-out@2x.png"},"square":{"large":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/food-and-drink/dining-out@2x.png","xlarge":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/food-and-drink/dining-out@3x.png"}}},{"id":12,"name":"Groceries","icon":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square/food-and-drink/groceries.png","icon_types":{"slim":{"small":"https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/food-and-drink/groceries.png","large":"https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/food-and-drink/groceries@2x.png"},"square":{"large":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/food-and-drink/groceries@2x.png","xlarge":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/food-and-drink/groceries@3x.png"}}},{"id":38,"name":"Liquor","icon":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square/food-and-drink/liquor.png","icon_types":{"slim":{"small":"https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/food-and-drink/liquor.png","large":"https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/food-and-drink/liquor@2x.png"},"square":{"large":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/food-and-drink/liquor@2x.png","xlarge":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/food-and-drink/liquor@3x.png"}}},{"id":26,"name":"Other","icon":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square/food-and-drink/other.png","icon_types":{"slim":{"small":"https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/food-and-drink/other.png","large":"https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/food-and-drink/other@2x.png"},"square":{"large":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/food-and-drink/other@2x.png","xlarge":"https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/food-and-drink/other@3x.png"}}}]}]}' # noqa: E501
categories = self.sObj.getCategories()
mockMakeRequest.assert_called_with(
"https://secure.splitwise.com/api/v3.0/get_categories")
self.assertEqual(len(categories), 2)
self.assertEqual(categories[0].getId(), 19)
self.assertEqual(categories[0].getName(), "Entertainment")
# self.assertEqual(categories[0].getIcon(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square/entertainment/other.png")
# self.assertEqual(categories[0].getIconTypes().getSlim().getSmall(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/other.png")
# self.assertEqual(categories[0].getIconTypes().getSlim().getLarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/other@2x.png")
# self.assertEqual(categories[0].getIconTypes().getSquare().getLarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/other@2x.png")
# self.assertEqual(categories[0].getIconTypes().getSquare().getXlarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/other@3x.png")
self.assertEqual(len(categories[0].getSubcategories()), 5)
self.assertEqual(categories[0].getSubcategories()[0].getId(), 20)
self.assertEqual(categories[0].getSubcategories()[0].getName(), "Games")
# self.assertEqual(categories[0].getSubcategories()[0].getIcon(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square/entertainment/games.png")
# self.assertEqual(categories[0].getSubcategories()[0].getIconTypes().getSlim().getSmall(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/games.png")
# self.assertEqual(categories[0].getSubcategories()[0].getIconTypes().getSlim().getLarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/games@2x.png")
# self.assertEqual(categories[0].getSubcategories()[0].getIconTypes().getSquare().getLarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/games@2x.png")
# self.assertEqual(categories[0].getSubcategories()[0].getIconTypes().getSquare().getXlarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/games@3x.png")
self.assertEqual(categories[0].getSubcategories()[1].getId(), 21)
self.assertEqual(categories[0].getSubcategories()[1].getName(), "Movies")
# self.assertEqual(categories[0].getSubcategories()[1].getIcon(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square/entertainment/movies.png")
# self.assertEqual(categories[0].getSubcategories()[1].getIconTypes().getSlim().getSmall(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/movies.png")
# self.assertEqual(categories[0].getSubcategories()[1].getIconTypes().getSlim().getLarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/movies@2x.png")
# self.assertEqual(categories[0].getSubcategories()[1].getIconTypes().getSquare().getLarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/movies@2x.png")
# self.assertEqual(categories[0].getSubcategories()[1].getIconTypes().getSquare().getXlarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/movies@3x.png")
self.assertEqual(categories[0].getSubcategories()[2].getId(), 22)
self.assertEqual(categories[0].getSubcategories()[2].getName(), "Music")
# self.assertEqual(categories[0].getSubcategories()[2].getIcon(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square/entertainment/music.png")
# self.assertEqual(categories[0].getSubcategories()[2].getIconTypes().getSlim().getSmall(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/music.png")
# self.assertEqual(categories[0].getSubcategories()[2].getIconTypes().getSlim().getLarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/music@2x.png")
# self.assertEqual(categories[0].getSubcategories()[2].getIconTypes().getSquare().getLarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/music@2x.png")
# self.assertEqual(categories[0].getSubcategories()[2].getIconTypes().getSquare().getXlarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/music@3x.png")
self.assertEqual(categories[0].getSubcategories()[3].getId(), 23)
self.assertEqual(categories[0].getSubcategories()[3].getName(), "Other")
# self.assertEqual(categories[0].getSubcategories()[3].getIcon(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square/entertainment/other.png")
# self.assertEqual(categories[0].getSubcategories()[3].getIconTypes().getSlim().getSmall(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/other.png")
# self.assertEqual(categories[0].getSubcategories()[3].getIconTypes().getSlim().getLarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/other@2x.png")
# self.assertEqual(categories[0].getSubcategories()[3].getIconTypes().getSquare().getLarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/other@2x.png")
# self.assertEqual(categories[0].getSubcategories()[3].getIconTypes().getSquare().getXlarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/other@3x.png")
self.assertEqual(categories[0].getSubcategories()[4].getId(), 24)
self.assertEqual(categories[0].getSubcategories()[4].getName(), "Sports")
# self.assertEqual(categories[0].getSubcategories()[4].getIcon(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square/entertainment/sports.png")
# self.assertEqual(categories[0].getSubcategories()[4].getIconTypes().getSlim().getSmall(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/sports.png")
# self.assertEqual(categories[0].getSubcategories()[4].getIconTypes().getSlim().getLarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/entertainment/sports@2x.png")
# self.assertEqual(categories[0].getSubcategories()[4].getIconTypes().getSquare().getLarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/sports@2x.png")
# self.assertEqual(categories[0].getSubcategories()[4].getIconTypes().getSquare().getXlarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/entertainment/sports@3x.png")
self.assertEqual(categories[1].getId(), 25)
self.assertEqual(categories[1].getName(), "Food and drink")
# self.assertEqual(categories[1].getIcon(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square/food-and-drink/other.png")
# self.assertEqual(categories[1].getIconTypes().getSlim().getSmall(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/food-and-drink/other.png")
# self.assertEqual(categories[1].getIconTypes().getSlim().getLarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/food-and-drink/other@2x.png")
# self.assertEqual(categories[1].getIconTypes().getSquare().getLarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/food-and-drink/other@2x.png")
# self.assertEqual(categories[1].getIconTypes().getSquare().getXlarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/food-and-drink/other@3x.png")
self.assertEqual(len(categories[1].getSubcategories()), 4)
self.assertEqual(categories[1].getSubcategories()[0].getId(), 13)
self.assertEqual(categories[1].getSubcategories()[0].getName(), "Dining out")
# self.assertEqual(categories[1].getSubcategories()[0].getIcon(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square/food-and-drink/dining-out.png")
# self.assertEqual(categories[1].getSubcategories()[0].getIconTypes().getSlim().getSmall(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/food-and-drink/dining-out.png")
# self.assertEqual(categories[1].getSubcategories()[0].getIconTypes().getSlim().getLarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/food-and-drink/dining-out@2x.png")
# self.assertEqual(categories[1].getSubcategories()[0].getIconTypes().getSquare().getLarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/food-and-drink/dining-out@2x.png")
# self.assertEqual(categories[1].getSubcategories()[0].getIconTypes().getSquare().getXlarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/food-and-drink/dining-out@3x.png")
self.assertEqual(categories[1].getSubcategories()[1].getId(), 12)
self.assertEqual(categories[1].getSubcategories()[1].getName(), "Groceries")
# self.assertEqual(categories[1].getSubcategories()[1].getIcon(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square/food-and-drink/groceries.png")
# self.assertEqual(categories[1].getSubcategories()[1].getIconTypes().getSlim().getSmall(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/food-and-drink/groceries.png")
# self.assertEqual(categories[1].getSubcategories()[1].getIconTypes().getSlim().getLarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/food-and-drink/groceries@2x.png")
# self.assertEqual(categories[1].getSubcategories()[1].getIconTypes().getSquare().getLarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/food-and-drink/groceries@2x.png")
# self.assertEqual(categories[1].getSubcategories()[1].getIconTypes().getSquare().getXlarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/food-and-drink/groceries@3x.png")
self.assertEqual(categories[1].getSubcategories()[2].getId(), 38)
self.assertEqual(categories[1].getSubcategories()[2].getName(), "Liquor")
# self.assertEqual(categories[1].getSubcategories()[2].getIcon(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square/food-and-drink/liquor.png")
# self.assertEqual(categories[1].getSubcategories()[2].getIconTypes().getSlim().getSmall(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/food-and-drink/liquor.png")
# self.assertEqual(categories[1].getSubcategories()[2].getIconTypes().getSlim().getLarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/food-and-drink/liquor@2x.png")
# self.assertEqual(categories[1].getSubcategories()[2].getIconTypes().getSquare().getLarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/food-and-drink/liquor@2x.png")
# self.assertEqual(categories[1].getSubcategories()[2].getIconTypes().getSquare().getXlarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/food-and-drink/liquor@3x.png")
self.assertEqual(categories[1].getSubcategories()[3].getId(), 26)
self.assertEqual(categories[1].getSubcategories()[3].getName(), "Other")
# self.assertEqual(categories[1].getSubcategories()[3].getIcon(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square/food-and-drink/other.png")
# self.assertEqual(categories[1].getSubcategories()[3].getIconTypes().getSlim().getSmall(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/food-and-drink/other.png")
# self.assertEqual(categories[1].getSubcategories()[3].getIconTypes().getSlim().getLarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/slim/food-and-drink/other@2x.png")
# self.assertEqual(categories[1].getSubcategories()[3].getIconTypes().getSquare().getLarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/food-and-drink/other@2x.png")
# self.assertEqual(categories[1].getSubcategories()[3].getIconTypes().getSquare().getXlarge(),
# "https://s3.amazonaws.com/splitwise/uploads/category/icon/square_v2/food-and-drink/other@3x.png")
def test_getCategories_exception(self, mockMakeRequest):
mockMakeRequest.side_effect = Exception(
"Invalid response %s. Please check your consumer key and secret." % 404)
with self.assertRaises(Exception):
self.sObj.getCategories()
mockMakeRequest.assert_called_with("https://secure.splitwise.com/api/v3.0/get_categories")
| 123.209877 | 6,392 | 0.728307 | 2,438 | 19,960 | 5.933962 | 0.045939 | 0.053225 | 0.121656 | 0.144467 | 0.926039 | 0.923965 | 0.877929 | 0.847861 | 0.847861 | 0.847861 | 0 | 0.022801 | 0.077154 | 19,960 | 161 | 6,393 | 123.975155 | 0.762595 | 0.487425 | 0 | 0 | 0 | 0.021739 | 0.657838 | 0.00425 | 0 | 0 | 0 | 0 | 0.608696 | 1 | 0.065217 | false | 0 | 0.108696 | 0 | 0.195652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
0c970615f69e4d1a75e8634c5e0ea3f0117bcef4 | 30,207 | py | Python | tests/query/stateless/test_keyword.py | wahello/nebula | e319615ca192925031867e4ca024b38b19a718c5 | [
"Apache-2.0"
] | 8,586 | 2019-05-15T07:25:51.000Z | 2022-03-31T13:49:27.000Z | tests/query/stateless/test_keyword.py | wahello/nebula | e319615ca192925031867e4ca024b38b19a718c5 | [
"Apache-2.0"
] | 3,078 | 2019-05-15T08:14:02.000Z | 2022-03-31T11:39:51.000Z | tests/query/stateless/test_keyword.py | wahello/nebula | e319615ca192925031867e4ca024b38b19a718c5 | [
"Apache-2.0"
] | 880 | 2019-05-15T07:36:10.000Z | 2022-03-31T03:43:02.000Z | # --coding:utf-8--
#
# Copyright (c) 2020 vesoft inc. All rights reserved.
#
# This source code is licensed under Apache 2.0 License.
import re
import sys
import pytest
import time
from nebula2.graph import ttypes
from tests.common.nebula_test_suite import NebulaTestSuite
class TestReservedKeyword(NebulaTestSuite):
@classmethod
def prepare(self):
pass
# some reversed keywords are moved to unreversed keywords, and vice versa in #1922
def test_keywords1(self):
resp = self.execute(
'CREATE SPACE IF NOT EXISTS test(partition_num=1024, vid_type=FIXED_STRING(8))')
self.check_resp_succeeded(resp)
time.sleep(self.delay)
# issue 447
resp = self.execute('use test')
self.check_resp_succeeded(resp)
cmd = 'create tag x0 (firstname string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x1 (space string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x2 (values string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x3 (hosts string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x4 (lastname string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x5 (email string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x6 (phone string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x7 (user string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x8 (users string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x9 (password string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x10 (role string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x11 (roles string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x12 (god string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x13 (admin string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x14 (guest string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x15 (group string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x16 (count string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x17 (sum string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x18 (avg string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x19 (max string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x20 (min string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x21 (std string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x22 (bit_and string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x2ss2 (bit_or string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x2ssa2 (bit_xor string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x23 (paths string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x24 (data string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x25 (leader string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x26 (uuid string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag y0 (FIRSTNAME string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag y1 (SPACE string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
# not include
cmd = 'create tag yss2 (SPACES string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
# not include
cmd = 'create tag yaq2 (spaces string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
# not include
cmd = 'create tag x2s11 (partition string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
# not include
cmd = 'create tag x2aassss11 (PARTITION string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
# not include
cmd = 'create tag x2lll22 (replica_f string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
# not include
cmd = 'create tag x2lllaa22 (REPLICA_F string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
# not include
cmd = 'create tag x28sssss6 (ttl_durat string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
# not include
cmd = 'create tag x28sssssaa6 (TTL_DURAT string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
# not include
cmd = 'create tag x29oos4 (variables string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
# not include
cmd = 'create tag x2wwsdxb94 (VARIABLES string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag y2 (VALUES string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x33(HOSTS string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x44 (LASTNAME string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x55 (EMAIL string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x66 (PHONE string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x77 (USER string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x88 (USERS string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x99 (PASSWORD string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x100 (ROLE string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x111 (ROLES string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x122 (GOD string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x133 (ADMIN string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x144 (GUEST string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x155 (GROUP string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x166 (COUNT string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x177 (SUM string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x188 (AVG string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x199 (MAX string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x200 (MIN string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x211 (STD string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x222 (BIT_AND string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x223 (BIT_OR string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x20022 (BIT_XOR string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x233 (PATHS string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x244 (DATA string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x255 (LEADER string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
cmd = 'create tag x266 (UUID string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
resp = self.execute('drop space test')
self.check_resp_succeeded(resp)
def test_keywords2(self):
resp = self.execute(
'CREATE SPACE IF NOT EXISTS test(partition_num=1024, vid_type=FIXED_STRING(8))')
self.check_resp_succeeded(resp)
time.sleep(self.delay)
resp = self.execute('use test')
self.check_resp_succeeded(resp)
try:
cmd = 'create tag x1 (go string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x2 (as string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x3 (to string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x4 (or string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x5 (and string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x6 (set string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x7 (from string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x8 (where string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x9 (match string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x10 (insert string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x12 (yield string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x13 (return string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x14 (create string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x15 (describe string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x16 (desc string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x17 (vertex string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x18 (edge string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x19 (edges string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x20 (update string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
# try:
# cmd = 'create tag x21 (upset string)'
# resp = self.execute(cmd)
# self.check_resp_failed(resp)
# except Exception as e:
# assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x22 (when string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x2ss2 (delete string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag xs22 (find string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x23 (alter string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x24 (steps string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x25 (over string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x26 (upto string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag y0 (reversely string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
# try:
# cmd = 'create tag y1 (space string)'
# resp = self.execute(cmd)
# self.check_resp_failed(resp)
# except Exception as e:
# assert "SyntaxError: syntax error" in str(e)
# try:
# cmd = 'create tag y2 (spaces string)'
# resp = self.execute(cmd)
# self.check_resp_failed(resp)
# except Exception as e:
# assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x33(int string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x55 (double string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x66 (string string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x77 (bool string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x88 (tag string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x99 (tags string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x100 (union string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x111 (intersect string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x122 (minus string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x133 (no string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x144 (overwrite string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x155 (true string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x166 (false string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x177 (show string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x188 (add string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
# try:
# cmd = 'create tag x199 (hosts string)'
# resp = self.execute(cmd)
# self.check_resp_failed(resp)
# except Exception as e:
# assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x200 (timestamp string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
# try:
# cmd = 'create tag x211 (partition string)'
# resp = self.execute(cmd)
# self.check_resp_failed(resp)
# except Exception as e:
# assert "SyntaxError: syntax error" in str(e)
# try:
# cmd = 'create tag x222 (replica_f string)'
# resp = self.execute(cmd)
# self.check_resp_failed(resp)
# except Exception as e:
# assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x223 (drop string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x2ss22 (remove string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x233 (if string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x244 (not string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x255 (exists string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x266 (with string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x277 (change string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x280 (grant string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x281 (revoke string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x282 (on string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x284 (by string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x285 (in string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
# try:
# cmd = 'create tag x286 (ttl_durat string)'
# resp = self.execute(cmd)
# self.check_resp_failed(resp)
# except Exception as e:
# assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x287 (ttl_col string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x288 (download string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x289 (hdfs string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x290 (order string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x291 (ingest string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x292 (asc string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x293 (distinct string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x294 (variables string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x295 (get string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x296 (grant string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x297 (meta string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x298 (storage string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x299 (fetch string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x300 (prop string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x301 (all string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x302 (balance string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x3rclkls03 (of string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x3009mm3 (OF string)'
resp = self.execute(cmd)
self.check_resp_failed(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x3009zcssmm3 (PARTITION_NUM string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x3009mnsmm3 (REPLICA_FACTOR string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag x3009m00011m3 (TTL_DURATION string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create tag TTL_DURATION (TTL_DURATION string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
resp = self.execute('drop space test')
self.check_resp_succeeded(resp)
def test_keywords3(self):
resp = self.execute(
'CREATE SPACE IF NOT EXISTS test (partition_num=10, vid_type=FIXED_STRING(8))')
self.check_resp_succeeded(resp)
time.sleep(self.delay)
# issue 447
resp = self.execute('use test')
self.check_resp_succeeded(resp)
try:
cmd = 'create tag `TAG` (`tag` string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
try:
cmd = 'create EDGE `EDGE` (`EDGE` string)'
resp = self.execute(cmd)
self.check_resp_succeeded(resp)
except Exception as e:
assert "SyntaxError: syntax error" in str(e)
resp = self.execute('drop space test')
self.check_resp_succeeded(resp)
@classmethod
def cleanup(self):
pass
| 32.376206 | 92 | 0.564273 | 3,605 | 30,207 | 4.628849 | 0.079612 | 0.078145 | 0.146521 | 0.193804 | 0.918799 | 0.918799 | 0.918799 | 0.918799 | 0.91808 | 0.915743 | 0 | 0.020189 | 0.34737 | 30,207 | 932 | 93 | 32.410944 | 0.826266 | 0.053795 | 0 | 0.777159 | 0 | 0 | 0.235975 | 0.004313 | 0 | 0 | 0 | 0 | 0.110028 | 1 | 0.006964 | false | 0.005571 | 0.008357 | 0 | 0.016713 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
0cb6d64f16af2e72a980ea5e273a33d7790048b7 | 5,498 | py | Python | day3part2.py | Paula-Bean/Advent-of-code-2019 | ffb9c7a62b9f3f72394eb78100b5d3da4e1ee4b5 | [
"MIT"
] | null | null | null | day3part2.py | Paula-Bean/Advent-of-code-2019 | ffb9c7a62b9f3f72394eb78100b5d3da4e1ee4b5 | [
"MIT"
] | null | null | null | day3part2.py | Paula-Bean/Advent-of-code-2019 | ffb9c7a62b9f3f72394eb78100b5d3da4e1ee4b5 | [
"MIT"
] | null | null | null |
# TODO: Python3
# TODO: unittest
# The grid is represented as a mapping of 2D coordinates => contents of
# the cell, which is a tuple of (wire_id, steps).
grid = {}
# Central port in the middle of the grid.
cx = cy = 0
grid[(cx, cy)] = (0, 0)
# Coordinate deltas (dx, dy) for possible directions: Down, Right, Up, Left.
deltas = {
"D": (0, 1),
"R": (1, 0),
"U": (0, -1),
"L": (-1, 0),
}
# Remember the positions of crossing(s) found
crossings = set()
def tracewire(wire_id, path):
x, y = cx, cy
delay = 1
for part in path.split(","):
direction, steps = part[0], int(part[1:])
dx, dy = deltas[direction]
while steps:
x, y = x + dx, y + dy
if (x, y) in grid:
if grid[(x, y)][0] != wire_id: # Crossing an other wire.
otherdelay = grid[(x, y)][1]
grid[(x, y)] = (wire_id, delay + otherdelay)
crossings.add((x, y))
else:
grid[(x, y)] = (wire_id, delay)
steps -= 1
delay += 1
def printgrid():
xcoords = [coord[0] for coord in grid.keys()]
ycoords = [coord[1] for coord in grid.keys()]
minx, maxx = min(xcoords), max(xcoords)
miny, maxy = min(ycoords), max(ycoords)
for y in range(miny - 2, maxy + 3):
for x in range(minx - 2, maxx + 3):
if (x, y) in grid:
cell = repr(grid[(x, y)])
else:
cell = "."
print "%-8s" % cell,
print
def fewest_steps(crosses):
min_found = None
for cross in crosses:
d = grid[cross][1]
if min_found is None or d < min_found:
min_found = d
return min_found
if 0:
grid.clear()
crossings.clear()
tracewire(1, "R8,U5,L5,D3")
tracewire(2, "U7,R6,D4,L4")
printgrid()
print crossings
print fewest_steps(crossings)
assert fewest_steps(crossings) == 30
if 0:
grid.clear()
crossings.clear()
tracewire(1, "R75,D30,R83,U83,L12,D49,R71,U7,L72")
tracewire(2, "U62,R66,U55,R34,D71,R55,D58,R83")
assert fewest_steps(crossings) == 610
if 0:
grid.clear()
crossings.clear()
tracewire(1, "R98,U47,R26,D63,R33,U87,L62,D20,R33,U53,R51")
tracewire(2, "U98,R91,D20,R16,D67,R40,U7,R15,U6,R7")
assert fewest_steps(crossings) == 410
if 1:
grid.clear()
crossings.clear()
tracewire(1, "R1006,U867,R355,D335,L332,U787,L938,U987,L234,U940,R393,D966,R57,U900,R619,D693,L606,U272,L45,D772,R786,U766,R860,U956,L346,D526,R536,D882,L156,U822,L247,D279,R515,U467,R208,D659,R489,D295,R18,D863,L360,D28,R674,U203,L276,U518,L936,D673,L501,D414,L635,U497,R402,D530,L589,D247,L140,U697,R626,D130,L109,D169,L316,D2,R547,D305,L480,U871,R551,D48,L710,D655,R562,D395,L925,D349,L795,U308,L861,D265,R88,U116,L719,D204,R995,D197,R167,U786,R459,U978,L506,D232,L37,U530,L808,D75,R79,D469,L851,D152,R793,D362,L293,D760,L422,U516,L400,D275,L498,U877,R202,D302,L89,U924,L55,U161,L945,D578,R861,U853,R358,D427,L776,U571,R670,D29,R52,D116,R879,U359,R493,D872,L567,U382,R804,D168,R316,D376,R711,U627,R36,D241,R876,U407,L481,D360,R679,U561,L947,U449,R232,U176,R677,U850,R165,D257,R683,D666,L31,U237,L906,U810,R198,U890,L462,D928,R915,D778,L689,U271,L486,D918,L995,U61,R748,U516,L80,D109,L328,U649,L784,D546,R584,D751,L543,U217,L976,D400,L795,U332,R453,U399,L761,U823,R142,U532,R133,U255,R722,D726,L862,D845,L813,U981,R272,D800,L918,D712,R259,U972,R323,D214,R694,D629,L817,D814,L741,U111,L678,D627,L743,D509,R195,U875,R46,D344,L361,D102,L656,U897,L841,U124,L95,D770,L785,U767,L504,D309,L955,D142,L401,U914,R117,D897,R715,D117,R675,U248,R182,D725,L751,U562,R385,D120,R730,U185,L842,D446,L432,U640,R994,D482,R576,U915,R645,U109,R77,D983,L327,D209,R686,D486,R566,D406,R130,D759,R441,U895,R597,U443,L773,D704,R219,U222,R244,D11,L723,U804,L264,D121,L81,D454,R279,D642,L773,D653,R127,D199,R119,U509,L530")
tracewire(2, "L1003,D933,L419,D202,L972,U621,L211,U729,R799,U680,R925,U991,L167,U800,R198,U214,R386,D385,R117,D354,L914,D992,L519,U797,L28,D125,R163,D894,R390,D421,L75,D577,L596,U95,L403,U524,L160,D39,R209,D373,L464,U622,L824,D750,L857,U658,L109,D188,R357,D295,L227,U904,L268,U814,L483,U897,R785,U194,R865,U300,L787,U812,L321,D637,R761,U560,R800,U281,R472,D283,L490,D629,L207,D589,L310,D980,R613,U129,R668,U261,R82,D594,R627,D210,L865,U184,R387,U995,R497,U68,L776,U657,R559,D38,R981,D485,L196,D934,R313,D128,R269,D225,L32,U677,R425,U728,L665,D997,R271,D847,R715,U300,L896,D481,L30,U310,L793,D600,L219,D944,R197,D945,L564,D603,L225,U413,L900,U876,R281,D26,R449,D506,L846,D979,L817,D794,R309,D841,R735,U11,R373,U530,R74,D534,L668,U185,L972,D436,L377,D164,L88,U249,L8,D427,R711,D530,L850,D921,L644,U804,L388,U500,L813,D223,L572,U246,R309,U241,R185,D48,L545,U678,L344,D964,L772,D985,L178,U686,R937,U821,R214,D346,L648,D824,L943,D651,R98,D225,R832,D883,L814,D894,L995,D975,R440,D502,L177,D320,R675,U5,R188,D866,R974,U169,R432,D627,L424,D5,L273,U184,R657,U830,R681,U610,R170,U106,L726,D861,L257,D381,L918,D607,L820,D757,R556,D621,R21,U510,L575,D545,L590,D302,R446,D225,L164,D817,L520,D204,L33,U272,L648,D478,R945,U369,L924,D932,R46,D584,R630,U592,R613,U136,R253,D343,L983,U328,L442,D311,L258,U173,L574,U658,R283,D927,L247,D37,R36,D61,L692,U663,L207,U48,L114,U511,L924,U229,L221,D504,R345,U51,R464,D516,L115,D311,L71,D418,R378,D173,R154,U436,L403,D871,L765,D803,R630,U108,L79,U625,R77,U176,R911")
print fewest_steps(crossings)
| 55.535354 | 1,501 | 0.6737 | 960 | 5,498 | 3.841667 | 0.717708 | 0.005423 | 0.008134 | 0.024946 | 0.062636 | 0.047451 | 0.029284 | 0.029284 | 0 | 0 | 0 | 0.401967 | 0.149327 | 5,498 | 98 | 1,502 | 56.102041 | 0.386573 | 0.060022 | 0 | 0.22973 | 0 | 0.040541 | 0.606824 | 0.60062 | 0 | 0 | 0 | 0.010204 | 0.040541 | 0 | null | null | 0 | 0 | null | null | 0.094595 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0cb90f6727bc516433563b47e44a057a3d21b7c3 | 1,767 | py | Python | menpo/io/input/landmark_image.py | jacksoncsy/menpo | 3cac491fe30454935ed12fcaa89f453c5f6ec878 | [
"BSD-3-Clause"
] | 1 | 2021-04-20T00:36:57.000Z | 2021-04-20T00:36:57.000Z | menpo/io/input/landmark_image.py | dykestra/menpo | 3a4690f991003a8706028ddb898493ac5b53418e | [
"BSD-3-Clause"
] | null | null | null | menpo/io/input/landmark_image.py | dykestra/menpo | 3a4690f991003a8706028ddb898493ac5b53418e | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from .landmark import ASFImporter, PTSImporter
class ImageASFImporter(ASFImporter):
r"""
Implements the :meth:`_build_points` method for images. Here, `y` is the
first axis.
Parameters
----------
filepath : string
Absolute filepath of the landmarks
"""
def __init__(self, filepath):
super(ImageASFImporter, self).__init__(filepath)
def _build_points(self, xs, ys):
"""
For images, `axis 0 = ys` and `axis 1 = xs`. Therefore, return the
appropriate points array ordering.
Parameters
----------
xs : (N,) ndarray
Row vector of `x` coordinates
ys : (N,) ndarray
Row vector of `y` coordinates
Returns
-------
points : (N, 2) ndarray
Array with `ys` as the first axis: `[ys; xs]`
"""
return np.hstack([ys, xs])
class ImagePTSImporter(PTSImporter):
r"""
Implements the :meth:`_build_points` method for images. Here, `y` is the
first axis.
Parameters
----------
filepath : string
Absolute filepath of the landmarks
"""
def __init__(self, filepath):
super(ImagePTSImporter, self).__init__(filepath)
def _build_points(self, xs, ys):
"""
For images, `axis 0 = ys` and `axis 1 = xs`. Therefore, return the
appropriate points array ordering.
Parameters
----------
xs : (N,) ndarray
Row vector of `x` coordinates
ys : (N,) ndarray
Row vector of `y` coordinates
Returns
-------
points : (N, 2) ndarray
Array with `ys` as the first axis: `[ys; xs]`
"""
return np.hstack([ys, xs])
| 24.541667 | 76 | 0.549519 | 195 | 1,767 | 4.85641 | 0.282051 | 0.046463 | 0.050686 | 0.071806 | 0.840549 | 0.840549 | 0.840549 | 0.840549 | 0.840549 | 0.840549 | 0 | 0.005055 | 0.32824 | 1,767 | 71 | 77 | 24.887324 | 0.792755 | 0.548387 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.428571 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 8 |
0b2658e50162de2f631ded8fd8fda7dad1d1210c | 24,175 | py | Python | tritam_automatic/models.py | kenysmile/test_facebook | 844a3ddd53abd319c0115de86909118a37106c67 | [
"Apache-2.0"
] | null | null | null | tritam_automatic/models.py | kenysmile/test_facebook | 844a3ddd53abd319c0115de86909118a37106c67 | [
"Apache-2.0"
] | null | null | null | tritam_automatic/models.py | kenysmile/test_facebook | 844a3ddd53abd319c0115de86909118a37106c67 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from odoo import models, fields, api, tools
from datetime import datetime
from datetime import timedelta
import datetime
from odoo.exceptions import AccessDenied, UserError
# _logger = logging.getLogger(__name__)
class Duocphanbo(models.Model):
_name = 'res.automatic'
@api.multi
def compute_info(self):
qty = self.env['res.partner'].search([('date_sub', '=', datetime.datetime.today().date()), ('x_user_id', '=', self.env.user.id)])
print(qty)
return "Số lượng KH phân bổ: " + len(qty)
a = fields.Float()
compute = fields.Char(default=compute_info, string='Info', readonly=1)
# Hot line
@api.multi
def action_hotline(self):
partner_obj = self.env['res.partner']
if self.env.user.category_id:
list_categ_user = self.env.user.category_id
sales = self.env.user
# danh sach cung tag
list_partner_cungtag = self.env['crm.lead'].search(
[('type_contact', '=', 'new'),
('user_id', '=', self.env.user.id),
('date_create', '=', datetime.date.today())])
kh_danhan = len(list_partner_cungtag) # Khach hang da nhan
if self.env.user.new_contact <= kh_danhan:
raise UserError(('Đã nhận đủ số '
'contact tối đa'))
if 1 == 1:
partner_phanbo = partner_obj.search(
[('category_id', 'in', [x.id for x in list_categ_user if x.name.startswith(u"Hotline" or u"hotline")]),
('allocate', '=', 'yes')],
order='create_date desc', limit=1)
if not partner_phanbo: raise UserError(
('Đã hết contact thỏa mãn điều kiện'))
if partner_phanbo:
for r in partner_phanbo:
# r.x_user_id = sales.id
# r.date_sub = datetime.datetime.today()
r.allocate = 'no'
phone = r.phone or ''
str_p = ''
for cate in r.category_id:
if len(str_p) == 0:
str_p = cate.name
else:
str_p = str_p + u', ' + cate.name
name_ticket = u'Mới_' + r.name + '_' + phone + '_' + str_p
partner_id = r.id
user_id = self.env.user.id
description = r.comment or ''
self.env['crm.lead'].create(
vals={'name': name_ticket,
'partner_id': partner_id,
'user_id': user_id,
'type_contact': 'new',
'crm_lead_category_ids':
[(6, 0,[x.id for x in r.category_id])],
'description': description,
'phone': phone,})
return {
'type': 'ir.actions.client',
'tag': 'reload',
}
# Mới
@api.multi
def action_in(self):
# print("helloooooo")
partner_obj = self.env['res.partner']
if self.env.user.category_id:
list_categ_user = self.env.user.category_id.ids
sales = self.env.user
# danh sach cung tag
list_partner_cungtag = self.env['crm.lead'].search([('type_contact', '=', 'new'),('user_id', '=', self.env.user.id),('date_create', '=', datetime.date.today())])
kh_danhan = len(list_partner_cungtag) # Khach hang da nhan
if self.env.user.new_contact <= kh_danhan:
raise UserError(('Đã nhận đủ số contact tối đa'))
if 1 == 1:
partner_phanbo = partner_obj.search(
[('category_id', 'in', list_categ_user),
('allocate', '=', 'yes')], order='create_date asc',
limit=1)
if not partner_phanbo: raise UserError(('Đã hết contact thỏa mãn điều kiện'))
if partner_phanbo:
for r in partner_phanbo:
r.allocate = 'no'
phone = r.phone or ''
str_p = ''
for cate in r.category_id:
if len(str_p) == 0:
str_p = cate.name
else:
str_p = str_p + u', ' + cate.name
name_ticket = u'Mới_' + r.name + '_' + phone + '_' + str_p
partner_id = r.id
user_id = self.env.user.id
description = r.comment or ''
self.env['crm.lead'].create(vals={'name': name_ticket,
'partner_id': partner_id,
'user_id': user_id,
'type_contact': 'new',
'crm_lead_category_ids': [(6, 0, [x.id for x in r.category_id])],
'description': description,
'phone': phone,
})
return {
'type': 'ir.actions.client',
'tag': 'reload',
}
# Tái sử dụng
@api.multi
def action_renew_rp(self):
partner_obj = self.env['res.partner']
# if self.env.user.has_group('tritam_users.group_sales_team_manager') and self.env.user.category_id:
list_categ_user = self.env.user.category_id.ids
sales = self.env.user
# danh sach cung tag
list_partner_cungtag = self.env['crm.lead'].search(
[('type_contact', '=', 'reuse'),('user_id', '=', self.env.user.id), ('date_create', '=', datetime.date.today())])
kh_danhan = len(list_partner_cungtag) # Khach hang da nhan
if self.env.user.re_contact <= kh_danhan:
raise UserError(('Đã nhận đủ số contact tối đa'))
if 1 == 1:
partner_phanbo = partner_obj.search([
('reuse', '=', 'yes'),
('category_id', 'in', list_categ_user)
], order='create_date desc', limit=1)
if not partner_phanbo: raise UserError(('Đã hết contact thỏa mãn điều kiện'))
if partner_phanbo:
for r in partner_phanbo:
# r.x_user_id = sales.id
# r.date_sub = datetime.datetime.today()
r.reuse = 'no'
phone = r.phone or ''
str_p = ''
for cate in r.category_id:
if len(str_p) == 0:
str_p = cate.name
else:
str_p = str_p + u', ' + cate.name
name_ticket = u'Tái sử dụng_' + r.name + '_' + phone + '_' + str_p
partner_id = r.id
user_id = self.env.user.id
description = r.comment or ''
self.env['crm.lead'].create(vals={'name': name_ticket,
'partner_id': partner_id,
'user_id': user_id,
'type_contact': 'reuse',
'crm_lead_category_ids': [(6, 0, [x.id for x in r.category_id])],
'description': description,
'phone': phone,
})
return {
'type': 'ir.actions.client',
'tag': 'reload',
}
# Tái sử dụng sau 18h
@api.multi
def action_18h(self):
partner_obj = self.env['res.partner']
# if self.env.user.has_group('tritam_users.group_sales_team_manager') and self.env.user.category_id:
list_categ_user = self.env.user.category_id.ids
sales = self.env.user
# danh sach cung tag
list_partner_cungtag = self.env['crm.lead'].search(
[('type_contact', '=', 'new'), ('user_id', '=', self.env.user.id),
('date_create', '=', datetime.date.today())])
kh_danhan = len(list_partner_cungtag) # Khach hang da nhan
if self.env.user.re_contact <= kh_danhan:
raise UserError(('Đã nhận đủ số contact tối đa'))
if 1 == 1:
partner_phanbo = partner_obj.search([
('reuse', '=', 'yes'),
('category_id', 'in', list_categ_user)
], order='create_date desc', limit=1)
if not partner_phanbo: raise UserError(
('Đã hết contact thỏa mãn điều kiện'))
if partner_phanbo:
for r in partner_phanbo:
# r.x_user_id = sales.id
# r.date_sub = datetime.datetime.today()
r.reuse = 'no'
phone = r.phone or ''
str_p = ''
for cate in r.category_id:
if len(str_p) == 0:
str_p = cate.name
else:
str_p = str_p + u', ' + cate.name
name_ticket = u'Tái SD sau 18_' + \
r.name + '_' \
+ phone + '_' + str_p
partner_id = r.id
user_id = self.env.user.id
description = r.comment or ''
self.env['crm.lead'].create(vals={'name': name_ticket,
'partner_id': partner_id,
'user_id': user_id,
'type_contact': 'reuse',
'crm_lead_category_ids': [
(6, 0, [x.id for x in
r.category_id])],
'description': description,
'phone': phone,
})
return {
'type': 'ir.actions.client',
'tag': 'reload',
}
# Tai ky
@api.multi
def action_to_sign(self):
partner_obj = self.env['res.partner']
# if self.env.user.has_group('tritam_users.group_sales_team_manager') and self.env.user.category_id:
list_categ_user = self.env.user.category_id.ids
# danh sach cung tag
list_partner_cungtag = self.env['crm.lead'].search(
[('type_contact', '=', 'contract'),
('user_id', '=', self.env.user.id),
('date_create', '=', datetime.date.today())])
kh_danhan = len(list_partner_cungtag) # Khach hang da nhan
if self.env.user.re_sign <= kh_danhan:
raise UserError(('Đã nhận đủ số contact tối đa'))
if 1 == 1:
partner_phanbo = partner_obj.search([
# ('x_user_id', '=', None),
('to_sign', '=', 'yes'),
('category_id', 'in', list_categ_user),
('reuse', '=', 'no'),
], order='create_date desc', limit=1)
if not partner_phanbo: raise UserError(('Đã hết contact thỏa mãn điều kiện'))
if partner_phanbo:
for r in partner_phanbo:
# r.x_user_id = sales.id
r.date_sub = datetime.datetime.today()
r.to_sign = 'no'
phone = r.phone or ''
str_p = ''
for cate in r.category_id:
if len(str_p) == 0:
str_p = cate.name
else:
str_p = str_p + u', ' + cate.name
name_ticket = u'Tái ký_' + r.name + '_' + phone + '_' + str_p
partner_id = r.id
user_id = self.env.user.id
description = r.comment or ''
self.env['crm.lead'].create(vals={'name': name_ticket,
'partner_id': partner_id,
'user_id': user_id,
'type_contact': 'contract',
'crm_lead_category_ids': [(6, 0, [x.id for x in r.category_id])],
'description': description,
'phone': phone,
})
return {
'type': 'ir.actions.client',
'tag': 'reload',
}
# Nhan cts Tai ky lai
@api.multi
def action_to_sign_recall(self):
partner_obj = self.env['res.partner']
# if self.env.user.has_group('tritam_users.group_sales_team_manager') and self.env.user.category_id:
list_categ_user = self.env.user.category_id.ids
sales = self.env.user
# danh sach cung tag
list_partner_cungtag = self.env['crm.lead'].search(
[('type_contact', '=', 'contract'), ('user_id', '=', self.env.user.id), ('date_create', '=', datetime.date.today())])
kh_danhan = len(list_partner_cungtag) # Khach hang da nhan
if self.env.user.re_sign <= kh_danhan:
raise UserError(('Đã nhận đủ số contact tối đa'))
if 1 == 1:
partner_phanbo = partner_obj.search([
('to_sign', '=', 'yes'),
('reuse', '=', 'yes'),
('category_id', 'in', list_categ_user)],
order='create_date asc', limit=1)
if not partner_phanbo: raise UserError(('Đã hết contact thỏa mãn điều kiện'))
if partner_phanbo:
for r in partner_phanbo:
# r.x_user_id = sales.id
# r.date_sub = datetime.datetime.today()
r.to_sign = 'no'
r.reuse = 'no'
phone = r.phone or ''
str_p = ''
for cate in r.category_id:
if len(str_p) == 0:
str_p = cate.name
else:
str_p = str_p + u', ' + cate.name
name_ticket = u'Tái ký lại_' + r.name + '_' + phone + '_' + str_p
partner_id = r.id
user_id = self.env.user.id
description = r.comment or ''
self.env['crm.lead'].create(vals={'name': name_ticket,
'partner_id': partner_id,
'user_id': user_id,
'type_contact': 'contract',
'crm_lead_category_ids': [(6, 0, [x.id for x in r.category_id])],
'description': description,
'phone': phone,
})
partner_phanbo.update(
{'category_id': [(6, 0, [13])]})
return {
'type': 'ir.actions.client',
'tag': 'reload',
}
# Nhan cham soc
@api.multi
def action_to_sp(self):
a = 1
partner_obj = self.env['res.partner']
# if self.env.user.has_group('tritam_users.group_sales_team_manager') and self.env.user.category_id:
list_categ_user = self.env.user.category_id.ids
sales = self.env.user
# danh sach cung tag
list_partner_cungtag = self.env['crm.lead'].search(
[('type_contact', '=', 'sp'),('user_id', '=', self.env.user.id), ('date_create', '=', datetime.date.today())])
kh_danhan = len(list_partner_cungtag) # Khach hang da nhan
if self.env.user.re_sp <= kh_danhan:
raise UserError(('Đã nhận đủ số contact tối đa'))
if 1 == 1:
partner_phanbo = partner_obj.search([
# ('x_user_id', '=', None),
('to_support', '=', 'yes'),
('reuse', '=', 'no'),
('category_id', 'in', list_categ_user)
], order='create_date desc', limit=1)
if not partner_phanbo: raise UserError(('Đã hết contact thỏa mãn điều kiện'))
if partner_phanbo:
for r in partner_phanbo:
# r.x_user_id = sales.id
# r.date_sub = datetime.datetime.today()
r.to_support = 'no'
phone = r.phone or ''
str_p = ''
for cate in r.category_id:
if len(str_p) == 0:
str_p = cate.name
else:
str_p = str_p + u', ' + cate.name
name_ticket = u'Chăm sóc_' + r.name + '_' + phone + '_' + str_p
partner_id = r.id
user_id = self.env.user.id
description = r.comment or ''
self.env['crm.lead'].create(vals={'name': name_ticket,
'partner_id': partner_id,
'user_id': user_id,
'type_contact': 'sp',
'crm_lead_category_ids': [(6, 0, [x.id for x in r.category_id])],
'description': description,
'phone': phone,
})
return {
'type': 'ir.actions.client',
'tag': 'reload',
}
# Nhan cts tai cham soc
@api.multi
def action_to_support_need_sp(self):
a = 1
partner_obj = self.env['res.partner']
# if self.env.user.has_group('tritam_users.group_sales_team_manager') and self.env.user.category_id:
list_categ_user = self.env.user.category_id.ids
sales = self.env.user
# danh sach cung tag
list_partner_cungtag = self.env['crm.lead'].search(
[('type_contact', '=', 'sp'),
('user_id', '=', self.env.user.id),
('date_create', '=', datetime.date.today())])
kh_danhan = len(list_partner_cungtag) # Khach hang KNM
if self.env.user.re_sp <= kh_danhan:
raise UserError(('Đã nhận đủ số contact tối đa'))
if 1 == 1:
partner_phanbo = partner_obj.search([
('to_support', '=', 'yes'),
('reuse', '=', 'yes'),
('category_id', 'in', list_categ_user)
], order='create_date asc', limit=1)
if not partner_phanbo: raise UserError(
('Đã hết contact thỏa mãn điều kiện'))
if partner_phanbo:
for r in partner_phanbo:
# r.x_user_id = sales.id
# r.date_sub = datetime.datetime.today()
r.to_support = 'no'
r.reuse = 'no'
phone = r.phone or ''
str_p = ''
for cate in r.category_id:
if len(str_p) == 0:
str_p = cate.name
else:
str_p = str_p + u', ' + cate.name
name_ticket = u'Tái chăm sóc_' + r.name + '_' + phone + '_' + str_p
partner_id = r.id
user_id = self.env.user.id
description = r.comment or ''
self.env['crm.lead'].create(vals={'name': name_ticket,
'partner_id': partner_id,
'user_id': user_id,
'type_contact': 'sp',
'crm_lead_category_ids': [(6, 0, [x.id for x in r.category_id])],
'description': description,
'phone': phone,
})
partner_phanbo.update({'category_id': [(6, 0, [13])]})
return {
'type': 'ir.actions.client',
'tag': 'reload',
}
class respartner(models.Model):
_inherit = 'res.partner'
@api.model
def schedule_support(self):
lead_date = self.env['history.lead'].search([('date_schedule', '=', datetime.date.today())])
if self.env['crm.stage'].search([('type_call', '=', True)]):
obj = self.env['crm.stage'].search([('type_call', '=', True)])[0]
for r in lead_date:
r.lead_id.stage_id = obj
r.lead_id.date_action = datetime.date.today()
@api.model
def check_number_use(self):
number = self.env['ir.values'].sudo().get_default(
'sale.config.settings', 'number_use') or 1
sql = """
select * from (
select count(partner_id) numbers, partner_id from crm_lead where type_contact = 'reuse'
group by partner_id
) as tab where numbers >= %d
""" % (number)
self.env.cr.execute(sql)
data = self.env.cr.dictfetchall()
for r in data:
self.browse(r.get('partner_id')).state_reuse = 'yes'
@api.model
def schedule_date(self):
a = 1
# obj_res_partner = self.search([('x_user_id', '!=', None), ('level', 'in', [1]), ('date_sub', '!=', None)])
# for record in obj_res_partner:
# if (datetime.datetime.today() - datetime.datetime.strptime(record.date_sub, "%Y-%m-%d")).days > 3:
# record.nguon = 3
# record.x_user_id = None
# record.date_sub = None
#
# obj_res_partner = self.search([('x_user_id', '!=', None), ('level', 'in', [2]), ('date_sub', '!=', None)])
# for record in obj_res_partner:
# if (datetime.datetime.today() - datetime.datetime.strptime(record.date_sub, "%Y-%m-%d")).days > 3:
# record.nguon = 3
# record.x_user_id = None
# record.date_sub = None
#
# obj_res_partner = self.search([('x_user_id', '!=', None), ('level', 'in', [3]), ('date_sub', '!=', None)])
# for record in obj_res_partner:
# if (datetime.datetime.today() - datetime.datetime.strptime(record.date_sub, "%Y-%m-%d")).days > 10:
# record.nguon = 3
# record.x_user_id = None
# record.date_sub = None
# # print "===============Remove======================="
# return {'edit': 'done'}
| 48.739919 | 173 | 0.424736 | 2,454 | 24,175 | 3.969845 | 0.084352 | 0.061076 | 0.060973 | 0.022685 | 0.875693 | 0.869637 | 0.86163 | 0.853418 | 0.846233 | 0.846233 | 0 | 0.006027 | 0.457828 | 24,175 | 495 | 174 | 48.838384 | 0.73724 | 0.107342 | 0 | 0.77037 | 0 | 0 | 0.128882 | 0.007811 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02963 | false | 0 | 0.012346 | 0 | 0.079012 | 0.002469 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0b4e3bc1dc510fef2916c4872842e7f3b74267b3 | 2,810 | py | Python | fisch.py | Terraminator/Little_Game | 65bb4cfe7255ee180e2f4eda50b532c8eddea701 | [
"BSD-2-Clause"
] | 1 | 2021-08-31T19:16:55.000Z | 2021-08-31T19:16:55.000Z | fisch.py | Terraminator/Little_Game | 65bb4cfe7255ee180e2f4eda50b532c8eddea701 | [
"BSD-2-Clause"
] | null | null | null | fisch.py | Terraminator/Little_Game | 65bb4cfe7255ee180e2f4eda50b532c8eddea701 | [
"BSD-2-Clause"
] | null | null | null | import pygame
from pygame import *
class Fisch(pygame.sprite.Sprite):
def __init__(self, F_BREITE, F_HOEHE):
super().__init__()
self.F_BREITE = F_BREITE
self.F_HOEHE = F_HOEHE
self.image = pygame.image.load("fisch.png")
self.image = pygame.transform.scale(self.image, (100, 50))
self.rect = self.image.get_rect()
self.rect.center = (self.F_BREITE / 2, self.F_HOEHE / 2)
self.speed = 8
self.lt = None
self.leben = 20
def block(self, strong):
if strong == None:
if self.lt == "up":
self.rect.y += 8
self.image = pygame.image.load("fischup.png")
self.image = pygame.transform.scale(self.image, (50, 100))
elif self.lt == "down":
self.rect.y -= 8
self.image = pygame.image.load("fischdown.png")
self.image = pygame.transform.scale(self.image, (50, 100))
elif self.lt == "left":
self.rect.x += 8
self.image = pygame.image.load("fischleft.png")
self.image = pygame.transform.scale(self.image, (100, 50))
elif self.lt == "right":
self.rect.x -= 8
self.image = pygame.image.load("fisch.png")
self.image = pygame.transform.scale(self.image, (100, 50))
else:
if self.lt == "up":
self.rect.y += strong
self.image = pygame.image.load("fischup.png")
self.image = pygame.transform.scale(self.image, (50, 100))
elif self.lt == "down":
self.rect.y -= strong
self.image = pygame.image.load("fischdown.png")
self.image = pygame.transform.scale(self.image, (50, 100))
elif self.lt == "left":
self.rect.x += strong
self.image = pygame.image.load("fischleft.png")
self.image = pygame.transform.scale(self.image, (100, 50))
elif self.lt == "right":
self.rect.x -= strong
self.image = pygame.image.load("fisch.png")
self.image = pygame.transform.scale(self.image, (100, 50))
def update(self):
if self.leben <= 0:
self.kill()
gedrueckt = pygame.key.get_pressed()
if gedrueckt[pygame.K_w]:
self.rect.y -= self.speed
self.lt = "up"
self.image = pygame.image.load("fischup.png")
self.image = pygame.transform.scale(self.image, (50, 100))
elif gedrueckt[pygame.K_s]:
self.rect.y += self.speed
self.lt = "down"
self.image = pygame.image.load("fischdown.png")
self.image = pygame.transform.scale(self.image, (50, 100))
elif gedrueckt[K_a]:
self.rect.x -= self.speed
self.lt = "left"
self.image = pygame.image.load("fischleft.png")
self.image = pygame.transform.scale(self.image, (100, 50))
elif gedrueckt[K_d]:
self.rect.x += self.speed
self.lt = "right"
self.image = pygame.image.load("fisch.png")
self.image = pygame.transform.scale(self.image, (100, 50))
self.rect.clamp_ip(pygame.Rect(0, 0, self.F_BREITE, self.F_HOEHE)) | 34.691358 | 68 | 0.631673 | 413 | 2,810 | 4.237288 | 0.138015 | 0.205714 | 0.222857 | 0.148571 | 0.810286 | 0.773143 | 0.773143 | 0.706857 | 0.706857 | 0.680571 | 0 | 0.034344 | 0.202135 | 2,810 | 81 | 68 | 34.691358 | 0.746209 | 0 | 0 | 0.459459 | 0 | 0 | 0.070304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040541 | false | 0 | 0.027027 | 0 | 0.081081 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
0bbc2e57c3b83faf7d25ae17a5b89bc253531979 | 350 | py | Python | build/lib/adb_utils/__init__.py | christopherferreira3/Python-ADB-Tools | 94e39cfe4b285517ee2502f658ab23af4ff18643 | [
"MIT"
] | null | null | null | build/lib/adb_utils/__init__.py | christopherferreira3/Python-ADB-Tools | 94e39cfe4b285517ee2502f658ab23af4ff18643 | [
"MIT"
] | null | null | null | build/lib/adb_utils/__init__.py | christopherferreira3/Python-ADB-Tools | 94e39cfe4b285517ee2502f658ab23af4ff18643 | [
"MIT"
] | null | null | null | from .adb_utils import get_connected_devices
from .adb_utils import install_app
from .adb_utils import is_device_connected
from .adb_utils import unintall_app
from .adb_utils import is_app_installed
from .adb_utils import run_command
from .adb_utils import kill_server
from .adb_utils import start_server
from .adb_utils import get_connected_devices
| 35 | 44 | 0.871429 | 58 | 350 | 4.87931 | 0.310345 | 0.222615 | 0.381625 | 0.572438 | 0.530035 | 0.424028 | 0.261484 | 0 | 0 | 0 | 0 | 0 | 0.102857 | 350 | 9 | 45 | 38.888889 | 0.901274 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 7 |
e7f803e2b0bb1f2935e1140e472c9965c1829680 | 68,623 | py | Python | benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/SystemIPC_2/EightThreads_cactusADM/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/SystemIPC_2/EightThreads_cactusADM/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_ml/SystemIPC_2/EightThreads_cactusADM/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | power = {'BUSES': {'Area': 1.33155,
'Bus/Area': 1.33155,
'Bus/Gate Leakage': 0.00662954,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0691322,
'Bus/Subthreshold Leakage with power gating': 0.0259246,
'Gate Leakage': 0.00662954,
'Peak Dynamic': 0.0,
'Runtime Dynamic': 0.0,
'Subthreshold Leakage': 0.0691322,
'Subthreshold Leakage with power gating': 0.0259246},
'Core': [{'Area': 32.6082,
'Execution Unit/Area': 8.2042,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.185153,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.348115,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 1.17245,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.122718,
'Execution Unit/Instruction Scheduler/Area': 2.17927,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.414455,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.717686,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.411613,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 1.54375,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.229916,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 7.32289,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.221502,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0150243,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.170946,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.111114,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.392448,
'Execution Unit/Register Files/Runtime Dynamic': 0.126138,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.4638,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 1.20629,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155,
'Execution Unit/Runtime Dynamic': 3.62968,
'Execution Unit/Subthreshold Leakage': 1.83518,
'Execution Unit/Subthreshold Leakage with power gating': 0.709678,
'Gate Leakage': 0.372997,
'Instruction Fetch Unit/Area': 5.86007,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 4.00292e-05,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 4.00292e-05,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 3.46049e-05,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 1.32537e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00159616,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00171082,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.000393101,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0590479,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.106817,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 6.43323,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.262867,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.362798,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 8.96874,
'Instruction Fetch Unit/Runtime Dynamic': 0.734585,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932587,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0772963,
'L2/Runtime Dynamic': 0.0216987,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80969,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 5.75203,
'Load Store Unit/Data Cache/Runtime Dynamic': 2.19498,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0351387,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.146068,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.146068,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 6.44461,
'Load Store Unit/Runtime Dynamic': 3.06141,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.360179,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.720358,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591622,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283406,
'Memory Management Unit/Area': 0.434579,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.127829,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.128957,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00813591,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.399995,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0431902,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.779485,
'Memory Management Unit/Runtime Dynamic': 0.172147,
'Memory Management Unit/Subthreshold Leakage': 0.0769113,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462,
'Peak Dynamic': 28.1547,
'Renaming Unit/Area': 0.369768,
'Renaming Unit/FP Front End RAT/Area': 0.168486,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.772769,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925,
'Renaming Unit/Free List/Area': 0.0414755,
'Renaming Unit/Free List/Gate Leakage': 4.15911e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0401324,
'Renaming Unit/Free List/Runtime Dynamic': 0.0304919,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987,
'Renaming Unit/Gate Leakage': 0.00863632,
'Renaming Unit/Int Front End RAT/Area': 0.114751,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.201439,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781,
'Renaming Unit/Peak Dynamic': 4.56169,
'Renaming Unit/Runtime Dynamic': 1.0047,
'Renaming Unit/Subthreshold Leakage': 0.070483,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779,
'Runtime Dynamic': 8.62421,
'Subthreshold Leakage': 6.21877,
'Subthreshold Leakage with power gating': 2.58311},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.0856125,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.269932,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.542346,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.165312,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.266642,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.134592,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.566546,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.10592,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 4.93982,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.102461,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00693392,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0789398,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0512806,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.181401,
'Execution Unit/Register Files/Runtime Dynamic': 0.0582145,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.187712,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.490569,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 1.79064,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 1.98852e-05,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 1.98852e-05,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 1.73712e-05,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 6.75269e-06,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00073665,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.000793791,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.000188829,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0492973,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 3.13574,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.121338,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.167436,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 5.50644,
'Instruction Fetch Unit/Runtime Dynamic': 0.339054,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0351772,
'L2/Runtime Dynamic': 0.00963156,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 3.31641,
'Load Store Unit/Data Cache/Runtime Dynamic': 1.01031,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0672701,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0672701,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 3.63408,
'Load Store Unit/Runtime Dynamic': 1.40934,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.165877,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.331753,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0588702,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0593825,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.194969,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0199387,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.452206,
'Memory Management Unit/Runtime Dynamic': 0.0793212,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 18.1572,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.269527,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.0107385,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0791753,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.359441,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 3.98742,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.0856427,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.269956,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.542569,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.165309,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.266637,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.134589,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.566535,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.105883,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 4.94011,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.102503,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00693379,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0789479,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0512797,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.181451,
'Execution Unit/Register Files/Runtime Dynamic': 0.0582135,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.187737,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.490562,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 1.79064,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 1.96641e-05,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 1.96641e-05,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 1.71766e-05,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 6.67629e-06,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000736636,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.000793141,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.000186778,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0492965,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 3.13568,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.121335,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.167433,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 5.50637,
'Instruction Fetch Unit/Runtime Dynamic': 0.339044,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0350755,
'L2/Runtime Dynamic': 0.00956594,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 3.31582,
'Load Store Unit/Data Cache/Runtime Dynamic': 1.00991,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0672507,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0672506,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 3.63339,
'Load Store Unit/Runtime Dynamic': 1.40882,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.165829,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.331657,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0588532,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0593636,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.194965,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0199391,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.452173,
'Memory Management Unit/Runtime Dynamic': 0.0793027,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 18.1566,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.269638,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.0107397,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0791701,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.359548,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 3.98693,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.0858742,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.270138,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.544084,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.16561,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.267122,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.134834,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.567566,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.105994,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 4.94284,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.102789,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00694641,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.079115,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.051373,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.181904,
'Execution Unit/Register Files/Runtime Dynamic': 0.0583194,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.188146,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.491516,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 1.79292,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 1.86649e-05,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 1.86649e-05,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 1.62842e-05,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 6.31867e-06,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.000737977,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.000791591,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.00017799,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0493862,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 3.14139,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.121538,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.167738,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 5.51236,
'Instruction Fetch Unit/Runtime Dynamic': 0.339631,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0350449,
'L2/Runtime Dynamic': 0.00951909,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 3.31886,
'Load Store Unit/Data Cache/Runtime Dynamic': 1.01129,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0673492,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0673491,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 3.63689,
'Load Store Unit/Runtime Dynamic': 1.41078,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.166072,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.332143,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0589393,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0594496,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.19532,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0199718,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.452676,
'Memory Management Unit/Runtime Dynamic': 0.0794214,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 18.1693,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.270391,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.0107625,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.0793068,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.360461,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 3.99273,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328}],
'DRAM': {'Area': 0,
'Gate Leakage': 0,
'Peak Dynamic': 6.708732347422305,
'Runtime Dynamic': 6.708732347422305,
'Subthreshold Leakage': 4.252,
'Subthreshold Leakage with power gating': 4.252},
'L3': [{'Area': 61.9075,
'Gate Leakage': 0.0484137,
'Peak Dynamic': 0.269772,
'Runtime Dynamic': 0.103951,
'Subthreshold Leakage': 6.80085,
'Subthreshold Leakage with power gating': 3.32364}],
'Processor': {'Area': 191.908,
'Gate Leakage': 1.53485,
'Peak Dynamic': 82.9076,
'Peak Power': 116.02,
'Runtime Dynamic': 20.6952,
'Subthreshold Leakage': 31.5774,
'Subthreshold Leakage with power gating': 13.9484,
'Total Cores/Area': 128.669,
'Total Cores/Gate Leakage': 1.4798,
'Total Cores/Peak Dynamic': 82.6378,
'Total Cores/Runtime Dynamic': 20.5913,
'Total Cores/Subthreshold Leakage': 24.7074,
'Total Cores/Subthreshold Leakage with power gating': 10.2429,
'Total L3s/Area': 61.9075,
'Total L3s/Gate Leakage': 0.0484137,
'Total L3s/Peak Dynamic': 0.269772,
'Total L3s/Runtime Dynamic': 0.103951,
'Total L3s/Subthreshold Leakage': 6.80085,
'Total L3s/Subthreshold Leakage with power gating': 3.32364,
'Total Leakage': 33.1122,
'Total NoCs/Area': 1.33155,
'Total NoCs/Gate Leakage': 0.00662954,
'Total NoCs/Peak Dynamic': 0.0,
'Total NoCs/Runtime Dynamic': 0.0,
'Total NoCs/Subthreshold Leakage': 0.0691322,
'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}} | 75.079869 | 124 | 0.681914 | 8,098 | 68,623 | 5.77266 | 0.067424 | 0.123559 | 0.112948 | 0.093439 | 0.93929 | 0.931974 | 0.918583 | 0.886816 | 0.863585 | 0.844354 | 0 | 0.131575 | 0.224283 | 68,623 | 914 | 125 | 75.079869 | 0.7466 | 0 | 0 | 0.64442 | 0 | 0 | 0.657277 | 0.048088 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f01db8a962d200ebdae65fbeb44002ef3b0aa6a1 | 104 | py | Python | gaze/engine/__init__.py | WANGPeisheng1997/Gaze | fc387821997da799f3091747beba01e63ecf3688 | [
"MIT"
] | null | null | null | gaze/engine/__init__.py | WANGPeisheng1997/Gaze | fc387821997da799f3091747beba01e63ecf3688 | [
"MIT"
] | null | null | null | gaze/engine/__init__.py | WANGPeisheng1997/Gaze | fc387821997da799f3091747beba01e63ecf3688 | [
"MIT"
] | 1 | 2019-01-12T08:45:31.000Z | 2019-01-12T08:45:31.000Z | from .source_node import SourceNode
from .source_node import VideoTestSource, NetworkSource, FileSource
| 34.666667 | 67 | 0.865385 | 12 | 104 | 7.333333 | 0.666667 | 0.227273 | 0.318182 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096154 | 104 | 2 | 68 | 52 | 0.93617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
f0844355104f4555e443b72b6149ca881655198d | 51,442 | py | Python | tests/integration/test_kube.py | neuro-inc/platform-monitoring | 4b9127c7ca56a64ff4c6142093663318d06918b9 | [
"Apache-2.0"
] | null | null | null | tests/integration/test_kube.py | neuro-inc/platform-monitoring | 4b9127c7ca56a64ff4c6142093663318d06918b9 | [
"Apache-2.0"
] | 52 | 2021-11-15T03:14:13.000Z | 2022-03-31T03:16:01.000Z | tests/integration/test_kube.py | neuro-inc/platform-monitoring | 4b9127c7ca56a64ff4c6142093663318d06918b9 | [
"Apache-2.0"
] | null | null | null | import asyncio
import re
import uuid
from collections.abc import AsyncIterator
from contextlib import AbstractAsyncContextManager
from datetime import datetime, timedelta, timezone
from typing import Any
from unittest import mock
from uuid import uuid4
import pytest
from aiobotocore.client import AioBaseClient
from aioelasticsearch import Elasticsearch
from aiohttp import web
from async_timeout import timeout
from yarl import URL
from platform_monitoring.config import KubeConfig
from platform_monitoring.kube_client import (
JobNotFoundException,
KubeClient,
KubeClientException,
PodContainerStats,
PodPhase,
)
from platform_monitoring.logs import (
ElasticsearchLogReader,
ElasticsearchLogsService,
LogsService,
PodContainerLogReader,
S3LogReader,
S3LogsService,
get_first_log_entry_time,
)
from platform_monitoring.utils import parse_date
from .conftest_kube import MyKubeClient, MyPodDescriptor
from tests.integration.conftest import ApiAddress, create_local_app_server
@pytest.fixture
def job_pod() -> MyPodDescriptor:
return MyPodDescriptor(f"job-{uuid4()}")
@pytest.fixture
async def mock_kubernetes_server() -> AsyncIterator[ApiAddress]:
async def _get_pod(request: web.Request) -> web.Response:
payload: dict[str, Any] = {
"kind": "Pod",
"metadata": {"name": "testname"},
"spec": {
"containers": [{"name": "testname", "image": "testimage"}],
"nodeName": "whatever",
},
"status": {"phase": "Running"},
}
return web.json_response(payload)
async def _stats_summary(request: web.Request) -> web.Response:
# Explicitly return plain text to trigger ContentTypeError
return web.Response(content_type="text/plain")
async def _gpu_metrics(request: web.Request) -> web.Response:
return web.Response(content_type="text/plain")
def _create_app() -> web.Application:
app = web.Application()
app.add_routes(
[
web.get("/api/v1/namespaces/mock/pods/whatever", _get_pod),
web.get(
"/api/v1/nodes/whatever:10255/proxy/stats/summary", _stats_summary
),
web.get("/api/v1/nodes/whatever:9400/proxy/metrics", _gpu_metrics),
]
)
return app
app = _create_app()
async with create_local_app_server(app) as address:
yield address
@pytest.fixture
def elasticsearch_log_service(
kube_client: MyKubeClient, es_client: Elasticsearch, kube_container_runtime: str
) -> ElasticsearchLogsService:
return ElasticsearchLogsService(
kube_client, es_client, container_runtime=kube_container_runtime
)
@pytest.fixture
def s3_log_service(
kube_client: MyKubeClient,
kube_container_runtime: str,
s3_client: AioBaseClient,
s3_logs_bucket: str,
s3_logs_key_prefix_format: str,
) -> S3LogsService:
return S3LogsService(
kube_client,
s3_client,
container_runtime=kube_container_runtime,
bucket_name=s3_logs_bucket,
key_prefix_format=s3_logs_key_prefix_format,
)
class TestKubeClient:
async def test_wait_pod_is_running_not_found(
self, kube_client: MyKubeClient
) -> None:
with pytest.raises(JobNotFoundException):
await kube_client.wait_pod_is_running(pod_name="unknown")
async def test_wait_pod_is_running_timed_out(
self,
kube_config: KubeConfig,
kube_client: MyKubeClient,
job_pod: MyPodDescriptor,
) -> None:
# TODO (A Yushkovskiy, 31-May-2019) check returned job_pod statuses
await kube_client.create_pod(job_pod.payload)
with pytest.raises(asyncio.TimeoutError):
await kube_client.wait_pod_is_running(pod_name=job_pod.name, timeout_s=0.1)
await kube_client.delete_pod(job_pod.name)
async def test_status_restart_never(
self,
kube_config: KubeConfig,
kube_client: MyKubeClient,
job_pod: MyPodDescriptor,
) -> None:
# TODO (A Yushkovskiy, 31-May-2019) check returned job_pod statuses
job_pod.set_command("sleep 5")
await kube_client.create_pod(job_pod.payload)
status = await kube_client.get_container_status(job_pod.name)
assert not status.can_restart
assert status.is_waiting
assert not status.is_running
assert not status.is_terminated
assert status.restart_count == 0
assert status.started_at is None
assert status.finished_at is None
status = await kube_client.wait_pod_is_running(job_pod.name, timeout_s=60.0)
assert not status.can_restart
assert not status.is_waiting
assert status.is_running
assert not status.is_terminated
assert status.restart_count == 0
assert status.started_at is not None
assert status.finished_at is None
await kube_client.wait_pod_is_terminated(job_pod.name, timeout_s=60.0)
status = await kube_client.get_container_status(job_pod.name)
assert not status.can_restart
assert not status.is_waiting
assert not status.is_running
assert status.is_terminated
assert status.is_pod_terminated
assert status.restart_count == 0
assert status.started_at is not None
assert status.finished_at is not None
await kube_client.delete_pod(job_pod.name)
await kube_client.wait_pod_is_deleted(job_pod.name, timeout_s=60.0)
with pytest.raises(JobNotFoundException):
await kube_client.get_container_status(job_pod.name)
async def test_status_restart_always(
self,
kube_config: KubeConfig,
kube_client: MyKubeClient,
job_pod: MyPodDescriptor,
) -> None:
# TODO (A Yushkovskiy, 31-May-2019) check returned job_pod statuses
job_pod.set_command("sleep 5")
job_pod.set_restart_policy("Always")
try:
await kube_client.create_pod(job_pod.payload)
status = await kube_client.get_container_status(job_pod.name)
assert status.can_restart
assert status.is_waiting
assert not status.is_running
assert not status.is_terminated
assert status.restart_count == 0
assert status.started_at is None
assert status.finished_at is None
status = await kube_client.wait_pod_is_running(
pod_name=job_pod.name, timeout_s=60.0
)
assert status.can_restart
assert not status.is_waiting
assert status.is_running
assert not status.is_terminated
assert status.restart_count == 0
assert status.started_at is not None
assert status.finished_at is None
first_started_at = status.started_at
await kube_client.wait_pod_is_terminated(job_pod.name)
status = await kube_client.get_container_status(job_pod.name)
assert status.can_restart
assert not status.is_waiting
assert not status.is_running
assert status.is_terminated
assert not status.is_pod_terminated
assert status.restart_count == 0
assert status.started_at is not None
assert status.started_at == first_started_at
assert status.finished_at is not None
first_finished_at = status.finished_at
await kube_client.wait_container_is_restarted(job_pod.name)
status = await kube_client.get_container_status(job_pod.name)
assert status.can_restart
assert not status.is_waiting
assert status.is_running
assert not status.is_terminated
assert status.restart_count == 1
assert status.started_at is not None
assert status.finished_at is not None
assert status.started_at != first_started_at
assert status.finished_at == first_finished_at
finally:
await kube_client.delete_pod(job_pod.name)
async def test_status_restart_on_failure_success(
self,
kube_config: KubeConfig,
kube_client: MyKubeClient,
job_pod: MyPodDescriptor,
) -> None:
job_pod.set_command("sleep 5")
job_pod.set_restart_policy("OnFailure")
await kube_client.create_pod(job_pod.payload)
status = await kube_client.get_container_status(job_pod.name)
assert status.can_restart
assert status.is_waiting
assert not status.is_running
assert not status.is_terminated
assert status.restart_count == 0
assert status.started_at is None
assert status.finished_at is None
status = await kube_client.wait_pod_is_running(job_pod.name, timeout_s=60.0)
assert status.can_restart
assert not status.is_waiting
assert status.is_running
assert not status.is_terminated
assert status.restart_count == 0
assert status.started_at is not None
assert status.finished_at is None
await kube_client.wait_pod_is_terminated(job_pod.name, timeout_s=60.0)
status = await kube_client.get_container_status(job_pod.name)
assert not status.can_restart
assert not status.is_waiting
assert not status.is_running
assert status.is_terminated
assert status.is_pod_terminated
assert status.restart_count == 0
assert status.started_at is not None
assert status.finished_at is not None
await kube_client.delete_pod(job_pod.name)
await kube_client.wait_pod_is_deleted(job_pod.name, timeout_s=60.0)
with pytest.raises(JobNotFoundException):
await kube_client.get_container_status(job_pod.name)
async def test_status_restart_on_failure_failure(
self,
kube_config: KubeConfig,
kube_client: MyKubeClient,
job_pod: MyPodDescriptor,
) -> None:
job_pod.set_command("bash -c 'sleep 5; false'")
job_pod.set_restart_policy("OnFailure")
try:
await kube_client.create_pod(job_pod.payload)
status = await kube_client.get_container_status(job_pod.name)
assert status.can_restart
assert status.is_waiting
assert not status.is_running
assert not status.is_terminated
assert status.restart_count == 0
assert status.started_at is None
assert status.finished_at is None
status = await kube_client.wait_pod_is_running(
pod_name=job_pod.name, timeout_s=60.0
)
assert status.can_restart
assert not status.is_waiting
assert status.is_running
assert not status.is_terminated
assert status.restart_count == 0
assert status.started_at is not None
assert status.finished_at is None
first_started_at = status.started_at
await kube_client.wait_pod_is_terminated(job_pod.name)
status = await kube_client.get_container_status(job_pod.name)
assert status.can_restart
assert not status.is_waiting
assert not status.is_running
assert status.is_terminated
assert not status.is_pod_terminated
assert status.restart_count == 0
assert status.started_at is not None
assert status.started_at == first_started_at
assert status.finished_at is not None
first_finished_at = status.finished_at
await kube_client.wait_container_is_restarted(job_pod.name)
status = await kube_client.get_container_status(job_pod.name)
assert status.can_restart
assert not status.is_waiting
assert status.is_running
assert not status.is_terminated
assert status.restart_count == 1
assert status.started_at is not None
assert status.finished_at is not None
assert status.started_at != first_started_at
assert status.finished_at == first_finished_at
finally:
await kube_client.delete_pod(job_pod.name)
async def test_get_pod_container_stats_error_json_response_parsing(
self, mock_kubernetes_server: ApiAddress
) -> None:
srv = mock_kubernetes_server
async with KubeClient(
base_url=str(f"http://{srv.host}:{srv.port}"), namespace="mock"
) as client:
stats = await client.get_pod_container_stats(
"whatever", "whatever", "whenever"
)
assert stats is None
async def test_get_pod_container_gpu_stats(
self, mock_kubernetes_server: ApiAddress
) -> None:
srv = mock_kubernetes_server
async with KubeClient(
base_url=str(f"http://{srv.host}:{srv.port}"),
namespace="mock",
nvidia_dcgm_node_port=9400,
) as client:
stats = await client.get_pod_container_gpu_stats(
"whatever", "whatever", "whenever"
)
assert stats is not None
async def test_get_pod_container_gpu_stats_no_nvidia_dcgm_port(
self, mock_kubernetes_server: ApiAddress
) -> None:
srv = mock_kubernetes_server
async with KubeClient(
base_url=str(f"http://{srv.host}:{srv.port}"), namespace="mock"
) as client:
stats = await client.get_pod_container_gpu_stats(
"whatever", "whatever", "whenever"
)
assert stats is None
async def test_get_pod_container_stats(
self,
kube_config: KubeConfig,
kube_client: MyKubeClient,
job_pod: MyPodDescriptor,
kube_node_name: str,
) -> None:
command = 'bash -c "for i in {1..5}; do echo $i; sleep 1; done"'
job_pod.set_command(command)
await kube_client.create_pod(job_pod.payload)
await kube_client.wait_pod_is_not_waiting(pod_name=job_pod.name, timeout_s=60.0)
pod_metrics = []
while True:
stats = await kube_client.get_pod_container_stats(
kube_node_name, job_pod.name, job_pod.name
)
if stats:
pod_metrics.append(stats)
else:
break
await asyncio.sleep(1)
assert pod_metrics
assert pod_metrics[0] == PodContainerStats(cpu=mock.ANY, memory=mock.ANY)
assert pod_metrics[0].cpu >= 0.0
assert pod_metrics[0].memory > 0.0
async def test_check_pod_exists_true(
self, kube_client: MyKubeClient, job_pod: MyPodDescriptor
) -> None:
await kube_client.create_pod(job_pod.payload)
does_exist = await kube_client.check_pod_exists(pod_name=job_pod.name)
assert does_exist is True
await kube_client.delete_pod(job_pod.name)
async def test_check_pod_exists_false(
self, kube_client: MyKubeClient, job_pod: MyPodDescriptor
) -> None:
does_exist = await kube_client.check_pod_exists(pod_name="unknown")
assert does_exist is False
async def test_create_log_stream_not_found(self, kube_client: KubeClient) -> None:
with pytest.raises(JobNotFoundException):
async with kube_client.create_pod_container_logs_stream(
pod_name="unknown", container_name="unknown"
):
pass
@pytest.mark.xfail
async def test_create_log_stream_creating(
self, kube_client: MyKubeClient, job_pod: MyPodDescriptor
) -> None:
await kube_client.create_pod(job_pod.payload)
async with timeout(5.0):
while True:
stream_cm = kube_client.create_pod_container_logs_stream(
pod_name=job_pod.name, container_name=job_pod.name
)
with pytest.raises(JobNotFoundException) as cm:
async with stream_cm:
pass
if "has not created" in str(cm.value):
break
await asyncio.sleep(0.1)
async def test_create_log_stream(
self,
kube_config: KubeConfig,
kube_client: MyKubeClient,
job_pod: MyPodDescriptor,
) -> None:
await kube_client.create_pod(job_pod.payload)
await kube_client.wait_pod_is_not_waiting(pod_name=job_pod.name, timeout_s=60.0)
stream_cm = kube_client.create_pod_container_logs_stream(
pod_name=job_pod.name, container_name=job_pod.name
)
async with stream_cm as stream:
payload = await stream.read()
assert payload == b""
async def test_get_node_proxy_client(
self, kube_config: KubeConfig, kube_client: MyKubeClient
) -> None:
node_list = await kube_client.get_node_list()
node_name = node_list["items"][0]["metadata"]["name"]
async with kube_client.get_node_proxy_client(
node_name, KubeConfig.kubelet_node_port
) as client:
assert client.url == URL(
kube_config.endpoint_url
+ f"/api/v1/nodes/{node_name}:{KubeConfig.kubelet_node_port}/proxy"
)
async with client.session.get(URL(f"{client.url}/stats/summary")) as resp:
assert resp.status == 200, await resp.text()
payload = await resp.json()
assert "node" in payload
async def test_get_nodes(self, kube_client: MyKubeClient) -> None:
nodes = await kube_client.get_nodes()
assert nodes
nodes = await kube_client.get_nodes(label_selector="kubernetes.io/os=linux")
assert nodes
assert all(node.get_label("kubernetes.io/os") == "linux" for node in nodes)
async def test_get_pods(
self, kube_client: MyKubeClient, job_pod: MyPodDescriptor
) -> None:
try:
await kube_client.create_pod(job_pod.payload)
pods = await kube_client.get_pods()
assert pods
assert any(pod.name == job_pod.name for pod in pods)
pods = await kube_client.get_pods(label_selector=f"job={job_pod.name}")
assert len(pods) == 1
assert pods[0].name == job_pod.name
pods = await kube_client.get_pods(
field_selector=",".join(
(
"status.phase!=Failed",
"status.phase!=Succeeded",
"status.phase!=Unknown",
),
),
)
assert pods
assert all(
pod.phase in (PodPhase.PENDING, PodPhase.RUNNING) for pod in pods
)
finally:
await kube_client.delete_pod(job_pod.name)
class TestLogReader:
async def _consume_log_reader(
self,
log_reader: AbstractAsyncContextManager[AsyncIterator[bytes]],
delay: float = 0,
) -> bytes:
buffer = bytearray()
try:
async with log_reader as it:
async for chunk in it:
buffer += chunk
if delay:
await asyncio.sleep(delay)
except asyncio.CancelledError:
pass
return bytes(buffer)
def _remove_timestamps(self, data: bytes) -> bytes:
result = []
for line in data.splitlines(True):
timestamp, rest = line.split(b" ", 1)
assert re.fullmatch(
rb"[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]+Z",
timestamp,
)
result.append(rest)
return b"".join(result)
async def test_read_instantly_succeeded(
self,
kube_config: KubeConfig,
kube_client: MyKubeClient,
job_pod: MyPodDescriptor,
) -> None:
await kube_client.create_pod(job_pod.payload)
log_reader = PodContainerLogReader(
client=kube_client, pod_name=job_pod.name, container_name=job_pod.name
)
payload = await self._consume_log_reader(log_reader)
assert payload == b""
async def test_read_instantly_failed(
self,
kube_config: KubeConfig,
kube_client: MyKubeClient,
job_pod: MyPodDescriptor,
) -> None:
command = 'bash -c "echo -n Failure!; false"'
job_pod.set_command(command)
await kube_client.create_pod(job_pod.payload)
log_reader = PodContainerLogReader(
client=kube_client, pod_name=job_pod.name, container_name=job_pod.name
)
payload = await self._consume_log_reader(log_reader)
assert payload == b"Failure!"
async def test_read_timed_out(
self,
kube_config: KubeConfig,
kube_client: MyKubeClient,
job_pod: MyPodDescriptor,
) -> None:
command = 'bash -c "sleep 5; echo -n Success!"'
job_pod.set_command(command)
await kube_client.create_pod(job_pod.payload)
log_reader = PodContainerLogReader(
client=kube_client,
pod_name=job_pod.name,
container_name=job_pod.name,
client_read_timeout_s=1,
)
with pytest.raises(asyncio.TimeoutError):
await self._consume_log_reader(log_reader)
async def test_read_succeeded(
self,
kube_config: KubeConfig,
kube_client: MyKubeClient,
job_pod: MyPodDescriptor,
) -> None:
command = 'bash -c "for i in {1..5}; do echo $i; sleep 1; done"'
job_pod.set_command(command)
await kube_client.create_pod(job_pod.payload)
log_reader = PodContainerLogReader(
client=kube_client, pod_name=job_pod.name, container_name=job_pod.name
)
payload = await self._consume_log_reader(log_reader)
expected_payload = "\n".join(str(i) for i in range(1, 6)) + "\n"
assert payload == expected_payload.encode()
async def test_read_with_timestamps(
self,
kube_config: KubeConfig,
kube_client: MyKubeClient,
job_pod: MyPodDescriptor,
) -> None:
command = 'bash -c "for i in {1..5}; do echo $i; sleep 1; done"'
job_pod.set_command(command)
await kube_client.create_pod(job_pod.payload)
log_reader = PodContainerLogReader(
client=kube_client,
pod_name=job_pod.name,
container_name=job_pod.name,
timestamps=True,
)
payload = await self._consume_log_reader(log_reader)
payload = self._remove_timestamps(payload)
expected_payload = "\n".join(str(i) for i in range(1, 6)) + "\n"
assert payload == expected_payload.encode()
async def test_read_since(
self,
kube_client: MyKubeClient,
job_pod: MyPodDescriptor,
) -> None:
command = "bash -c 'echo first; sleep 3; echo second; sleep 3; echo third'"
job_pod.set_command(command)
await kube_client.create_pod(job_pod.payload)
log_reader = PodContainerLogReader(
client=kube_client,
pod_name=job_pod.name,
container_name=job_pod.name,
timestamps=True,
)
payload = await self._consume_log_reader(log_reader)
assert self._remove_timestamps(payload) == b"first\nsecond\nthird\n"
lines = payload.splitlines()
second_ts = parse_date(lines[1].split()[0].decode())
log_reader = PodContainerLogReader(
client=kube_client,
pod_name=job_pod.name,
container_name=job_pod.name,
since=second_ts,
)
payload = await self._consume_log_reader(log_reader)
assert payload == b"second\nthird\n"
log_reader = PodContainerLogReader(
client=kube_client,
pod_name=job_pod.name,
container_name=job_pod.name,
since=second_ts + timedelta(seconds=1),
)
payload = await self._consume_log_reader(log_reader)
assert payload == b"third\n"
async def test_read_cancelled(
self,
kube_config: KubeConfig,
kube_client: MyKubeClient,
job_pod: MyPodDescriptor,
) -> None:
command = 'bash -c "for i in {1..60}; do echo $i; sleep 1; done"'
job_pod.set_command(command)
await kube_client.create_pod(job_pod.payload)
await kube_client.wait_pod_is_running(pod_name=job_pod.name, timeout_s=60.0)
log_reader = PodContainerLogReader(
client=kube_client, pod_name=job_pod.name, container_name=job_pod.name
)
task = asyncio.ensure_future(self._consume_log_reader(log_reader))
await asyncio.sleep(10)
task.cancel()
payload = await task
expected_payload = "\n".join(str(i) for i in range(1, 6))
assert payload.startswith(expected_payload.encode())
async def test_read_restarted(
self,
kube_config: KubeConfig,
kube_client: MyKubeClient,
job_pod: MyPodDescriptor,
) -> None:
command = """bash -c 'echo "`date +%s` Restart"; sleep 1; false'"""
job_pod.set_command(command)
job_pod.set_restart_policy("Always")
try:
await kube_client.create_pod(job_pod.payload)
log_reader = PodContainerLogReader(
client=kube_client,
pod_name=job_pod.name,
container_name=job_pod.name,
previous=True,
)
with pytest.raises(KubeClientException):
await self._consume_log_reader(log_reader)
log_reader = PodContainerLogReader(
client=kube_client, pod_name=job_pod.name, container_name=job_pod.name
)
payload = await self._consume_log_reader(log_reader)
assert b" Restart\n" in payload
orig_timestamp = int(payload.split()[0])
await kube_client.wait_container_is_restarted(job_pod.name)
for i in range(3)[::-1]:
try:
log_reader = PodContainerLogReader(
client=kube_client,
pod_name=job_pod.name,
container_name=job_pod.name,
previous=True,
)
payload = await self._consume_log_reader(log_reader)
break
except KubeClientException:
if not i:
raise
await asyncio.sleep(1)
continue
assert b" Restart\n" in payload
assert payload.count(b"Restart") == 1
timestamp = int(payload.split()[0])
assert timestamp >= orig_timestamp
finally:
await kube_client.delete_pod(job_pod.name)
async def test_elasticsearch_log_reader(
self,
kube_config: KubeConfig,
kube_client: MyKubeClient,
kube_container_runtime: str,
job_pod: MyPodDescriptor,
es_client: Elasticsearch,
) -> None:
command = 'bash -c "for i in {1..5}; do echo $i; sleep 1; done"'
expected_payload = ("\n".join(str(i) for i in range(1, 6)) + "\n").encode()
job_pod.set_command(command)
await kube_client.create_pod(job_pod.payload)
await kube_client.wait_pod_is_terminated(job_pod.name)
await self._check_kube_logs(
kube_client,
namespace_name=kube_config.namespace,
pod_name=job_pod.name,
container_name=job_pod.name,
expected_payload=expected_payload,
)
await kube_client.delete_pod(job_pod.name)
for timestamps in [False, True]:
await self._check_es_logs(
es_client,
container_runtime=kube_container_runtime,
namespace_name=kube_config.namespace,
pod_name=job_pod.name,
container_name=job_pod.name,
expected_payload=expected_payload,
timestamps=timestamps,
)
async def test_elasticsearch_log_reader_restarted(
self,
kube_config: KubeConfig,
kube_client: MyKubeClient,
kube_container_runtime: str,
job_pod: MyPodDescriptor,
es_client: Elasticsearch,
) -> None:
command = 'bash -c "sleep 5; for i in {1..5}; do echo $i; sleep 1; done"'
expected_payload = ("\n".join(str(i) for i in range(1, 6)) + "\n").encode()
job_pod.set_command(command)
job_pod.set_restart_policy("Always")
try:
await kube_client.create_pod(job_pod.payload)
await kube_client.wait_container_is_restarted(job_pod.name, 2)
finally:
await kube_client.delete_pod(job_pod.name)
await self._check_es_logs(
es_client,
container_runtime=kube_container_runtime,
namespace_name=kube_config.namespace,
pod_name=job_pod.name,
container_name=job_pod.name,
expected_payload=expected_payload * 2,
)
async def test_s3_log_reader(
self,
kube_config: KubeConfig,
kube_client: MyKubeClient,
kube_container_runtime: str,
job_pod: MyPodDescriptor,
s3_client: AioBaseClient,
s3_logs_bucket: str,
s3_logs_key_prefix_format: str,
) -> None:
command = 'bash -c "for i in {1..5}; do echo $i; sleep 1; done"'
expected_payload = ("\n".join(str(i) for i in range(1, 6)) + "\n").encode()
job_pod.set_command(command)
await kube_client.create_pod(job_pod.payload)
await kube_client.wait_pod_is_terminated(job_pod.name)
await self._check_kube_logs(
kube_client,
namespace_name=kube_config.namespace,
pod_name=job_pod.name,
container_name=job_pod.name,
expected_payload=expected_payload,
)
await kube_client.delete_pod(job_pod.name)
for timestamps in [False, True]:
await self._check_s3_logs(
s3_client,
container_runtime=kube_container_runtime,
bucket_name=s3_logs_bucket,
prefix_format=s3_logs_key_prefix_format,
namespace_name=kube_config.namespace,
pod_name=job_pod.name,
container_name=job_pod.name,
expected_payload=expected_payload,
timestamps=timestamps,
)
async def test_s3_log_reader_restarted(
self,
kube_config: KubeConfig,
kube_client: MyKubeClient,
kube_container_runtime: str,
job_pod: MyPodDescriptor,
s3_client: AioBaseClient,
s3_logs_bucket: str,
s3_logs_key_prefix_format: str,
) -> None:
command = 'bash -c "sleep 5; for i in {1..5}; do echo $i; sleep 1; done"'
expected_payload = ("\n".join(str(i) for i in range(1, 6)) + "\n").encode()
job_pod.set_command(command)
job_pod.set_restart_policy("Always")
try:
await kube_client.create_pod(job_pod.payload)
await kube_client.wait_container_is_restarted(job_pod.name, 2)
finally:
await kube_client.delete_pod(job_pod.name)
await self._check_s3_logs(
s3_client,
container_runtime=kube_container_runtime,
bucket_name=s3_logs_bucket,
prefix_format=s3_logs_key_prefix_format,
namespace_name=kube_config.namespace,
pod_name=job_pod.name,
container_name=job_pod.name,
expected_payload=expected_payload * 2,
)
async def test_s3_logs_cleanup(
self,
kube_config: KubeConfig,
kube_client: MyKubeClient,
kube_container_runtime: str,
job_pod: MyPodDescriptor,
s3_client: AioBaseClient,
s3_logs_bucket: str,
s3_logs_key_prefix_format: str,
) -> None:
command = 'bash -c "for i in {1..5}; do echo $i; sleep 1; done"'
expected_payload = ("\n".join(str(i) for i in range(1, 6)) + "\n").encode()
job_pod.set_command(command)
await kube_client.create_pod(job_pod.payload)
await kube_client.wait_pod_is_terminated(job_pod.name)
await self._check_s3_logs(
s3_client,
container_runtime=kube_container_runtime,
bucket_name=s3_logs_bucket,
prefix_format=s3_logs_key_prefix_format,
namespace_name=kube_config.namespace,
pod_name=job_pod.name,
container_name=job_pod.name,
expected_payload=expected_payload,
)
service = S3LogsService(
kube_client,
s3_client,
container_runtime=kube_container_runtime,
bucket_name=s3_logs_bucket,
key_prefix_format=s3_logs_key_prefix_format,
)
await service.drop_logs(job_pod.name)
await self._check_s3_logs(
s3_client,
container_runtime=kube_container_runtime,
bucket_name=s3_logs_bucket,
prefix_format=s3_logs_key_prefix_format,
namespace_name=kube_config.namespace,
pod_name=job_pod.name,
container_name=job_pod.name,
expected_payload=b"",
timeout_s=1,
)
async def _check_kube_logs(
self,
kube_client: KubeClient,
namespace_name: str,
pod_name: str,
container_name: str,
expected_payload: Any,
) -> None:
log_reader = PodContainerLogReader(
client=kube_client, pod_name=pod_name, container_name=container_name
)
payload = await self._consume_log_reader(log_reader)
assert payload == expected_payload, "Pod logs did not match."
async def _check_es_logs(
self,
es_client: Elasticsearch,
container_runtime: str,
namespace_name: str,
pod_name: str,
container_name: str,
expected_payload: Any,
timeout_s: float = 120.0,
interval_s: float = 1.0,
timestamps: bool = False,
) -> None:
payload = b""
try:
async with timeout(timeout_s):
while True:
log_reader = ElasticsearchLogReader(
es_client,
container_runtime=container_runtime,
namespace_name=namespace_name,
pod_name=pod_name,
container_name=container_name,
timestamps=timestamps,
)
payload = await self._consume_log_reader(log_reader)
if timestamps:
payload = self._remove_timestamps(payload)
if payload == expected_payload:
return
await asyncio.sleep(interval_s)
except asyncio.TimeoutError:
pytest.fail(f"Pod logs did not match. Last payload: {payload!r}")
async def _check_s3_logs(
self,
s3_client: AioBaseClient,
container_runtime: str,
bucket_name: str,
prefix_format: str,
namespace_name: str,
pod_name: str,
container_name: str,
expected_payload: Any,
timeout_s: float = 120.0,
interval_s: float = 1.0,
timestamps: bool = False,
) -> None:
payload = b""
try:
async with timeout(timeout_s):
while True:
log_reader = S3LogReader(
s3_client,
container_runtime=container_runtime,
bucket_name=bucket_name,
prefix_format=prefix_format,
namespace_name=namespace_name,
pod_name=pod_name,
container_name=container_name,
timestamps=timestamps,
)
payload = await self._consume_log_reader(log_reader)
if timestamps:
payload = self._remove_timestamps(payload)
if payload == expected_payload:
return
await asyncio.sleep(interval_s)
except asyncio.TimeoutError:
pytest.fail(f"Pod logs did not match. Last payload: {payload!r}")
async def test_elasticsearch_log_reader_empty(
self, es_client: Elasticsearch, kube_container_runtime: str
) -> None:
namespace_name = pod_name = container_name = str(uuid.uuid4())
log_reader = ElasticsearchLogReader(
es_client,
container_runtime=kube_container_runtime,
namespace_name=namespace_name,
pod_name=pod_name,
container_name=container_name,
)
payload = await self._consume_log_reader(log_reader)
assert payload == b""
async def test_s3_log_reader_empty(
self,
kube_container_runtime: str,
s3_client: AioBaseClient,
s3_logs_bucket: str,
s3_logs_key_prefix_format: str,
) -> None:
namespace_name = pod_name = container_name = str(uuid.uuid4())
log_reader = S3LogReader(
s3_client,
container_runtime=kube_container_runtime,
bucket_name=s3_logs_bucket,
prefix_format=s3_logs_key_prefix_format,
namespace_name=namespace_name,
pod_name=pod_name,
container_name=container_name,
)
payload = await self._consume_log_reader(log_reader)
assert payload == b""
async def _test_get_job_log_reader(
self,
kube_config: KubeConfig,
kube_client: MyKubeClient,
factory: LogsService,
job_pod: MyPodDescriptor,
) -> None:
command = 'bash -c "echo hello"'
job_pod.set_command(command)
await kube_client.create_pod(job_pod.payload)
pod_name = job_pod.name
await kube_client.wait_pod_is_terminated(pod_name)
log_reader = factory.get_pod_log_reader(pod_name, archive_delay_s=10.0)
payload = await self._consume_log_reader(log_reader)
assert payload == b"hello\n"
await kube_client.delete_pod(job_pod.name)
log_reader = factory.get_pod_log_reader(pod_name, archive_delay_s=10.0)
payload = await self._consume_log_reader(log_reader)
assert payload == b"hello\n"
async def test_get_job_elasticsearch_log_reader(
self,
kube_config: KubeConfig,
kube_client: MyKubeClient,
elasticsearch_log_service: LogsService,
job_pod: MyPodDescriptor,
) -> None:
await self._test_get_job_log_reader(
kube_config, kube_client, elasticsearch_log_service, job_pod
)
async def test_get_job_s3_log_reader(
self,
kube_config: KubeConfig,
kube_client: MyKubeClient,
s3_log_service: S3LogsService,
job_pod: MyPodDescriptor,
) -> None:
await self._test_get_job_log_reader(
kube_config, kube_client, s3_log_service, job_pod
)
async def _test_merged_log_reader(
self,
kube_client: MyKubeClient,
job_pod: MyPodDescriptor,
factory: LogsService,
) -> None:
command = 'bash -c "for i in {1..5}; do sleep 1; echo $i; done"'
job_pod.set_command(command)
names = []
tasks = []
def run_log_reader(name: str, delay: float = 0) -> None:
async def coro() -> bytes:
await asyncio.sleep(delay)
log_reader = factory.get_pod_log_reader(
job_pod.name, separator=b"===", archive_delay_s=10.0
)
return await self._consume_log_reader(log_reader)
names.append(name)
task = asyncio.ensure_future(coro())
tasks.append(task)
try:
await kube_client.create_pod(job_pod.payload)
run_log_reader("created")
await kube_client.wait_pod_is_running(pod_name=job_pod.name, timeout_s=60.0)
for i in range(4):
run_log_reader(f"started [{i}]", delay=i * 2)
await kube_client.wait_pod_is_terminated(job_pod.name)
finally:
await kube_client.delete_pod(job_pod.name)
run_log_reader("deleting")
await kube_client.wait_pod_is_deleted(job_pod.name)
run_log_reader("deleted")
payloads = await asyncio.gather(*tasks)
# Output for debugging
for i, (name, payload) in enumerate(zip(names, payloads)):
print(f"{i}. {name}: {payload!r}")
expected_payload = "".join(f"{i}\n" for i in range(1, 6)).encode()
# All logs are completely either live or archive, no separator.
for name, payload in zip(names, payloads):
assert payload == expected_payload, name
async def test_elasticsearch_merged_log_reader(
self,
kube_client: MyKubeClient,
elasticsearch_log_service: LogsService,
job_pod: MyPodDescriptor,
) -> None:
await self._test_merged_log_reader(
kube_client, job_pod, elasticsearch_log_service
)
async def test_s3_merged_log_reader(
self,
kube_client: MyKubeClient,
s3_log_service: LogsService,
job_pod: MyPodDescriptor,
) -> None:
await self._test_merged_log_reader(kube_client, job_pod, s3_log_service)
async def _test_merged_log_reader_restarted(
self,
kube_client: MyKubeClient,
job_pod: MyPodDescriptor,
factory: LogsService,
) -> None:
command = (
'bash -c "sleep 5; date +[%T]; for i in {1..5}; do sleep 1; echo $i; done"'
)
job_pod.set_command(command)
job_pod.set_restart_policy("Always")
names = []
tasks = []
def run_log_reader(name: str, delay: float = 0) -> None:
async def coro() -> bytes:
await asyncio.sleep(delay)
log_reader = factory.get_pod_log_reader(
job_pod.name, separator=b"===", archive_delay_s=20.0
)
return await self._consume_log_reader(log_reader)
names.append(name)
task = asyncio.ensure_future(coro())
tasks.append(task)
try:
await kube_client.create_pod(job_pod.payload)
run_log_reader("created")
await kube_client.wait_pod_is_running(pod_name=job_pod.name, timeout_s=60.0)
for i in range(4):
run_log_reader(f"started [{i}]", delay=i * 2)
await kube_client.wait_container_is_restarted(job_pod.name, 1)
for i in range(4):
run_log_reader(f"restarted 1 [{i}]", delay=i * 2)
await kube_client.wait_container_is_restarted(job_pod.name, 2)
for i in range(4):
run_log_reader(f"restarted 2 [{i}]", delay=i * 2)
await kube_client.wait_pod_is_terminated(job_pod.name)
finally:
await kube_client.delete_pod(job_pod.name)
run_log_reader("deleting")
await kube_client.wait_pod_is_deleted(job_pod.name)
run_log_reader("deleted")
payloads = await asyncio.gather(*tasks)
# Output for debugging
for i, (name, payload) in enumerate(zip(names, payloads)):
print(f"{i}. {name}: {payload!r}")
expected_payload = "".join(f"{i}\n" for i in range(1, 6)).encode()
payload0 = payloads[0]
assert re.sub(rb"\[.*?\]\n", b"", payload0) == expected_payload * 3
for i, (name, payload) in enumerate(zip(names, payloads)):
if i < 2 or i >= len(names) - 1:
# No separator in earlest (live only) and
# latest (archive only) logs.
assert b"===" not in payload, name
elif "restarted 1 " in name:
# There should be parts of live and archive logs,
# and a separator between them.
assert payload.count(b"===\n") == 1, name
payload = payload.replace(b"===\n", b"")
assert payload == payload0, name
async def test_elasticsearch_merged_log_reader_restarted(
self,
kube_client: MyKubeClient,
elasticsearch_log_service: LogsService,
job_pod: MyPodDescriptor,
) -> None:
await self._test_merged_log_reader_restarted(
kube_client,
job_pod,
elasticsearch_log_service,
)
async def test_s3_merged_log_reader_restarted(
self,
kube_client: MyKubeClient,
s3_log_service: LogsService,
job_pod: MyPodDescriptor,
) -> None:
await self._test_merged_log_reader_restarted(
kube_client, job_pod, s3_log_service
)
async def _test_merged_log_reader_restarted_since(
self,
kube_client: MyKubeClient,
job_pod: MyPodDescriptor,
factory: LogsService,
) -> None:
command = "bash -c 'echo begin; sleep 5; echo end; false'"
job_pod.set_command(command)
job_pod.set_restart_policy("OnFailure")
starts = []
tasks = []
def run_log_reader(since: datetime) -> None:
async def coro() -> bytes:
log_reader = factory.get_pod_log_reader(
job_pod.name, since=since, separator=b"===", archive_delay_s=20.0
)
return await self._consume_log_reader(log_reader)
starts.append(since)
task = asyncio.ensure_future(coro())
tasks.append(task)
try:
await kube_client.create_pod(job_pod.payload)
await kube_client.wait_pod_is_running(pod_name=job_pod.name, timeout_s=60.0)
await kube_client.wait_pod_is_terminated(job_pod.name)
status = await kube_client.get_container_status(job_pod.name)
finished1 = status.finished_at
assert finished1
await kube_client.wait_container_is_restarted(job_pod.name, 1)
status = await kube_client.get_container_status(job_pod.name)
started2 = status.started_at
assert started2
run_log_reader(since=started2)
run_log_reader(since=datetime.now(tz=timezone.utc))
await kube_client.wait_pod_is_terminated(job_pod.name)
status = await kube_client.get_container_status(job_pod.name)
assert status.started_at == started2
finished2 = status.finished_at
assert finished2
await kube_client.wait_container_is_restarted(job_pod.name, 2)
run_log_reader(since=finished1 - timedelta(seconds=2))
run_log_reader(since=started2)
run_log_reader(since=finished2 - timedelta(seconds=2))
run_log_reader(since=finished2 + timedelta(seconds=2))
await kube_client.wait_pod_is_terminated(job_pod.name)
finally:
await kube_client.delete_pod(job_pod.name)
await kube_client.wait_pod_is_deleted(job_pod.name)
run_log_reader(since=finished1 - timedelta(seconds=2))
run_log_reader(since=started2)
run_log_reader(since=finished2 - timedelta(seconds=2))
run_log_reader(since=finished2 + timedelta(seconds=2))
payloads = await asyncio.gather(*tasks)
# Output for debugging
for i, (since, payload) in enumerate(zip(starts, payloads)):
print(f"{i}. [{since:%T}] {payload!r}")
assert payloads == [
b"begin\nend\nbegin\nend\n",
b"end\nbegin\nend\n",
b"end\nbegin\nend\n===\nbegin\nend\n",
b"begin\nend\n===\nbegin\nend\n",
b"end\n===\nbegin\nend\n",
b"begin\nend\n",
b"end\nbegin\nend\nbegin\nend\n",
b"begin\nend\nbegin\nend\n",
b"end\nbegin\nend\n",
b"begin\nend\n",
]
async def test_elasticsearch_merged_log_reader_restarted_since(
self,
kube_client: MyKubeClient,
elasticsearch_log_service: LogsService,
job_pod: MyPodDescriptor,
) -> None:
await self._test_merged_log_reader_restarted_since(
kube_client,
job_pod,
elasticsearch_log_service,
)
async def test_s3_merged_log_reader_restarted_since(
self,
kube_client: MyKubeClient,
s3_log_service: LogsService,
job_pod: MyPodDescriptor,
) -> None:
await self._test_merged_log_reader_restarted_since(
kube_client, job_pod, s3_log_service
)
async def _test_large_log_reader(
self,
kube_client: MyKubeClient,
job_pod: MyPodDescriptor,
factory: LogsService,
) -> None:
num = 10000
command = f"seq {num}"
job_pod.set_command(command)
try:
await kube_client.create_pod(job_pod.payload)
await kube_client.wait_pod_is_terminated(job_pod.name)
log_reader = factory.get_pod_log_reader(
job_pod.name, separator=b"===", archive_delay_s=30.0
)
payload = (await self._consume_log_reader(log_reader, delay=0.001)).decode()
finally:
await kube_client.delete_pod(job_pod.name)
expected_payload = "".join(f"{i + 1}\n" for i in range(num))
assert payload == expected_payload
async def test_large_log_reader(
self,
kube_client: MyKubeClient,
s3_log_service: LogsService,
job_pod: MyPodDescriptor,
) -> None:
await self._test_large_log_reader(kube_client, job_pod, s3_log_service)
async def test_get_first_log_entry_time(
self,
kube_client: MyKubeClient,
job_pod: MyPodDescriptor,
) -> None:
pod_name = job_pod.name
command = "bash -c 'sleep 5; echo first; sleep 5; echo second'"
job_pod.set_command(command)
await kube_client.create_pod(job_pod.payload)
first_ts = await get_first_log_entry_time(kube_client, pod_name, timeout_s=1)
assert first_ts is None
await kube_client.wait_pod_is_running(pod_name)
first_ts = await get_first_log_entry_time(kube_client, pod_name, timeout_s=1)
assert first_ts is None
first_ts = await get_first_log_entry_time(kube_client, pod_name, timeout_s=5)
assert first_ts is not None
await kube_client.wait_pod_is_terminated(pod_name)
status = await kube_client.get_container_status(pod_name)
assert status.started_at is not None
assert status.finished_at is not None
assert first_ts > status.started_at
assert first_ts < status.finished_at
first_ts2 = await get_first_log_entry_time(kube_client, pod_name, timeout_s=1)
assert first_ts2 == first_ts
| 37.330914 | 88 | 0.618988 | 6,165 | 51,442 | 4.854988 | 0.059367 | 0.04791 | 0.042431 | 0.028065 | 0.829074 | 0.803916 | 0.779526 | 0.755772 | 0.738565 | 0.714878 | 0 | 0.010716 | 0.301602 | 51,442 | 1,377 | 89 | 37.358025 | 0.82239 | 0.010206 | 0 | 0.704785 | 0 | 0.009732 | 0.049132 | 0.010333 | 0 | 0 | 0 | 0.000726 | 0.135442 | 1 | 0.006488 | false | 0.002433 | 0.017032 | 0.002433 | 0.036496 | 0.002433 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b2d8de8a7c3233ca6dd4acaa5107f405e68d60ac | 57,724 | py | Python | tests/test_parser_output.py | pogzyb/asyncwhois | 44c74184a3b713ec9bdc7322cb7b78d41ea24756 | [
"MIT"
] | 25 | 2020-06-09T00:39:25.000Z | 2022-02-21T08:54:09.000Z | tests/test_parser_output.py | pogzyb/asyncwhois | 44c74184a3b713ec9bdc7322cb7b78d41ea24756 | [
"MIT"
] | 17 | 2020-04-27T09:35:00.000Z | 2022-02-15T01:56:16.000Z | tests/test_parser_output.py | pogzyb/asyncwhois | 44c74184a3b713ec9bdc7322cb7b78d41ea24756 | [
"MIT"
] | 4 | 2020-07-10T23:06:46.000Z | 2022-01-22T10:30:04.000Z | import unittest
import os
from asyncwhois.parser import WhoIsParser
class TestWhoIsParsers(unittest.TestCase):
@staticmethod
def get_txt(tld: str):
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), f"samples/tld_{tld}.txt")) as txt_input:
query_output = txt_input.read()
return query_output
def test_parser_com(self):
query_output = self.get_txt('com')
parser = WhoIsParser('com')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 1997)
self.assertEqual(updated_date.year, 2019)
self.assertEqual(expires_date.year, 2028)
self.assertEqual(created_date.month, 9)
self.assertEqual(updated_date.month, 9)
self.assertEqual(expires_date.month, 9)
self.assertEqual(created_date.day, 15)
self.assertEqual(updated_date.day, 9)
self.assertEqual(expires_date.day, 13)
# geo
self.assertEqual(parser.parser_output.get("registrant_state"), "CA")
self.assertEqual(parser.parser_output.get("registrant_country"), "US")
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "MarkMonitor, Inc.")
# registrant
self.assertEqual(parser.parser_output.get("registrant_organization"), "Google LLC")
# misc
self.assertEqual(parser.parser_output.get("dnssec"), "unsigned")
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
self.assertEqual(len(parser.parser_output.get("status")), 6)
def test_parser_in(self):
query_output = self.get_txt('in')
parser = WhoIsParser('in')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2007)
self.assertEqual(updated_date.year, 2019)
self.assertEqual(expires_date.year, 2020)
self.assertEqual(created_date.month, 12)
self.assertEqual(updated_date.month, 12)
self.assertEqual(expires_date.month, 12)
self.assertEqual(created_date.day, 1)
self.assertEqual(updated_date.day, 1)
self.assertEqual(expires_date.day, 1)
# geo
self.assertEqual(parser.parser_output.get("registrant_state"), "Rajasthan")
self.assertEqual(parser.parser_output.get("registrant_country"), "IN")
self.assertEqual(parser.parser_output.get("registrant_address"), None)
self.assertEqual(parser.parser_output.get("registrant_zipcode"), None)
self.assertEqual(parser.parser_output.get("dnssec"), "unsigned")
self.assertEqual(len(parser.parser_output.get("name_servers")), 2)
self.assertEqual(len(parser.parser_output.get("status")), 1)
def test_parser_top(self):
query_output = self.get_txt('top')
parser = WhoIsParser('top')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2020)
self.assertEqual(updated_date.year, 2020)
self.assertEqual(expires_date.year, 2021)
self.assertEqual(created_date.month, 2)
self.assertEqual(updated_date.month, 5)
self.assertEqual(expires_date.month, 2)
self.assertEqual(created_date.day, 25)
self.assertEqual(updated_date.day, 22)
self.assertEqual(expires_date.day, 25)
# geo
self.assertEqual(parser.parser_output.get("registrant_state"), "AZ")
self.assertEqual(parser.parser_output.get("registrant_country"), "US")
self.assertEqual(parser.parser_output.get("registrant_zipcode"), "85016")
self.assertEqual(parser.parser_output.get("registrant_address"), "1928 E. Highland Ave. Ste F104 PMB# 255")
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "NameSilo, LLC")
# registrant
self.assertEqual(parser.parser_output.get("registrant_organization"), "See PrivacyGuardian.org")
# misc
self.assertEqual(parser.parser_output.get("dnssec"), "unsigned")
self.assertEqual(len(parser.parser_output.get("name_servers")), 3)
self.assertEqual(len(parser.parser_output.get("status")), 1)
def test_parser_xyz(self):
query_output = self.get_txt('xyz')
parser = WhoIsParser('xyz')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2019)
self.assertEqual(updated_date.year, 1)
self.assertEqual(expires_date.year, 2020)
self.assertEqual(created_date.month, 10)
self.assertEqual(updated_date.month, 1)
self.assertEqual(expires_date.month, 10)
self.assertEqual(created_date.day, 15)
self.assertEqual(updated_date.day, 1)
self.assertEqual(expires_date.day, 15)
# geo
self.assertEqual(parser.parser_output.get("registrant_state"), "Panama")
self.assertEqual(parser.parser_output.get("registrant_country"), "PA")
self.assertEqual(parser.parser_output.get("registrant_zipcode"), None)
self.assertEqual(parser.parser_output.get("registrant_address"), "P.O. Box 0823-03411")
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "NAMECHEAP INC")
# registrant
self.assertEqual(parser.parser_output.get("registrant_organization"), "WhoisGuard, Inc.")
self.assertEqual(parser.parser_output.get("registrant_name"), "WhoisGuard Protected")
# misc
self.assertEqual(parser.parser_output.get("dnssec"), "unsigned")
self.assertEqual(len(parser.parser_output.get("name_servers")), 3)
self.assertEqual(len(parser.parser_output.get("status")), 2)
def test_parser_ir(self):
query_output = self.get_txt('ir')
parser = WhoIsParser('ir')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
self.assertEqual(created_date, None)
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(updated_date.year, 2019)
self.assertEqual(expires_date.year, 2020)
self.assertEqual(updated_date.month, 11)
self.assertEqual(expires_date.month, 12)
self.assertEqual(updated_date.day, 7)
self.assertEqual(expires_date.day, 22)
# geo
self.assertEqual(parser.parser_output.get("registrant_state"), None)
self.assertEqual(parser.parser_output.get("registrant_country"), None)
self.assertEqual(parser.parser_output.get("registrant_zipcode"), None)
self.assertEqual(parser.parser_output.get("registrant_address"), "1600 Amphitheatre Parkway, Mountain View, CA, US")
# registrar
self.assertEqual(parser.parser_output.get("registrar"), None)
# registrant
self.assertEqual(parser.parser_output.get("registrant_organization"), "Google Inc.")
self.assertEqual(parser.parser_output.get("registrant_name"), "Google Inc.")
def test_parser_icu(self):
query_output = self.get_txt('icu')
parser = WhoIsParser('icu')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2019)
self.assertEqual(updated_date.year, 2019)
self.assertEqual(expires_date.year, 2020)
self.assertEqual(created_date.month, 5)
self.assertEqual(updated_date.month, 10)
self.assertEqual(expires_date.month, 5)
self.assertEqual(created_date.day, 11)
self.assertEqual(updated_date.day, 23)
self.assertEqual(expires_date.day, 11)
# geo
self.assertEqual(parser.parser_output.get("registrant_state"), "Sind(en)")
self.assertEqual(parser.parser_output.get("registrant_city"), "karachi")
self.assertEqual(parser.parser_output.get("registrant_country"), "PK")
self.assertEqual(parser.parser_output.get("registrant_zipcode"), "75640")
self.assertEqual(parser.parser_output.get("registrant_address"), "Manzoor Colony")
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "PDR Ltd. d/b/a PublicDomainRegistry.com")
# registrant
self.assertEqual(parser.parser_output.get("registrant_organization"), None)
self.assertEqual(parser.parser_output.get("registrant_name"), None)
# misc
self.assertEqual(parser.parser_output.get("dnssec"), "Unsigned")
self.assertEqual(len(parser.parser_output.get("name_servers")), 2)
self.assertEqual(len(parser.parser_output.get("status")), 4)
def test_parser_ie(self):
query_output = self.get_txt('ie')
parser = WhoIsParser('ie')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2002)
self.assertEqual(expires_date.year, 2021)
self.assertEqual(created_date.month, 3)
self.assertEqual(expires_date.month, 3)
self.assertEqual(created_date.day, 21)
self.assertEqual(expires_date.day, 21)
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "Markmonitor Inc")
# registrant
self.assertEqual(parser.parser_output.get("registrant_organization"), None)
self.assertEqual(parser.parser_output.get("registrant_name"), "Google, Inc")
# misc
self.assertEqual(len(parser.parser_output.get("name_servers")), 3)
self.assertEqual(len(parser.parser_output.get("status")), 1)
def test_parser_uk(self):
query_output = self.get_txt('uk')
parser = WhoIsParser('uk')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2014)
self.assertEqual(updated_date.year, 2020)
self.assertEqual(expires_date.year, 2021)
self.assertEqual(created_date.month, 6)
self.assertEqual(updated_date.month, 5)
self.assertEqual(expires_date.month, 6)
self.assertEqual(created_date.day, 11)
self.assertEqual(updated_date.day, 10)
self.assertEqual(expires_date.day, 11)
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "Markmonitor Inc. t/a MarkMonitor Inc. [Tag = MARKMONITOR]")
# registrant
self.assertEqual(parser.parser_output.get("registrant_organization"), None)
self.assertEqual(parser.parser_output.get("registrant_name"), None)
# misc
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
self.assertEqual(len(parser.parser_output.get("status")), 1)
def test_parser_cl(self):
query_output = self.get_txt('cl')
parser = WhoIsParser('cl')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2002)
self.assertEqual(expires_date.year, 2020)
self.assertEqual(created_date.month, 10)
self.assertEqual(expires_date.month, 11)
self.assertEqual(created_date.day, 22)
self.assertEqual(expires_date.day, 20)
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "MarkMonitor Inc.")
# registrant
self.assertEqual(parser.parser_output.get("registrant_organization"), "Google LLC")
self.assertEqual(parser.parser_output.get("registrant_name"), "Google LLC")
# misc
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
def test_parser_be(self):
query_output = self.get_txt('be')
parser = WhoIsParser('be')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
self.assertEqual(created_date.year, 2000)
self.assertEqual(created_date.month, 12)
self.assertEqual(created_date.day, 12)
self.assertEqual(parser.parser_output.get("registrar"), "MarkMonitor Inc.")
# registrant
self.assertEqual(parser.parser_output.get("registrant_organization"), None)
self.assertEqual(parser.parser_output.get("registrant_name"), "Not shown, please visit www.dnsbelgium.be for webbased whois.")
def test_parser_de(self):
query_output = self.get_txt('de')
parser = WhoIsParser('de')
parser.parse(query_output)
self.assertEqual(len(parser.parser_output.get('status')), 1)
def test_parse_us(self):
query_output = self.get_txt('us')
parser = WhoIsParser('us')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2002)
self.assertEqual(updated_date.year, 2020)
self.assertEqual(expires_date.year, 2021)
self.assertEqual(created_date.month, 4)
self.assertEqual(updated_date.month, 3)
self.assertEqual(expires_date.month, 4)
self.assertEqual(created_date.day, 19)
self.assertEqual(updated_date.day, 22)
self.assertEqual(expires_date.day, 18)
# geo
self.assertEqual(parser.parser_output.get("registrant_state"), "CA")
self.assertEqual(parser.parser_output.get("registrant_city"), "Mountain View")
self.assertEqual(parser.parser_output.get("registrant_country"), "US")
self.assertEqual(parser.parser_output.get("registrant_zipcode"), "94043")
self.assertEqual(parser.parser_output.get("registrant_address"), "1600 Amphitheatre Parkway")
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "MarkMonitor, Inc.")
# registrant
self.assertEqual(parser.parser_output.get("registrant_organization"), "Google LLC")
self.assertEqual(parser.parser_output.get("registrant_name"), "Google Inc")
# misc
self.assertEqual(parser.parser_output.get("dnssec"), "unsigned")
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
self.assertEqual(len(parser.parser_output.get("status")), 3)
def test_parse_ar(self):
query_output = self.get_txt('ar')
parser = WhoIsParser('ar')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2013)
self.assertEqual(updated_date.year, 2019)
self.assertEqual(expires_date.year, 2020)
self.assertEqual(created_date.month, 10)
self.assertEqual(updated_date.month, 11)
self.assertEqual(expires_date.month, 11)
self.assertEqual(created_date.day, 29)
self.assertEqual(updated_date.day, 1)
self.assertEqual(expires_date.day, 1)
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "nicar")
# registrant
self.assertEqual(parser.parser_output.get("registrant_name"), "GOOGLE INC.")
# misc
self.assertEqual(len(parser.parser_output.get("name_servers")), 2)
self.assertEqual(len(parser.parser_output.get("status")), 0)
def test_parse_no(self):
query_output = self.get_txt('no')
parser = WhoIsParser('no')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertIsNone(expires_date)
self.assertEqual(created_date.year, 2001)
self.assertEqual(updated_date.year, 2020)
self.assertEqual(created_date.month, 2)
self.assertEqual(updated_date.month, 1)
self.assertEqual(created_date.day, 26)
self.assertEqual(updated_date.day, 27)
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "REG466-NORID")
# misc
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
def test_parser_ai(self):
query_output = self.get_txt('ai')
parser = WhoIsParser('ai')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2017)
self.assertEqual(updated_date.year, 2019)
self.assertEqual(expires_date.year, 2021)
self.assertEqual(created_date.month, 12)
self.assertEqual(updated_date.month, 8)
self.assertEqual(expires_date.month, 9)
self.assertEqual(created_date.day, 16)
self.assertEqual(updated_date.day, 24)
self.assertEqual(expires_date.day, 25)
# geo
self.assertEqual(parser.parser_output.get("registrant_state"), "CA")
self.assertEqual(parser.parser_output.get("registrant_country"), "US")
self.assertEqual(parser.parser_output.get("registrant_city"), "Mountain View")
self.assertEqual(parser.parser_output.get("registrant_zipcode"), "94043")
self.assertEqual(parser.parser_output.get("registrant_address"), "1600 Amphitheatre Parkway")
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "Markmonitor")
# registrant
self.assertEqual(parser.parser_output.get("registrant_organization"), "Google LLC")
self.assertEqual(parser.parser_output.get("registrant_name"), "Domain Administrator")
# misc
self.assertEqual(parser.parser_output.get("dnssec"), "unsigned")
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
self.assertEqual(len(parser.parser_output.get("status")), 3)
def test_parser_me(self):
query_output = self.get_txt('me')
parser = WhoIsParser('me')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2008)
self.assertEqual(updated_date.year, 2020)
self.assertEqual(expires_date.year, 2021)
self.assertEqual(created_date.month, 6)
self.assertEqual(updated_date.month, 5)
self.assertEqual(expires_date.month, 6)
self.assertEqual(created_date.day, 13)
self.assertEqual(updated_date.day, 12)
self.assertEqual(expires_date.day, 13)
# geo
self.assertEqual(parser.parser_output.get("registrant_state"), "CA")
self.assertEqual(parser.parser_output.get("registrant_country"), "US")
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "MarkMonitor Inc.")
# registrant
self.assertEqual(parser.parser_output.get("registrant_organization"), "Google LLC")
# misc
self.assertEqual(parser.parser_output.get("dnssec"), "unsigned")
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
self.assertEqual(len(parser.parser_output.get("status")), 6)
def test_parser_cc(self):
query_output = self.get_txt('cc')
parser = WhoIsParser('cc')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2002)
self.assertEqual(updated_date.year, 2016)
self.assertEqual(expires_date.year, 2024)
self.assertEqual(created_date.month, 8)
self.assertEqual(updated_date.month, 11)
self.assertEqual(expires_date.month, 8)
self.assertEqual(created_date.day, 4)
self.assertEqual(updated_date.day, 12)
self.assertEqual(expires_date.day, 4)
# geo
self.assertEqual(parser.parser_output.get("registrant_state"), "CA")
self.assertEqual(parser.parser_output.get("registrant_city"), "Cupertino")
self.assertEqual(parser.parser_output.get("registrant_country"), "US")
self.assertEqual(parser.parser_output.get("registrant_zipcode"), "95014")
self.assertEqual(parser.parser_output.get("registrant_address"), "1 Infinite Loop")
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "CSC CORPORATE DOMAINS, INC.")
# registrant
self.assertEqual(parser.parser_output.get("registrant_organization"), "Apple Inc.")
self.assertEqual(parser.parser_output.get("registrant_name"), "Domain Administrator")
# misc
self.assertEqual(parser.parser_output.get("dnssec"), "unsigned")
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
self.assertEqual(len(parser.parser_output.get("status")), 1)
def test_parser_ru(self):
query_output = self.get_txt('ru')
parser = WhoIsParser('ru')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2004)
self.assertEqual(expires_date.year, 2021)
self.assertEqual(created_date.month, 3)
self.assertEqual(expires_date.month, 3)
self.assertEqual(created_date.day, 3)
self.assertEqual(expires_date.day, 4)
# registrant
self.assertEqual(parser.parser_output.get("registrant_organization"), "Google LLC")
def test_parser_edu(self):
query_output = self.get_txt('edu')
parser = WhoIsParser('edu')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 1985)
self.assertEqual(updated_date.year, 2020)
self.assertEqual(expires_date.year, 2021)
self.assertEqual(created_date.month, 10)
self.assertEqual(updated_date.month, 12)
self.assertEqual(expires_date.month, 7)
self.assertEqual(created_date.day, 7)
self.assertEqual(updated_date.day, 26)
self.assertEqual(expires_date.day, 31)
# geo
self.assertEqual(parser.parser_output.get("registrant_state"), None)
self.assertEqual(parser.parser_output.get("registrant_city"), None)
self.assertEqual(parser.parser_output.get("registrant_country"), "US")
self.assertEqual(parser.parser_output.get("registrant_zipcode"), None)
self.assertEqual(parser.parser_output.get("registrant_address"),
'ITCS, Arbor Lakes, 4251 Plymouth Road, Ann Arbor, MI 48105-2785')
# registrant
self.assertEqual(parser.parser_output.get("registrant_organization"), "University of Michigan -- ITD")
self.assertEqual(parser.parser_output.get("registrant_name"), "University of Michigan -- ITD")
# misc
self.assertEqual(len(parser.parser_output.get("name_servers")), 3)
def test_parser_info(self):
query_output = self.get_txt('info')
parser = WhoIsParser('info')
parser.parse(query_output)
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2001)
self.assertEqual(updated_date.year, 2020)
self.assertEqual(expires_date.year, 2021)
self.assertEqual(created_date.month, 7)
self.assertEqual(updated_date.month, 6)
self.assertEqual(expires_date.month, 7)
self.assertEqual(created_date.day, 31)
self.assertEqual(updated_date.day, 29)
self.assertEqual(expires_date.day, 31)
# geo
self.assertEqual(parser.parser_output.get("registrar"), "MarkMonitor Inc.")
self.assertEqual(parser.parser_output.get("registrant_state"), "CA")
self.assertEqual(parser.parser_output.get("registrant_country"), "US")
# registrant
self.assertEqual(parser.parser_output.get("registrant_organization"), "Google LLC")
# misc
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
self.assertEqual(len(parser.parser_output.get("status")), 6)
def test_parser_fi(self):
query_output = self.get_txt('fi')
parser = WhoIsParser('fi')
parser.parse(query_output)
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2006)
self.assertEqual(updated_date.year, 2020)
self.assertEqual(expires_date.year, 2021)
self.assertEqual(created_date.month, 6)
self.assertEqual(updated_date.month, 6)
self.assertEqual(expires_date.month, 7)
self.assertEqual(created_date.day, 30)
self.assertEqual(updated_date.day, 2)
self.assertEqual(expires_date.day, 4)
self.assertEqual(parser.parser_output.get("registrar"), "MarkMonitor Inc.")
# geo
self.assertEqual(parser.parser_output.get("registrant_address"), "1600 Amphitheatre Parkway")
self.assertEqual(parser.parser_output.get("registrant_zipcode"), "94043")
self.assertEqual(parser.parser_output.get("registrant_city"), "Mountain View")
self.assertEqual(parser.parser_output.get("registrant_country"), "United States of America")
# registrant
self.assertEqual(parser.parser_output.get("registrant_name"), "Google LLC")
# misc
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
self.assertEqual(len(parser.parser_output.get("status")), 1)
self.assertEqual(parser.parser_output.get("dnssec"), "no")
def test_parser_kz(self):
query_output = self.get_txt('kz')
parser = WhoIsParser('kz')
parser.parse(query_output)
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 1999)
self.assertEqual(updated_date.year, 2012)
self.assertEqual(created_date.month, 6)
self.assertEqual(updated_date.month, 11)
self.assertEqual(created_date.day, 7)
self.assertEqual(updated_date.day, 28)
# geo
self.assertEqual(parser.parser_output.get("registrant_address"), "2400 E. Bayshore Pkwy")
self.assertEqual(parser.parser_output.get("registrant_zipcode"), "94043")
self.assertEqual(parser.parser_output.get("registrant_city"), "Mountain View")
self.assertEqual(parser.parser_output.get("registrant_country"), "US")
# registrant
self.assertEqual(parser.parser_output.get("registrant_name"), "Google Inc.")
self.assertEqual(parser.parser_output.get("registrant_organization"), "Google Inc.")
# misc
self.assertEqual(len(parser.parser_output.get("name_servers")), 2)
self.assertEqual(len(parser.parser_output.get("status")), 1)
self.assertEqual(parser.parser_output.get("registrar"), "KAZNIC")
def test_parser_si(self):
query_output = self.get_txt('si')
parser = WhoIsParser('si')
parser.parse(query_output)
created_date = parser.parser_output.get("created")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2005)
self.assertEqual(expires_date.year, 2021)
self.assertEqual(created_date.month, 4)
self.assertEqual(expires_date.month, 7)
self.assertEqual(created_date.day, 4)
self.assertEqual(expires_date.day, 19)
# registrant
self.assertEqual(parser.parser_output.get("registrant_name"), "G830057")
# misc
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
self.assertEqual(len(parser.parser_output.get("status")), 1)
self.assertEqual(parser.parser_output.get("registrar"), "MarkMonitor")
def test_parser_ae(self):
query_output = self.get_txt('ae')
parser = WhoIsParser('ae')
parser.parse(query_output)
# registrant
self.assertEqual(parser.parser_output.get("registrant_name"), "Domain Administrator")
self.assertEqual(parser.parser_output.get("registrant_organization"), "Google LLC")
# misc
self.assertEqual(len(parser.parser_output.get("name_servers")), 2)
self.assertEqual(len(parser.parser_output.get("status")), 2)
self.assertEqual(parser.parser_output.get("registrar"), "MarkMonitor")
def test_parser_ve(self):
query_output = self.get_txt('ve')
parser = WhoIsParser('ve')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2002)
self.assertEqual(updated_date.year, 2020)
self.assertEqual(expires_date.year, 2021)
self.assertEqual(created_date.month, 6)
self.assertEqual(updated_date.month, 4)
self.assertEqual(expires_date.month, 5)
self.assertEqual(created_date.day, 5)
self.assertEqual(updated_date.day, 24)
self.assertEqual(expires_date.day, 6)
# geo
self.assertEqual(parser.parser_output.get("registrant_state"), "Ca")
self.assertEqual(parser.parser_output.get("registrant_country"), "US")
self.assertEqual(parser.parser_output.get("registrant_city"), "Mountain View")
self.assertEqual(parser.parser_output.get("registrant_zipcode"), "94043")
self.assertEqual(parser.parser_output.get("registrant_address"), "1600 Amphitheatre Parkway")
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "NIC-VE")
# registrant
self.assertEqual(parser.parser_output.get("registrant_organization"), "Google Llc")
# misc
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
def test_parser_app(self):
query_output = self.get_txt('app')
parser = WhoIsParser('app')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2018)
self.assertEqual(updated_date.year, 2020)
self.assertEqual(expires_date.year, 2021)
self.assertEqual(created_date.month, 3)
self.assertEqual(updated_date.month, 3)
self.assertEqual(expires_date.month, 3)
self.assertEqual(created_date.day, 29)
self.assertEqual(updated_date.day, 2)
self.assertEqual(expires_date.day, 29)
# geo
self.assertEqual(parser.parser_output.get("registrant_state"), "CA")
self.assertEqual(parser.parser_output.get("registrant_country"), "US")
self.assertEqual(parser.parser_output.get("registrant_city"), "REDACTED FOR PRIVACY")
self.assertEqual(parser.parser_output.get("registrant_zipcode"), "REDACTED FOR PRIVACY")
self.assertEqual(parser.parser_output.get("registrant_address"), "REDACTED FOR PRIVACY")
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "MarkMonitor Inc.")
# registrant
self.assertEqual(parser.parser_output.get("registrant_organization"), "Google LLC")
# misc
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
self.assertEqual(len(parser.parser_output.get("status")), 3)
def test_parser_cn(self):
query_output = self.get_txt('cn')
parser = WhoIsParser('cn')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2003)
self.assertEqual(expires_date.year, 2022)
self.assertEqual(created_date.month, 3)
self.assertEqual(expires_date.month, 3)
self.assertEqual(created_date.day, 17)
self.assertEqual(expires_date.day, 17)
# geo
self.assertEqual(parser.parser_output.get("registrant_name"), "北京谷翔信息技术有限公司")
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "厦门易名科技股份有限公司")
# registrant
# misc
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
self.assertEqual(len(parser.parser_output.get("status")), 5)
self.assertEqual(parser.parser_output.get("dnssec"), "unsigned")
def test_parser_co(self):
query_output = self.get_txt('co')
parser = WhoIsParser('co')
parser.parse(query_output)
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2010)
self.assertEqual(updated_date.year, 2020)
self.assertEqual(expires_date.year, 2021)
self.assertEqual(created_date.month, 2)
self.assertEqual(updated_date.month, 1)
self.assertEqual(expires_date.month, 2)
self.assertEqual(created_date.day, 25)
self.assertEqual(updated_date.day, 28)
self.assertEqual(expires_date.day, 24)
# geo
self.assertEqual(parser.parser_output.get("registrant_address"), "REDACTED FOR PRIVACY")
self.assertEqual(parser.parser_output.get("registrant_zipcode"), "REDACTED FOR PRIVACY")
self.assertEqual(parser.parser_output.get("registrant_city"), "REDACTED FOR PRIVACY")
self.assertEqual(parser.parser_output.get("registrant_country"), "US")
self.assertEqual(parser.parser_output.get("registrant_state"), "CA")
# registrant
self.assertEqual(parser.parser_output.get("registrant_name"), "REDACTED FOR PRIVACY")
self.assertEqual(parser.parser_output.get("registrant_organization"), "Google Inc.")
# misc
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
self.assertEqual(len(parser.parser_output.get("status")), 3)
self.assertEqual(parser.parser_output.get("registrar"), "MarkMonitor, Inc.")
self.assertEqual(parser.parser_output.get("dnssec"), "unsigned")
def test_parser_pl(self):
query_output = self.get_txt('pl')
parser = WhoIsParser('pl')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2002)
self.assertEqual(updated_date.year, 2020)
self.assertEqual(expires_date.year, 2023)
self.assertEqual(created_date.month, 9)
self.assertEqual(updated_date.month, 8)
self.assertEqual(expires_date.month, 10)
self.assertEqual(created_date.day, 19)
self.assertEqual(updated_date.day, 17)
self.assertEqual(expires_date.day, 14)
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "Markmonitor, Inc.")
# misc
self.assertEqual(parser.parser_output.get("dnssec"), "Unsigned")
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
def test_parser_online(self):
query_output = self.get_txt('online')
parser = WhoIsParser('online')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2015)
self.assertEqual(updated_date.year, 2020)
self.assertEqual(expires_date.year, 2021)
self.assertEqual(created_date.month, 8)
self.assertEqual(updated_date.month, 8)
self.assertEqual(expires_date.month, 8)
self.assertEqual(created_date.day, 19)
self.assertEqual(updated_date.day, 25)
self.assertEqual(expires_date.day, 19)
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "MarkMonitor, Inc (TLDs)")
# registrant
self.assertEqual(parser.parser_output.get("registrant_organization"), "Google LLC")
self.assertEqual(parser.parser_output.get("registrant_country"), "US")
self.assertEqual(parser.parser_output.get("registrant_state"), "CA")
# misc
self.assertEqual(parser.parser_output.get("dnssec"), "unsigned")
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
def test_parser_buzz(self):
query_output = self.get_txt('buzz')
parser = WhoIsParser('buzz')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2014)
self.assertEqual(updated_date.year, 2020)
self.assertEqual(expires_date.year, 2021)
self.assertEqual(created_date.month, 3)
self.assertEqual(updated_date.month, 2)
self.assertEqual(expires_date.month, 3)
self.assertEqual(created_date.day, 18)
self.assertEqual(updated_date.day, 19)
self.assertEqual(expires_date.day, 17)
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "MarkMonitor, Inc.")
# registrant
self.assertEqual(parser.parser_output.get("registrant_organization"), "Google LLC")
self.assertEqual(parser.parser_output.get("registrant_country"), "US")
self.assertEqual(parser.parser_output.get("registrant_state"), "CA")
self.assertEqual(parser.parser_output.get("registrant_address"), "REDACTED FOR PRIVACY")
self.assertEqual(parser.parser_output.get("registrant_city"), "REDACTED FOR PRIVACY")
def test_parser_live(self):
query_output = self.get_txt('live')
parser = WhoIsParser('live')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2015)
self.assertEqual(updated_date.year, 2020)
self.assertEqual(expires_date.year, 2021)
self.assertEqual(created_date.month, 10)
self.assertEqual(updated_date.month, 10)
self.assertEqual(expires_date.month, 10)
self.assertEqual(created_date.day, 19)
self.assertEqual(updated_date.day, 19)
self.assertEqual(expires_date.day, 19)
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "Nom-iq Ltd. dba COM LAUDE")
# registrant
self.assertEqual(parser.parser_output.get("registrant_organization"), "Amazon Technologies, Inc.")
self.assertEqual(parser.parser_output.get("registrant_country"), "US")
self.assertEqual(parser.parser_output.get("registrant_state"), "NV")
self.assertEqual(parser.parser_output.get("registrant_address"), "REDACTED FOR PRIVACY")
self.assertEqual(parser.parser_output.get("registrant_city"), "REDACTED FOR PRIVACY")
def test_parser_cat(self):
query_output = self.get_txt('cat')
parser = WhoIsParser('cat')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2006)
self.assertEqual(updated_date.year, 2021)
self.assertEqual(expires_date.year, 2022)
self.assertEqual(created_date.month, 2)
self.assertEqual(updated_date.month, 1)
self.assertEqual(expires_date.month, 2)
self.assertEqual(created_date.day, 14)
self.assertEqual(updated_date.day, 15)
self.assertEqual(expires_date.day, 14)
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "MarkMonitor")
# registrant
self.assertEqual(parser.parser_output.get("registrant_organization"), "Google LLC")
self.assertEqual(parser.parser_output.get("registrant_country"), "US")
self.assertEqual(parser.parser_output.get("registrant_state"), "CA")
def test_parser_ma(self):
query_output = self.get_txt('ma')
parser = WhoIsParser('ma')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2009)
self.assertEqual(updated_date.year, 2020)
self.assertEqual(expires_date.year, 2021)
self.assertEqual(created_date.month, 3)
self.assertEqual(updated_date.month, 2)
self.assertEqual(expires_date.month, 3)
self.assertEqual(created_date.day, 24)
self.assertEqual(updated_date.day, 25)
self.assertEqual(expires_date.day, 24)
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "GENIOUS COMMUNICATION")
# registrant
self.assertEqual(parser.parser_output.get("registrant_name"), "Google LLC")
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
self.assertEqual(len(parser.parser_output.get("status")), 2)
def test_parser_vg(self):
query_output = self.get_txt('vg')
parser = WhoIsParser('vg')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 1999)
self.assertEqual(updated_date.year, 2020)
self.assertEqual(expires_date.year, 2021)
self.assertEqual(created_date.month, 6)
self.assertEqual(updated_date.month, 12)
self.assertEqual(expires_date.month, 6)
self.assertEqual(created_date.day, 5)
self.assertEqual(updated_date.day, 10)
self.assertEqual(expires_date.day, 5)
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "MarkMonitor, Inc.")
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
self.assertEqual(len(parser.parser_output.get("status")), 3)
def test_parser_tk(self):
query_output = self.get_txt('tk')
parser = WhoIsParser('tk')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
expires_date = parser.parser_output.get("expires")
self.assertEqual(created_date.year, 2014)
self.assertEqual(expires_date.year, 2021)
self.assertEqual(created_date.month, 9)
self.assertEqual(expires_date.month, 12)
self.assertEqual(created_date.day, 17)
self.assertEqual(expires_date.day, 11)
# registrar
self.assertEqual(parser.parser_output.get("registrar"), None)
self.assertEqual(parser.parser_output.get("registrant_organization"), "Amazon Technologies, Inc.")
self.assertEqual(parser.parser_output.get("registrant_name"), "Hostmaster Amazon Legal Dept.")
self.assertEqual(len(parser.parser_output.get("name_servers")), 5)
self.assertEqual(len(parser.parser_output.get("status")), 1)
self.assertEqual(parser.parser_output.get("registrant_country"), "U.S.A.")
self.assertEqual(parser.parser_output.get("registrant_state"), "Nevada")
self.assertEqual(parser.parser_output.get("registrant_address"), "P.O. Box 8102")
self.assertEqual(parser.parser_output.get("registrant_city"), "Reno")
def test_parser_nl(self):
query_output = self.get_txt('nl')
parser = WhoIsParser('nl')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
updated_date = parser.parser_output.get("updated")
self.assertEqual(created_date.year, 1999)
self.assertEqual(updated_date.year, 2015)
self.assertEqual(created_date.month, 5)
self.assertEqual(updated_date.month, 12)
self.assertEqual(created_date.day, 27)
self.assertEqual(updated_date.day, 30)
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "MarkMonitor Inc.")
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
self.assertEqual(len(parser.parser_output.get("status")), 1)
def test_parser_gq(self):
query_output = self.get_txt('gq')
parser = WhoIsParser('gq')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
self.assertEqual(created_date.year, 2014)
self.assertEqual(created_date.month, 10)
self.assertEqual(created_date.day, 14)
# registrar
self.assertEqual(parser.parser_output.get("registrar"), None)
self.assertEqual(parser.parser_output.get("registrant_organization"), "Google Inc")
self.assertEqual(parser.parser_output.get("registrant_name"), "DNS Admin")
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
self.assertEqual(len(parser.parser_output.get("status")), 1)
self.assertEqual(parser.parser_output.get("registrant_country"), "U.S.A.")
self.assertEqual(parser.parser_output.get("registrant_state"), "California")
self.assertEqual(parser.parser_output.get("registrant_address"), "1600 Amphitheatre Parkway")
self.assertEqual(parser.parser_output.get("registrant_city"), "Mountain View")
def test_tld_nu(self):
query_output = self.get_txt('nu')
parser = WhoIsParser('nu')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
self.assertEqual(created_date.year, 2011)
self.assertEqual(created_date.month, 4)
self.assertEqual(created_date.day, 15)
updated_date = parser.parser_output.get("updated")
self.assertEqual(updated_date.year, 2021)
self.assertEqual(updated_date.month, 2)
self.assertEqual(updated_date.day, 16)
expired_date = parser.parser_output.get("expires")
self.assertEqual(expired_date.year, 2022)
self.assertEqual(expired_date.month, 4)
self.assertEqual(expired_date.day, 15)
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "Domeneshop AS")
self.assertEqual(parser.parser_output.get("registrant_name"), "DNS1856879")
self.assertEqual(len(parser.parser_output.get("name_servers")), 3)
self.assertEqual(len(parser.parser_output.get("status")), 1)
self.assertEqual(parser.parser_output.get("dnssec"), "signed delegation")
def test_tld_is(self):
query_output = self.get_txt('is')
parser = WhoIsParser('is')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
self.assertEqual(created_date.year, 2000)
self.assertEqual(created_date.month, 1)
self.assertEqual(created_date.day, 18)
expired_date = parser.parser_output.get("expires")
self.assertEqual(expired_date.year, 2022)
self.assertEqual(expired_date.month, 1)
self.assertEqual(expired_date.day, 18)
# registrar
self.assertEqual(parser.parser_output.get("registrant_name"), "Amazon Europe Core S.a.r.l.")
self.assertEqual(parser.parser_output.get("registrant_address"), "38 avenue John F. Kennedy, LU-L-1855 Luxembourg")
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
self.assertEqual(parser.parser_output.get("dnssec"), "unsigned delegation")
def test_tld_cr(self):
query_output = self.get_txt('cr')
parser = WhoIsParser('cr')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
self.assertEqual(created_date.year, 2008)
self.assertEqual(created_date.month, 3)
self.assertEqual(created_date.day, 23)
updated_date = parser.parser_output.get("updated")
self.assertEqual(updated_date.year, 2021)
self.assertEqual(updated_date.month, 2)
self.assertEqual(updated_date.day, 5)
expired_date = parser.parser_output.get("expires")
self.assertEqual(expired_date.year, 2022)
self.assertEqual(expired_date.month, 3)
self.assertEqual(expired_date.day, 24)
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "COMLAUDE")
self.assertEqual(parser.parser_output.get("registrant_name"), "Amazon Technologies, Inc.")
self.assertEqual(parser.parser_output.get("registrant_organization"), "Amazon Technologies, Inc.")
self.assertEqual(parser.parser_output.get("registrant_address"), "P.O. Box 8102, Reno, 89507, Nevada, US")
self.assertEqual(len(parser.parser_output.get("name_servers")), 9)
def test_tld_cz(self):
query_output = self.get_txt('cz')
parser = WhoIsParser('cz')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
self.assertEqual(created_date.year, 1997)
self.assertEqual(created_date.month, 9)
self.assertEqual(created_date.day, 19)
expired_date = parser.parser_output.get("expires")
self.assertEqual(expired_date.year, 2021)
self.assertEqual(expired_date.month, 10)
self.assertEqual(expired_date.day, 28)
updated_date = parser.parser_output.get("updated")
self.assertEqual(updated_date.year, 2017)
self.assertEqual(updated_date.month, 1)
self.assertEqual(updated_date.day, 12)
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "REG-NOMIQ")
self.assertEqual(parser.parser_output.get("registrant_name"), "Legal Department")
self.assertEqual(parser.parser_output.get("registrant_organization"), "Amazon Europe Holding Technologies SCS")
self.assertEqual(parser.parser_output.get("registrant_address"), "65, boulevard Grande-Duchesse Charlotte, Luxembourg City, 1331, LU")
self.assertEqual(len(parser.parser_output.get("name_servers")), 6)
def test_tld_gg(self):
query_output = self.get_txt('gg')
parser = WhoIsParser('gg')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
self.assertEqual(created_date.year, 2003)
self.assertEqual(created_date.month, 4)
self.assertEqual(created_date.day, 30)
# registrant
self.assertEqual(parser.parser_output.get("registrant_name"), "Google LLC")
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "MarkMonitor Inc. (http://www.markmonitor.com)")
# name servers and status
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
self.assertEqual(len(parser.parser_output.get("status")), 4)
def test_tld_ge(self):
query_output = self.get_txt('ge')
parser = WhoIsParser('ge')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
self.assertEqual(created_date.year, 2006)
self.assertEqual(created_date.month, 7)
self.assertEqual(created_date.day, 28)
expired_date = parser.parser_output.get("expires")
self.assertEqual(expired_date.year, 2021)
self.assertEqual(expired_date.month, 7)
self.assertEqual(expired_date.day, 29)
# registrant
self.assertEqual(parser.parser_output.get("registrant_name"), "Google LLC")
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "proservice ltd")
# misc
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
self.assertEqual(len(parser.parser_output.get("status")), 1)
def test_tld_jp(self):
query_output = self.get_txt('jp')
parser = WhoIsParser('jp')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
self.assertEqual(created_date.year, 2010)
self.assertEqual(created_date.month, 9)
self.assertEqual(created_date.day, 22)
#
expires_date = parser.parser_output.get("expires")
self.assertEqual(expires_date.year, 2021)
self.assertEqual(expires_date.month, 9)
self.assertEqual(expires_date.day, 30)
# registrant
self.assertEqual(parser.parser_output.get("registrant_name"), "Amazon, Inc.")
# address
self.assertEqual(parser.parser_output.get("registrant_address"),
"Meguro-ku, Arco Tower Annex, 8-1, Shimomeguro 1-chome")
# name servers
self.assertEqual(len(parser.parser_output.get("name_servers")), 8)
def test_tld_ax(self):
query_output = self.get_txt('ax')
parser = WhoIsParser('ax')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
self.assertEqual(created_date.year, 2016)
self.assertEqual(created_date.month, 9)
self.assertEqual(created_date.day, 8)
expired_date = parser.parser_output.get("expires")
self.assertEqual(expired_date.year, 2021)
self.assertEqual(expired_date.month, 9)
self.assertEqual(expired_date.day, 8)
updated_date = parser.parser_output.get("updated")
self.assertEqual(updated_date.year, 2020)
self.assertEqual(updated_date.month, 9)
self.assertEqual(updated_date.day, 5)
# registrant
self.assertEqual(parser.parser_output.get("registrant_name"), "xTom GmbH")
self.assertEqual(parser.parser_output.get("registrant_country"), "Tyskland")
self.assertEqual(parser.parser_output.get("registrant_address"), "Kreuzstr.60, 40210, Duesseldorf")
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "xTom")
# misc
self.assertEqual(len(parser.parser_output.get("name_servers")), 2)
self.assertEqual(len(parser.parser_output.get("status")), 1)
self.assertEqual(parser.parser_output.get("domain_name"), "google.ax")
def test_tld_aw(self):
query_output = self.get_txt('aw')
parser = WhoIsParser('aw')
parser.parse(query_output)
# confirm dates
created_date = parser.parser_output.get("created")
self.assertEqual(created_date.year, 2017)
self.assertEqual(created_date.month, 9)
self.assertEqual(created_date.day, 13)
updated_date = parser.parser_output.get("updated")
self.assertEqual(updated_date.year, 2018)
self.assertEqual(updated_date.month, 5)
self.assertEqual(updated_date.day, 21)
# registrar
self.assertEqual(parser.parser_output.get("registrar"), "SETAR N.V.")
# misc
self.assertEqual(parser.parser_output.get("dnssec"), "no")
self.assertEqual(len(parser.parser_output.get("name_servers")), 4)
self.assertEqual(len(parser.parser_output.get("status")), 1)
self.assertEqual(parser.parser_output.get("domain_name"), "google.aw")
| 49.67642 | 142 | 0.680601 | 6,795 | 57,724 | 5.58911 | 0.050037 | 0.249223 | 0.191005 | 0.22284 | 0.926589 | 0.91603 | 0.880931 | 0.879299 | 0.820291 | 0.789194 | 0 | 0.022154 | 0.196903 | 57,724 | 1,161 | 143 | 49.719208 | 0.797079 | 0.026679 | 0 | 0.672287 | 0 | 0 | 0.136799 | 0.012709 | 0 | 0 | 0 | 0 | 0.665964 | 1 | 0.05058 | false | 0 | 0.003161 | 0 | 0.055848 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 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 | 10 |
b2da45b740f3e617a034e84368c6e36397bab690 | 23,134 | py | Python | wwdtm/show/info_multiple.py | questionlp/wwdtm | f3cf3399c22bf19e369e6e0250e7c72de0be3a90 | [
"Apache-2.0"
] | null | null | null | wwdtm/show/info_multiple.py | questionlp/wwdtm | f3cf3399c22bf19e369e6e0250e7c72de0be3a90 | [
"Apache-2.0"
] | 1 | 2022-01-17T04:25:49.000Z | 2022-01-17T04:25:49.000Z | wwdtm/show/info_multiple.py | questionlp/wwdtm | f3cf3399c22bf19e369e6e0250e7c72de0be3a90 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# vim: set noai syntax=python ts=4 sw=4:
#
# Copyright (c) 2018-2021 Linh Pham
# wwdtm is released under the terms of the Apache License 2.0
"""Wait Wait Don't Tell Me! Stats Supplemental Show Information
Retrieval Functions for Multiple Shows
"""
from functools import lru_cache
from typing import Any, Dict, List, Optional
from mysql.connector import connect
from slugify import slugify
from wwdtm.show.utility import ShowUtility
from wwdtm.location.location import LocationUtility
from wwdtm.validation import valid_int_id
class ShowInfoMultiple:
"""This class contains functions that retrieve show supplemental
show information, including panelist, guest and Bluff the Listener
information for multiple shows from a copy of the Wait Wait Stats
database
:param connect_dict: Dictionary containing database connection
settings as required by mysql.connector.connect
:param database_connection: mysql.connector.connect database
connection
"""
def __init__(self,
connect_dict: Optional[Dict[str, Any]] = None,
database_connection: Optional[connect] = None):
"""Class initialization method.
"""
if connect_dict:
self.connect_dict = connect_dict
self.database_connection = connect(**connect_dict)
elif database_connection:
if not database_connection.is_connected():
database_connection.reconnect()
self.database_connection = database_connection
self.utility = ShowUtility(database_connection=self.database_connection)
self.loc_util = LocationUtility(database_connection=self.database_connection)
def retrieve_bluff_info_all(self) -> Dict[int, List[Dict[str, Any]]]:
"""Returns a dictionary containing Bluff the Listener information
for all shows.
:return: Dictionary containing correct and chosen Bluff the
Listener information.
"""
bluff_info = {}
cursor = self.database_connection.cursor(named_tuple=True)
query = ("SELECT s.showid AS show_id, "
"blm.chosenbluffpnlid AS panelist_id, "
"p.panelist AS name, p.panelistslug AS slug "
"FROM ww_showbluffmap blm "
"JOIN ww_shows s ON s.showid = blm.showid "
"JOIN ww_panelists p ON "
"p.panelistid = blm.chosenbluffpnlid;")
cursor.execute(query)
chosen_results = cursor.fetchall()
query = ("SELECT s.showid AS show_id, "
"blm.correctbluffpnlid AS panelist_id, "
"p.panelist AS name, p.panelistslug AS slug "
"FROM ww_showbluffmap blm "
"JOIN ww_shows s ON s.showid = blm.showid "
"JOIN ww_panelists p ON "
"p.panelistid = blm.correctbluffpnlid;")
cursor.execute(query)
correct_results = cursor.fetchall()
cursor.close()
if not chosen_results or not correct_results:
return {}
for show in chosen_results:
if show.show_id not in bluff_info:
bluff_info[show.show_id] = {}
bluff_info[show.show_id]["chosen_panelist"] = {
"id": show.panelist_id,
"name": show.name,
"slug": show.slug if show.slug else slugify(show.name),
}
for show in correct_results:
if show.show_id not in bluff_info:
bluff_info[show.show_id] = {}
bluff_info[show.show_id]["correct_panelist"] = {
"id": show.panelist_id,
"name": show.name,
"slug": show.slug if show.slug else slugify(show.name),
}
return bluff_info
def retrieve_bluff_info_by_ids(self, show_ids: List[int]) -> Dict[int, List[Dict[str, Any]]]:
"""Returns a dictionary containing Bluff the Listener information
for the requested show IDs.
:param show_ids: List of show IDs
:return: Dictionary containing correct and chosen Bluff the
Listener information.
"""
for show_id in show_ids:
if not valid_int_id(show_id):
return {}
bluff_info = {}
cursor = self.database_connection.cursor(named_tuple=True)
query = ("SELECT s.showid AS show_id, "
"blm.chosenbluffpnlid AS panelist_id, "
"p.panelist AS name, p.panelistslug AS slug "
"FROM ww_showbluffmap blm "
"JOIN ww_shows s ON s.showid = blm.showid "
"JOIN ww_panelists p ON "
"p.panelistid = blm.chosenbluffpnlid "
"WHERE s.showid IN ({ids});".format(ids=", ".join(str(v) for v in show_ids)))
cursor.execute(query)
chosen_results = cursor.fetchall()
query = ("SELECT s.showid AS show_id, "
"blm.correctbluffpnlid AS panelist_id, "
"p.panelist AS name, p.panelistslug AS slug "
"FROM ww_showbluffmap blm "
"JOIN ww_shows s ON s.showid = blm.showid "
"JOIN ww_panelists p ON "
"p.panelistid = blm.correctbluffpnlid "
"WHERE s.showid IN ({ids});".format(ids=", ".join(str(v) for v in show_ids)))
cursor.execute(query)
correct_results = cursor.fetchall()
cursor.close()
if not chosen_results or not correct_results:
return {}
for show in chosen_results:
if show.show_id not in bluff_info:
bluff_info[show.show_id] = {}
bluff_info[show.show_id]["chosen_panelist"] = {
"id": show.panelist_id,
"name": show.name,
"slug": show.slug if show.slug else slugify(show.name),
}
for show in correct_results:
if show.show_id not in bluff_info:
bluff_info[show.show_id] = {}
bluff_info[show.show_id]["correct_panelist"] = {
"id": show.panelist_id,
"name": show.name,
"slug": show.slug if show.slug else slugify(show.name),
}
return bluff_info
def retrieve_core_info_all(self) -> Dict[int, Dict[str, Any]]:
"""Returns a dictionary with core information for all shows.
:return: Dictionary containing host, scorekeeper, location,
description and notes. If show core information could not be
retrieved, an empty dictionary will be returned.
"""
cursor = self.database_connection.cursor(named_tuple=True)
query = ("SELECT s.showid AS show_id, s.showdate AS date, "
"s.bestof AS best_of, s.repeatshowid AS repeat_show_id, "
"l.locationid AS location_id, l.city, l.state, "
"l.venue, l.locationslug AS location_slug, h.hostid AS host_id, "
"h.host, h.hostslug AS host_slug, hm.guest as host_guest, "
"sk.scorekeeperid AS scorekeeper_id, sk.scorekeeper, "
"sk.scorekeeperslug AS scorekeeper_slug, "
"skm.guest AS scorekeeper_guest, "
"skm.description AS scorekeeper_description, "
"sd.showdescription AS show_description, "
"sn.shownotes AS show_notes "
"FROM ww_shows s "
"JOIN ww_showlocationmap lm ON lm.showid = s.showid "
"JOIN ww_locations l ON l.locationid = lm.locationid "
"JOIN ww_showhostmap hm ON hm.showid = s.showid "
"JOIN ww_hosts h ON h.hostid = hm.hostid "
"JOIN ww_showskmap skm ON skm.showid = s.showid "
"JOIN ww_scorekeepers sk ON "
"sk.scorekeeperid = skm.scorekeeperid "
"JOIN ww_showdescriptions sd ON sd.showid = s.showid "
"JOIN ww_shownotes sn ON sn.showid = s.showid "
"ORDER BY s.showdate ASC;")
cursor.execute(query)
results = cursor.fetchall()
cursor.close()
if not results:
return {}
shows = {}
for show in results:
location_info = {
"id": show.location_id,
"slug": show.location_slug,
"city": show.city,
"state": show.state,
"venue": show.venue,
}
if not show.location_slug:
location_info["slug"] = self.loc_util.slugify_location(location_id=show.location_id,
venue=show.venue,
city=show.city,
state=show.state)
host_info = {
"id": show.host_id,
"name": show.host,
"slug": show.host_slug if show.host_slug else slugify(show.host),
"guest": bool(show.host_guest),
}
scorekeeper_info = {
"id": show.scorekeeper_id,
"name": show.scorekeeper,
"slug": show.scorekeeper_slug if show.scorekeeper_slug else slugify(show.scorekeeper),
"guest": bool(show.scorekeeper_guest),
"description": show.scorekeeper_description if show.scorekeeper_description else None,
}
if show.show_description:
description = str(show.show_description).strip()
else:
description = None
if show.show_notes:
notes = str(show.show_notes).strip()
else:
notes = None
show_info = {
"id": show.show_id,
"date": show.date.isoformat(),
"best_of": bool(show.best_of),
"repeat_show": bool(show.repeat_show_id),
"original_show_id": None,
"original_show_date": None,
"description": description,
"notes": notes,
"location": location_info,
"host": host_info,
"scorekeeper": scorekeeper_info,
}
repeat_show_id = show.repeat_show_id
if repeat_show_id:
original_date = self.utility.convert_id_to_date(repeat_show_id)
show_info["original_show_id"] = repeat_show_id
show_info["original_show_date"] = original_date
else:
show_info.pop("original_show_id", None)
show_info.pop("original_show_date", None)
shows[show.show_id] = show_info
return(shows)
def retrieve_core_info_by_ids(self, show_ids: List[int]) -> Dict[int, Dict[str, Any]]:
"""Returns a dictionary with core information for the requested
show IDs.
:param show_ids: List of show IDs
:return: Dictionary containing host, scorekeeper, location,
description and notes. If show core information could not be
retrieved, an empty dictionary will be returned.
"""
for show_id in show_ids:
if not valid_int_id(show_id):
return {}
cursor = self.database_connection.cursor(named_tuple=True)
query = ("SELECT s.showid AS show_id, s.showdate AS date, "
"s.bestof AS best_of, s.repeatshowid AS repeat_show_id, "
"l.locationid AS location_id, l.city, l.state, "
"l.venue, l.locationslug AS location_slug, h.hostid AS host_id, "
"h.host, h.hostslug AS host_slug, hm.guest as host_guest, "
"sk.scorekeeperid AS scorekeeper_id, sk.scorekeeper, "
"sk.scorekeeperslug AS scorekeeper_slug, "
"skm.guest AS scorekeeper_guest, "
"skm.description AS scorekeeper_description, "
"sd.showdescription AS show_description, "
"sn.shownotes AS show_notes "
"FROM ww_shows s "
"JOIN ww_showlocationmap lm ON lm.showid = s.showid "
"JOIN ww_locations l ON l.locationid = lm.locationid "
"JOIN ww_showhostmap hm ON hm.showid = s.showid "
"JOIN ww_hosts h ON h.hostid = hm.hostid "
"JOIN ww_showskmap skm ON skm.showid = s.showid "
"JOIN ww_scorekeepers sk ON "
"sk.scorekeeperid = skm.scorekeeperid "
"JOIN ww_showdescriptions sd ON sd.showid = s.showid "
"JOIN ww_shownotes sn ON sn.showid = s.showid "
"WHERE s.showid IN ({ids}) "
"ORDER BY s.showdate ASC;".format(ids=", ".join(str(v) for v in show_ids)))
cursor.execute(query)
results = cursor.fetchall()
cursor.close()
if not results:
return {}
shows = {}
for show in results:
location_info = {
"id": show.location_id,
"slug": show.location_slug,
"city": show.city,
"state": show.state,
"venue": show.venue,
}
if not show.location_slug:
location_info["slug"] = self.loc_util.slugify_location(location_id=show.location_id,
venue=show.venue,
city=show.city,
state=show.state)
host_info = {
"id": show.host_id,
"name": show.host,
"slug": show.host_slug if show.host_slug else slugify(show.host),
"guest": bool(show.host_guest),
}
scorekeeper_info = {
"id": show.scorekeeper_id,
"name": show.scorekeeper,
"slug": show.scorekeeper_slug if show.scorekeeper_slug else slugify(show.scorekeeper),
"guest": bool(show.scorekeeper_guest),
"description": show.scorekeeper_description if show.scorekeeper_description else None,
}
if show.show_description:
description = str(show.show_description).strip()
else:
description = None
if show.show_notes:
notes = str(show.show_notes).strip()
else:
notes = None
show_info = {
"id": show.show_id,
"date": show.date.isoformat(),
"best_of": bool(show.best_of),
"repeat_show": bool(show.repeat_show_id),
"original_show_id": None,
"original_show_date": None,
"description": description,
"notes": notes,
"location": location_info,
"host": host_info,
"scorekeeper": scorekeeper_info,
}
repeat_show_id = show.repeat_show_id
if repeat_show_id:
original_date = self.utility.convert_id_to_date(repeat_show_id)
show_info["original_show_id"] = repeat_show_id
show_info["original_show_date"] = original_date
else:
show_info.pop("original_show_id", None)
show_info.pop("original_show_date", None)
shows[show.show_id] = show_info
return(shows)
def retrieve_guest_info_all(self) -> Dict[int, List[Dict[str, Any]]]:
"""Returns a list of dictionary objects containing Not My Job
guest information for all shows.
:return: Dictionary containing Not My Job guest information. If
Not My Job information could not be retrieved, an empty list
will be returned.
"""
cursor = self.database_connection.cursor(named_tuple=True)
query = ("SELECT s.showid AS show_id, gm.guestid AS guest_id, "
"g.guest AS name, g.guestslug AS slug, "
"gm.guestscore AS score, gm.exception AS score_exception "
"FROM ww_showguestmap gm "
"JOIN ww_guests g ON g.guestid = gm.guestid "
"JOIN ww_shows s ON s.showid = gm.showid "
"ORDER BY s.showdate ASC, gm.showguestmapid ASC;")
cursor.execute(query)
results = cursor.fetchall()
cursor.close()
if not results:
return []
shows = {}
for guest in results:
if guest.show_id not in shows:
shows[guest.show_id] = []
shows[guest.show_id].append({
"id": guest.guest_id,
"name": guest.name,
"slug": guest.slug if guest.slug else slugify(guest.name),
"score": guest.score if guest.score else None,
"score_exception": bool(guest.score_exception),
})
return shows
def retrieve_guest_info_by_ids(self, show_ids: List[int]) -> Dict[int, List[Dict[str, Any]]]:
"""Returns a list of dictionary objects containing Not My Job
guest information for the requested show IDs.
:param show_ids: List of show IDs
:return: Dictionary containing Not My Job guest information. If
Not My Job information could not be retrieved, an empty list
will be returned.
"""
for show_id in show_ids:
if not valid_int_id(show_id):
return {}
cursor = self.database_connection.cursor(named_tuple=True)
query = ("SELECT s.showid AS show_id, gm.guestid AS guest_id, "
"g.guest AS name, g.guestslug AS slug, "
"gm.guestscore AS score, gm.exception AS score_exception "
"FROM ww_showguestmap gm "
"JOIN ww_guests g ON g.guestid = gm.guestid "
"JOIN ww_shows s ON s.showid = gm.showid "
"WHERE gm.showid IN ({ids}) "
"ORDER BY s.showdate ASC, "
"gm.showguestmapid ASC;".format(ids=", ".join(str(v) for v in show_ids)))
cursor.execute(query)
results = cursor.fetchall()
cursor.close()
if not results:
return []
shows = {}
for guest in results:
if guest.show_id not in shows:
shows[guest.show_id] = []
shows[guest.show_id].append({
"id": guest.guest_id,
"name": guest.name,
"slug": guest.slug if guest.slug else slugify(guest.name),
"score": guest.score if guest.score else None,
"score_exception": bool(guest.score_exception),
})
return shows
def retrieve_panelist_info_all(self) -> Dict[int, List[Dict[str, Any]]]:
"""Returns a list of dictionary objects containing panelist
information for all shows.
:return: List of panelists with corresponding scores and
ranking information. If panelist information could not be
retrieved, an empty list will be returned.
"""
cursor = self.database_connection.cursor(named_tuple=True)
query = ("SELECT s.showid AS show_id, pm.panelistid AS panelist_id, "
"p.panelist AS name, p.panelistslug AS slug, "
"pm.panelistlrndstart AS start, "
"pm.panelistlrndcorrect AS correct, "
"pm.panelistscore AS score, pm.showpnlrank AS rank "
"FROM ww_showpnlmap pm "
"JOIN ww_panelists p ON p.panelistid = pm.panelistid "
"JOIN ww_shows s ON s.showid = pm.showid "
"ORDER by s.showdate ASC, pm.panelistscore DESC, "
"pm.showpnlmapid ASC;")
cursor.execute(query)
results = cursor.fetchall()
cursor.close()
if not results:
return {}
panelists = {}
for panelist in results:
if panelist.show_id not in panelists:
panelists[panelist.show_id] = []
panelists[panelist.show_id].append({
"id": panelist.panelist_id,
"name": panelist.name,
"slug": panelist.slug if panelist.slug else slugify(panelist.name),
"lightning_round_start": panelist.start if panelist.start else None,
"lightning_round_correct": panelist.correct if panelist.correct else None,
"score": panelist.score if panelist.score else None,
"rank": panelist.rank if panelist.rank else None,
})
return panelists
def retrieve_panelist_info_by_ids(self, show_ids: List[int]) -> Dict[int, List[Dict[str, Any]]]:
"""Returns a list of dictionary objects containing panelist
information for the requested show IDs.
:param show_ids: List of show IDs
:return: List of panelists with corresponding scores and
ranking information. If panelist information could not be
retrieved, an empty list will be returned.
"""
for show_id in show_ids:
if not valid_int_id(show_id):
return {}
cursor = self.database_connection.cursor(named_tuple=True)
query = ("SELECT s.showid AS show_id, pm.panelistid AS panelist_id, "
"p.panelist AS name, p.panelistslug AS slug, "
"pm.panelistlrndstart AS start, "
"pm.panelistlrndcorrect AS correct, "
"pm.panelistscore AS score, pm.showpnlrank AS rank "
"FROM ww_showpnlmap pm "
"JOIN ww_panelists p ON p.panelistid = pm.panelistid "
"JOIN ww_shows s ON s.showid = pm.showid "
"WHERE pm.showid IN ({ids}) "
"ORDER by s.showdate ASC, pm.panelistscore DESC, "
"pm.showpnlmapid ASC;".format(ids=", ".join(str(v) for v in show_ids)))
cursor.execute(query)
results = cursor.fetchall()
cursor.close()
if not results:
return {}
panelists = {}
for panelist in results:
if panelist.show_id not in panelists:
panelists[panelist.show_id] = []
panelists[panelist.show_id].append({
"id": panelist.panelist_id,
"name": panelist.name,
"slug": panelist.slug if panelist.slug else slugify(panelist.name),
"lightning_round_start": panelist.start if panelist.start else None,
"lightning_round_correct": panelist.correct if panelist.correct else None,
"score": panelist.score if panelist.score else None,
"rank": panelist.rank if panelist.rank else None,
})
return panelists
| 41.237077 | 102 | 0.557016 | 2,608 | 23,134 | 4.785276 | 0.085506 | 0.031731 | 0.012821 | 0.014423 | 0.905689 | 0.894872 | 0.892788 | 0.890865 | 0.88133 | 0.88133 | 0 | 0.000873 | 0.356488 | 23,134 | 560 | 103 | 41.310714 | 0.837442 | 0.115458 | 0 | 0.867647 | 0 | 0 | 0.255079 | 0.014276 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022059 | false | 0 | 0.017157 | 0 | 0.085784 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e8f8adb51afb6e85d27faa2fd9c4558ef3295695 | 45,358 | py | Python | apicurioregistryclient/api/artifact_rules_api.py | wtrocki/apicurio-registry-client-sdk-python | b303d7bfdb21bbc96353b259cdbc1bfb42a68c23 | [
"Apache-2.0"
] | null | null | null | apicurioregistryclient/api/artifact_rules_api.py | wtrocki/apicurio-registry-client-sdk-python | b303d7bfdb21bbc96353b259cdbc1bfb42a68c23 | [
"Apache-2.0"
] | null | null | null | apicurioregistryclient/api/artifact_rules_api.py | wtrocki/apicurio-registry-client-sdk-python | b303d7bfdb21bbc96353b259cdbc1bfb42a68c23 | [
"Apache-2.0"
] | null | null | null | """
Apicurio Registry API [v2]
Apicurio Registry is a datastore for standard event schemas and API designs. Apicurio Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. The Apicurio Registry REST API enables client applications to manage the artifacts in the registry. This API provides create, read, update, and delete operations for schema and API artifacts, rules, versions, and metadata. The supported artifact types include: - Apache Avro schema - AsyncAPI specification - Google protocol buffers - GraphQL schema - JSON Schema - Kafka Connect schema - OpenAPI specification - Web Services Description Language - XML Schema Definition **Important**: The Apicurio Registry REST API is available from `https://MY-REGISTRY-URL/apis/registry/v2` by default. Therefore you must prefix all API operation paths with `../apis/registry/v2` in this case. For example: `../apis/registry/v2/ids/globalIds/{globalId}`. # noqa: E501
The version of the OpenAPI document: 2.2.0.Final
Contact: apicurio@lists.jboss.org
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from apicurioregistryclient.api_client import ApiClient, Endpoint as _Endpoint
from apicurioregistryclient.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_types
)
from apicurioregistryclient.model.error import Error
from apicurioregistryclient.model.rule import Rule
from apicurioregistryclient.model.rule_type import RuleType
from apicurioregistryclient.model.rule_violation_error import RuleViolationError
class ArtifactRulesApi(object):
"""NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
self.create_artifact_rule_endpoint = _Endpoint(
settings={
'response_type': None,
'auth': [],
'endpoint_path': '/groups/{groupId}/artifacts/{artifactId}/rules',
'operation_id': 'create_artifact_rule',
'http_method': 'POST',
'servers': None,
},
params_map={
'all': [
'group_id',
'artifact_id',
'rule',
],
'required': [
'group_id',
'artifact_id',
'rule',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'group_id':
(str,),
'artifact_id':
(str,),
'rule':
(Rule,),
},
'attribute_map': {
'group_id': 'groupId',
'artifact_id': 'artifactId',
},
'location_map': {
'group_id': 'path',
'artifact_id': 'path',
'rule': 'body',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [
'application/json'
]
},
api_client=api_client
)
self.delete_artifact_rule_endpoint = _Endpoint(
settings={
'response_type': None,
'auth': [],
'endpoint_path': '/groups/{groupId}/artifacts/{artifactId}/rules/{rule}',
'operation_id': 'delete_artifact_rule',
'http_method': 'DELETE',
'servers': None,
},
params_map={
'all': [
'group_id',
'artifact_id',
'rule',
],
'required': [
'group_id',
'artifact_id',
'rule',
],
'nullable': [
],
'enum': [
'rule',
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
('rule',): {
"VALIDITY": "VALIDITY",
"COMPATIBILITY": "COMPATIBILITY"
},
},
'openapi_types': {
'group_id':
(str,),
'artifact_id':
(str,),
'rule':
(str,),
},
'attribute_map': {
'group_id': 'groupId',
'artifact_id': 'artifactId',
'rule': 'rule',
},
'location_map': {
'group_id': 'path',
'artifact_id': 'path',
'rule': 'path',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client
)
self.delete_artifact_rules_endpoint = _Endpoint(
settings={
'response_type': None,
'auth': [],
'endpoint_path': '/groups/{groupId}/artifacts/{artifactId}/rules',
'operation_id': 'delete_artifact_rules',
'http_method': 'DELETE',
'servers': None,
},
params_map={
'all': [
'group_id',
'artifact_id',
],
'required': [
'group_id',
'artifact_id',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'group_id':
(str,),
'artifact_id':
(str,),
},
'attribute_map': {
'group_id': 'groupId',
'artifact_id': 'artifactId',
},
'location_map': {
'group_id': 'path',
'artifact_id': 'path',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client
)
self.get_artifact_rule_config_endpoint = _Endpoint(
settings={
'response_type': (Rule,),
'auth': [],
'endpoint_path': '/groups/{groupId}/artifacts/{artifactId}/rules/{rule}',
'operation_id': 'get_artifact_rule_config',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'group_id',
'artifact_id',
'rule',
],
'required': [
'group_id',
'artifact_id',
'rule',
],
'nullable': [
],
'enum': [
'rule',
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
('rule',): {
"VALIDITY": "VALIDITY",
"COMPATIBILITY": "COMPATIBILITY"
},
},
'openapi_types': {
'group_id':
(str,),
'artifact_id':
(str,),
'rule':
(str,),
},
'attribute_map': {
'group_id': 'groupId',
'artifact_id': 'artifactId',
'rule': 'rule',
},
'location_map': {
'group_id': 'path',
'artifact_id': 'path',
'rule': 'path',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client
)
self.list_artifact_rules_endpoint = _Endpoint(
settings={
'response_type': ([RuleType],),
'auth': [],
'endpoint_path': '/groups/{groupId}/artifacts/{artifactId}/rules',
'operation_id': 'list_artifact_rules',
'http_method': 'GET',
'servers': None,
},
params_map={
'all': [
'group_id',
'artifact_id',
],
'required': [
'group_id',
'artifact_id',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'group_id':
(str,),
'artifact_id':
(str,),
},
'attribute_map': {
'group_id': 'groupId',
'artifact_id': 'artifactId',
},
'location_map': {
'group_id': 'path',
'artifact_id': 'path',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client
)
self.test_update_artifact_endpoint = _Endpoint(
settings={
'response_type': None,
'auth': [],
'endpoint_path': '/groups/{groupId}/artifacts/{artifactId}/test',
'operation_id': 'test_update_artifact',
'http_method': 'PUT',
'servers': None,
},
params_map={
'all': [
'group_id',
'artifact_id',
'body',
],
'required': [
'group_id',
'artifact_id',
'body',
],
'nullable': [
],
'enum': [
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
},
'openapi_types': {
'group_id':
(str,),
'artifact_id':
(str,),
'body':
(file_type,),
},
'attribute_map': {
'group_id': 'groupId',
'artifact_id': 'artifactId',
},
'location_map': {
'group_id': 'path',
'artifact_id': 'path',
'body': 'body',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [],
},
api_client=api_client
)
self.update_artifact_rule_config_endpoint = _Endpoint(
settings={
'response_type': (Rule,),
'auth': [],
'endpoint_path': '/groups/{groupId}/artifacts/{artifactId}/rules/{rule}',
'operation_id': 'update_artifact_rule_config',
'http_method': 'PUT',
'servers': None,
},
params_map={
'all': [
'group_id',
'artifact_id',
'rule',
'rule2',
],
'required': [
'group_id',
'artifact_id',
'rule',
'rule2',
],
'nullable': [
],
'enum': [
'rule',
],
'validation': [
]
},
root_map={
'validations': {
},
'allowed_values': {
('rule',): {
"VALIDITY": "VALIDITY",
"COMPATIBILITY": "COMPATIBILITY"
},
},
'openapi_types': {
'group_id':
(str,),
'artifact_id':
(str,),
'rule':
(str,),
'rule2':
(Rule,),
},
'attribute_map': {
'group_id': 'groupId',
'artifact_id': 'artifactId',
'rule': 'rule',
},
'location_map': {
'group_id': 'path',
'artifact_id': 'path',
'rule': 'path',
'rule2': 'body',
},
'collection_format_map': {
}
},
headers_map={
'accept': [
'application/json'
],
'content_type': [
'application/json'
]
},
api_client=api_client
)
def create_artifact_rule(
self,
group_id,
artifact_id,
rule,
**kwargs
):
"""Create artifact rule # noqa: E501
Adds a rule to the list of rules that get applied to the artifact when adding new versions. All configured rules must pass to successfully add a new artifact version. This operation can fail for the following reasons: * No artifact with this `artifactId` exists (HTTP error `404`) * Rule (named in the request body) is unknown (HTTP error `400`) * A server error occurred (HTTP error `500`) # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_artifact_rule(group_id, artifact_id, rule, async_req=True)
>>> result = thread.get()
Args:
group_id (str): The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts.
artifact_id (str): The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier.
rule (Rule):
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (int/float/tuple): timeout setting for this request. If
one number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_spec_property_naming (bool): True if the variable names in the input data
are serialized names, as specified in the OpenAPI document.
False if the variable names in the input data
are pythonic names, e.g. snake case (default)
_content_type (str/None): force body content-type.
Default is None and content-type will be predicted by allowed
content-types and body.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
None
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_spec_property_naming'] = kwargs.get(
'_spec_property_naming', False
)
kwargs['_content_type'] = kwargs.get(
'_content_type')
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['group_id'] = \
group_id
kwargs['artifact_id'] = \
artifact_id
kwargs['rule'] = \
rule
return self.create_artifact_rule_endpoint.call_with_http_info(**kwargs)
def delete_artifact_rule(
self,
group_id,
artifact_id,
rule,
**kwargs
):
"""Delete artifact rule # noqa: E501
Deletes a rule from the artifact. This results in the rule no longer applying for this artifact. If this is the only rule configured for the artifact, this is the same as deleting **all** rules, and the globally configured rules now apply to this artifact. This operation can fail for the following reasons: * No artifact with this `artifactId` exists (HTTP error `404`) * No rule with this name/type is configured for this artifact (HTTP error `404`) * Invalid rule type (HTTP error `400`) * A server error occurred (HTTP error `500`) # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_artifact_rule(group_id, artifact_id, rule, async_req=True)
>>> result = thread.get()
Args:
group_id (str): The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts.
artifact_id (str): The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier.
rule (str): The unique name/type of a rule.
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (int/float/tuple): timeout setting for this request. If
one number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_spec_property_naming (bool): True if the variable names in the input data
are serialized names, as specified in the OpenAPI document.
False if the variable names in the input data
are pythonic names, e.g. snake case (default)
_content_type (str/None): force body content-type.
Default is None and content-type will be predicted by allowed
content-types and body.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
None
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_spec_property_naming'] = kwargs.get(
'_spec_property_naming', False
)
kwargs['_content_type'] = kwargs.get(
'_content_type')
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['group_id'] = \
group_id
kwargs['artifact_id'] = \
artifact_id
kwargs['rule'] = \
rule
return self.delete_artifact_rule_endpoint.call_with_http_info(**kwargs)
def delete_artifact_rules(
self,
group_id,
artifact_id,
**kwargs
):
"""Delete artifact rules # noqa: E501
Deletes all of the rules configured for the artifact. After this is done, the global rules apply to the artifact again. This operation can fail for the following reasons: * No artifact with this `artifactId` exists (HTTP error `404`) * A server error occurred (HTTP error `500`) # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.delete_artifact_rules(group_id, artifact_id, async_req=True)
>>> result = thread.get()
Args:
group_id (str): The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts.
artifact_id (str): The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier.
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (int/float/tuple): timeout setting for this request. If
one number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_spec_property_naming (bool): True if the variable names in the input data
are serialized names, as specified in the OpenAPI document.
False if the variable names in the input data
are pythonic names, e.g. snake case (default)
_content_type (str/None): force body content-type.
Default is None and content-type will be predicted by allowed
content-types and body.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
None
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_spec_property_naming'] = kwargs.get(
'_spec_property_naming', False
)
kwargs['_content_type'] = kwargs.get(
'_content_type')
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['group_id'] = \
group_id
kwargs['artifact_id'] = \
artifact_id
return self.delete_artifact_rules_endpoint.call_with_http_info(**kwargs)
def get_artifact_rule_config(
self,
group_id,
artifact_id,
rule,
**kwargs
):
"""Get artifact rule configuration # noqa: E501
Returns information about a single rule configured for an artifact. This is useful when you want to know what the current configuration settings are for a specific rule. This operation can fail for the following reasons: * No artifact with this `artifactId` exists (HTTP error `404`) * No rule with this name/type is configured for this artifact (HTTP error `404`) * Invalid rule type (HTTP error `400`) * A server error occurred (HTTP error `500`) # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_artifact_rule_config(group_id, artifact_id, rule, async_req=True)
>>> result = thread.get()
Args:
group_id (str): The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts.
artifact_id (str): The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier.
rule (str): The unique name/type of a rule.
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (int/float/tuple): timeout setting for this request. If
one number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_spec_property_naming (bool): True if the variable names in the input data
are serialized names, as specified in the OpenAPI document.
False if the variable names in the input data
are pythonic names, e.g. snake case (default)
_content_type (str/None): force body content-type.
Default is None and content-type will be predicted by allowed
content-types and body.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
Rule
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_spec_property_naming'] = kwargs.get(
'_spec_property_naming', False
)
kwargs['_content_type'] = kwargs.get(
'_content_type')
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['group_id'] = \
group_id
kwargs['artifact_id'] = \
artifact_id
kwargs['rule'] = \
rule
return self.get_artifact_rule_config_endpoint.call_with_http_info(**kwargs)
def list_artifact_rules(
self,
group_id,
artifact_id,
**kwargs
):
"""List artifact rules # noqa: E501
Returns a list of all rules configured for the artifact. The set of rules determines how the content of an artifact can evolve over time. If no rules are configured for an artifact, the set of globally configured rules are used. If no global rules are defined, there are no restrictions on content evolution. This operation can fail for the following reasons: * No artifact with this `artifactId` exists (HTTP error `404`) * A server error occurred (HTTP error `500`) # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.list_artifact_rules(group_id, artifact_id, async_req=True)
>>> result = thread.get()
Args:
group_id (str): The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts.
artifact_id (str): The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier.
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (int/float/tuple): timeout setting for this request. If
one number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_spec_property_naming (bool): True if the variable names in the input data
are serialized names, as specified in the OpenAPI document.
False if the variable names in the input data
are pythonic names, e.g. snake case (default)
_content_type (str/None): force body content-type.
Default is None and content-type will be predicted by allowed
content-types and body.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
[RuleType]
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_spec_property_naming'] = kwargs.get(
'_spec_property_naming', False
)
kwargs['_content_type'] = kwargs.get(
'_content_type')
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['group_id'] = \
group_id
kwargs['artifact_id'] = \
artifact_id
return self.list_artifact_rules_endpoint.call_with_http_info(**kwargs)
def test_update_artifact(
self,
group_id,
artifact_id,
body,
**kwargs
):
"""Test update artifact # noqa: E501
Tests whether an update to the artifact's content *would* succeed for the provided content. Ultimately, this applies any rules configured for the artifact against the given content to determine whether the rules would pass or fail, but without actually updating the artifact content. The body of the request should be the raw content of the artifact. This is typically in JSON format for *most* of the supported types, but may be in another format for a few (for example, `PROTOBUF`). The update could fail for a number of reasons including: * Provided content (request body) was empty (HTTP error `400`) * No artifact with the `artifactId` exists (HTTP error `404`) * The new content violates one of the rules configured for the artifact (HTTP error `409`) * The provided artifact type is not recognized (HTTP error `404`) * A server error occurred (HTTP error `500`) When successful, this operation simply returns a *No Content* response. This response indicates that the content is valid against the configured content rules for the artifact (or the global rules if no artifact rules are enabled). # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.test_update_artifact(group_id, artifact_id, body, async_req=True)
>>> result = thread.get()
Args:
group_id (str): The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts.
artifact_id (str): The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier.
body (file_type): The content of the artifact being tested. This is often, but not always, JSON data representing one of the supported artifact types: * Avro (`AVRO`) * Protobuf (`PROTOBUF`) * JSON Schema (`JSON`) * Kafka Connect (`KCONNECT`) * OpenAPI (`OPENAPI`) * AsyncAPI (`ASYNCAPI`) * GraphQL (`GRAPHQL`) * Web Services Description Language (`WSDL`) * XML Schema (`XSD`)
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (int/float/tuple): timeout setting for this request. If
one number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_spec_property_naming (bool): True if the variable names in the input data
are serialized names, as specified in the OpenAPI document.
False if the variable names in the input data
are pythonic names, e.g. snake case (default)
_content_type (str/None): force body content-type.
Default is None and content-type will be predicted by allowed
content-types and body.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
None
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_spec_property_naming'] = kwargs.get(
'_spec_property_naming', False
)
kwargs['_content_type'] = kwargs.get(
'_content_type')
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['group_id'] = \
group_id
kwargs['artifact_id'] = \
artifact_id
kwargs['body'] = \
body
return self.test_update_artifact_endpoint.call_with_http_info(**kwargs)
def update_artifact_rule_config(
self,
group_id,
artifact_id,
rule,
rule2,
**kwargs
):
"""Update artifact rule configuration # noqa: E501
Updates the configuration of a single rule for the artifact. The configuration data is specific to each rule type, so the configuration of the `COMPATIBILITY` rule is in a different format from the configuration of the `VALIDITY` rule. This operation can fail for the following reasons: * No artifact with this `artifactId` exists (HTTP error `404`) * No rule with this name/type is configured for this artifact (HTTP error `404`) * Invalid rule type (HTTP error `400`) * A server error occurred (HTTP error `500`) # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_artifact_rule_config(group_id, artifact_id, rule, rule2, async_req=True)
>>> result = thread.get()
Args:
group_id (str): The artifact group ID. Must be a string provided by the client, representing the name of the grouping of artifacts.
artifact_id (str): The artifact ID. Can be a string (client-provided) or UUID (server-generated), representing the unique artifact identifier.
rule (str): The unique name/type of a rule.
rule2 (Rule):
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (int/float/tuple): timeout setting for this request. If
one number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_spec_property_naming (bool): True if the variable names in the input data
are serialized names, as specified in the OpenAPI document.
False if the variable names in the input data
are pythonic names, e.g. snake case (default)
_content_type (str/None): force body content-type.
Default is None and content-type will be predicted by allowed
content-types and body.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
async_req (bool): execute request asynchronously
Returns:
Rule
If the method is called asynchronously, returns the request
thread.
"""
kwargs['async_req'] = kwargs.get(
'async_req', False
)
kwargs['_return_http_data_only'] = kwargs.get(
'_return_http_data_only', True
)
kwargs['_preload_content'] = kwargs.get(
'_preload_content', True
)
kwargs['_request_timeout'] = kwargs.get(
'_request_timeout', None
)
kwargs['_check_input_type'] = kwargs.get(
'_check_input_type', True
)
kwargs['_check_return_type'] = kwargs.get(
'_check_return_type', True
)
kwargs['_spec_property_naming'] = kwargs.get(
'_spec_property_naming', False
)
kwargs['_content_type'] = kwargs.get(
'_content_type')
kwargs['_host_index'] = kwargs.get('_host_index')
kwargs['group_id'] = \
group_id
kwargs['artifact_id'] = \
artifact_id
kwargs['rule'] = \
rule
kwargs['rule2'] = \
rule2
return self.update_artifact_rule_config_endpoint.call_with_http_info(**kwargs)
| 41.959297 | 1,281 | 0.528793 | 4,607 | 45,358 | 5.01628 | 0.08053 | 0.023323 | 0.018174 | 0.020597 | 0.820251 | 0.80238 | 0.799308 | 0.791173 | 0.785591 | 0.769667 | 0 | 0.005378 | 0.389193 | 45,358 | 1,080 | 1,282 | 41.998148 | 0.828767 | 0.453591 | 0 | 0.719834 | 0 | 0 | 0.237804 | 0.051908 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011096 | false | 0 | 0.011096 | 0 | 0.033287 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
331c361010660d06116e3df7265cafc2427e324f | 14,809 | py | Python | accelbyte_py_sdk/api/platform/wrappers/_payment.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | null | null | null | accelbyte_py_sdk/api/platform/wrappers/_payment.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | 1 | 2021-10-13T03:46:58.000Z | 2021-10-13T03:46:58.000Z | accelbyte_py_sdk/api/platform/wrappers/_payment.py | AccelByte/accelbyte-python-sdk | dcd311fad111c59da828278975340fb92e0f26f7 | [
"MIT"
] | null | null | null | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template file: justice_py_sdk_codegen/__main__.py
# pylint: disable=duplicate-code
# pylint: disable=line-too-long
# pylint: disable=missing-function-docstring
# pylint: disable=missing-function-docstring
# pylint: disable=missing-module-docstring
# pylint: disable=too-many-arguments
# pylint: disable=too-many-branches
# pylint: disable=too-many-instance-attributes
# pylint: disable=too-many-lines
# pylint: disable=too-many-locals
# pylint: disable=too-many-public-methods
# pylint: disable=too-many-return-statements
# pylint: disable=too-many-statements
# pylint: disable=unused-import
from typing import Any, Dict, List, Optional, Tuple, Union
from ....core import HeaderStr
from ....core import get_namespace as get_services_namespace
from ....core import run_request
from ....core import run_request_async
from ....core import same_doc_as
from ..models import ErrorEntity
from ..models import NotificationProcessResult
from ..models import PaymentNotificationPagingSlicedResult
from ..models import PaymentOrderChargeRequest
from ..models import PaymentOrderChargeStatus
from ..models import PaymentOrderCreate
from ..models import PaymentOrderInfo
from ..models import PaymentOrderNotifySimulation
from ..models import PaymentOrderPagingSlicedResult
from ..models import PaymentOrderRefund
from ..models import ValidationErrorEntity
from ..operations.payment import ChargePaymentOrder
from ..operations.payment import CreateUserPaymentOrder
from ..operations.payment import GetPaymentOrder
from ..operations.payment import GetPaymentOrderChargeStatus
from ..operations.payment import ListExtOrderNoByExtTxId
from ..operations.payment import QueryPaymentNotifications
from ..operations.payment import QueryPaymentNotificationsNotificationSourceEnum, QueryPaymentNotificationsStatusEnum
from ..operations.payment import QueryPaymentOrders
from ..operations.payment import QueryPaymentOrdersChannelEnum, QueryPaymentOrdersStatusEnum
from ..operations.payment import RefundUserPaymentOrder
from ..operations.payment import SimulatePaymentOrderNotification
from ..models import NotificationProcessResultStatusEnum
from ..models import PaymentOrderChargeRequestPaymentProviderEnum
from ..models import PaymentOrderChargeStatusStatusEnum
from ..models import PaymentOrderCreateItemTypeEnum
from ..models import PaymentOrderInfoChannelEnum, PaymentOrderInfoItemTypeEnum, PaymentOrderInfoPaymentProviderEnum, PaymentOrderInfoStatusEnum
from ..models import PaymentOrderNotifySimulationNotifyTypeEnum, PaymentOrderNotifySimulationPaymentProviderEnum
@same_doc_as(ChargePaymentOrder)
def charge_payment_order(payment_order_no: str, body: Optional[PaymentOrderChargeRequest] = None, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs):
if namespace is None:
namespace, error = get_services_namespace()
if error:
return None, error
request = ChargePaymentOrder.create(
payment_order_no=payment_order_no,
body=body,
namespace=namespace,
)
return run_request(request, additional_headers=x_additional_headers, **kwargs)
@same_doc_as(ChargePaymentOrder)
async def charge_payment_order_async(payment_order_no: str, body: Optional[PaymentOrderChargeRequest] = None, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs):
if namespace is None:
namespace, error = get_services_namespace()
if error:
return None, error
request = ChargePaymentOrder.create(
payment_order_no=payment_order_no,
body=body,
namespace=namespace,
)
return await run_request_async(request, additional_headers=x_additional_headers, **kwargs)
@same_doc_as(CreateUserPaymentOrder)
def create_user_payment_order(user_id: str, body: Optional[PaymentOrderCreate] = None, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs):
if namespace is None:
namespace, error = get_services_namespace()
if error:
return None, error
request = CreateUserPaymentOrder.create(
user_id=user_id,
body=body,
namespace=namespace,
)
return run_request(request, additional_headers=x_additional_headers, **kwargs)
@same_doc_as(CreateUserPaymentOrder)
async def create_user_payment_order_async(user_id: str, body: Optional[PaymentOrderCreate] = None, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs):
if namespace is None:
namespace, error = get_services_namespace()
if error:
return None, error
request = CreateUserPaymentOrder.create(
user_id=user_id,
body=body,
namespace=namespace,
)
return await run_request_async(request, additional_headers=x_additional_headers, **kwargs)
@same_doc_as(GetPaymentOrder)
def get_payment_order(payment_order_no: str, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs):
if namespace is None:
namespace, error = get_services_namespace()
if error:
return None, error
request = GetPaymentOrder.create(
payment_order_no=payment_order_no,
namespace=namespace,
)
return run_request(request, additional_headers=x_additional_headers, **kwargs)
@same_doc_as(GetPaymentOrder)
async def get_payment_order_async(payment_order_no: str, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs):
if namespace is None:
namespace, error = get_services_namespace()
if error:
return None, error
request = GetPaymentOrder.create(
payment_order_no=payment_order_no,
namespace=namespace,
)
return await run_request_async(request, additional_headers=x_additional_headers, **kwargs)
@same_doc_as(GetPaymentOrderChargeStatus)
def get_payment_order_charge_status(payment_order_no: str, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs):
if namespace is None:
namespace, error = get_services_namespace()
if error:
return None, error
request = GetPaymentOrderChargeStatus.create(
payment_order_no=payment_order_no,
namespace=namespace,
)
return run_request(request, additional_headers=x_additional_headers, **kwargs)
@same_doc_as(GetPaymentOrderChargeStatus)
async def get_payment_order_charge_status_async(payment_order_no: str, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs):
if namespace is None:
namespace, error = get_services_namespace()
if error:
return None, error
request = GetPaymentOrderChargeStatus.create(
payment_order_no=payment_order_no,
namespace=namespace,
)
return await run_request_async(request, additional_headers=x_additional_headers, **kwargs)
@same_doc_as(ListExtOrderNoByExtTxId)
def list_ext_order_no_by_ext_tx_id(ext_tx_id: str, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs):
if namespace is None:
namespace, error = get_services_namespace()
if error:
return None, error
request = ListExtOrderNoByExtTxId.create(
ext_tx_id=ext_tx_id,
namespace=namespace,
)
return run_request(request, additional_headers=x_additional_headers, **kwargs)
@same_doc_as(ListExtOrderNoByExtTxId)
async def list_ext_order_no_by_ext_tx_id_async(ext_tx_id: str, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs):
if namespace is None:
namespace, error = get_services_namespace()
if error:
return None, error
request = ListExtOrderNoByExtTxId.create(
ext_tx_id=ext_tx_id,
namespace=namespace,
)
return await run_request_async(request, additional_headers=x_additional_headers, **kwargs)
@same_doc_as(QueryPaymentNotifications)
def query_payment_notifications(end_date: Optional[str] = None, external_id: Optional[str] = None, limit: Optional[int] = None, notification_source: Optional[Union[str, QueryPaymentNotificationsNotificationSourceEnum]] = None, notification_type: Optional[str] = None, offset: Optional[int] = None, payment_order_no: Optional[str] = None, start_date: Optional[str] = None, status: Optional[Union[str, QueryPaymentNotificationsStatusEnum]] = None, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs):
if namespace is None:
namespace, error = get_services_namespace()
if error:
return None, error
request = QueryPaymentNotifications.create(
end_date=end_date,
external_id=external_id,
limit=limit,
notification_source=notification_source,
notification_type=notification_type,
offset=offset,
payment_order_no=payment_order_no,
start_date=start_date,
status=status,
namespace=namespace,
)
return run_request(request, additional_headers=x_additional_headers, **kwargs)
@same_doc_as(QueryPaymentNotifications)
async def query_payment_notifications_async(end_date: Optional[str] = None, external_id: Optional[str] = None, limit: Optional[int] = None, notification_source: Optional[Union[str, QueryPaymentNotificationsNotificationSourceEnum]] = None, notification_type: Optional[str] = None, offset: Optional[int] = None, payment_order_no: Optional[str] = None, start_date: Optional[str] = None, status: Optional[Union[str, QueryPaymentNotificationsStatusEnum]] = None, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs):
if namespace is None:
namespace, error = get_services_namespace()
if error:
return None, error
request = QueryPaymentNotifications.create(
end_date=end_date,
external_id=external_id,
limit=limit,
notification_source=notification_source,
notification_type=notification_type,
offset=offset,
payment_order_no=payment_order_no,
start_date=start_date,
status=status,
namespace=namespace,
)
return await run_request_async(request, additional_headers=x_additional_headers, **kwargs)
@same_doc_as(QueryPaymentOrders)
def query_payment_orders(channel: Optional[Union[str, QueryPaymentOrdersChannelEnum]] = None, ext_tx_id: Optional[str] = None, limit: Optional[int] = None, offset: Optional[int] = None, status: Optional[Union[str, QueryPaymentOrdersStatusEnum]] = None, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs):
if namespace is None:
namespace, error = get_services_namespace()
if error:
return None, error
request = QueryPaymentOrders.create(
channel=channel,
ext_tx_id=ext_tx_id,
limit=limit,
offset=offset,
status=status,
namespace=namespace,
)
return run_request(request, additional_headers=x_additional_headers, **kwargs)
@same_doc_as(QueryPaymentOrders)
async def query_payment_orders_async(channel: Optional[Union[str, QueryPaymentOrdersChannelEnum]] = None, ext_tx_id: Optional[str] = None, limit: Optional[int] = None, offset: Optional[int] = None, status: Optional[Union[str, QueryPaymentOrdersStatusEnum]] = None, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs):
if namespace is None:
namespace, error = get_services_namespace()
if error:
return None, error
request = QueryPaymentOrders.create(
channel=channel,
ext_tx_id=ext_tx_id,
limit=limit,
offset=offset,
status=status,
namespace=namespace,
)
return await run_request_async(request, additional_headers=x_additional_headers, **kwargs)
@same_doc_as(RefundUserPaymentOrder)
def refund_user_payment_order(payment_order_no: str, user_id: str, body: Optional[PaymentOrderRefund] = None, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs):
if namespace is None:
namespace, error = get_services_namespace()
if error:
return None, error
request = RefundUserPaymentOrder.create(
payment_order_no=payment_order_no,
user_id=user_id,
body=body,
namespace=namespace,
)
return run_request(request, additional_headers=x_additional_headers, **kwargs)
@same_doc_as(RefundUserPaymentOrder)
async def refund_user_payment_order_async(payment_order_no: str, user_id: str, body: Optional[PaymentOrderRefund] = None, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs):
if namespace is None:
namespace, error = get_services_namespace()
if error:
return None, error
request = RefundUserPaymentOrder.create(
payment_order_no=payment_order_no,
user_id=user_id,
body=body,
namespace=namespace,
)
return await run_request_async(request, additional_headers=x_additional_headers, **kwargs)
@same_doc_as(SimulatePaymentOrderNotification)
def simulate_payment_order_notification(payment_order_no: str, body: Optional[PaymentOrderNotifySimulation] = None, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs):
if namespace is None:
namespace, error = get_services_namespace()
if error:
return None, error
request = SimulatePaymentOrderNotification.create(
payment_order_no=payment_order_no,
body=body,
namespace=namespace,
)
return run_request(request, additional_headers=x_additional_headers, **kwargs)
@same_doc_as(SimulatePaymentOrderNotification)
async def simulate_payment_order_notification_async(payment_order_no: str, body: Optional[PaymentOrderNotifySimulation] = None, namespace: Optional[str] = None, x_additional_headers: Optional[Dict[str, str]] = None, **kwargs):
if namespace is None:
namespace, error = get_services_namespace()
if error:
return None, error
request = SimulatePaymentOrderNotification.create(
payment_order_no=payment_order_no,
body=body,
namespace=namespace,
)
return await run_request_async(request, additional_headers=x_additional_headers, **kwargs)
| 45.012158 | 556 | 0.746506 | 1,666 | 14,809 | 6.391357 | 0.089436 | 0.086213 | 0.047333 | 0.040571 | 0.773291 | 0.753569 | 0.744553 | 0.739763 | 0.730935 | 0.726052 | 0 | 0.000325 | 0.168141 | 14,809 | 328 | 557 | 45.14939 | 0.864031 | 0.051725 | 0 | 0.736842 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033835 | false | 0 | 0.12782 | 0 | 0.296992 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
687bb68e7008d415c6fbb6a77069f740ccfe7efd | 117,921 | py | Python | source/scripts/char_map1.py | flamechain/ComputerSimulator | b345b6553d202c166acbe6f254371b8fcad2a574 | [
"MIT"
] | 1 | 2021-02-15T18:52:44.000Z | 2021-02-15T18:52:44.000Z | source/scripts/char_map1.py | flamechain/ComputerSimulator | b345b6553d202c166acbe6f254371b8fcad2a574 | [
"MIT"
] | null | null | null | source/scripts/char_map1.py | flamechain/ComputerSimulator | b345b6553d202c166acbe6f254371b8fcad2a574 | [
"MIT"
] | null | null | null | from source.scripts.pixel import Pixel
BLACK = (0, 0, 0)
GREEN = (0, 100, 0)
def mapping(char: str, x: int, y: int, screen) -> list:
if char == ' ':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'A':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(GREEN, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(GREEN, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(GREEN, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(GREEN, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(GREEN, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(GREEN, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(GREEN, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(GREEN, x+4, y+6, screen),
]
elif char == 'B':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(GREEN, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'C':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'D':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(GREEN, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(GREEN, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'E':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(GREEN, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(GREEN, x+4, y+6, screen),
]
elif char == 'F':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(GREEN, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'G':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(GREEN, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(GREEN, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(GREEN, x+4, y+6, screen),
]
elif char == 'H':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(GREEN, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(GREEN, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(GREEN, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(GREEN, x+4, y+6, screen),
]
elif char == 'I':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(GREEN, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(GREEN, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(GREEN, x+4, y+6, screen),
]
elif char == 'J':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(GREEN, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(GREEN, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(GREEN, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(GREEN, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'K':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(GREEN, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(GREEN, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(GREEN, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(GREEN, x+4, y+6, screen),
]
elif char == 'L':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(GREEN, x+4, y+6, screen),
]
elif char == 'M':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(GREEN, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(GREEN, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(GREEN, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(GREEN, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(GREEN, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(GREEN, x+4, y+6, screen),
]
elif char == 'N':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(GREEN, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(GREEN, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(GREEN, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(GREEN, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(GREEN, x+4, y+6, screen),
]
elif char == 'O':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(GREEN, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(GREEN, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'P':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(GREEN, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'Q':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(GREEN, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(GREEN, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(GREEN, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(GREEN, x+4, y+6, screen),
]
elif char == 'R':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(GREEN, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(GREEN, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(GREEN, x+4, y+6, screen),
]
elif char == 'S':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'T':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(GREEN, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(GREEN, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'U':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(GREEN, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(GREEN, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(GREEN, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'V':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(GREEN, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(GREEN, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(GREEN, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(GREEN, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(GREEN, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(GREEN, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'W':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(GREEN, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(GREEN, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(GREEN, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(GREEN, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(GREEN, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(GREEN, x+4, y+6, screen),
]
elif char == 'X':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(GREEN, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(GREEN, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(GREEN, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(GREEN, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(GREEN, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(GREEN, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(GREEN, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(GREEN, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(GREEN, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(GREEN, x+4, y+6, screen),
]
elif char == 'Y':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(GREEN, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(GREEN, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(GREEN, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'Z':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(GREEN, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(GREEN, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(GREEN, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(GREEN, x+4, y+6, screen),
]
elif char == 'a':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(GREEN, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(GREEN, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(GREEN, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(GREEN, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(GREEN, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(GREEN, x+4, y+6, screen),
]
elif char == 'b':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(GREEN, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(GREEN, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'c':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(GREEN, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(GREEN, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'd':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(GREEN, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(GREEN, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(GREEN, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(GREEN, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(GREEN, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(GREEN, x+4, y+6, screen),
]
elif char == 'e':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(GREEN, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(GREEN, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'f':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(GREEN, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(GREEN, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(GREEN, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(GREEN, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'g':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(GREEN, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(GREEN, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(GREEN, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'h':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(GREEN, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(GREEN, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'i':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(GREEN, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'j':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(GREEN, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'k':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(GREEN, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(GREEN, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'l':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(GREEN, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'm':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(GREEN, x+4, y+6, screen),
]
elif char == 'n':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'o':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(GREEN, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(GREEN, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'p':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(GREEN, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(GREEN, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(GREEN, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'q':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(GREEN, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(GREEN, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(GREEN, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'r':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(GREEN, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(GREEN, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 's':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(GREEN, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(GREEN, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(GREEN, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(GREEN, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 't':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(GREEN, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(GREEN, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(GREEN, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'u':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(GREEN, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(GREEN, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(GREEN, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(GREEN, x+4, y+6, screen),
]
elif char == 'v':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(GREEN, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(GREEN, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(GREEN, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'w':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(GREEN, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'x':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(GREEN, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(GREEN, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'y':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(GREEN, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(GREEN, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == 'z':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(GREEN, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(GREEN, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(GREEN, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == ';':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == ':':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == "'":
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(GREEN, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '"':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(GREEN, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(GREEN, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(GREEN, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(GREEN, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '/':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(GREEN, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(GREEN, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(GREEN, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(GREEN, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '?':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(GREEN, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '.':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == ',':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '>':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(GREEN, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(GREEN, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '<':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(GREEN, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(GREEN, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '|':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(GREEN, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '\\':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(GREEN, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(GREEN, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(GREEN, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == ']':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(GREEN, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '}':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(GREEN, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '[':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(GREEN, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '{':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(GREEN, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '=':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(GREEN, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(GREEN, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(GREEN, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(GREEN, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '+':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '-':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '_':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == ')':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(GREEN, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '(':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(GREEN, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '*':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(GREEN, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(GREEN, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(GREEN, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '&':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(GREEN, x+1, y+1, screen), Pixel(GREEN, x+2, y+1, screen), Pixel(GREEN, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(GREEN, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(GREEN, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(GREEN, x+4, y+6, screen),
]
elif char == '^':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(GREEN, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(GREEN, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '%':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(GREEN, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(GREEN, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(GREEN, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(GREEN, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(GREEN, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '$':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(GREEN, x+1, y+1, screen), Pixel(GREEN, x+2, y+1, screen), Pixel(GREEN, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(GREEN, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(GREEN, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '#':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(GREEN, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(GREEN, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(GREEN, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(GREEN, x+3, y+2, screen), Pixel(GREEN, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(GREEN, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(GREEN, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(GREEN, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(GREEN, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '@':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(GREEN, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(GREEN, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(GREEN, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '!':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(GREEN, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '`':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(GREEN, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '~':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(GREEN, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(GREEN, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(GREEN, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '0':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(GREEN, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(GREEN, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '1':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(BLACK, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(BLACK, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(GREEN, x+1, y+1, screen), Pixel(GREEN, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(GREEN, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(BLACK, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '2':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(GREEN, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(GREEN, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(GREEN, x+4, y+6, screen),
]
elif char == '3':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(GREEN, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '4':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(BLACK, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(GREEN, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(GREEN, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(GREEN, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(GREEN, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(GREEN, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(GREEN, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(BLACK, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '5':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(GREEN, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(GREEN, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '6':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(BLACK, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(GREEN, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '7':
pixels = [
Pixel(GREEN, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(GREEN, x+4, y, screen),
Pixel(BLACK, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(BLACK, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(GREEN, x+3, y+2, screen), Pixel(BLACK, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(BLACK, x+1, y+3, screen), Pixel(BLACK, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(GREEN, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(BLACK, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(GREEN, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(BLACK, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(BLACK, x+2, y+6, screen), Pixel(BLACK, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '8':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(GREEN, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(BLACK, x+4, y+3, screen),
Pixel(GREEN, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(GREEN, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
elif char == '9':
pixels = [
Pixel(BLACK, x, y, screen), Pixel(GREEN, x+1, y, screen), Pixel(GREEN, x+2, y, screen), Pixel(GREEN, x+3, y, screen), Pixel(BLACK, x+4, y, screen),
Pixel(GREEN, x, y+1, screen), Pixel(BLACK, x+1, y+1, screen), Pixel(BLACK, x+2, y+1, screen), Pixel(BLACK, x+3, y+1, screen), Pixel(GREEN, x+4, y+1, screen),
Pixel(GREEN, x, y+2, screen), Pixel(BLACK, x+1, y+2, screen), Pixel(BLACK, x+2, y+2, screen), Pixel(BLACK, x+3, y+2, screen), Pixel(GREEN, x+4, y+2, screen),
Pixel(BLACK, x, y+3, screen), Pixel(GREEN, x+1, y+3, screen), Pixel(GREEN, x+2, y+3, screen), Pixel(GREEN, x+3, y+3, screen), Pixel(GREEN, x+4, y+3, screen),
Pixel(BLACK, x, y+4, screen), Pixel(BLACK, x+1, y+4, screen), Pixel(BLACK, x+2, y+4, screen), Pixel(BLACK, x+3, y+4, screen), Pixel(GREEN, x+4, y+4, screen),
Pixel(BLACK, x, y+5, screen), Pixel(BLACK, x+1, y+5, screen), Pixel(BLACK, x+2, y+5, screen), Pixel(BLACK, x+3, y+5, screen), Pixel(GREEN, x+4, y+5, screen),
Pixel(BLACK, x, y+6, screen), Pixel(GREEN, x+1, y+6, screen), Pixel(GREEN, x+2, y+6, screen), Pixel(GREEN, x+3, y+6, screen), Pixel(BLACK, x+4, y+6, screen),
]
else:
pixels = None
return pixels
| 118.871976 | 169 | 0.567015 | 22,511 | 117,921 | 2.970192 | 0.002532 | 0.531393 | 0.384972 | 0.577922 | 0.998145 | 0.998145 | 0.998145 | 0.998145 | 0.998145 | 0.998145 | 0 | 0.059352 | 0.210149 | 117,921 | 991 | 170 | 118.991927 | 0.658514 | 0 | 0 | 0.760711 | 0 | 0 | 0.000814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.001045 | false | 0 | 0.001045 | 0 | 0.003135 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
6896e1102e9a82a0195bb2f7d1401ef7a706ebc7 | 45 | py | Python | tests/CompileTests/Python_tests/test2011_013.py | maurizioabba/rose | 7597292cf14da292bdb9a4ef573001b6c5b9b6c0 | [
"BSD-3-Clause"
] | 488 | 2015-01-09T08:54:48.000Z | 2022-03-30T07:15:46.000Z | tests/CompileTests/Python_tests/test2011_013.py | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 174 | 2015-01-28T18:41:32.000Z | 2022-03-31T16:51:05.000Z | tests/CompileTests/Python_tests/test2011_013.py | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 146 | 2015-04-27T02:48:34.000Z | 2022-03-04T07:32:53.000Z | def foo():
return 1
def bar():
return 2
| 7.5 | 10 | 0.577778 | 8 | 45 | 3.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0.288889 | 45 | 5 | 11 | 9 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
cc1e793c2103256a05b9c87636baaedb17bff3a3 | 24,112 | py | Python | LAPRAN/lapgan_adaptiveCS_resnet.py | PSCLab-ASU/OpenICS | e8f639f9278ce88c98f14daf026a56395cb64ca9 | [
"CC0-1.0"
] | 13 | 2021-03-03T13:13:34.000Z | 2022-01-13T12:02:59.000Z | LAPRAN/lapgan_adaptiveCS_resnet.py | PSCLab-ASU/OpenICS | e8f639f9278ce88c98f14daf026a56395cb64ca9 | [
"CC0-1.0"
] | null | null | null | LAPRAN/lapgan_adaptiveCS_resnet.py | PSCLab-ASU/OpenICS | e8f639f9278ce88c98f14daf026a56395cb64ca9 | [
"CC0-1.0"
] | 2 | 2021-03-04T12:16:27.000Z | 2021-05-09T03:07:44.000Z | import torch
import torch.nn as nn
class ResBlock(nn.Module):
def __init__(self, nFeat, kernel_size=3):
super(ResBlock, self).__init__()
self.main = nn.Sequential(
nn.Conv2d(nFeat, nFeat, kernel_size=kernel_size, padding=kernel_size // 2, bias=False),
#nn.BatchNorm2d(nFeat),
nn.ReLU(inplace=True),
nn.Conv2d(nFeat, nFeat, kernel_size=kernel_size, padding=kernel_size // 2, bias=False),
#nn.BatchNorm2d(nFeat)
)
self.relu = nn.ReLU(inplace=True)
def forward(self, x):
self.res = self.main(x)
self.res += x
self.res = self.relu(self.res)
return self.res
class ResBlock_wBN(nn.Module):
def __init__(self, nFeat, kernel_size=3):
super(ResBlock_wBN, self).__init__()
self.main = nn.Sequential(
nn.Conv2d(nFeat, nFeat, kernel_size=kernel_size, padding=kernel_size // 2, bias=False),
nn.BatchNorm2d(nFeat),
nn.ReLU(inplace=True),
nn.Conv2d(nFeat, nFeat, kernel_size=kernel_size, padding=kernel_size // 2, bias=False),
nn.BatchNorm2d(nFeat)
)
self.relu = nn.ReLU(inplace=True)
def forward(self, x):
self.res = self.main(x)
self.res += x
self.res = self.relu(self.res)
return self.res
class LAPGAN_Generator_level1(nn.Module):
def __init__(self, channels, leny, ngpu):
super(LAPGAN_Generator_level1, self).__init__()
self.channels = channels
self.ngpu = ngpu
self.base = 64
self.fs = 8
self.nResBlock = 2
self.leny = leny
self.linear1 = nn.Linear(self.leny, self.base * self.fs ** 2) # 64x8x8
self.bn_linear1 = nn.BatchNorm1d(self.base * self.fs ** 2)
self.conv1 = nn.Conv2d(self.base, self.base, kernel_size=3, padding=1, stride=1, bias=False) # 64x8x8
self.bn1 = nn.BatchNorm2d(self.base)
#self.conv2 = nn.Conv2d(self.base, self.base, kernel_size=3, padding=1, stride=2, bias=False) # 64x4x4
modules = [ResBlock(self.base, 3) for _ in range(self.nResBlock)]
self.resblk1 = nn.Sequential(*modules)
self.relu = nn.ReLU(inplace=True)
self.conv2 = nn.Conv2d(self.base, self.channels, kernel_size=3, padding=1, stride=1, bias=False) # 3x8x8
self.tanh = nn.Tanh()
def forward(self, input):
self.output = input.view(input.size(0), -1)
self.output = self.relu(self.linear1(self.output))
self.output = self.output.view(-1, self.base, self.fs, self.fs)
self.output = self.relu(self.conv1(self.output))
self.output = self.resblk1(self.output)
self.output = self.conv2(self.output)
self.output = self.tanh(self.output)
return self.output
class LAPGAN_Discriminator_level1(nn.Module):
def __init__(self, channels, ngpu):
super(LAPGAN_Discriminator_level1, self).__init__()
self.base = 32
self.channels = channels
self.ngpu = ngpu
self.fs = 8
self.main = nn.Sequential(
nn.Conv2d(self.channels, self.base, kernel_size=3, padding=1, stride=1, bias=False), # 32x8x8
#nn.BatchNorm2d(self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(self.base, self.base, kernel_size=3, padding=1, stride=2, bias=False), # 32x4x4
#nn.BatchNorm2d(self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(self.base, 2 * self.base, kernel_size=3, padding=1, stride=1, bias=False), # 64x4x4
#nn.BatchNorm2d(2 * self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(2 * self.base, 1, 4, 1, 0, bias=False),
nn.Sigmoid()
)
def forward(self, input):
if isinstance(input.data, torch.cuda.FloatTensor) and self.ngpu > 1:
output = nn.parallel.data_parallel(self.main, input, range(self.ngpu))
else:
#print(input.shape)
output = self.main(input)
return output.view(-1, 1).squeeze(1)
# fix gen1 when updating gen2
class LAPGAN_Generator_level2(nn.Module):
def __init__(self, channels, leny, ngpu):
super(LAPGAN_Generator_level2, self).__init__()
self.base = 64
self.leny = leny
self.channels = channels
self.ngpu = ngpu
self.fs = 8
self.nResBlock = 3
self.upsamp1 = nn.ConvTranspose2d(self.channels, self.channels, kernel_size=4, padding=1, stride=2, bias=False) # 3x16x16
self.conv1 = nn.Conv2d(self.channels, self.base, kernel_size=3, padding=1, stride=1, bias=False) # 64x8x8
self.bn1 = nn.BatchNorm2d(self.base)
self.conv2 = nn.Conv2d(self.base, self.base, kernel_size=3, padding=1, stride=2, bias=False) # 64x4x4
self.bn2 = nn.BatchNorm2d(self.base)
self.linear1 = nn.Linear(self.base * ((self.fs // 2) ** 2), self.leny)
self.bn_linear1 = nn.BatchNorm1d(self.leny)
self.linear2 = nn.Linear(self.leny * 2, self.base * (self.fs ** 2)) # _1 channel _2 base
self.bn_linear2 = nn.BatchNorm1d(self.base * (self.fs ** 2))
self.upsamp2 = nn.ConvTranspose2d(self.base, self.base, kernel_size=4, padding=1, stride=2, bias=False) # 64x16x16
self.bn3 = nn.BatchNorm2d(self.base)
modules = [ResBlock(self.base) for _ in range(self.nResBlock)]
self.resblk1 = nn.Sequential(*modules)
self.relu = nn.ReLU(inplace=True)
self.conv5 = nn.Conv2d(self.base, self.channels, kernel_size=3, padding=1, stride=1, bias=False)
self.tanh = nn.Tanh()
def forward(self, input, y):
self.output_up = self.upsamp1(input)
self.output = self.relu(self.conv1(input))
self.output = self.relu(self.conv2(self.output))
self.output = self.output.view(self.output.size(0), -1)
self.output = self.relu(self.linear1(self.output))
self.output = torch.cat((y.view(y.size(0), -1), self.output), 1)
self.output = self.relu(self.linear2(self.output))
self.output = self.output.view(-1, self.base, self.fs, self.fs)
self.output = self.relu(self.upsamp2(self.output))
self.output = self.resblk1(self.output)
self.output = self.conv5(self.output)
self.output = self.output + self.output_up
self.output = self.tanh(self.output)
return self.output
# The implementation of the disc2, input is 1x16x16
class LAPGAN_Discriminator_level2(nn.Module):
def __init__(self, channels, ngpu):
super(LAPGAN_Discriminator_level2, self).__init__()
self.base = 32
self.channels = channels
self.ngpu = ngpu
self.main = nn.Sequential(
nn.Conv2d(self.channels, self.base, kernel_size=3, padding=1, stride=1, bias=False), # 32x16x16
#nn.BatchNorm2d(self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(self.base, self.base, kernel_size=3, padding=1, stride=2, bias=False), # 32x8x8
#nn.BatchNorm2d(self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(self.base, 2 * self.base, kernel_size=3, padding=1, stride=1, bias=False), # 64x8x8
#nn.BatchNorm2d(2 * self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(2 * self.base, 2 * self.base, kernel_size=3, padding=1, stride=2, bias=False), # 64x4x4
#nn.BatchNorm2d(2 * self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(2 * self.base, 4 * self.base, kernel_size=3, padding=1, stride=1, bias=False), # 128x4x4
#nn.BatchNorm2d(4 * self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(4 * self.base, 1, 4, 1, 0, bias=False),
nn.Sigmoid()
)
def forward(self, input):
if isinstance(input.data, torch.cuda.FloatTensor) and self.ngpu > 1:
output = nn.parallel.data_parallel(self.main, input, range(self.ngpu))
else:
output = self.main(input)
return output.view(-1, 1).squeeze(1)
class LAPGAN_Generator_level3(nn.Module):
def __init__(self, channels, leny, ngpu):
super(LAPGAN_Generator_level3, self).__init__()
self.base = 64
self.leny = leny
self.channels = channels
self.fs = 16
self.nResBlock = 3
self.upsamp1 = nn.ConvTranspose2d(self.channels, self.channels, kernel_size=4, padding=1, stride=2,
bias=False) # 3x16x16
self.conv1 = nn.Conv2d(self.channels, self.base, kernel_size=3, padding=1, stride=1, bias=False) # 64x16x16
self.bn1 = nn.BatchNorm2d(self.base)
self.conv2 = nn.Conv2d(self.base, self.base, kernel_size=3, padding=1, stride=2, bias=False) # 64x8x8
self.bn2 = nn.BatchNorm2d(self.base)
self.linear1 = nn.Linear(self.base * ((self.fs // 2) ** 2), self.leny)
self.bn_linear1 = nn.BatchNorm1d(self.leny)
self.linear2 = nn.Linear(self.leny * 2, self.channels * (self.fs ** 2))
self.bn_linear2 = nn.BatchNorm1d(self.channels * (self.fs ** 2))
self.upsamp2 = nn.ConvTranspose2d(self.channels, self.base, kernel_size=4, padding=1, stride=2,
bias=False) # 64x16x16
self.bn3 = nn.BatchNorm2d(self.base)
modules = [ResBlock(self.base) for _ in range(self.nResBlock)]
self.resblk1 = nn.Sequential(*modules)
self.relu = nn.ReLU(inplace=True)
self.conv3 = nn.Conv2d(self.base, self.channels, kernel_size=3, padding=1, stride=1, bias=False)
self.tanh = nn.Tanh()
def forward(self, input, y):
self.output_up = self.upsamp1(input)
self.output = self.relu(self.conv1(input))
self.output = self.relu(self.conv2(self.output))
self.output = self.output.view(self.output.size(0), -1)
self.output = self.relu(self.linear1(self.output))
self.output = torch.cat((y.view(y.size(0), -1), self.output), 1)
self.output = self.relu(self.linear2(self.output))
self.output = self.output.view(-1, self.channels, self.fs, self.fs)
self.output = self.relu(self.upsamp2(self.output))
self.output = self.resblk1(self.output)
self.output = self.conv3(self.output)
self.output = self.output + self.output_up
self.output = self.tanh(self.output)
return self.output
# The implementation of the disc3, input is 3x32x32
class LAPGAN_Discriminator_level3(nn.Module):
def __init__(self, channels, ngpu):
super(LAPGAN_Discriminator_level3, self).__init__()
self.base = 32
self.channels = channels
self.ngpu = ngpu
self.main = nn.Sequential(
nn.Conv2d(self.channels, self.base, kernel_size=3, padding=1, stride=1, bias=False), # 32x32x32
#nn.BatchNorm2d(self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(self.base, self.base, kernel_size=3, padding=1, stride=2, bias=False), # 32x16x16
#nn.BatchNorm2d(self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(self.base, 2 * self.base, kernel_size=3, padding=1, stride=1, bias=False), # 64x16x16
#nn.BatchNorm2d(2 * self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(2 * self.base, 2 * self.base, kernel_size=3, padding=1, stride=2, bias=False), # 64x8x8
#nn.BatchNorm2d(2 * self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(2 * self.base, 4 * self.base, kernel_size=3, padding=1, stride=1, bias=False), # 128x8x8
#nn.BatchNorm2d(4 * self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(4 * self.base, 4 * self.base, kernel_size=3, padding=1, stride=2, bias=False), # 128x4x4
#nn.BatchNorm2d(4 * self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(4 * self.base, 8 * self.base, kernel_size=3, padding=1, stride=1, bias=False), # 256x4x4
#nn.BatchNorm2d(8 * self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(8 * self.base, 1, 4, 1, 0, bias=False),
nn.Sigmoid()
)
def forward(self, input):
if isinstance(input.data, torch.cuda.FloatTensor) and self.ngpu > 1:
output = nn.parallel.data_parallel(self.main, input, range(self.ngpu))
else:
output = self.main(input)
return output.view(-1, 1).squeeze(1)
# orig
# The implementation of the gen4, input is 3x32x32
class LAPGAN_Generator_level4(nn.Module):
def __init__(self, channels, leny, ngpu):
super(LAPGAN_Generator_level4, self).__init__()
self.base = 64
self.leny = leny
self.channels = channels
self.ngpu = ngpu
self.fs = 32
self.nResBlock = 3
self.upsamp1 = nn.ConvTranspose2d(self.channels, self.channels, kernel_size=4, padding=1, stride=2,
bias=False) # 3x16x16
self.conv1 = nn.Conv2d(self.channels, self.base, kernel_size=3, padding=1, stride=1, bias=False) # 64x8x8
self.bn1 = nn.BatchNorm2d(self.base)
self.conv2 = nn.Conv2d(self.base, self.base, kernel_size=3, padding=1, stride=2, bias=False) # 64x4x4
self.bn2 = nn.BatchNorm2d(self.base)
self.linear1 = nn.Linear(self.base * ((self.fs // 2) ** 2), self.leny)
self.linear2 = nn.Linear(self.leny * 2, self.channels * (self.fs ** 2))
self.upsamp2 = nn.ConvTranspose2d(self.channels, self.base, kernel_size=4, padding=1, stride=2,
bias=False) # 64x16x16
self.bn3 = nn.BatchNorm2d(self.base)
modules = [ResBlock(self.base) for _ in range(self.nResBlock)]
self.resblk1 = nn.Sequential(*modules)
self.relu = nn.ReLU(inplace=True)
self.conv3 = nn.Conv2d(self.base, self.channels, kernel_size=3, padding=1, stride=1, bias=False)
self.tanh = nn.Tanh()
def forward(self, input, y):
self.output_up = self.upsamp1(input)
self.output = self.relu(self.conv1(input))
self.output = self.relu(self.conv2(self.output))
self.output = self.output.view(self.output.size(0), -1)
self.output = self.relu(self.linear1(self.output))
self.output = torch.cat((y.view(y.size(0), -1), self.output), 1)
self.output = self.relu(self.linear2(self.output))
self.output = self.output.view(-1, self.channels, self.fs, self.fs)
self.output = self.relu(self.upsamp2(self.output))
self.output = self.resblk1(self.output)
self.output = self.conv3(self.output)
self.output = self.output + self.output_up
self.output = self.tanh(self.output)
return self.output
# The implementation of the disc4, input is 1x64x64
class LAPGAN_Discriminator_level4(nn.Module):
def __init__(self, channels, ngpu):
super(LAPGAN_Discriminator_level4, self).__init__()
self.base = 32
self.channels = channels
self.ngpu = ngpu
self.main = nn.Sequential(
nn.Conv2d(self.channels, self.base, kernel_size=3, padding=1, stride=1, bias=False), # 32x64x64
#nn.BatchNorm2d(self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(self.base, self.base, kernel_size=3, padding=1, stride=2, bias=False), # 32x32x32
#nn.BatchNorm2d(self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(self.base, 2 * self.base, kernel_size=3, padding=1, stride=1, bias=False), # 64x32x32
#nn.BatchNorm2d(2 * self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(2 * self.base, 2 * self.base, kernel_size=3, padding=1, stride=2, bias=False), # 64x16x16
#nn.BatchNorm2d(2 * self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(2 * self.base, 4 * self.base, kernel_size=3, padding=1, stride=1, bias=False), # 128x16x16
#nn.BatchNorm2d(4 * self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(4 * self.base, 4 * self.base, kernel_size=3, padding=1, stride=2, bias=False), # 128x8x8
#nn.BatchNorm2d(4 * self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(4 * self.base, 8 * self.base, kernel_size=3, padding=1, stride=1, bias=False), # 256x8x8
#nn.BatchNorm2d(8 * self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(8 * self.base, 8 * self.base, kernel_size=3, padding=1, stride=2, bias=False), # 256x4x4
#nn.BatchNorm2d(8 * self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(8 * self.base, 16 * self.base, kernel_size=3, padding=1, stride=1, bias=False), # 512x4x4
#nn.BatchNorm2d(16 * self.base),
nn.LeakyReLU(0.2, inplace=True),
nn.Conv2d(16 * self.base, 1, 4, 1, 0, bias=False),
nn.Sigmoid()
)
def forward(self, input):
if isinstance(input.data, torch.cuda.FloatTensor) and self.ngpu > 1:
output = nn.parallel.data_parallel(self.main, input, range(self.ngpu))
else:
output = self.main(input)
return output.view(-1, 1).squeeze(1)
'''
class LAPGAN(nn.Module):
def __init__(self, channels, ngpu, LAPGAN_Generator_level1, LAPGAN_Generator_level2, LAPGAN_Generator_level3,
LAPGAN_Generator_level4):
super(LAPGAN, self).__init__()
self.channels = channels
self.ngpu = ngpu
self.LAPGAN_Generator_level1 = LAPGAN_Generator_level1
self.LAPGAN_Generator_level2 = LAPGAN_Generator_level2
self.LAPGAN_Generator_level3 = LAPGAN_Generator_level3
self.LAPGAN_Generator_level4 = LAPGAN_Generator_level4
def forward(self, input, y2, y3, y4):
self.output = self.LAPGAN_Generator_level1(input)
self.output = self.LAPGAN_Generator_level2(self.output, y2)
self.output = self.LAPGAN_Generator_level3(self.output, y3)
self.output = self.LAPGAN_Generator_level4(self.output, y4)
return self.output
'''
'''
# The implementation of gen1, input is 3x8x8
# first tab
class LAPGAN_Generator_level1(nn.Module):
def __init__(self, channels, ngpu):
super(LAPGAN_Generator_level1, self).__init__()
self.channels = channels
self.ngpu = ngpu
self.base = 64
self.fs = 8
self.nResBlock = 3
self.linear1 = nn.Linear(self.channels * self.fs ** 2, self.base * self.fs **2) # 64x8x8
self.conv1 = nn.Conv2d(self.base, self.base, kernel_size=3, padding=1, stride=1, bias=False) # 64x8x8
#self.bn1 = nn.BatchNorm2d(self.base)
#self.conv2 = nn.Conv2d(self.base, self.base, kernel_size=3, padding=1, stride=2, bias=False) # 64x4x4
modules = [ResBlock(self.base, 3) for _ in range(self.nResBlock)]
self.resblk1 = nn.Sequential(*modules)
self.relu = nn.ReLU(inplace=True)
self.conv2 = nn.Conv2d(self.base, self.channels, kernel_size=3, padding=1, stride=1, bias=False) # 3x8x8
self.tanh = nn.Tanh()
def forward(self, input):
self.output = input.view(input.size(0), -1)
self.output = self.relu(self.linear1(self.output))
self.output = self.output.view(-1, self.base, self.fs, self.fs)
self.output = self.relu(self.conv1(self.output))
self.output = self.resblk1(self.output)
self.output = self.conv2(self.output)
self.output = self.tanh(self.output)
return self.output
'''
# second tab
'''
class LAPGAN_Generator_level1(nn.Module):
def __init__(self, channels, ngpu):
super(LAPGAN_Generator_level1, self).__init__()
self.channels = channels
self.ngpu = ngpu
self.base = 64
self.fs = 8
self.nResBlock = 3
self.linear1 = nn.Linear(self.channels * self.fs ** 2, self.base * self.fs **2) # 64x8x8
self.bn1_linear = nn.BatchNorm1d(self.base * self.fs **2)
self.conv1 = nn.Conv2d(self.base, self.base, kernel_size=3, padding=1, stride=1, bias=False) # 64x8x8
self.bn1 = nn.BatchNorm2d(self.base)
#self.conv2 = nn.Conv2d(self.base, self.base, kernel_size=3, padding=1, stride=2, bias=False) # 64x4x4
modules = [ResBlock(self.base, 3) for _ in range(self.nResBlock)]
self.resblk1 = nn.Sequential(*modules)
self.relu = nn.ReLU(inplace=True)
self.conv2 = nn.Conv2d(self.base, self.channels, kernel_size=3, padding=1, stride=1, bias=False) # 3x8x8
self.tanh = nn.Tanh()
def forward(self, input):
self.output = input.view(input.size(0), -1)
self.output = self.relu(self.bn1_linear(self.linear1(self.output)))
self.output = self.output.view(-1, self.base, self.fs, self.fs)
self.output = self.relu(self.bn1(self.conv1(self.output)))
self.output = self.resblk1(self.output)
self.output = self.conv2(self.output)
self.output = self.tanh(self.output)
return self.output
'''
# tab3
'''
class LAPGAN_Generator_level1(nn.Module):
def __init__(self, channels, ngpu):
super(LAPGAN_Generator_level1, self).__init__()
self.channels = channels
self.ngpu = ngpu
self.base = 64
self.fs = 8
self.nResBlock = 3
self.linear1 = nn.Linear(self.channels * self.fs ** 2, self.base * self.fs **2) # 64x8x8
self.bn1_linear = nn.BatchNorm1d(self.base * self.fs **2)
self.conv1 = nn.Conv2d(self.base, self.base, kernel_size=3, padding=1, stride=1, bias=False) # 64x8x8
self.bn1 = nn.BatchNorm2d(self.base)
#self.conv2 = nn.Conv2d(self.base, self.base, kernel_size=3, padding=1, stride=2, bias=False) # 64x4x4
modules = [ResBlock(self.base, 3) for _ in range(self.nResBlock)]
self.resblk1 = nn.Sequential(*modules)
self.relu = nn.ReLU(inplace=True)
self.conv2 = nn.Conv2d(self.base, self.channels, kernel_size=3, padding=1, stride=1, bias=False) # 3x8x8
self.tanh = nn.Tanh()
def forward(self, input):
self.output = input.view(input.size(0), -1)
self.output = self.bn1_linear(self.relu(self.linear1(self.output)))
self.output = self.output.view(-1, self.base, self.fs, self.fs)
self.output = self.bn1(self.relu(self.conv1(self.output)))
self.output = self.resblk1(self.output)
self.output = self.conv2(self.output)
self.output = self.tanh(self.output)
return self.output
'''
''' tab4
class LAPGAN_Generator_level1(nn.Module):
def __init__(self, channels, ngpu):
super(LAPGAN_Generator_level1, self).__init__()
self.channels = channels
self.ngpu = ngpu
self.base = 64
self.fs = 8
self.nResBlock = 3
self.linear1 = nn.Linear(self.channels * self.fs ** 2, self.base * self.fs **2) # 64x8x8
self.conv1 = nn.Conv2d(self.base, self.base, kernel_size=3, padding=1, stride=1, bias=False) # 64x8x8
#self.bn1 = nn.BatchNorm2d(self.base)
#self.conv2 = nn.Conv2d(self.base, self.base, kernel_size=3, padding=1, stride=2, bias=False) # 64x4x4
modules = [ResBlock(self.base, 3) for _ in range(self.nResBlock)]
self.resblk1 = nn.Sequential(*modules)
self.relu = nn.ReLU(inplace=True)
self.conv2 = nn.Conv2d(self.base, self.channels, kernel_size=3, padding=1, stride=1, bias=False) # 3x8x8
self.tanh = nn.Tanh()
def forward(self, input):
self.output = input.view(input.size(0), -1)
self.output = self.relu(self.linear1(self.output))
self.output = self.output.view(-1, self.base, self.fs, self.fs)
self.output = self.relu(self.conv1(self.output))
self.output = self.resblk1(self.output)
self.output = self.conv2(self.output)
self.output = self.tanh(self.output)
return self.output
''' | 40.32107 | 130 | 0.616249 | 3,282 | 24,112 | 4.436319 | 0.041133 | 0.091209 | 0.103846 | 0.075549 | 0.95625 | 0.928022 | 0.921154 | 0.914835 | 0.910714 | 0.907692 | 0 | 0.053521 | 0.246807 | 24,112 | 598 | 131 | 40.32107 | 0.748197 | 0.059224 | 0 | 0.8157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068259 | false | 0 | 0.006826 | 0 | 0.143345 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
04071f3e251f333ccbc50b56f0a1f93cb1fb4326 | 314 | py | Python | monolith_filemanager/s3storage/errors.py | MonolithAILtd/monolith-filemanager | 2369e244e4d8a48890f55d00419a83001a5c6c40 | [
"Apache-2.0"
] | 3 | 2021-06-02T09:45:00.000Z | 2022-02-01T14:30:01.000Z | monolith_filemanager/s3storage/errors.py | MonolithAILtd/monolith-filemanager | 2369e244e4d8a48890f55d00419a83001a5c6c40 | [
"Apache-2.0"
] | 3 | 2021-05-26T11:46:28.000Z | 2021-11-04T10:14:42.000Z | monolith_filemanager/s3storage/errors.py | MonolithAILtd/monolith-filemanager | 2369e244e4d8a48890f55d00419a83001a5c6c40 | [
"Apache-2.0"
] | 2 | 2021-06-04T15:02:14.000Z | 2021-09-03T09:26:45.000Z |
class BucketManagetError(Exception):
def __init__(self, message):
super().__init__(message)
class FileManagerError(Exception):
def __init__(self, message):
super().__init__(message)
class V1EngineError(Exception):
def __init__(self, message):
super().__init__(message)
| 16.526316 | 36 | 0.684713 | 30 | 314 | 6.366667 | 0.333333 | 0.188482 | 0.251309 | 0.314136 | 0.727749 | 0.727749 | 0.727749 | 0.727749 | 0.502618 | 0 | 0 | 0.003984 | 0.200637 | 314 | 18 | 37 | 17.444444 | 0.756972 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
04548fde256d78c7ec880f28133a4bde2fad64f2 | 18,063 | py | Python | thai2transformers/finetuners.py | modem888/thai2transformers | 04716ecb9a88c1b1ea08d63511265245d53b1eb9 | [
"Apache-2.0"
] | 64 | 2020-02-28T04:15:23.000Z | 2022-03-13T16:01:21.000Z | thai2transformers/finetuners.py | modem888/thai2transformers | 04716ecb9a88c1b1ea08d63511265245d53b1eb9 | [
"Apache-2.0"
] | 28 | 2021-01-27T04:43:30.000Z | 2022-01-26T10:27:47.000Z | thai2transformers/finetuners.py | modem888/thai2transformers | 04716ecb9a88c1b1ea08d63511265245d53b1eb9 | [
"Apache-2.0"
] | 17 | 2020-06-11T07:54:44.000Z | 2021-11-24T07:45:22.000Z | import numpy as np
import pandas as pd
import torch
from torch.utils.data import DataLoader
import pytorch_lightning as pl
import argparse
from thai2transformers.metrics import classification_metrics
from thai2transformers.datasets import (
SequenceClassificationDataset,
TokenClassificationDataset,
)
from transformers import (
AdamW,
get_linear_schedule_with_warmup,
AutoTokenizer,
AutoModel,
)
class TokenClassificationFinetuner(pl.LightningModule):
def __init__(self, hparams):
super(TokenClassificationFinetuner, self).__init__()
self.hparams = hparams
self.model = AutoModel.from_pretrained(self.hparams.model_name_or_path,)
self.tokenizer = AutoTokenizer.from_pretrained(self.hparams.model_name_or_path,)
self.head = torch.nn.Sequential(
torch.nn.Linear(self.hparams.num_hidden, self.hparams.num_hidden),
torch.nn.Dropout(p=self.hparams.drop_p),
torch.nn.Linear(self.hparams.num_hidden, self.hparams.num_labels),
)
self.loss_fn = torch.nn.CrossEntropyLoss()
def forward(
self,
input_ids=None,
attention_mask=None,
position_ids=None,
head_mask=None,
inputs_embeds=None,
):
o1, o2 = self.model(
input_ids,
attention_mask=attention_mask,
position_ids=position_ids,
head_mask=head_mask,
inputs_embeds=inputs_embeds,
)
preds = self.head(o1)
return preds
def _flatten_batch(self, batch):
preds = self.forward(
input_ids=batch["input_ids"], attention_mask=batch["attention_mask"],
)
active_mask = batch["attention_mask"].view(-1) == 1
active_preds = preds.view(-1, self.hparams.num_labels)
active_labels = torch.where(
active_mask,
batch["label"].view(-1),
torch.tensor(self.loss_fn.ignore_index).type_as(batch["label"]),
)
return active_preds, active_labels, preds
def _step(self, batch):
active_preds, active_labels, preds = self._flatten_batch(batch)
loss = self.loss_fn(active_preds, active_labels)
return loss, preds
def training_step(self, batch, batch_nb):
loss, _ = self._step(batch)
tensorboard_logs = {"train_loss": loss}
return {"loss": loss, "log": tensorboard_logs}
def validation_step(self, batch, batch_nb):
loss, preds = self._step(batch)
pred_labs = preds.argmax(2).cpu().numpy()
#get batch labels and pred_labs
dfs = []
for i in range(batch['input_ids'].shape[0]):
df = pd.DataFrame({'word_ids':batch['word_ids'][i].cpu().numpy(),
'label':batch['label'][i].cpu().numpy(),
'pred_labs':pred_labs[i]})
df = df[df.label!=0].groupby('word_ids').max().reset_index(drop=True)
dfs.append(df)
df_batch = pd.concat(dfs)
#get metrics
pred = argparse.Namespace(
label_ids=df_batch.label, predictions=df_batch.pred_labs,
)
results = classification_metrics(pred, pred_labs=True)
results["loss"] = loss.cpu()
return results
def test_step(self, batch, batch_nb):
return self.validation_step(batch, batch_nb)
def _avg_epoch_end(self, outputs):
total_samples = np.sum([x["nb_samples"] for x in outputs])
avg_loss = np.sum([x["loss"] * x["nb_samples"] for x in outputs]) / total_samples
avg_acc = np.sum([x["accuracy"] * x["nb_samples"] for x in outputs]) / total_samples
#micro
avg_f1_micro = np.sum([x["f1_micro"] * x["nb_samples"] for x in outputs]) / total_samples
avg_precision_micro = np.sum(
[x["precision_micro"] * x["nb_samples"] for x in outputs]
) / total_samples
avg_recall_micro = np.sum([x["recall_micro"] * x["nb_samples"] for x in outputs]) / total_samples
#macro
avg_f1_macro = np.sum([x["f1_macro"] * x["nb_samples"] for x in outputs]) / total_samples
avg_precision_macro = np.sum(
[x["precision_macro"] for x in outputs]
) / total_samples
avg_recall_macro = np.sum([x["recall_macro"] * x["nb_samples"] for x in outputs]) / total_samples
return {
"avg_loss": avg_loss,
"avg_acc": avg_acc,
"avg_f1_micro": avg_f1_micro,
"avg_precision_micro": avg_precision_micro,
"avg_recall_micro": avg_recall_micro,
"avg_f1_macro": avg_f1_macro,
"avg_precision_macro": avg_precision_macro,
"avg_recall_macro": avg_recall_macro,
"total_samples": total_samples,
}
def validation_epoch_end(self, outputs):
results = self._avg_epoch_end(outputs)
tensorboard_logs = {
"val_loss": results["avg_loss"],
"avg_val_acc": results["avg_acc"],
"avg_val_f1_micro": results["avg_f1_micro"],
"avg_val_precision_micro": results["avg_precision_micro"],
"avg_val_recall_micro": results["avg_recall_micro"],
"avg_val_f1_macro": results["avg_f1_macro"],
"avg_val_precision_macro": results["avg_precision_macro"],
"avg_val_recall_macro": results["avg_recall_macro"],
"total_samples": results["total_samples"]
}
return {
"val_loss": results["avg_loss"],
"log": tensorboard_logs,
"progress_bar": tensorboard_logs,
}
def test_epoch_end(self, outputs):
results = self._avg_epoch_end(outputs)
tensorboard_logs = {
"test_loss": results["avg_loss"],
"avg_test_acc": results["avg_acc"],
"avg_test_f1_micro": results["avg_f1_micro"],
"avg_test_precision_micro": results["avg_precision_micro"],
"avg_test_recall_micro": results["avg_recall_micro"],
"avg_test_f1_macro": results["avg_f1_macro"],
"avg_test_precision_macro": results["avg_precision_macro"],
"avg_test_recall_macro": results["avg_recall_macro"],
"total_samples": results["total_samples"]
}
return {
"test_loss": results["avg_loss"],
"log": tensorboard_logs,
"progress_bar": tensorboard_logs,
}
def configure_optimizers(self):
model = self.model
no_decay = ["bias", "LayerNorm.weight", "LayerNorm.weight"]
optimizer_grouped_parameters = [
{
"params": [
p
for n, p in model.named_parameters()
if not any(nd in n for nd in no_decay)
],
"weight_decay": self.hparams.weight_decay,
},
{
"params": [
p
for n, p in model.named_parameters()
if any(nd in n for nd in no_decay)
],
"weight_decay": 0.0,
},
]
optimizer = AdamW(
optimizer_grouped_parameters,
lr=self.hparams.learning_rate,
eps=self.hparams.adam_epsilon,
)
self.opt = optimizer
return [optimizer]
def optimizer_step(
self,
epoch,
batch_idx,
optimizer,
optimizer_idx,
second_order_closure=None,
on_tpu=False,
using_native_amp=False,
using_lbfgs=False,
):
optimizer.step()
optimizer.zero_grad()
self.lr_scheduler.step()
def train_dataloader(self):
train_dataset = TokenClassificationDataset(
tokenizer=self.tokenizer,
data_dir=self.hparams.train_dir,
max_length=self.hparams.max_length,
label_pad_token=self.hparams.label_pad_token,
label_first_subword=self.hparams.label_first_subword,
)
dataloader = DataLoader(
train_dataset,
batch_size=self.hparams.per_device_train_batch_size,
drop_last=True,
shuffle=True,
num_workers=4,
)
# calculate total timesteps
t_total = (
(
len(dataloader.dataset)
// (
self.hparams.per_device_train_batch_size
* max(1, self.hparams.n_gpu)
)
)
// self.hparams.gradient_accumulation_steps
* float(self.hparams.num_train_epochs)
)
# create scheduler
scheduler = get_linear_schedule_with_warmup(
self.opt,
num_warmup_steps=self.hparams.warmup_steps,
num_training_steps=t_total,
)
self.lr_scheduler = scheduler
return dataloader
def val_dataloader(self):
val_dataset = TokenClassificationDataset(
tokenizer=self.tokenizer,
data_dir=self.hparams.valid_dir,
max_length=self.hparams.max_length,
label_pad_token=self.hparams.label_pad_token,
label_first_subword=self.hparams.label_first_subword,
)
return DataLoader(
val_dataset,
batch_size=self.hparams.per_device_eval_batch_size,
num_workers=4,
)
def test_dataloader(self):
test_dataset = TokenClassificationDataset(
tokenizer=self.tokenizer,
data_dir=self.hparams.test_dir,
max_length=self.hparams.max_length,
label_pad_token=self.hparams.label_pad_token,
label_first_subword=self.hparams.label_first_subword,
)
return DataLoader(
test_dataset,
batch_size=self.hparams.per_device_eval_batch_size,
num_workers=4,
)
class SequenceClassificationFinetuner(pl.LightningModule):
def __init__(self, hparams):
super(SequenceClassificationFinetuner, self).__init__()
self.hparams = hparams
self.model = AutoModel.from_pretrained(self.hparams.model_name_or_path,)
self.tokenizer = AutoTokenizer.from_pretrained(self.hparams.model_name_or_path,)
self.head = torch.nn.Sequential(
torch.nn.Linear(self.hparams.num_hidden, self.hparams.num_hidden),
torch.nn.Dropout(p=self.hparams.drop_p),
torch.nn.Linear(self.hparams.num_hidden, self.hparams.num_labels),
)
self.loss_fn = torch.nn.CrossEntropyLoss()
def forward(
self,
input_ids=None,
attention_mask=None,
position_ids=None,
head_mask=None,
inputs_embeds=None,
):
o1, o2 = self.model(
input_ids,
attention_mask=attention_mask,
position_ids=position_ids,
head_mask=head_mask,
inputs_embeds=inputs_embeds,
)
preds = self.head(o2)
return preds
def _step(self, batch):
preds = self.forward(
input_ids=batch["input_ids"], attention_mask=batch["attention_mask"],
)
loss = self.loss_fn(preds, batch["label"])
return loss, preds
def training_step(self, batch, batch_nb):
loss, _ = self._step(batch)
tensorboard_logs = {"train_loss": loss}
return {"loss": loss, "log": tensorboard_logs}
def validation_step(self, batch, batch_nb):
loss, preds = self._step(batch)
labels = batch["label"]
pred = argparse.Namespace(label_ids=labels.cpu(), predictions=preds.cpu())
results = classification_metrics(pred)
results["loss"] = loss.cpu()
return results
def test_step(self, batch, batch_nb):
return self.validation_step(batch, batch_nb)
def _avg_epoch_end(self, outputs):
total_samples = np.sum([x["nb_samples"] for x in outputs])
avg_loss = np.sum([x["loss"] * x["nb_samples"] for x in outputs]) / total_samples
avg_acc = np.sum([x["accuracy"] * x["nb_samples"] for x in outputs]) / total_samples
#micro
avg_f1_micro = np.sum([x["f1_micro"] * x["nb_samples"] for x in outputs]) / total_samples
avg_precision_micro = np.sum(
[x["precision_micro"] * x["nb_samples"] for x in outputs]
) / total_samples
avg_recall_micro = np.sum([x["recall_micro"] * x["nb_samples"] for x in outputs]) / total_samples
#macro
avg_f1_macro = np.sum([x["f1_macro"] * x["nb_samples"] for x in outputs]) / total_samples
avg_precision_macro = np.sum(
[x["precision_macro"] for x in outputs]
) / total_samples
avg_recall_macro = np.sum([x["recall_macro"] * x["nb_samples"] for x in outputs]) / total_samples
return {
"avg_loss": avg_loss,
"avg_acc": avg_acc,
"avg_f1_micro": avg_f1_micro,
"avg_precision_micro": avg_precision_micro,
"avg_recall_micro": avg_recall_micro,
"avg_f1_macro": avg_f1_macro,
"avg_precision_macro": avg_precision_macro,
"avg_recall_macro": avg_recall_macro,
"total_samples": total_samples,
}
def validation_epoch_end(self, outputs):
results = self._avg_epoch_end(outputs)
tensorboard_logs = {
"val_loss": results["avg_loss"],
"avg_val_acc": results["avg_acc"],
"avg_val_f1_micro": results["avg_f1_micro"],
"avg_val_precision_micro": results["avg_precision_micro"],
"avg_val_recall_micro": results["avg_recall_micro"],
"avg_val_f1_macro": results["avg_f1_macro"],
"avg_val_precision_macro": results["avg_precision_macro"],
"avg_val_recall_macro": results["avg_recall_macro"],
"total_samples": results["total_samples"]
}
return {
"val_loss": results["avg_loss"],
"log": tensorboard_logs,
"progress_bar": tensorboard_logs,
}
def test_epoch_end(self, outputs):
results = self._avg_epoch_end(outputs)
tensorboard_logs = {
"test_loss": results["avg_loss"],
"avg_test_acc": results["avg_acc"],
"avg_test_f1_micro": results["avg_f1_micro"],
"avg_test_precision_micro": results["avg_precision_micro"],
"avg_test_recall_micro": results["avg_recall_micro"],
"avg_test_f1_macro": results["avg_f1_macro"],
"avg_test_precision_macro": results["avg_precision_macro"],
"avg_test_recall_macro": results["avg_recall_macro"],
"total_samples": results["total_samples"]
}
return {
"test_loss": results["avg_loss"],
"log": tensorboard_logs,
"progress_bar": tensorboard_logs,
}
def configure_optimizers(self):
model = self.model
no_decay = ["bias", "LayerNorm.weight", "LayerNorm.weight"]
optimizer_grouped_parameters = [
{
"params": [
p
for n, p in model.named_parameters()
if not any(nd in n for nd in no_decay)
],
"weight_decay": self.hparams.weight_decay,
},
{
"params": [
p
for n, p in model.named_parameters()
if any(nd in n for nd in no_decay)
],
"weight_decay": 0.0,
},
]
optimizer = AdamW(
optimizer_grouped_parameters,
lr=self.hparams.learning_rate,
eps=self.hparams.adam_epsilon,
)
self.opt = optimizer
return [optimizer]
def optimizer_step(
self,
epoch,
batch_idx,
optimizer,
optimizer_idx,
second_order_closure=None,
on_tpu=False,
using_native_amp=False,
using_lbfgs=False,
):
optimizer.step()
optimizer.zero_grad()
self.lr_scheduler.step()
def train_dataloader(self):
train_dataset = SequenceClassificationDataset(
tokenizer=self.tokenizer,
data_dir=self.hparams.train_dir,
max_length=self.hparams.max_length,
)
dataloader = DataLoader(
train_dataset,
batch_size=self.hparams.per_device_train_batch_size,
drop_last=True,
shuffle=True,
num_workers=4,
)
# calculate total timesteps
t_total = (
(
len(dataloader.dataset)
// (
self.hparams.per_device_train_batch_size
* max(1, self.hparams.n_gpu)
)
)
// self.hparams.gradient_accumulation_steps
* float(self.hparams.num_train_epochs)
)
# create scheduler
scheduler = get_linear_schedule_with_warmup(
self.opt,
num_warmup_steps=self.hparams.warmup_steps,
num_training_steps=t_total,
)
self.lr_scheduler = scheduler
return dataloader
def val_dataloader(self):
val_dataset = SequenceClassificationDataset(
tokenizer=self.tokenizer,
data_dir=self.hparams.valid_dir,
max_length=self.hparams.max_length,
)
return DataLoader(
val_dataset,
batch_size=self.hparams.per_device_eval_batch_size,
num_workers=4,
)
def test_dataloader(self):
test_dataset = SequenceClassificationDataset(
tokenizer=self.tokenizer,
data_dir=self.hparams.test_dir,
max_length=self.hparams.max_length,
)
return DataLoader(
test_dataset,
batch_size=self.hparams.per_device_eval_batch_size,
num_workers=4,
)
| 35.48723 | 105 | 0.587499 | 2,022 | 18,063 | 4.909496 | 0.097923 | 0.065377 | 0.034452 | 0.023572 | 0.884255 | 0.867231 | 0.867231 | 0.859172 | 0.859172 | 0.842551 | 0 | 0.00475 | 0.312351 | 18,063 | 508 | 106 | 35.557087 | 0.794461 | 0.008138 | 0 | 0.75388 | 0 | 0 | 0.118173 | 0.01519 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064302 | false | 0 | 0.019956 | 0.004435 | 0.144124 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
045d503619b05e993b9b490e9310457d65e5936f | 90,389 | py | Python | scripts/merge_allele_evidence_ins.py | shohei-kojima/MEGAnE | be8142b2245ff3e01e889912c51a44f8659ac187 | [
"MIT"
] | 2 | 2022-03-30T00:59:56.000Z | 2022-03-31T18:29:36.000Z | scripts/merge_allele_evidence_ins.py | shohei-kojima/MEGAnE | be8142b2245ff3e01e889912c51a44f8659ac187 | [
"MIT"
] | null | null | null | scripts/merge_allele_evidence_ins.py | shohei-kojima/MEGAnE | be8142b2245ff3e01e889912c51a44f8659ac187 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
Author: Shohei Kojima @ RIKEN
Copyright (c) 2020 RIKEN
All Rights Reserved
See file LICENSE for details.
'''
import os,math
from scipy import stats
import seaborn as sns
import matplotlib
matplotlib.use('pdf')
import matplotlib.gridspec as gridspec
import matplotlib.pyplot as plt
import log,traceback
matplotlib.rcParams['lines.linewidth']=0.5
matplotlib.rcParams['axes.linewidth']=0.5
matplotlib.rcParams['xtick.major.width']=0.5
matplotlib.rcParams['ytick.major.width']=0.5
matplotlib.rcParams['font.size']=5
def plot_orig(args, params, filenames, data):
log.logger.debug('started')
try:
if not data.disc_thresholds is False:
plt.figure(figsize=(6.2, 4)) # (x, y)
gs=gridspec.GridSpec(5, 8, height_ratios=[0.05, 0.3, 0.1, 0.05, 0.3], width_ratios=[0.3, 0.05, 0.1, 0.3, 0.05, 0.1, 0.3, 0.05]) # (y, x)
gs.update(hspace=0.05, wspace=0.05)
# 1
x,y=[],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'TSD':
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_spanning[id][1])
ax=plt.subplot(gs[0,0]) # tsd, x=tsd
sns_x=[ i for i in x if i < data.tsd_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(0, data.tsd_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,1]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.spanning_thresholds[2] ]
sns.violinplot(sns_x, orient='v', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(-5, data.spanning_thresholds[2])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,0]) # tsd, x=tsd, y=spanning
if len(x) > 2000:
alpha_coeff=0.5
elif len(x) > 10000:
alpha_coeff=0.2
elif len(x) > 20000:
alpha_coeff=0.1
else:
alpha_coeff=1
ax.scatter(x, y, s=5, c='dodgerblue', linewidths=0.5, alpha= 0.1 * alpha_coeff)
ax.axvline(x=data.tsd_thresholds[0], linewidth=0.5, alpha=0.25, color='steelblue', linestyle='dashed')
ax.axvline(x=data.tsd_thresholds[1], linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
ax.axvline(x=data.tsd_thresholds[2], linewidth=0.5, alpha=0.25, color='steelblue', linestyle='dashed')
ax.axvline(x=data.tsd_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[0], linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[1], linewidth=0.5, alpha=0.25, color='steelblue', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[2], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, TSD')
ax.set_ylabel('# spanning read')
ax.set_xlim(0, data.tsd_thresholds[3])
ax.set_ylim(-5, data.spanning_thresholds[2])
# 2
x,y=[],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'TSD':
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_disc[id][1])
ax=plt.subplot(gs[3,0]) # tsd, x=tsd
sns_x=[ i for i in x if i < data.tsd_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(0, data.tsd_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[4,1]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.disc_thresholds[3] ]
sns.violinplot(sns_x, orient='v', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(0, data.disc_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[4,0]) # tsd, x=tsd, y=discordant reads
if len(x) > 2000:
alpha_coeff=0.5
elif len(x) > 10000:
alpha_coeff=0.2
elif len(x) > 20000:
alpha_coeff=0.1
else:
alpha_coeff=1
ax.scatter(x, y, s=5, c='dodgerblue', linewidths=0.5, alpha= 0.1 * alpha_coeff)
ax.axvline(x=data.tsd_thresholds[0], linewidth=0.5, alpha=0.25, color='steelblue', linestyle='dashed')
ax.axvline(x=data.tsd_thresholds[1], linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
ax.axvline(x=data.tsd_thresholds[2], linewidth=0.5, alpha=0.25, color='steelblue', linestyle='dashed')
ax.axvline(x=data.tsd_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[0], linewidth=0.5, alpha=0.25, color='steelblue', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[1], linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[2], linewidth=0.5, alpha=0.25, color='steelblue', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, TSD')
ax.set_ylabel('# discordant read')
ax.set_xlim(0, data.tsd_thresholds[3])
ax.set_ylim(0, data.disc_thresholds[3])
# 3
if not data.del_thresholds[0] is None:
x,y=[],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'Del':
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_spanning[id][1])
ax=plt.subplot(gs[0,3]) # del, x=tsd
sns_x=[ i for i in x if i < data.del_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,4]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.spanning_thresholds[2] ]
sns.violinplot(sns_x, orient='v', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(-5, data.spanning_thresholds[2])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,3]) # del, x=tsd, y=spanning
ax.scatter(x, y, s=5, c='coral', linewidths=0.5, alpha=0.1)
ax.axvline(x=data.del_thresholds[0], linewidth=0.5, alpha=0.25, color='orangered', linestyle='dashed')
ax.axvline(x=data.del_thresholds[1], linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axvline(x=data.del_thresholds[2], linewidth=0.5, alpha=0.25, color='orangered', linestyle='dashed')
ax.axvline(x=data.del_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[0], linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[1], linewidth=0.5, alpha=0.25, color='orangered', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[2], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, Del')
ax.set_ylabel('# spanning read')
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.set_ylim(-5, data.spanning_thresholds[2])
# 4
x,y=[],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'Del':
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_disc[id][1])
ax=plt.subplot(gs[3,3]) # del, x=tsd
sns_x=[ i for i in x if i < data.del_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[4,4]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.disc_thresholds[3] ]
sns.violinplot(sns_x, orient='v', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(0, data.disc_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[4,3]) # del, x=tsd, y=discordant reads
ax.scatter(x, y, s=5, c='coral', linewidths=0.5, alpha=0.1)
ax.axvline(x=data.del_thresholds[0], linewidth=0.5, alpha=0.25, color='orangered', linestyle='dashed')
ax.axvline(x=data.del_thresholds[1], linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axvline(x=data.del_thresholds[2], linewidth=0.5, alpha=0.25, color='orangered', linestyle='dashed')
ax.axvline(x=data.del_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[0], linewidth=0.5, alpha=0.25, color='orangered', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[1], linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[2], linewidth=0.5, alpha=0.25, color='orangered', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, Del')
ax.set_ylabel('# discordant read')
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.set_ylim(0, data.disc_thresholds[3])
# 5
x,y=[],[]
for id in data.cn_est_disc:
x.append(data.cn_est_disc[id][1])
y.append(data.cn_est_spanning[id][1])
ax=plt.subplot(gs[0,6]) # del, x=tsd
sns_x=[ i for i in x if i < data.disc_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='darkgreen')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(0, data.disc_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,7]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.spanning_thresholds[2] ]
sns.violinplot(sns_x, orient='v', color='darkgreen')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(-5, data.spanning_thresholds[2])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,6]) # x=discordant, y=spanning reads
ax.scatter(x, y, s=5, c='seagreen', linewidths=0.5, alpha=0.1)
ax.axvline(x=data.disc_thresholds[0], linewidth=0.5, alpha=0.25, color='forestgreen', linestyle='dashed')
ax.axvline(x=data.disc_thresholds[1], linewidth=0.5, alpha=0.50, color='forestgreen', linestyle='dashed')
ax.axvline(x=data.disc_thresholds[2], linewidth=0.5, alpha=0.25, color='forestgreen', linestyle='dashed')
ax.axvline(x=data.disc_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[0], linewidth=0.5, alpha=0.50, color='forestgreen', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[1], linewidth=0.5, alpha=0.25, color='forestgreen', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[2], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('# discordant read')
ax.set_ylabel('# spanning read')
ax.set_xlim(0, data.disc_thresholds[3])
ax.set_ylim(-5, data.spanning_thresholds[2])
else:
log.logger.warning('No discordant read stat available. Will use other evidences.')
plt.figure(figsize=(4.1, 2)) # (x, y)
gs=gridspec.GridSpec(2, 5, height_ratios=[0.05, 0.3], width_ratios=[0.3, 0.05, 0.1, 0.3, 0.05]) # (y, x)
gs.update(hspace=0.05, wspace=0.05)
# 1
x,y=[],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'TSD':
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_spanning[id][1])
ax=plt.subplot(gs[0,0]) # tsd, x=tsd
sns_x=[ i for i in x if i < data.tsd_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(0, data.tsd_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,1]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.spanning_thresholds[2] ]
sns.violinplot(sns_x, orient='v', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(-5, data.spanning_thresholds[2])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,0]) # tsd, x=tsd, y=spanning
ax.scatter(x, y, s=5, c='dodgerblue', linewidths=0.5, alpha=0.1)
ax.axvline(x=data.tsd_thresholds[0], linewidth=0.5, alpha=0.25, color='steelblue', linestyle='dashed')
ax.axvline(x=data.tsd_thresholds[1], linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
ax.axvline(x=data.tsd_thresholds[2], linewidth=0.5, alpha=0.25, color='steelblue', linestyle='dashed')
ax.axvline(x=data.tsd_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[0], linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[1], linewidth=0.5, alpha=0.25, color='steelblue', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[2], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, TSD')
ax.set_ylabel('# spanning read')
ax.set_xlim(0, data.tsd_thresholds[3])
ax.set_ylim(-5, data.spanning_thresholds[2])
# 2
if not data.del_thresholds[0] is None:
x,y=[],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'Del':
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_spanning[id][1])
ax=plt.subplot(gs[0,3]) # del, x=tsd
sns_x=[ i for i in x if i < data.del_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,4]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.spanning_thresholds[2] ]
sns.violinplot(sns_x, orient='v', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(-5, data.spanning_thresholds[2])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,3]) # del, x=tsd, y=spanning
ax.scatter(x, y, s=5, c='coral', linewidths=0.5, alpha=0.1)
ax.axvline(x=data.del_thresholds[0], linewidth=0.5, alpha=0.25, color='orangered', linestyle='dashed')
ax.axvline(x=data.del_thresholds[1], linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axvline(x=data.del_thresholds[2], linewidth=0.5, alpha=0.25, color='orangered', linestyle='dashed')
ax.axvline(x=data.del_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[0], linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[1], linewidth=0.5, alpha=0.25, color='orangered', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[2], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, Del')
ax.set_ylabel('# spanning read')
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.set_ylim(-5, data.spanning_thresholds[2])
plt.suptitle('This is a figure for debugging')
if args.no_pdf is False:
plt.savefig(filenames.debug_pdf1)
plt.close()
except:
log.logger.error('\n'+ traceback.format_exc())
exit(1)
def plot_merged(args, params, filenames, data):
log.logger.debug('started')
try:
# load mei search filter result
global mei_filter
mei_filter={}
with open(args.ins_bed) as infile:
for line in infile:
ls=line.strip().split()
if ls[6] == 'confidence:high':
mei_filter[ls[10]]=True
else:
mei_filter[ls[10]]=False
# load genotyping results
spanning_threshold_for_merge= 1 + math.ceil(args.cov * params.spanning_threshold_coeff_for_merge)
if not data.disc_thresholds is False:
plt.figure(figsize=(6.2, 4)) # (x, y)
gs=gridspec.GridSpec(5, 8, height_ratios=[0.05, 0.3, 0.1, 0.05, 0.3], width_ratios=[0.3, 0.05, 0.1, 0.3, 0.05, 0.1, 0.3, 0.05]) # (y, x)
gs.update(hspace=0.05, wspace=0.05)
x,y, x_mono,y_mono, x_bi,y_bi, x_failed,y_failed=[],[], [],[], [],[], [],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'TSD':
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_spanning[id][1])
if mei_filter[id] is True:
if data.merged_res[id][0] == 1:
x_mono.append(data.cn_est_tsd_depth[id][1])
y_mono.append(data.cn_est_spanning[id][1])
else:
x_bi.append(data.cn_est_tsd_depth[id][1])
y_bi.append(data.cn_est_spanning[id][1])
else:
x_failed.append(data.cn_est_tsd_depth[id][1])
y_failed.append(data.cn_est_spanning[id][1])
# 1
ax=plt.subplot(gs[0,0]) # tsd, x=tsd
sns_x=[ i for i in x if i < data.tsd_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(0, data.tsd_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,1]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.spanning_thresholds[2] ]
sns.violinplot(sns_x, orient='v', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(-5, data.spanning_thresholds[2])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,0]) # tsd, x=tsd, y=spanning
n_datapoint= len(x_failed + x_mono + x_bi)
if n_datapoint > 2000:
alpha_coeff=0.5
elif n_datapoint > 10000:
alpha_coeff=0.2
elif n_datapoint > 20000:
alpha_coeff=0.1
else:
alpha_coeff=1
ax.scatter(x_failed, y_failed, s=5, c='silver', linewidths=0.5, alpha=0.1 * alpha_coeff)
ax.scatter(x_mono, y_mono, s=5, c='lightskyblue', linewidths=0.5, alpha=0.1 * alpha_coeff)
ax.scatter(x_bi, y_bi, s=5, c='steelblue', linewidths=0.5, alpha=0.1 * alpha_coeff)
ax.axvline(x=data.tsd_thresholds[4], linewidth=0.5, alpha=0.25, color='steelblue', linestyle='dashed')
ax.axvline(x=data.tsd_thresholds[1], linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
ax.axvline(x=data.tsd_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=spanning_threshold_for_merge, linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[2], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, TSD')
ax.set_ylabel('# spanning read')
ax.set_xlim(0, data.tsd_thresholds[3])
ax.set_ylim(-5, data.spanning_thresholds[2])
# 2
x,y, x_mono,y_mono, x_bi,y_bi, x_failed,y_failed=[],[], [],[], [],[], [],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'TSD':
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_disc[id][1])
if mei_filter[id] is True:
if data.merged_res[id][0] == 1:
x_mono.append(data.cn_est_tsd_depth[id][1])
y_mono.append(data.cn_est_disc[id][1])
else:
x_bi.append(data.cn_est_tsd_depth[id][1])
y_bi.append(data.cn_est_disc[id][1])
else:
x_failed.append(data.cn_est_tsd_depth[id][1])
y_failed.append(data.cn_est_disc[id][1])
ax=plt.subplot(gs[3,0]) # tsd, x=tsd
sns_x=[ i for i in x if i < data.tsd_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(0, data.tsd_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[4,1]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.disc_thresholds[3] ]
sns.violinplot(sns_x, orient='v', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(0, data.disc_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[4,0]) # tsd, x=tsd, y=discordant reads
n_datapoint= len(x_failed + x_mono + x_bi)
if n_datapoint > 2000:
alpha_coeff=0.5
elif n_datapoint > 10000:
alpha_coeff=0.2
elif n_datapoint > 20000:
alpha_coeff=0.1
else:
alpha_coeff=1
ax.scatter(x_failed, y_failed, s=5, c='silver', linewidths=0.5, alpha=0.1 * alpha_coeff)
ax.scatter(x_mono, y_mono, s=5, c='lightskyblue', linewidths=0.5, alpha=0.1 * alpha_coeff)
ax.scatter(x_bi, y_bi, s=5, c='steelblue', linewidths=0.5, alpha=0.1 * alpha_coeff)
ax.axvline(x=data.tsd_thresholds[4], linewidth=0.5, alpha=0.25, color='steelblue', linestyle='dashed')
ax.axvline(x=data.tsd_thresholds[1], linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
ax.axvline(x=data.tsd_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[0], linewidth=0.5, alpha=0.25, color='steelblue', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[1], linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[2], linewidth=0.5, alpha=0.25, color='steelblue', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, TSD')
ax.set_ylabel('# discordant read')
ax.set_xlim(0, data.tsd_thresholds[3])
ax.set_ylim(0, data.disc_thresholds[3])
# 3
if not data.del_thresholds[0] is None:
x,y, x_mono,y_mono, x_bi,y_bi, x_failed,y_failed=[],[], [],[], [],[], [],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'Del':
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_spanning[id][1])
if mei_filter[id] is True:
if data.merged_res[id][0] == 1:
x_mono.append(data.cn_est_tsd_depth[id][1])
y_mono.append(data.cn_est_spanning[id][1])
else:
x_bi.append(data.cn_est_tsd_depth[id][1])
y_bi.append(data.cn_est_spanning[id][1])
else:
x_failed.append(data.cn_est_tsd_depth[id][1])
y_failed.append(data.cn_est_spanning[id][1])
ax=plt.subplot(gs[0,3]) # del, x=tsd
sns_x=[ i for i in x if i < data.del_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,4]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.spanning_thresholds[2] ]
sns.violinplot(sns_x, orient='v', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(-5, data.spanning_thresholds[2])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,3]) # del, x=tsd, y=spanning
n_datapoint= len(x_failed + x_mono + x_bi)
if n_datapoint > 2000:
alpha_coeff=0.5
elif n_datapoint > 10000:
alpha_coeff=0.2
elif n_datapoint > 20000:
alpha_coeff=0.1
else:
alpha_coeff=1
ax.scatter(x_failed, y_failed, s=5, c='silver', linewidths=0.5, alpha=0.1 * alpha_coeff)
ax.scatter(x_mono, y_mono, s=5, c='gold', linewidths=0.5, alpha=0.2 * alpha_coeff)
ax.scatter(x_bi, y_bi, s=5, c='darkred', linewidths=0.5, alpha=0.2 * alpha_coeff)
ax.axvline(x=data.del_thresholds[1], linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axvline(x=data.del_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=spanning_threshold_for_merge, linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[2], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, Del')
ax.set_ylabel('# spanning read')
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.set_ylim(-5, data.spanning_thresholds[2])
# 4
x,y, x_mono,y_mono, x_bi,y_bi, x_failed,y_failed=[],[], [],[], [],[], [],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'Del':
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_disc[id][1])
if mei_filter[id] is True:
if data.merged_res[id][0] == 1:
x_mono.append(data.cn_est_tsd_depth[id][1])
y_mono.append(data.cn_est_disc[id][1])
else:
x_bi.append(data.cn_est_tsd_depth[id][1])
y_bi.append(data.cn_est_disc[id][1])
else:
x_failed.append(data.cn_est_tsd_depth[id][1])
y_failed.append(data.cn_est_disc[id][1])
ax=plt.subplot(gs[3,3]) # del, x=tsd
sns_x=[ i for i in x if i < data.del_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[4,4]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.disc_thresholds[3] ]
sns.violinplot(sns_x, orient='v', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(0, data.disc_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[4,3]) # del, x=tsd, y=discordant reads
n_datapoint= len(x_failed + x_mono + x_bi)
if n_datapoint > 2000:
alpha_coeff=0.5
elif n_datapoint > 10000:
alpha_coeff=0.2
elif n_datapoint > 20000:
alpha_coeff=0.1
else:
alpha_coeff=1
ax.scatter(x_failed, y_failed, s=5, c='silver', linewidths=0.5, alpha=0.1 * alpha_coeff)
ax.scatter(x_mono, y_mono, s=5, c='gold', linewidths=0.5, alpha=0.2 * alpha_coeff)
ax.scatter(x_bi, y_bi, s=5, c='darkred', linewidths=0.5, alpha=0.2 * alpha_coeff)
ax.axvline(x=data.del_thresholds[1], linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axvline(x=data.del_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[0], linewidth=0.5, alpha=0.25, color='orangered', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[1], linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[2], linewidth=0.5, alpha=0.25, color='orangered', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, Del')
ax.set_ylabel('# discordant read')
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.set_ylim(0, data.disc_thresholds[3])
# 5
x,y, x_mono,y_mono, x_bi,y_bi, x_failed,y_failed=[],[], [],[], [],[], [],[]
for id in data.cn_est_disc:
x.append(data.cn_est_disc[id][1])
y.append(data.cn_est_spanning[id][1])
if mei_filter[id] is True:
if data.merged_res[id][0] == 1:
x_mono.append(data.cn_est_disc[id][1])
y_mono.append(data.cn_est_spanning[id][1])
else:
x_bi.append(data.cn_est_disc[id][1])
y_bi.append(data.cn_est_spanning[id][1])
else:
x_failed.append(data.cn_est_disc[id][1])
y_failed.append(data.cn_est_spanning[id][1])
ax=plt.subplot(gs[0,6]) # del, x=tsd
sns_x=[ i for i in x if i < data.disc_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='darkgreen')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(0, data.disc_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,7]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.spanning_thresholds[2] ]
sns.violinplot(sns_x, orient='v', color='darkgreen')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(-5, data.spanning_thresholds[2])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,6]) # x=discordant, y=spanning reads
n_datapoint= len(x_failed + x_mono + x_bi)
if n_datapoint > 2000:
alpha_coeff=0.5
elif n_datapoint > 10000:
alpha_coeff=0.2
elif n_datapoint > 20000:
alpha_coeff=0.1
else:
alpha_coeff=1
ax.scatter(x_failed, y_failed, s=5, c='silver', linewidths=0.5, alpha=0.1 * alpha_coeff)
ax.scatter(x_mono, y_mono, s=5, c='lightgreen', linewidths=0.5, alpha=0.1 * alpha_coeff)
ax.scatter(x_bi, y_bi, s=5, c='darkolivegreen', linewidths=0.5, alpha=0.1 * alpha_coeff)
ax.axvline(x=data.disc_thresholds[0], linewidth=0.5, alpha=0.25, color='forestgreen', linestyle='dashed')
ax.axvline(x=data.disc_thresholds[1], linewidth=0.5, alpha=0.50, color='forestgreen', linestyle='dashed')
ax.axvline(x=data.disc_thresholds[2], linewidth=0.5, alpha=0.25, color='forestgreen', linestyle='dashed')
ax.axvline(x=data.disc_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=spanning_threshold_for_merge, linewidth=0.5, alpha=0.50, color='forestgreen', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[2], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('# discordant read')
ax.set_ylabel('# spanning read')
ax.set_xlim(0, data.disc_thresholds[3])
ax.set_ylim(-5, data.spanning_thresholds[2])
else:
log.logger.warning('No discordant read stat available. Will use other evidences.')
plt.figure(figsize=(4.1, 2)) # (x, y)
gs=gridspec.GridSpec(2, 5, height_ratios=[0.05, 0.3], width_ratios=[0.3, 0.05, 0.1, 0.3, 0.05]) # (y, x)
gs.update(hspace=0.05, wspace=0.05)
# 1
x,y, x_mono,y_mono, x_bi,y_bi, x_failed,y_failed=[],[], [],[], [],[], [],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'TSD':
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_spanning[id][1])
if mei_filter[id] is True:
if data.merged_res[id][0] == 1:
x_mono.append(data.cn_est_tsd_depth[id][1])
y_mono.append(data.cn_est_spanning[id][1])
else:
x_bi.append(data.cn_est_tsd_depth[id][1])
y_bi.append(data.cn_est_spanning[id][1])
else:
x_failed.append(data.cn_est_tsd_depth[id][1])
y_failed.append(data.cn_est_spanning[id][1])
ax=plt.subplot(gs[0,0]) # tsd, x=tsd
sns_x=[ i for i in x if i < data.tsd_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(0, data.tsd_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,1]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.spanning_thresholds[2] ]
sns.violinplot(sns_x, orient='v', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(-5, data.spanning_thresholds[2])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,0]) # tsd, x=tsd, y=spanning
ax.scatter(x_failed, y_failed, s=5, c='silver', linewidths=0.5, alpha=0.1)
ax.scatter(x_mono, y_mono, s=5, c='lightskyblue', linewidths=0.5, alpha=0.1)
ax.scatter(x_bi, y_bi, s=5, c='steelblue', linewidths=0.5, alpha=0.1)
ax.axvline(x=data.tsd_thresholds[1], linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
ax.axvline(x=data.tsd_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=spanning_threshold_for_merge, linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[2], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, TSD')
ax.set_ylabel('# spanning read')
ax.set_xlim(0, data.tsd_thresholds[3])
ax.set_ylim(-5, data.spanning_thresholds[2])
# 2
if not data.del_thresholds[0] is None:
x,y, x_mono,y_mono, x_bi,y_bi, x_failed,y_failed=[],[], [],[], [],[], [],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'Del':
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_spanning[id][1])
if mei_filter[id] is True:
if data.merged_res[id][0] == 1:
x_mono.append(data.cn_est_tsd_depth[id][1])
y_mono.append(data.cn_est_spanning[id][1])
else:
x_bi.append(data.cn_est_tsd_depth[id][1])
y_bi.append(data.cn_est_spanning[id][1])
else:
x_failed.append(data.cn_est_tsd_depth[id][1])
y_failed.append(data.cn_est_spanning[id][1])
ax=plt.subplot(gs[0,3]) # del, x=tsd
sns_x=[ i for i in x if i < data.del_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,4]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.spanning_thresholds[2] ]
sns.violinplot(sns_x, orient='v', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(-5, data.spanning_thresholds[2])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,3]) # del, x=tsd, y=spanning
ax.scatter(x_failed, y_failed, s=5, c='silver', linewidths=0.5, alpha=0.1)
ax.scatter(x_mono, y_mono, s=5, c='gold', linewidths=0.5, alpha=0.2)
ax.scatter(x_bi, y_bi, s=5, c='darkred', linewidths=0.5, alpha=0.2)
ax.axvline(x=data.del_thresholds[1], linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axvline(x=data.del_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=spanning_threshold_for_merge, linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[2], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, Del')
ax.set_ylabel('# spanning read')
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.set_ylim(-5, data.spanning_thresholds[2])
plt.suptitle('Genotyping result for insertions')
if args.no_pdf is False:
plt.savefig(filenames.merged_pdf)
plt.close()
except:
log.logger.error('\n'+ traceback.format_exc())
exit(1)
def plot_merged_wo_disc(args, params, filenames, data):
log.logger.debug('started')
try:
# load mei search filter result
global mei_filter
mei_filter={}
with open(args.ins_bed) as infile:
for line in infile:
ls=line.strip().split()
if ls[6] == 'confidence:high':
mei_filter[ls[10]]=True
else:
mei_filter[ls[10]]=False
# load genotyping results
spanning_threshold_for_merge= 1 + math.ceil(args.cov * params.spanning_threshold_coeff_for_merge)
plt.figure(figsize=(6.2, 4)) # (x, y)
gs=gridspec.GridSpec(5, 8, height_ratios=[0.05, 0.3, 0.1, 0.05, 0.3], width_ratios=[0.3, 0.05, 0.1, 0.3, 0.05, 0.1, 0.3, 0.05]) # (y, x)
gs.update(hspace=0.05, wspace=0.05)
x,y, x_mono,y_mono, x_bi,y_bi, x_failed,y_failed=[],[], [],[], [],[], [],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'TSD':
if mei_filter[id] is True:
if data.merged_res[id][0] == 1:
x_mono.append(data.cn_est_tsd_depth[id][1])
y_mono.append(data.cn_est_spanning[id][1])
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_spanning[id][1])
elif data.merged_res[id][0] == 2:
x_bi.append(data.cn_est_tsd_depth[id][1])
y_bi.append(data.cn_est_spanning[id][1])
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_spanning[id][1])
else:
x_failed.append(data.cn_est_tsd_depth[id][1])
y_failed.append(data.cn_est_spanning[id][1])
# 1
ax=plt.subplot(gs[0,0]) # tsd, x=tsd
sns_x=[ i for i in x if i < data.tsd_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(0, data.tsd_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,1]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.spanning_thresholds[2] ]
sns.violinplot(sns_x, orient='v', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(-5, data.spanning_thresholds[2])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,0]) # tsd, x=tsd, y=spanning
ax.scatter(x_failed, y_failed, s=5, c='silver', linewidths=0.5, alpha=0.1)
ax.scatter(x_mono, y_mono, s=5, c='lightskyblue', linewidths=0.5, alpha=0.1)
ax.scatter(x_bi, y_bi, s=5, c='steelblue', linewidths=0.5, alpha=0.1)
ax.axvline(x=data.tsd_thresholds[4], linewidth=0.5, alpha=0.25, color='steelblue', linestyle='dashed')
ax.axvline(x=data.tsd_thresholds[1], linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
ax.axvline(x=data.tsd_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=spanning_threshold_for_merge, linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[2], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, TSD')
ax.set_ylabel('# spanning read')
ax.set_xlim(0, data.tsd_thresholds[3])
ax.set_ylim(-5, args.cov * params.spanning_outlier_coeff)
# 3
x,y, x_mono,y_mono, x_bi,y_bi, x_failed,y_failed=[],[], [],[], [],[], [],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'Del':
if mei_filter[id] is True:
if data.merged_res[id][0] == 1:
x_mono.append(data.cn_est_tsd_depth[id][1])
y_mono.append(data.cn_est_spanning[id][1])
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_spanning[id][1])
elif data.merged_res[id][0] == 2:
x_bi.append(data.cn_est_tsd_depth[id][1])
y_bi.append(data.cn_est_spanning[id][1])
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_spanning[id][1])
else:
x_failed.append(data.cn_est_tsd_depth[id][1])
y_failed.append(data.cn_est_spanning[id][1])
ax=plt.subplot(gs[0,3]) # del, x=tsd
sns_x=[ i for i in x if i < data.del_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,4]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.spanning_thresholds[2] ]
sns.violinplot(sns_x, orient='v', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(-5, data.spanning_thresholds[2])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,3]) # del, x=tsd, y=spanning
ax.scatter(x_failed, y_failed, s=5, c='silver', linewidths=0.5, alpha=0.1)
ax.scatter(x_mono, y_mono, s=5, c='gold', linewidths=0.5, alpha=0.2)
ax.scatter(x_bi, y_bi, s=5, c='darkred', linewidths=0.5, alpha=0.2)
ax.axvline(x=data.del_thresholds[1], linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axvline(x=data.del_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=spanning_threshold_for_merge, linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[2], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, Del')
ax.set_ylabel('# spanning read')
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.set_ylim(-5, args.cov * params.spanning_outlier_coeff)
plt.suptitle('Genotyping result for insertions')
if args.no_pdf is False:
plt.savefig(filenames.merged_pdf)
plt.close()
except:
log.logger.error('\n'+ traceback.format_exc())
exit(1)
def merge(args, params, filenames, data):
log.logger.debug('started')
try:
global merged_res
merged_res={}
if not data.disc_thresholds is False:
def judge_outlier(id, data):
tmp=[]
if data.cn_est_spanning[id][0] == 'outlier':
tmp.append('S')
if data.cn_est_tsd_depth[id][0] == 'outlier':
tmp.append('D')
# if data.cn_est_disc[id][0] == 'outlier':
# tmp.append('R')
if len(tmp) == 0:
tmp='PASS'
else:
tmp=''.join(tmp)
return tmp
spanning_threshold_for_merge= 1 + math.ceil(args.cov * params.spanning_threshold_coeff_for_merge)
for id in data.cn_est_spanning:
outlier_judge=judge_outlier(id, data)
if data.cn_est_spanning[id][1] >= spanning_threshold_for_merge:
allele_count=1
if data.cn_est_tsd_depth[id][2] == 'TSD':
if data.cn_est_tsd_depth[id][1] < data.tsd_thresholds[1] and data.cn_est_disc[id][1] < data.disc_thresholds[2]:
status='H'
else:
status='L'
elif data.cn_est_tsd_depth[id][2] == 'Del':
if not data.del_thresholds[0] is None:
if data.cn_est_tsd_depth[id][1] >= data.del_thresholds[1] and data.cn_est_disc[id][1] >= data.disc_thresholds[0]:
status='H'
else:
status='L'
else:
status='L'
else: # 'no_TSD_no_Del'
status='L'
else:
if data.cn_est_tsd_depth[id][2] == 'TSD':
if data.cn_est_tsd_depth[id][1] >= data.tsd_thresholds[1] and data.cn_est_disc[id][1] >= data.disc_thresholds[0]:
allele_count=2
status='H'
elif data.cn_est_tsd_depth[id][1] >= data.tsd_thresholds[1] and data.cn_est_disc[id][1] < data.disc_thresholds[0]:
allele_count=1.5
status='L'
else:
allele_count=1
status='L'
elif data.cn_est_tsd_depth[id][2] == 'Del':
if not data.del_thresholds[0] is None:
if data.cn_est_tsd_depth[id][1] < data.del_thresholds[1] and data.cn_est_disc[id][1] >= data.disc_thresholds[0]:
allele_count=2
status='H'
else:
allele_count=1
status='L'
else:
status='L'
if data.cn_est_disc[id][1] >= data.disc_thresholds[0]:
allele_count=2
else:
allele_count=1
else: # 'no_TSD_no_Del' and 'no_background_read'
if data.cn_est_disc[id][1] >= data.disc_thresholds[2]:
allele_count=2
status='L'
else:
allele_count=1
status='L'
if not outlier_judge == 'PASS':
status='L'
merged_res[id]=[allele_count, outlier_judge, status]
else:
log.logger.warning('No discordant read stat available. Will use other evidences.')
def judge_outlier(id, data):
tmp=[]
if data.cn_est_spanning[id][0] == 'outlier':
tmp.append('S')
if data.cn_est_tsd_depth[id][0] == 'outlier':
tmp.append('D')
tmp.append('R')
tmp=''.join(tmp)
return tmp
status='L'
spanning_threshold_for_merge= 1 + math.ceil(args.cov * params.spanning_threshold_coeff_for_merge)
for id in data.cn_est_spanning:
outlier_judge=judge_outlier(id, data)
if data.cn_est_spanning[id][1] >= spanning_threshold_for_merge:
allele_count=1
else:
if data.cn_est_tsd_depth[id][2] == 'TSD':
if data.cn_est_tsd_depth[id][1] >= data.tsd_thresholds[1]:
allele_count=2
else:
allele_count=1
elif data.cn_est_tsd_depth[id][2] == 'Del':
if not data.del_thresholds[0] is None:
if data.cn_est_tsd_depth[id][1] < data.del_thresholds[1]:
allele_count=2
else:
allele_count=1
else:
allele_count=1
else: # 'no_TSD_no_Del' and 'no_background_read'
allele_count=2
merged_res[id]=[allele_count, outlier_judge, status]
except:
log.logger.error('\n'+ traceback.format_exc())
exit(1)
def merge_wo_discordant(args, params, filenames, data):
log.logger.debug('started')
try:
global merged_res
merged_res={}
log.logger.debug('Will not use discordant read stat due to -only_geno_precall flag.')
def judge_outlier(id, data):
tmp=[]
if data.cn_est_spanning[id][0] == 'outlier':
tmp.append('S')
if data.cn_est_tsd_depth[id][0] == 'outlier':
tmp.append('D')
if id in data.disc_ids:
if data.disc_ids[id] == 'half':
tmp.append('H')
else:
tmp.append('R')
if len(tmp) == 0:
tmp='PASS'
else:
tmp=''.join(tmp)
return tmp
status='L'
spanning_threshold_for_merge= 1 + math.ceil(args.cov * params.spanning_threshold_coeff_for_merge)
for id in data.cn_est_spanning:
outlier_judge=judge_outlier(id, data)
if outlier_judge == 'PASS':
if data.cn_est_spanning[id][1] >= spanning_threshold_for_merge:
allele_count=1
else:
if data.cn_est_tsd_depth[id][2] == 'TSD':
if data.cn_est_tsd_depth[id][1] >= data.tsd_thresholds[1]:
allele_count=2
else:
allele_count=1
elif data.cn_est_tsd_depth[id][2] == 'Del':
if not data.del_thresholds[0] is None:
if data.cn_est_tsd_depth[id][1] < data.del_thresholds[1]:
allele_count=2
else:
allele_count=1
else:
allele_count=1
else: # 'no_TSD_no_Del' and 'no_background_read'
allele_count=2
else:
allele_count=0
merged_res[id]=[allele_count, outlier_judge, status]
except:
log.logger.error('\n'+ traceback.format_exc())
exit(1)
def plot_gt(args, params, filenames, data):
log.logger.debug('started')
try:
# load mei search filter result
global mei_filter
mei_filter={}
with open(args.ins_bed) as infile:
for line in infile:
ls=line.strip().split()
if ls[6] == 'confidence:high':
mei_filter[ls[10]]=True
else:
mei_filter[ls[10]]=False
# load GT
gt=set()
with open('./genotype_out/gt_intersect.bed') as infile:
for line in infile:
ls=line.split()
gt.add(ls[10])
print(len(gt))
# load genotyping results
spanning_threshold_for_merge= 1 + math.ceil(args.cov * params.spanning_threshold_coeff_for_merge)
plt.figure(figsize=(6.2, 4)) # (x, y)
gs=gridspec.GridSpec(5, 8, height_ratios=[0.05, 0.3, 0.1, 0.05, 0.3], width_ratios=[0.3, 0.05, 0.1, 0.3, 0.05, 0.1, 0.3, 0.05]) # (y, x)
gs.update(hspace=0.05, wspace=0.05)
x,y, x_mono,y_mono, x_bi,y_bi, x_failed,y_failed=[],[], [],[], [],[], [],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'TSD':
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_spanning[id][1])
if id in gt:
if data.merged_res[id][0] == 1:
x_mono.append(data.cn_est_tsd_depth[id][1])
y_mono.append(data.cn_est_spanning[id][1])
else:
x_bi.append(data.cn_est_tsd_depth[id][1])
y_bi.append(data.cn_est_spanning[id][1])
else:
x_failed.append(data.cn_est_tsd_depth[id][1])
y_failed.append(data.cn_est_spanning[id][1])
ax=plt.subplot(gs[0,0]) # tsd, x=tsd
sns_x=[ i for i in x if i < data.tsd_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(0, data.tsd_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,1]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.spanning_thresholds[2] ]
sns.violinplot(sns_x, orient='v', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(-5, data.spanning_thresholds[2])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,0]) # tsd, x=tsd, y=spanning
ax.scatter(x_failed, y_failed, s=5, c='silver', linewidths=0.5, alpha=0.1)
ax.scatter(x_mono, y_mono, s=5, c='lightskyblue', linewidths=0.5, alpha=0.1)
ax.scatter(x_bi, y_bi, s=5, c='steelblue', linewidths=0.5, alpha=0.1)
ax.axvline(x=data.tsd_thresholds[4], linewidth=0.5, alpha=0.25, color='steelblue', linestyle='dashed')
ax.axvline(x=data.tsd_thresholds[1], linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
ax.axvline(x=data.tsd_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=spanning_threshold_for_merge, linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[2], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, TSD')
ax.set_ylabel('# spanning read')
ax.set_xlim(0, data.tsd_thresholds[3])
ax.set_ylim(-5, data.spanning_thresholds[2])
x,y, x_mono,y_mono, x_bi,y_bi, x_failed,y_failed=[],[], [],[], [],[], [],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'TSD':
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_disc[id][1])
if id in gt:
if data.merged_res[id][0] == 1:
x_mono.append(data.cn_est_tsd_depth[id][1])
y_mono.append(data.cn_est_disc[id][1])
else:
x_bi.append(data.cn_est_tsd_depth[id][1])
y_bi.append(data.cn_est_disc[id][1])
else:
x_failed.append(data.cn_est_tsd_depth[id][1])
y_failed.append(data.cn_est_disc[id][1])
ax=plt.subplot(gs[3,0]) # tsd, x=tsd
sns_x=[ i for i in x if i < data.tsd_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(0, data.tsd_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[4,1]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.disc_thresholds[3] ]
sns.violinplot(sns_x, orient='v', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(0, data.disc_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[4,0]) # tsd, x=tsd, y=discordant reads
ax.scatter(x_failed, y_failed, s=5, c='silver', linewidths=0.5, alpha=0.1)
ax.scatter(x_mono, y_mono, s=5, c='lightskyblue', linewidths=0.5, alpha=0.1)
ax.scatter(x_bi, y_bi, s=5, c='steelblue', linewidths=0.5, alpha=0.1)
ax.axvline(x=data.tsd_thresholds[4], linewidth=0.5, alpha=0.25, color='steelblue', linestyle='dashed')
ax.axvline(x=data.tsd_thresholds[1], linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
ax.axvline(x=data.tsd_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[0], linewidth=0.5, alpha=0.25, color='steelblue', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[1], linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[2], linewidth=0.5, alpha=0.25, color='steelblue', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, TSD')
ax.set_ylabel('# discordant read')
ax.set_xlim(0, data.tsd_thresholds[3])
ax.set_ylim(0, data.disc_thresholds[3])
x,y, x_mono,y_mono, x_bi,y_bi, x_failed,y_failed=[],[], [],[], [],[], [],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'Del':
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_spanning[id][1])
if id in gt:
if data.merged_res[id][0] == 1:
x_mono.append(data.cn_est_tsd_depth[id][1])
y_mono.append(data.cn_est_spanning[id][1])
else:
x_bi.append(data.cn_est_tsd_depth[id][1])
y_bi.append(data.cn_est_spanning[id][1])
else:
x_failed.append(data.cn_est_tsd_depth[id][1])
y_failed.append(data.cn_est_spanning[id][1])
ax=plt.subplot(gs[0,3]) # del, x=tsd
sns_x=[ i for i in x if i < data.del_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,4]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.spanning_thresholds[2] ]
sns.violinplot(sns_x, orient='v', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(-5, data.spanning_thresholds[2])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,3]) # del, x=tsd, y=spanning
ax.scatter(x_failed, y_failed, s=5, c='silver', linewidths=0.5, alpha=0.1)
ax.scatter(x_mono, y_mono, s=5, c='gold', linewidths=0.5, alpha=0.2)
ax.scatter(x_bi, y_bi, s=5, c='darkred', linewidths=0.5, alpha=0.2)
ax.axvline(x=data.del_thresholds[1], linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axvline(x=data.del_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=spanning_threshold_for_merge, linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[2], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, Del')
ax.set_ylabel('# spanning read')
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.set_ylim(-5, data.spanning_thresholds[2])
x,y, x_mono,y_mono, x_bi,y_bi, x_failed,y_failed=[],[], [],[], [],[], [],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'Del':
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_disc[id][1])
if id in gt:
if data.merged_res[id][0] == 1:
x_mono.append(data.cn_est_tsd_depth[id][1])
y_mono.append(data.cn_est_disc[id][1])
else:
x_bi.append(data.cn_est_tsd_depth[id][1])
y_bi.append(data.cn_est_disc[id][1])
else:
x_failed.append(data.cn_est_tsd_depth[id][1])
y_failed.append(data.cn_est_disc[id][1])
ax=plt.subplot(gs[3,3]) # del, x=tsd
sns_x=[ i for i in x if i < data.del_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[4,4]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.disc_thresholds[3] ]
sns.violinplot(sns_x, orient='v', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(0, data.disc_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[4,3]) # del, x=tsd, y=discordant reads
ax.scatter(x_failed, y_failed, s=5, c='silver', linewidths=0.5, alpha=0.1)
ax.scatter(x_mono, y_mono, s=5, c='gold', linewidths=0.5, alpha=0.2)
ax.scatter(x_bi, y_bi, s=5, c='darkred', linewidths=0.5, alpha=0.2)
ax.axvline(x=data.del_thresholds[1], linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axvline(x=data.del_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[0], linewidth=0.5, alpha=0.25, color='orangered', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[1], linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[2], linewidth=0.5, alpha=0.25, color='orangered', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, Del')
ax.set_ylabel('# discordant read')
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.set_ylim(0, data.disc_thresholds[3])
x,y, x_mono,y_mono, x_bi,y_bi, x_failed,y_failed=[],[], [],[], [],[], [],[]
for id in data.cn_est_disc:
x.append(data.cn_est_disc[id][1])
y.append(data.cn_est_spanning[id][1])
if id in gt:
if data.merged_res[id][0] == 1:
x_mono.append(data.cn_est_disc[id][1])
y_mono.append(data.cn_est_spanning[id][1])
else:
x_bi.append(data.cn_est_disc[id][1])
y_bi.append(data.cn_est_spanning[id][1])
else:
x_failed.append(data.cn_est_disc[id][1])
y_failed.append(data.cn_est_spanning[id][1])
ax=plt.subplot(gs[0,6]) # del, x=tsd
sns_x=[ i for i in x if i < data.disc_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='darkgreen')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(0, data.disc_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,7]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.spanning_thresholds[2] ]
sns.violinplot(sns_x, orient='v', color='darkgreen')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(-5, data.spanning_thresholds[2])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,6]) # x=discordant, y=spanning reads
ax.scatter(x_failed, y_failed, s=5, c='silver', linewidths=0.5, alpha=0.1)
ax.scatter(x_mono, y_mono, s=5, c='lightgreen', linewidths=0.5, alpha=0.1)
ax.scatter(x_bi, y_bi, s=5, c='darkolivegreen', linewidths=0.5, alpha=0.1)
ax.axvline(x=data.disc_thresholds[0], linewidth=0.5, alpha=0.25, color='forestgreen', linestyle='dashed')
ax.axvline(x=data.disc_thresholds[1], linewidth=0.5, alpha=0.50, color='forestgreen', linestyle='dashed')
ax.axvline(x=data.disc_thresholds[2], linewidth=0.5, alpha=0.25, color='forestgreen', linestyle='dashed')
ax.axvline(x=data.disc_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=spanning_threshold_for_merge, linewidth=0.5, alpha=0.50, color='forestgreen', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[2], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('# discordant read')
ax.set_ylabel('# spanning read')
ax.set_xlim(0, data.disc_thresholds[3])
ax.set_ylim(-5, data.spanning_thresholds[2])
plt.suptitle('Genotyping result for insertions')
if args.no_pdf is False:
plt.savefig(filenames.merged_pdf.replace('.pdf', '_gt.pdf'))
plt.close()
except:
log.logger.error('\n'+ traceback.format_exc())
exit(1)
def plot_custom(args, params, filenames, data):
log.logger.debug('started')
try:
# load mei search filter result
global mei_filter
mei_filter={}
with open(args.ins_bed) as infile:
for line in infile:
ls=line.strip().split()
if ls[6] == 'confidence:high':
mei_filter[ls[10]]=True
else:
mei_filter[ls[10]]=False
# load genotyping results
spanning_threshold_for_merge= 1 + math.ceil(args.cov * params.spanning_threshold_coeff_for_merge)
if not data.disc_thresholds is False:
plt.figure(figsize=(6.2, 4)) # (x, y)
gs=gridspec.GridSpec(5, 8, height_ratios=[0.05, 0.3, 0.1, 0.05, 0.3], width_ratios=[0.3, 0.05, 0.1, 0.3, 0.05, 0.1, 0.3, 0.05]) # (y, x)
gs.update(hspace=0.05, wspace=0.05)
x,y, x_mono,y_mono, x_bi,y_bi, x_failed,y_failed=[],[], [],[], [],[], [],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'TSD':
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_spanning[id][1])
if mei_filter[id] is True:
if data.merged_res[id][0] == 1:
x_mono.append(data.cn_est_tsd_depth[id][1])
y_mono.append(data.cn_est_spanning[id][1])
else:
x_bi.append(data.cn_est_tsd_depth[id][1])
y_bi.append(data.cn_est_spanning[id][1])
else:
x_failed.append(data.cn_est_tsd_depth[id][1])
y_failed.append(data.cn_est_spanning[id][1])
ax=plt.subplot(gs[0,0]) # tsd, x=tsd
sns_x=[ i for i in x if i < data.tsd_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(0, data.tsd_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,1]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.spanning_thresholds[2] ]
sns.violinplot(sns_x, orient='v', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(-5, data.spanning_thresholds[2])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,0]) # tsd, x=tsd, y=spanning
ax.scatter(x_failed, y_failed, s=5, c='silver', linewidths=0.5, alpha=0.1)
ax.scatter(x_mono, y_mono, s=5, c='lightskyblue', linewidths=0.5, alpha=0.1)
ax.scatter(x_bi, y_bi, s=5, c='steelblue', linewidths=0.5, alpha=0.1)
# ax.axvline(x=data.tsd_thresholds[4], linewidth=0.5, alpha=0.25, color='steelblue', linestyle='dashed')
# ax.axvline(x=data.tsd_thresholds[1], linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
# ax.axvline(x=data.tsd_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=spanning_threshold_for_merge, linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[2], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, TSD')
ax.set_ylabel('# spanning read')
ax.set_xlim(0, data.tsd_thresholds[3])
ax.set_ylim(-5, data.spanning_thresholds[2])
x,y, x_mono,y_mono, x_bi,y_bi, x_failed,y_failed=[],[], [],[], [],[], [],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'TSD':
if data.cn_est_spanning[id][1] < spanning_threshold_for_merge:
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_disc[id][1])
if mei_filter[id] is True:
if data.merged_res[id][0] == 1:
x_mono.append(data.cn_est_tsd_depth[id][1])
y_mono.append(data.cn_est_disc[id][1])
else:
x_bi.append(data.cn_est_tsd_depth[id][1])
y_bi.append(data.cn_est_disc[id][1])
else:
x_failed.append(data.cn_est_tsd_depth[id][1])
y_failed.append(data.cn_est_disc[id][1])
ax=plt.subplot(gs[3,0]) # tsd, x=tsd
sns_x=[ i for i in x if i < data.tsd_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(0, data.tsd_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[4,1]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.disc_thresholds[3] ]
sns.violinplot(sns_x, orient='v', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(0, data.disc_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[4,0]) # tsd, x=tsd, y=discordant reads
ax.scatter(x_failed, y_failed, s=5, c='silver', linewidths=0.5, alpha=0.1)
ax.scatter(x_mono, y_mono, s=5, c='lightskyblue', linewidths=0.5, alpha=0.1)
ax.scatter(x_bi, y_bi, s=5, c='steelblue', linewidths=0.5, alpha=0.1)
# ax.axvline(x=data.tsd_thresholds[4], linewidth=0.5, alpha=0.25, color='steelblue', linestyle='dashed')
ax.axvline(x=data.tsd_thresholds[1], linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
# ax.axvline(x=data.tsd_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[0], linewidth=0.5, alpha=0.25, color='steelblue', linestyle='dashed')
# ax.axhline(y=data.disc_thresholds[1], linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
# ax.axhline(y=data.disc_thresholds[2], linewidth=0.5, alpha=0.25, color='steelblue', linestyle='dashed')
# ax.axhline(y=data.disc_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, TSD')
ax.set_ylabel('# discordant read')
ax.set_xlim(0, data.tsd_thresholds[3])
ax.set_ylim(0, data.disc_thresholds[3])
x,y, x_mono,y_mono, x_bi,y_bi, x_failed,y_failed=[],[], [],[], [],[], [],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'Del':
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_spanning[id][1])
if mei_filter[id] is True:
if data.merged_res[id][0] == 1:
x_mono.append(data.cn_est_tsd_depth[id][1])
y_mono.append(data.cn_est_spanning[id][1])
else:
x_bi.append(data.cn_est_tsd_depth[id][1])
y_bi.append(data.cn_est_spanning[id][1])
else:
x_failed.append(data.cn_est_tsd_depth[id][1])
y_failed.append(data.cn_est_spanning[id][1])
ax=plt.subplot(gs[0,3]) # del, x=tsd
sns_x=[ i for i in x if i < data.del_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,4]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.spanning_thresholds[2] ]
sns.violinplot(sns_x, orient='v', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(-5, data.spanning_thresholds[2])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,3]) # del, x=tsd, y=spanning
ax.scatter(x_failed, y_failed, s=5, c='silver', linewidths=0.5, alpha=0.1)
ax.scatter(x_mono, y_mono, s=5, c='gold', linewidths=0.5, alpha=0.2)
ax.scatter(x_bi, y_bi, s=5, c='darkred', linewidths=0.5, alpha=0.2)
ax.axvline(x=data.del_thresholds[1], linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axvline(x=data.del_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=spanning_threshold_for_merge, linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[2], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, Del')
ax.set_ylabel('# spanning read')
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.set_ylim(-5, data.spanning_thresholds[2])
x,y, x_mono,y_mono, x_bi,y_bi, x_failed,y_failed=[],[], [],[], [],[], [],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'Del':
if data.cn_est_spanning[id][1] < spanning_threshold_for_merge:
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_disc[id][1])
if mei_filter[id] is True:
if data.merged_res[id][0] == 1:
x_mono.append(data.cn_est_tsd_depth[id][1])
y_mono.append(data.cn_est_disc[id][1])
else:
x_bi.append(data.cn_est_tsd_depth[id][1])
y_bi.append(data.cn_est_disc[id][1])
else:
x_failed.append(data.cn_est_tsd_depth[id][1])
y_failed.append(data.cn_est_disc[id][1])
ax=plt.subplot(gs[3,3]) # del, x=tsd
sns_x=[ i for i in x if i < data.del_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[4,4]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.disc_thresholds[3] ]
sns.violinplot(sns_x, orient='v', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(0, data.disc_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[4,3]) # del, x=tsd, y=discordant reads
ax.scatter(x_failed, y_failed, s=5, c='silver', linewidths=0.5, alpha=0.1)
ax.scatter(x_mono, y_mono, s=5, c='gold', linewidths=0.5, alpha=0.2)
ax.scatter(x_bi, y_bi, s=5, c='darkred', linewidths=0.5, alpha=0.2)
ax.axvline(x=data.del_thresholds[1], linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axvline(x=data.del_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[0], linewidth=0.5, alpha=0.25, color='orangered', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[1], linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[2], linewidth=0.5, alpha=0.25, color='orangered', linestyle='dashed')
ax.axhline(y=data.disc_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, Del')
ax.set_ylabel('# discordant read')
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.set_ylim(0, data.disc_thresholds[3])
x,y, x_mono,y_mono, x_bi,y_bi, x_failed,y_failed=[],[], [],[], [],[], [],[]
for id in data.cn_est_disc:
x.append(data.cn_est_disc[id][1])
y.append(data.cn_est_spanning[id][1])
if mei_filter[id] is True:
if data.merged_res[id][0] == 1:
x_mono.append(data.cn_est_disc[id][1])
y_mono.append(data.cn_est_spanning[id][1])
else:
x_bi.append(data.cn_est_disc[id][1])
y_bi.append(data.cn_est_spanning[id][1])
else:
x_failed.append(data.cn_est_disc[id][1])
y_failed.append(data.cn_est_spanning[id][1])
ax=plt.subplot(gs[0,6]) # del, x=tsd
sns_x=[ i for i in x if i < data.disc_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='darkgreen')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(0, data.disc_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,7]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.spanning_thresholds[2] ]
sns.violinplot(sns_x, orient='v', color='darkgreen')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(-5, data.spanning_thresholds[2])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,6]) # x=discordant, y=spanning reads
ax.scatter(x_failed, y_failed, s=5, c='silver', linewidths=0.5, alpha=0.1)
ax.scatter(x_mono, y_mono, s=5, c='lightgreen', linewidths=0.5, alpha=0.1)
ax.scatter(x_bi, y_bi, s=5, c='darkolivegreen', linewidths=0.5, alpha=0.1)
ax.axvline(x=data.disc_thresholds[0], linewidth=0.5, alpha=0.25, color='forestgreen', linestyle='dashed')
ax.axvline(x=data.disc_thresholds[1], linewidth=0.5, alpha=0.50, color='forestgreen', linestyle='dashed')
ax.axvline(x=data.disc_thresholds[2], linewidth=0.5, alpha=0.25, color='forestgreen', linestyle='dashed')
ax.axvline(x=data.disc_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=spanning_threshold_for_merge, linewidth=0.5, alpha=0.50, color='forestgreen', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[2], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('# discordant read')
ax.set_ylabel('# spanning read')
ax.set_xlim(0, data.disc_thresholds[3])
ax.set_ylim(-5, data.spanning_thresholds[2])
else:
log.logger.warning('No discordant read stat available. Will use other evidences.')
plt.figure(figsize=(4.1, 2)) # (x, y)
gs=gridspec.GridSpec(2, 5, height_ratios=[0.05, 0.3], width_ratios=[0.3, 0.05, 0.1, 0.3, 0.05]) # (y, x)
gs.update(hspace=0.05, wspace=0.05)
x,y, x_mono,y_mono, x_bi,y_bi, x_failed,y_failed=[],[], [],[], [],[], [],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'TSD':
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_spanning[id][1])
if mei_filter[id] is True:
if data.merged_res[id][0] == 1:
x_mono.append(data.cn_est_tsd_depth[id][1])
y_mono.append(data.cn_est_spanning[id][1])
else:
x_bi.append(data.cn_est_tsd_depth[id][1])
y_bi.append(data.cn_est_spanning[id][1])
else:
x_failed.append(data.cn_est_tsd_depth[id][1])
y_failed.append(data.cn_est_spanning[id][1])
ax=plt.subplot(gs[0,0]) # tsd, x=tsd
sns_x=[ i for i in x if i < data.tsd_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(0, data.tsd_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,1]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.spanning_thresholds[2] ]
sns.violinplot(sns_x, orient='v', color='steelblue')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(-5, data.spanning_thresholds[2])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,0]) # tsd, x=tsd, y=spanning
ax.scatter(x_failed, y_failed, s=5, c='silver', linewidths=0.5, alpha=0.1)
ax.scatter(x_mono, y_mono, s=5, c='lightskyblue', linewidths=0.5, alpha=0.1)
ax.scatter(x_bi, y_bi, s=5, c='steelblue', linewidths=0.5, alpha=0.1)
ax.axvline(x=data.tsd_thresholds[1], linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
ax.axvline(x=data.tsd_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=spanning_threshold_for_merge, linewidth=0.5, alpha=0.50, color='steelblue', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[2], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, TSD')
ax.set_ylabel('# spanning read')
ax.set_xlim(0, data.tsd_thresholds[3])
ax.set_ylim(-5, data.spanning_thresholds[2])
x,y, x_mono,y_mono, x_bi,y_bi, x_failed,y_failed=[],[], [],[], [],[], [],[]
for id in data.cn_est_tsd_depth:
if data.cn_est_tsd_depth[id][2] == 'Del':
x.append(data.cn_est_tsd_depth[id][1])
y.append(data.cn_est_spanning[id][1])
if mei_filter[id] is True:
if data.merged_res[id][0] == 1:
x_mono.append(data.cn_est_tsd_depth[id][1])
y_mono.append(data.cn_est_spanning[id][1])
else:
x_bi.append(data.cn_est_tsd_depth[id][1])
y_bi.append(data.cn_est_spanning[id][1])
else:
x_failed.append(data.cn_est_tsd_depth[id][1])
y_failed.append(data.cn_est_spanning[id][1])
ax=plt.subplot(gs[0,3]) # del, x=tsd
sns_x=[ i for i in x if i < data.del_thresholds[3] ]
sns.violinplot(sns_x, orient='h', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,4]) # tsd, y=spanning
sns_x=[ i for i in y if i < data.spanning_thresholds[2] ]
sns.violinplot(sns_x, orient='v', color='darkred')
plt.setp(ax.collections, alpha=0.25)
ax.set_ylim(-5, data.spanning_thresholds[2])
ax.xaxis.set_ticks([])
ax.yaxis.set_ticks([])
ax=plt.subplot(gs[1,3]) # del, x=tsd, y=spanning
ax.scatter(x_failed, y_failed, s=5, c='silver', linewidths=0.5, alpha=0.1)
ax.scatter(x_mono, y_mono, s=5, c='gold', linewidths=0.5, alpha=0.2)
ax.scatter(x_bi, y_bi, s=5, c='darkred', linewidths=0.5, alpha=0.2)
ax.axvline(x=data.del_thresholds[1], linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axvline(x=data.del_thresholds[3], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.axhline(y=spanning_threshold_for_merge, linewidth=0.5, alpha=0.50, color='orangered', linestyle='dashed')
ax.axhline(y=data.spanning_thresholds[2], linewidth=0.5, alpha=0.25, color='grey', linestyle='dashed')
ax.set_xlabel('Relative depth, Del')
ax.set_ylabel('# spanning read')
ax.set_xlim(-0.25, data.del_thresholds[3])
ax.set_ylim(-5, data.spanning_thresholds[2])
plt.suptitle('Genotyping result for insertions')
if args.no_pdf is False:
plt.savefig(filenames.merged_pdf, transparent=True)
plt.close()
except:
log.logger.error('\n'+ traceback.format_exc())
exit(1)
| 54.61571 | 149 | 0.539745 | 12,833 | 90,389 | 3.631887 | 0.017923 | 0.036818 | 0.053489 | 0.039478 | 0.985796 | 0.982986 | 0.980561 | 0.979832 | 0.977751 | 0.975262 | 0 | 0.045235 | 0.313235 | 90,389 | 1,654 | 150 | 54.64873 | 0.705587 | 0.034506 | 0 | 0.966056 | 0 | 0 | 0.056782 | 0.000356 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006789 | false | 0.002716 | 0.004752 | 0 | 0.013578 | 0.000679 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
0b088b46d837294330ffc6696af7a9d6af97e644 | 22,969 | py | Python | fec/home/migrations/0073_auto_20170330_1840.py | cnlucas/fec-cms | aa67a0d4c19a350420d2f8c4b4e6f93acb808639 | [
"CC0-1.0"
] | 39 | 2018-03-09T21:56:17.000Z | 2022-01-20T02:31:38.000Z | fec/home/migrations/0073_auto_20170330_1840.py | rbtrsv/fec-cms | 3136d1cf300ce1505d7035de38038e1c045937e6 | [
"CC0-1.0"
] | 3,183 | 2018-03-09T20:30:55.000Z | 2022-03-30T21:27:49.000Z | fec/home/migrations/0073_auto_20170330_1840.py | rbtrsv/fec-cms | 3136d1cf300ce1505d7035de38038e1c045937e6 | [
"CC0-1.0"
] | 19 | 2018-03-09T20:47:31.000Z | 2022-03-10T02:54:33.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-30 18:40
from __future__ import unicode_literals
from django.db import migrations
import wagtail.contrib.table_block.blocks
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.images.blocks
class Migration(migrations.Migration):
dependencies = [
('home', '0072_auto_20170324_0544'),
]
operations = [
migrations.AlterField(
model_name='aboutlandingpage',
name='hero',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
migrations.AlterField(
model_name='checklistpage',
name='body',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
migrations.AlterField(
model_name='collectionpage',
name='body',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
migrations.AlterField(
model_name='custompage',
name='sidebar',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
migrations.AlterField(
model_name='digestpage',
name='body',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
migrations.AlterField(
model_name='documentfeedpage',
name='body',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
migrations.AlterField(
model_name='documentpage',
name='body',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
migrations.AlterField(
model_name='enforcementpage',
name='body',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
migrations.AlterField(
model_name='homepage',
name='body',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
migrations.AlterField(
model_name='landingpage',
name='body',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
migrations.AlterField(
model_name='legalresourceslandingpage',
name='body',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
migrations.AlterField(
model_name='nonconnectedchecklistpage',
name='body',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
migrations.AlterField(
model_name='partychecklistpage',
name='body',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
migrations.AlterField(
model_name='presslandingpage',
name='contact_intro',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
migrations.AlterField(
model_name='presslandingpage',
name='digest_intro',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
migrations.AlterField(
model_name='presslandingpage',
name='hero',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
migrations.AlterField(
model_name='presslandingpage',
name='release_intro',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
migrations.AlterField(
model_name='pressreleasepage',
name='body',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
migrations.AlterField(
model_name='recordpage',
name='body',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
migrations.AlterField(
model_name='reportslandingpage',
name='body',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
migrations.AlterField(
model_name='serviceslandingpage',
name='body',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
migrations.AlterField(
model_name='serviceslandingpage',
name='hero',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
migrations.AlterField(
model_name='ssfchecklistpage',
name='body',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
migrations.AlterField(
model_name='tipsfortreasurerspage',
name='body',
field=wagtail.core.fields.StreamField((('heading', wagtail.core.blocks.CharBlock(classname='full title')), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('html', wagtail.core.blocks.RawHTMLBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock()), ('custom_table', wagtail.core.blocks.StructBlock((('custom_table', wagtail.core.blocks.StreamBlock((('title', wagtail.core.blocks.CharBlock(required=False)), ('table_intro', wagtail.core.blocks.RichTextBlock(required=False)), ('table', wagtail.contrib.table_block.blocks.TableBlock(table_options={'colHeaders': True, 'height': 108, 'language': 'en', 'rowHeaders': True, 'startCols': 6, 'startRows': 7})), ('footnote', wagtail.core.blocks.CharBlock(required=False))))),)))), blank=True, null=True),
),
]
| 164.064286 | 828 | 0.708781 | 2,481 | 22,969 | 6.489319 | 0.041516 | 0.148944 | 0.203789 | 0.116273 | 0.963106 | 0.961242 | 0.961242 | 0.961242 | 0.961242 | 0.961242 | 0 | 0.007377 | 0.097087 | 22,969 | 139 | 829 | 165.244604 | 0.768938 | 0.002961 | 0 | 0.742424 | 1 | 0 | 0.177133 | 0.004105 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.068182 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.